Doceditor:Utils:Actions: enable internal requests
This commit is contained in:
parent
f8b86220bc
commit
b2c3cc422a
@ -77,7 +77,6 @@ export async function fileCopyAs(
|
|||||||
enableExternalExt,
|
enableExternalExt,
|
||||||
password,
|
password,
|
||||||
}),
|
}),
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const file = await (await fetch(createFile)).json();
|
const file = await (await fetch(createFile)).json();
|
||||||
@ -139,7 +138,6 @@ export async function createFile(
|
|||||||
[["Content-Type", "application/json;charset=utf-8"]],
|
[["Content-Type", "application/json;charset=utf-8"]],
|
||||||
"POST",
|
"POST",
|
||||||
JSON.stringify({ title, templateId, formId }),
|
JSON.stringify({ title, templateId, formId }),
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const file = await (await fetch(createFile)).json();
|
const file = await (await fetch(createFile)).json();
|
||||||
@ -311,7 +309,6 @@ export async function getUser(share?: string) {
|
|||||||
[share ? ["Request-Token", share] : ["", ""]],
|
[share ? ["Request-Token", share] : ["", ""]],
|
||||||
"GET",
|
"GET",
|
||||||
undefined,
|
undefined,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!cookie?.includes("asc_auth_key")) return undefined;
|
if (!cookie?.includes("asc_auth_key")) return undefined;
|
||||||
@ -337,7 +334,6 @@ export async function getSettings(share?: string) {
|
|||||||
[share ? ["Request-Token", share] : ["", ""]],
|
[share ? ["Request-Token", share] : ["", ""]],
|
||||||
"GET",
|
"GET",
|
||||||
undefined,
|
undefined,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const settingsRes = await fetch(getSettings);
|
const settingsRes = await fetch(getSettings);
|
||||||
@ -363,7 +359,6 @@ export async function checkFillFromDraft(
|
|||||||
],
|
],
|
||||||
"POST",
|
"POST",
|
||||||
JSON.stringify({ fileId: templateFileId }),
|
JSON.stringify({ fileId: templateFileId }),
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await fetch(checkFillFormDraft);
|
const response = await fetch(checkFillFormDraft);
|
||||||
@ -389,7 +384,6 @@ export async function openEdit(
|
|||||||
[share ? ["Request-Token", share] : ["", ""]],
|
[share ? ["Request-Token", share] : ["", ""]],
|
||||||
"GET",
|
"GET",
|
||||||
undefined,
|
undefined,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const res = await fetch(getConfig);
|
const res = await fetch(getConfig);
|
||||||
@ -452,7 +446,6 @@ export async function getEditorUrl(
|
|||||||
[share ? ["Request-Token", share] : ["", ""]],
|
[share ? ["Request-Token", share] : ["", ""]],
|
||||||
"GET",
|
"GET",
|
||||||
undefined,
|
undefined,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const res = await fetch(request);
|
const res = await fetch(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user