WIP: Secure mode #31

Closed
norm wants to merge 21 commits from (deleted):feat/secure-fetch into main
Showing only changes of commit cce01c9a70 - Show all commits

View file

@ -43,7 +43,7 @@
<template #label>{{ i18n.ts.allowedInstances }}</template>
<template #caption>{{ i18n.ts.allowedInstancesDescription }}</template>
</FormTextarea>
<FormButton primary class="_formBlock" @click="saveInstance"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
<FormButton primary class="_formBlock" @click="save"><i class="fas fa-save"></i> {{ i18n.ts.save }}</FormButton>
</div>
</FormFolder>
</div>
@ -88,16 +88,9 @@ async function init() {
allowedHosts = meta.allowedHosts.join('\n');
}
function save() {
function save(): void {
os.apiWithDialog('admin/update-meta', {
summalyProxy,
}).then(() => {
fetchInstance();
});
}
function saveInstance() {
os.apiWithDialog('admin/update-meta', {
secureMode,
privateMode,
allowedHosts: allowedHosts.split('\n'),