mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 23:46:22 +00:00
Updated ShareX config
This commit is contained in:
parent
4bad86003c
commit
06ac266bbf
@ -4,12 +4,12 @@
|
||||
lsKeys.siBytes = 'siBytes'
|
||||
|
||||
page.prepareShareX = function () {
|
||||
const values = {
|
||||
const values = page.token ? {
|
||||
token: page.token || '',
|
||||
albumid: page.album || '',
|
||||
filelength: page.fileLength || '',
|
||||
age: page.uploadAge || ''
|
||||
}
|
||||
albumid: page.album || ''
|
||||
} : {}
|
||||
values.filelength = page.filelength || ''
|
||||
values.age = page.uploadAge || ''
|
||||
|
||||
const headers = []
|
||||
const keys = Object.keys(values)
|
||||
@ -24,13 +24,13 @@ page.prepareShareX = function () {
|
||||
const sharexFile = `{
|
||||
"Name": "${originClean}",
|
||||
"DestinationType": "ImageUploader, FileUploader",
|
||||
"RequestType": "POST",
|
||||
"RequestMethod": "POST",
|
||||
"RequestURL": "${location.protocol}//${origin}/api/upload",
|
||||
"FileFormName": "files[]",
|
||||
"Headers": {
|
||||
${headers.join(',\n')}
|
||||
},
|
||||
"ResponseType": "Text",
|
||||
"Body": "MultipartFormData",
|
||||
"FileFormName": "files[]",
|
||||
"URL": "$json:files[0].url$",
|
||||
"ThumbnailURL": "$json:files[0].url$"
|
||||
}`
|
||||
|
@ -1,16 +1,16 @@
|
||||
{
|
||||
"Name": "safe.fiery.me",
|
||||
"DestinationType": "ImageUploader, FileUploader",
|
||||
"RequestType": "POST",
|
||||
"RequestMethod": "POST",
|
||||
"RequestURL": "https://safe.fiery.me/api/upload",
|
||||
"FileFormName": "files[]",
|
||||
"Headers": {
|
||||
"token": "",
|
||||
"albumid": "",
|
||||
"filelength": "",
|
||||
"age": ""
|
||||
},
|
||||
"ResponseType": "Text",
|
||||
"Body": "MultipartFormData",
|
||||
"FileFormName": "files[]",
|
||||
"URL": "$json:files[0].url$",
|
||||
"ThumbnailURL": "$json:files[0].url$"
|
||||
}
|
@ -16,7 +16,7 @@
|
||||
v3: CSS and JS files (libs such as bulma, lazyload, etc).
|
||||
v4: Renders in /public/render/* directories (to be used by render.js).
|
||||
#}
|
||||
{% set v1 = "01mMpp1DzB" %}
|
||||
{% set v1 = "gYwgjH5FFj" %}
|
||||
{% set v2 = "hiboQUzAzp" %}
|
||||
{% set v3 = "tWLiAlAX5i" %}
|
||||
{% set v4 = "S3TAWpPeFS" %}
|
||||
|
Loading…
Reference in New Issue
Block a user