2020-02-17 02:21:27 +09:00
|
|
|
<template>
|
2020-11-17 14:59:15 +09:00
|
|
|
<div v-if="meta" class="_section">
|
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faInfoCircle"/> {{ $ts.basicInfo }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="name">{{ $ts.instanceName }}</MkInput>
|
|
|
|
<MkTextarea v-model:value="description">{{ $ts.instanceDescription }}</MkTextarea>
|
|
|
|
<MkInput v-model:value="iconUrl"><template #icon><Fa :icon="faLink"/></template>{{ $ts.iconUrl }}</MkInput>
|
|
|
|
<MkInput v-model:value="bannerUrl"><template #icon><Fa :icon="faLink"/></template>{{ $ts.bannerUrl }}</MkInput>
|
|
|
|
<MkInput v-model:value="backgroundImageUrl"><template #icon><Fa :icon="faLink"/></template>{{ $ts.backgroundImageUrl }}</MkInput>
|
|
|
|
<MkInput v-model:value="logoImageUrl"><template #icon><Fa :icon="faLink"/></template>{{ $ts.logoImageUrl }}</MkInput>
|
|
|
|
<MkInput v-model:value="tosUrl"><template #icon><Fa :icon="faLink"/></template>{{ $ts.tosUrl }}</MkInput>
|
|
|
|
<MkInput v-model:value="maintainerName">{{ $ts.maintainerName }}</MkInput>
|
|
|
|
<MkInput v-model:value="maintainerEmail" type="email"><template #icon><Fa :icon="faEnvelope"/></template>{{ $ts.maintainerEmail }}</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="pinnedClipId">{{ $ts.pinnedClipId }}</MkInput>
|
2020-12-05 16:05:40 +09:00
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="maxNoteTextLength" type="number" :save="() => save()"><template #icon><Fa :icon="faPencilAlt"/></template>{{ $ts.maxNoteTextLength }}</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableLocalTimeline" @update:value="save()">{{ $ts.enableLocalTimeline }}</MkSwitch>
|
|
|
|
<MkSwitch v-model:value="enableGlobalTimeline" @update:value="save()">{{ $ts.enableGlobalTimeline }}</MkSwitch>
|
|
|
|
<MkInfo>{{ $ts.disablingTimelinesInfo }}</MkInfo>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
2020-07-26 11:05:26 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="useStarForReactionFallback" @update:value="save()">{{ $ts.useStarForReactionFallback }}</MkSwitch>
|
2020-07-26 11:05:26 +09:00
|
|
|
</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faUser"/> {{ $ts.registration }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableRegistration" @update:value="save()">{{ $ts.enableRegistration }}</MkSwitch>
|
|
|
|
<MkButton v-if="!enableRegistration" @click="invite">{{ $ts.invite }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faShieldAlt"/> {{ $ts.hcaptcha }}</div>
|
2020-04-28 14:29:33 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableHcaptcha">{{ $ts.enableHcaptcha }}</MkSwitch>
|
2020-04-28 14:29:33 +09:00
|
|
|
<template v-if="enableHcaptcha">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="hcaptchaSiteKey" :disabled="!enableHcaptcha"><template #icon><Fa :icon="faKey"/></template>{{ $ts.hcaptchaSiteKey }}</MkInput>
|
|
|
|
<MkInput v-model:value="hcaptchaSecretKey" :disabled="!enableHcaptcha"><template #icon><Fa :icon="faKey"/></template>{{ $ts.hcaptchaSecretKey }}</MkInput>
|
2020-04-28 14:29:33 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
2020-04-29 09:15:18 +09:00
|
|
|
<div class="_content" v-if="enableHcaptcha">
|
2020-12-26 10:47:36 +09:00
|
|
|
<header>{{ $ts.preview }}</header>
|
2020-04-29 09:15:18 +09:00
|
|
|
<captcha v-if="enableHcaptcha" provider="hcaptcha" :sitekey="hcaptchaSiteKey || '10000000-ffff-ffff-ffff-000000000001'"/>
|
2020-04-28 14:29:33 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-04-28 14:29:33 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faShieldAlt"/> {{ $ts.recaptcha }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableRecaptcha" ref="enableRecaptcha">{{ $ts.enableRecaptcha }}</MkSwitch>
|
2020-02-17 02:21:27 +09:00
|
|
|
<template v-if="enableRecaptcha">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="recaptchaSiteKey" :disabled="!enableRecaptcha"><template #icon><Fa :icon="faKey"/></template>{{ $ts.recaptchaSiteKey }}</MkInput>
|
|
|
|
<MkInput v-model:value="recaptchaSecretKey" :disabled="!enableRecaptcha"><template #icon><Fa :icon="faKey"/></template>{{ $ts.recaptchaSecretKey }}</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_content" v-if="enableRecaptcha && recaptchaSiteKey">
|
2020-12-26 10:47:36 +09:00
|
|
|
<header>{{ $ts.preview }}</header>
|
2020-04-29 09:15:18 +09:00
|
|
|
<captcha v-if="enableRecaptcha" provider="grecaptcha" :sitekey="recaptchaSiteKey"/>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faEnvelope" /> {{ $ts.emailConfig }}</div>
|
2020-07-26 11:05:26 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableEmail" @update:value="save()">{{ $ts.enableEmail }}<template #desc>{{ $ts.emailConfigInfo }}</template></MkSwitch>
|
|
|
|
<MkInput v-model:value="email" type="email" :disabled="!enableEmail">{{ $ts.email }}</MkInput>
|
|
|
|
<div><b>{{ $ts.smtpConfig }}</b></div>
|
2020-07-26 11:05:26 +09:00
|
|
|
<div class="_inputs">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="smtpHost" :disabled="!enableEmail">{{ $ts.smtpHost }}</MkInput>
|
|
|
|
<MkInput v-model:value="smtpPort" type="number" :disabled="!enableEmail">{{ $ts.smtpPort }}</MkInput>
|
2020-07-26 11:05:26 +09:00
|
|
|
</div>
|
|
|
|
<div class="_inputs">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="smtpUser" :disabled="!enableEmail">{{ $ts.smtpUser }}</MkInput>
|
|
|
|
<MkInput v-model:value="smtpPass" type="password" :disabled="!enableEmail">{{ $ts.smtpPass }}</MkInput>
|
2020-07-26 11:05:26 +09:00
|
|
|
</div>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInfo>{{ $ts.emptyToDisableSmtpAuth }}</MkInfo>
|
|
|
|
<MkSwitch v-model:value="smtpSecure" :disabled="!enableEmail">{{ $ts.smtpSecure }}<template #desc>{{ $ts.smtpSecureInfo }}</template></MkSwitch>
|
2020-07-26 11:05:26 +09:00
|
|
|
<div>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton :disabled="!enableEmail" primary inline @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
|
|
|
<MkButton :disabled="!enableEmail" inline @click="testEmail()">{{ $ts.testEmail }}</MkButton>
|
2020-07-26 11:05:26 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faBolt"/> {{ $ts.serviceworker }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableServiceWorker">{{ $ts.enableServiceworker }}<template #desc>{{ $ts.serviceworkerInfo }}</template></MkSwitch>
|
2020-02-17 02:21:27 +09:00
|
|
|
<template v-if="enableServiceWorker">
|
2020-02-18 21:12:05 +09:00
|
|
|
<div class="_inputs">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInput v-model:value="swPublicKey" :disabled="!enableServiceWorker"><template #icon><Fa :icon="faKey"/></template>Public key</MkInput>
|
|
|
|
<MkInput v-model:value="swPrivateKey" :disabled="!enableServiceWorker"><template #icon><Fa :icon="faKey"/></template>Private key</MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faThumbtack"/> {{ $ts.pinnedUsers }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkTextarea v-model:value="pinnedUsers">
|
2020-12-26 10:47:36 +09:00
|
|
|
<template #desc>{{ $ts.pinnedUsersDescription }} <button class="_textButton" @click="addPinUser">{{ $ts.addUser }}</button></template>
|
2020-10-17 20:12:00 +09:00
|
|
|
</MkTextarea>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faThumbtack"/> {{ $ts.pinnedPages }}</div>
|
2020-11-17 14:59:15 +09:00
|
|
|
<div class="_content">
|
|
|
|
<MkTextarea v-model:value="pinnedPages">
|
2020-12-26 10:47:36 +09:00
|
|
|
<template #desc>{{ $ts.pinnedPagesDescription }}</template>
|
2020-11-17 14:59:15 +09:00
|
|
|
</MkTextarea>
|
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-11-17 14:59:15 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faCloud"/> {{ $ts.files }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="cacheRemoteFiles">{{ $ts.cacheRemoteFiles }}<template #desc>{{ $ts.cacheRemoteFilesDescription }}</template></MkSwitch>
|
|
|
|
<MkSwitch v-model:value="proxyRemoteFiles">{{ $ts.proxyRemoteFiles }}<template #desc>{{ $ts.proxyRemoteFilesDescription }}</template></MkSwitch>
|
|
|
|
<MkInput v-model:value="localDriveCapacityMb" type="number">{{ $ts.driveCapacityPerLocalAccount }}<template #suffix>MB</template><template #desc>{{ $ts.inMb }}</template></MkInput>
|
|
|
|
<MkInput v-model:value="remoteDriveCapacityMb" type="number" :disabled="!cacheRemoteFiles">{{ $ts.driveCapacityPerRemoteAccount }}<template #suffix>MB</template><template #desc>{{ $ts.inMb }}</template></MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faCloud"/> {{ $ts.objectStorage }}</div>
|
2020-02-18 21:12:05 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="useObjectStorage">{{ $ts.useObjectStorage }}</MkSwitch>
|
2020-02-18 21:12:05 +09:00
|
|
|
<template v-if="useObjectStorage">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="objectStorageBaseUrl" :disabled="!useObjectStorage">{{ $ts.objectStorageBaseUrl }}<template #desc>{{ $ts.objectStorageBaseUrlDesc }}</template></MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
<div class="_inputs">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="objectStorageBucket" :disabled="!useObjectStorage">{{ $ts.objectStorageBucket }}<template #desc>{{ $ts.objectStorageBucketDesc }}</template></MkInput>
|
|
|
|
<MkInput v-model:value="objectStoragePrefix" :disabled="!useObjectStorage">{{ $ts.objectStoragePrefix }}<template #desc>{{ $ts.objectStoragePrefixDesc }}</template></MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
</div>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="objectStorageEndpoint" :disabled="!useObjectStorage">{{ $ts.objectStorageEndpoint }}<template #desc>{{ $ts.objectStorageEndpointDesc }}</template></MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
<div class="_inputs">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput v-model:value="objectStorageRegion" :disabled="!useObjectStorage">{{ $ts.objectStorageRegion }}<template #desc>{{ $ts.objectStorageRegionDesc }}</template></MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
</div>
|
|
|
|
<div class="_inputs">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInput v-model:value="objectStorageAccessKey" :disabled="!useObjectStorage"><template #icon><Fa :icon="faKey"/></template>Access key</MkInput>
|
|
|
|
<MkInput v-model:value="objectStorageSecretKey" :disabled="!useObjectStorage"><template #icon><Fa :icon="faKey"/></template>Secret key</MkInput>
|
2020-02-18 21:12:05 +09:00
|
|
|
</div>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="objectStorageUseSSL" :disabled="!useObjectStorage">{{ $ts.objectStorageUseSSL }}<template #desc>{{ $ts.objectStorageUseSSLDesc }}</template></MkSwitch>
|
|
|
|
<MkSwitch v-model:value="objectStorageUseProxy" :disabled="!useObjectStorage">{{ $ts.objectStorageUseProxy }}<template #desc>{{ $ts.objectStorageUseProxyDesc }}</template></MkSwitch>
|
|
|
|
<MkSwitch v-model:value="objectStorageSetPublicRead" :disabled="!useObjectStorage">{{ $ts.objectStorageSetPublicRead }}</MkSwitch>
|
2021-02-06 11:48:57 +09:00
|
|
|
<MkSwitch v-model:value="objectStorageS3ForcePathStyle" :disabled="!useObjectStorage">s3ForcePathStyle</MkSwitch>
|
2020-02-18 21:12:05 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-18 21:12:05 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faGhost"/> {{ $ts.proxyAccount }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkInput :value="proxyAccount ? proxyAccount.username : null" disabled><template #prefix>@</template>{{ $ts.proxyAccount }}<template #desc>{{ $ts.proxyAccountDescription }}</template></MkInput>
|
|
|
|
<MkButton primary @click="chooseProxyAccount">{{ $ts.chooseProxyAccount }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faBan"/> {{ $ts.blockedInstances }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkTextarea v-model:value="blockedHosts">
|
2020-12-26 10:47:36 +09:00
|
|
|
<template #desc>{{ $ts.blockedInstancesDescription }}</template>
|
2020-10-17 20:12:00 +09:00
|
|
|
</MkTextarea>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-12-26 10:47:36 +09:00
|
|
|
<div class="_title"><Fa :icon="faShareAlt"/> {{ $ts.integration }}</div>
|
2020-02-17 02:21:27 +09:00
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<header><Fa :icon="faTwitter"/> Twitter</header>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableTwitterIntegration">{{ $ts.enable }}</MkSwitch>
|
2020-02-17 02:21:27 +09:00
|
|
|
<template v-if="enableTwitterIntegration">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInfo>Callback URL: {{ `${url}/api/tw/cb` }}</MkInfo>
|
|
|
|
<MkInput v-model:value="twitterConsumerKey" :disabled="!enableTwitterIntegration"><template #icon><Fa :icon="faKey"/></template>Consumer Key</MkInput>
|
|
|
|
<MkInput v-model:value="twitterConsumerSecret" :disabled="!enableTwitterIntegration"><template #icon><Fa :icon="faKey"/></template>Consumer Secret</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<header><Fa :icon="faGithub"/> GitHub</header>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableGithubIntegration">{{ $ts.enable }}</MkSwitch>
|
2020-02-17 02:21:27 +09:00
|
|
|
<template v-if="enableGithubIntegration">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInfo>Callback URL: {{ `${url}/api/gh/cb` }}</MkInfo>
|
|
|
|
<MkInput v-model:value="githubClientId" :disabled="!enableGithubIntegration"><template #icon><Fa :icon="faKey"/></template>Client ID</MkInput>
|
|
|
|
<MkInput v-model:value="githubClientSecret" :disabled="!enableGithubIntegration"><template #icon><Fa :icon="faKey"/></template>Client Secret</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<header><Fa :icon="faDiscord"/> Discord</header>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkSwitch v-model:value="enableDiscordIntegration">{{ $ts.enable }}</MkSwitch>
|
2020-02-17 02:21:27 +09:00
|
|
|
<template v-if="enableDiscordIntegration">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInfo>Callback URL: {{ `${url}/api/dc/cb` }}</MkInfo>
|
|
|
|
<MkInput v-model:value="discordClientId" :disabled="!enableDiscordIntegration"><template #icon><Fa :icon="faKey"/></template>Client ID</MkInput>
|
|
|
|
<MkInput v-model:value="discordClientSecret" :disabled="!enableDiscordIntegration"><template #icon><Fa :icon="faKey"/></template>Client Secret</MkInput>
|
2020-02-17 02:21:27 +09:00
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div class="_footer">
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-08-09 15:51:02 +09:00
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
<section class="_card _vMargin">
|
2020-10-17 20:12:00 +09:00
|
|
|
<div class="_title"><Fa :icon="faArchway" /> Summaly Proxy</div>
|
2020-07-26 11:05:26 +09:00
|
|
|
<div class="_content">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkInput v-model:value="summalyProxy">URL</MkInput>
|
2020-12-26 10:47:36 +09:00
|
|
|
<MkButton primary @click="save(true)"><Fa :icon="faSave"/> {{ $ts.save }}</MkButton>
|
2020-07-26 11:05:26 +09:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-02-17 02:21:27 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 20:12:00 +09:00
|
|
|
import { defineComponent, defineAsyncComponent } from 'vue';
|
2020-07-26 11:05:26 +09:00
|
|
|
import { faPencilAlt, faShareAlt, faGhost, faCog, faPlus, faCloud, faInfoCircle, faBan, faSave, faServer, faLink, faThumbtack, faUser, faShieldAlt, faKey, faBolt, faArchway } from '@fortawesome/free-solid-svg-icons';
|
2020-02-17 02:21:27 +09:00
|
|
|
import { faTrashAlt, faEnvelope } from '@fortawesome/free-regular-svg-icons';
|
|
|
|
import { faTwitter, faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons';
|
2021-03-23 17:30:14 +09:00
|
|
|
import MkButton from '@client/components/ui/button.vue';
|
|
|
|
import MkInput from '@client/components/ui/input.vue';
|
|
|
|
import MkTextarea from '@client/components/ui/textarea.vue';
|
|
|
|
import MkSwitch from '@client/components/ui/switch.vue';
|
|
|
|
import MkInfo from '@client/components/ui/info.vue';
|
|
|
|
import { url } from '@client/config';
|
2021-03-23 17:43:07 +09:00
|
|
|
import getAcct from '@/misc/acct/render';
|
2021-03-23 17:30:14 +09:00
|
|
|
import * as os from '@client/os';
|
|
|
|
import { fetchInstance } from '@client/instance';
|
2020-02-17 02:21:27 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
export default defineComponent({
|
2020-02-17 02:21:27 +09:00
|
|
|
components: {
|
|
|
|
MkButton,
|
|
|
|
MkInput,
|
|
|
|
MkTextarea,
|
|
|
|
MkSwitch,
|
|
|
|
MkInfo,
|
2021-03-23 17:30:14 +09:00
|
|
|
Captcha: defineAsyncComponent(() => import('@client/components/captcha.vue')),
|
2020-02-17 02:21:27 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2020-10-17 20:12:00 +09:00
|
|
|
INFO: {
|
2020-12-26 10:47:36 +09:00
|
|
|
title: this.$ts.instance,
|
2020-11-03 20:36:12 +09:00
|
|
|
icon: faCog,
|
2020-10-17 20:12:00 +09:00
|
|
|
},
|
2020-11-17 14:59:15 +09:00
|
|
|
meta: null,
|
2020-02-17 02:21:27 +09:00
|
|
|
url,
|
|
|
|
proxyAccount: null,
|
|
|
|
proxyAccountId: null,
|
|
|
|
cacheRemoteFiles: false,
|
|
|
|
proxyRemoteFiles: false,
|
|
|
|
localDriveCapacityMb: 0,
|
|
|
|
remoteDriveCapacityMb: 0,
|
|
|
|
blockedHosts: '',
|
|
|
|
pinnedUsers: '',
|
2020-11-17 14:59:15 +09:00
|
|
|
pinnedPages: '',
|
2020-12-05 16:05:40 +09:00
|
|
|
pinnedClipId: null,
|
2020-02-17 02:21:27 +09:00
|
|
|
maintainerName: null,
|
|
|
|
maintainerEmail: null,
|
|
|
|
name: null,
|
|
|
|
description: null,
|
2020-07-26 11:05:26 +09:00
|
|
|
tosUrl: null as string | null,
|
|
|
|
enableEmail: false,
|
|
|
|
email: null,
|
2020-02-17 02:21:27 +09:00
|
|
|
bannerUrl: null,
|
|
|
|
iconUrl: null,
|
2020-11-25 21:31:34 +09:00
|
|
|
logoImageUrl: null,
|
|
|
|
backgroundImageUrl: null,
|
2020-02-17 02:21:27 +09:00
|
|
|
maxNoteTextLength: 0,
|
|
|
|
enableRegistration: false,
|
|
|
|
enableLocalTimeline: false,
|
|
|
|
enableGlobalTimeline: false,
|
2020-04-28 14:29:33 +09:00
|
|
|
enableHcaptcha: false,
|
|
|
|
hcaptchaSiteKey: null,
|
|
|
|
hcaptchaSecretKey: null,
|
2020-02-17 02:21:27 +09:00
|
|
|
enableRecaptcha: false,
|
|
|
|
recaptchaSiteKey: null,
|
|
|
|
recaptchaSecretKey: null,
|
|
|
|
enableServiceWorker: false,
|
|
|
|
swPublicKey: null,
|
|
|
|
swPrivateKey: null,
|
2020-02-18 21:12:05 +09:00
|
|
|
useObjectStorage: false,
|
|
|
|
objectStorageBaseUrl: null,
|
|
|
|
objectStorageBucket: null,
|
|
|
|
objectStoragePrefix: null,
|
|
|
|
objectStorageEndpoint: null,
|
|
|
|
objectStorageRegion: null,
|
|
|
|
objectStoragePort: null,
|
|
|
|
objectStorageAccessKey: null,
|
|
|
|
objectStorageSecretKey: null,
|
|
|
|
objectStorageUseSSL: false,
|
2020-04-12 20:32:34 +09:00
|
|
|
objectStorageUseProxy: false,
|
2020-08-13 20:05:01 +09:00
|
|
|
objectStorageSetPublicRead: false,
|
2021-02-06 11:48:57 +09:00
|
|
|
objectStorageS3ForcePathStyle: true,
|
2020-02-17 02:21:27 +09:00
|
|
|
enableTwitterIntegration: false,
|
|
|
|
twitterConsumerKey: null,
|
|
|
|
twitterConsumerSecret: null,
|
|
|
|
enableGithubIntegration: false,
|
|
|
|
githubClientId: null,
|
|
|
|
githubClientSecret: null,
|
|
|
|
enableDiscordIntegration: false,
|
|
|
|
discordClientId: null,
|
|
|
|
discordClientSecret: null,
|
2020-07-26 11:05:26 +09:00
|
|
|
useStarForReactionFallback: false,
|
|
|
|
smtpSecure: false,
|
|
|
|
smtpHost: '',
|
|
|
|
smtpPort: 0,
|
|
|
|
smtpUser: '',
|
|
|
|
smtpPass: '',
|
|
|
|
summalyProxy: '',
|
|
|
|
faPencilAlt, faTwitter, faDiscord, faGithub, faShareAlt, faTrashAlt, faGhost, faCog, faPlus, faCloud, faInfoCircle, faBan, faSave, faServer, faLink, faEnvelope, faThumbtack, faUser, faShieldAlt, faKey, faBolt, faArchway
|
2020-02-17 02:21:27 +09:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-11-17 14:59:15 +09:00
|
|
|
async created() {
|
|
|
|
this.meta = await os.api('meta', { detail: true });
|
2020-02-17 02:21:27 +09:00
|
|
|
|
|
|
|
this.name = this.meta.name;
|
|
|
|
this.description = this.meta.description;
|
|
|
|
this.tosUrl = this.meta.tosUrl;
|
|
|
|
this.bannerUrl = this.meta.bannerUrl;
|
|
|
|
this.iconUrl = this.meta.iconUrl;
|
2020-11-25 21:31:34 +09:00
|
|
|
this.logoImageUrl = this.meta.logoImageUrl;
|
|
|
|
this.backgroundImageUrl = this.meta.backgroundImageUrl;
|
2020-07-26 11:05:26 +09:00
|
|
|
this.enableEmail = this.meta.enableEmail;
|
|
|
|
this.email = this.meta.email;
|
2020-02-17 02:21:27 +09:00
|
|
|
this.maintainerName = this.meta.maintainerName;
|
|
|
|
this.maintainerEmail = this.meta.maintainerEmail;
|
|
|
|
this.maxNoteTextLength = this.meta.maxNoteTextLength;
|
|
|
|
this.enableRegistration = !this.meta.disableRegistration;
|
|
|
|
this.enableLocalTimeline = !this.meta.disableLocalTimeline;
|
|
|
|
this.enableGlobalTimeline = !this.meta.disableGlobalTimeline;
|
2020-04-28 14:29:33 +09:00
|
|
|
this.enableHcaptcha = this.meta.enableHcaptcha;
|
|
|
|
this.hcaptchaSiteKey = this.meta.hcaptchaSiteKey;
|
|
|
|
this.hcaptchaSecretKey = this.meta.hcaptchaSecretKey;
|
2020-02-17 02:21:27 +09:00
|
|
|
this.enableRecaptcha = this.meta.enableRecaptcha;
|
|
|
|
this.recaptchaSiteKey = this.meta.recaptchaSiteKey;
|
|
|
|
this.recaptchaSecretKey = this.meta.recaptchaSecretKey;
|
|
|
|
this.proxyAccountId = this.meta.proxyAccountId;
|
|
|
|
this.cacheRemoteFiles = this.meta.cacheRemoteFiles;
|
|
|
|
this.proxyRemoteFiles = this.meta.proxyRemoteFiles;
|
|
|
|
this.localDriveCapacityMb = this.meta.driveCapacityPerLocalUserMb;
|
|
|
|
this.remoteDriveCapacityMb = this.meta.driveCapacityPerRemoteUserMb;
|
|
|
|
this.blockedHosts = this.meta.blockedHosts.join('\n');
|
|
|
|
this.pinnedUsers = this.meta.pinnedUsers.join('\n');
|
2020-11-17 14:59:15 +09:00
|
|
|
this.pinnedPages = this.meta.pinnedPages.join('\n');
|
2020-12-05 16:05:40 +09:00
|
|
|
this.pinnedClipId = this.meta.pinnedClipId;
|
2020-02-17 02:21:27 +09:00
|
|
|
this.enableServiceWorker = this.meta.enableServiceWorker;
|
|
|
|
this.swPublicKey = this.meta.swPublickey;
|
|
|
|
this.swPrivateKey = this.meta.swPrivateKey;
|
2020-02-18 21:12:05 +09:00
|
|
|
this.useObjectStorage = this.meta.useObjectStorage;
|
|
|
|
this.objectStorageBaseUrl = this.meta.objectStorageBaseUrl;
|
|
|
|
this.objectStorageBucket = this.meta.objectStorageBucket;
|
|
|
|
this.objectStoragePrefix = this.meta.objectStoragePrefix;
|
|
|
|
this.objectStorageEndpoint = this.meta.objectStorageEndpoint;
|
|
|
|
this.objectStorageRegion = this.meta.objectStorageRegion;
|
|
|
|
this.objectStoragePort = this.meta.objectStoragePort;
|
|
|
|
this.objectStorageAccessKey = this.meta.objectStorageAccessKey;
|
|
|
|
this.objectStorageSecretKey = this.meta.objectStorageSecretKey;
|
|
|
|
this.objectStorageUseSSL = this.meta.objectStorageUseSSL;
|
2020-04-12 20:32:34 +09:00
|
|
|
this.objectStorageUseProxy = this.meta.objectStorageUseProxy;
|
2020-08-13 20:05:01 +09:00
|
|
|
this.objectStorageSetPublicRead = this.meta.objectStorageSetPublicRead;
|
2021-02-06 11:48:57 +09:00
|
|
|
this.objectStorageS3ForcePathStyle = this.meta.objectStorageS3ForcePathStyle;
|
2020-02-17 02:21:27 +09:00
|
|
|
this.enableTwitterIntegration = this.meta.enableTwitterIntegration;
|
|
|
|
this.twitterConsumerKey = this.meta.twitterConsumerKey;
|
|
|
|
this.twitterConsumerSecret = this.meta.twitterConsumerSecret;
|
|
|
|
this.enableGithubIntegration = this.meta.enableGithubIntegration;
|
|
|
|
this.githubClientId = this.meta.githubClientId;
|
|
|
|
this.githubClientSecret = this.meta.githubClientSecret;
|
|
|
|
this.enableDiscordIntegration = this.meta.enableDiscordIntegration;
|
|
|
|
this.discordClientId = this.meta.discordClientId;
|
|
|
|
this.discordClientSecret = this.meta.discordClientSecret;
|
2020-07-26 11:05:26 +09:00
|
|
|
this.useStarForReactionFallback = this.meta.useStarForReactionFallback;
|
|
|
|
this.smtpSecure = this.meta.smtpSecure;
|
|
|
|
this.smtpHost = this.meta.smtpHost;
|
|
|
|
this.smtpPort = this.meta.smtpPort;
|
|
|
|
this.smtpUser = this.meta.smtpUser;
|
|
|
|
this.smtpPass = this.meta.smtpPass;
|
|
|
|
this.summalyProxy = this.meta.summalyProxy;
|
2020-02-17 02:21:27 +09:00
|
|
|
|
|
|
|
if (this.proxyAccountId) {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.api('users/show', { userId: this.proxyAccountId }).then(proxyAccount => {
|
2020-02-17 02:21:27 +09:00
|
|
|
this.proxyAccount = proxyAccount;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-04-29 09:35:37 +09:00
|
|
|
mounted() {
|
2020-10-17 20:12:00 +09:00
|
|
|
this.$watch('enableHcaptcha', () => {
|
2020-04-29 09:35:37 +09:00
|
|
|
if (this.enableHcaptcha && this.enableRecaptcha) {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-04-29 09:35:37 +09:00
|
|
|
type: 'question', // warning だと間違って cancel するかもしれない
|
|
|
|
showCancelButton: true,
|
2020-12-26 10:47:36 +09:00
|
|
|
title: this.$ts.settingGuide,
|
|
|
|
text: this.$ts.avoidMultiCaptchaConfirm,
|
2020-04-29 09:35:37 +09:00
|
|
|
}).then(({ canceled }) => {
|
|
|
|
if (canceled) {
|
|
|
|
return;
|
2020-04-29 09:15:18 +09:00
|
|
|
}
|
|
|
|
|
2020-04-29 09:35:37 +09:00
|
|
|
this.enableRecaptcha = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
this.$watch('enableRecaptcha', () => {
|
2020-04-29 09:35:37 +09:00
|
|
|
if (this.enableRecaptcha && this.enableHcaptcha) {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-04-29 09:35:37 +09:00
|
|
|
type: 'question', // warning だと間違って cancel するかもしれない
|
|
|
|
showCancelButton: true,
|
2020-12-26 10:47:36 +09:00
|
|
|
title: this.$ts.settingGuide,
|
|
|
|
text: this.$ts.avoidMultiCaptchaConfirm,
|
2020-04-29 09:35:37 +09:00
|
|
|
}).then(({ canceled }) => {
|
|
|
|
if (canceled) {
|
|
|
|
return;
|
2020-04-29 09:15:18 +09:00
|
|
|
}
|
2020-02-17 02:21:27 +09:00
|
|
|
|
2020-04-29 09:35:37 +09:00
|
|
|
this.enableHcaptcha = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2020-03-21 23:27:54 +09:00
|
|
|
invite() {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.api('admin/invite').then(x => {
|
|
|
|
os.dialog({
|
2020-03-21 23:27:54 +09:00
|
|
|
type: 'info',
|
|
|
|
text: x.code
|
|
|
|
});
|
|
|
|
}).catch(e => {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-03-21 23:27:54 +09:00
|
|
|
type: 'error',
|
|
|
|
text: e
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2020-02-17 02:21:27 +09:00
|
|
|
addPinUser() {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.selectUser().then(user => {
|
2020-02-17 02:21:27 +09:00
|
|
|
this.pinnedUsers = this.pinnedUsers.trim();
|
|
|
|
this.pinnedUsers += '\n@' + getAcct(user);
|
|
|
|
this.pinnedUsers = this.pinnedUsers.trim();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
chooseProxyAccount() {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.selectUser().then(user => {
|
2020-02-17 02:21:27 +09:00
|
|
|
this.proxyAccount = user;
|
|
|
|
this.proxyAccountId = user.id;
|
|
|
|
this.save(true);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2020-07-26 11:05:26 +09:00
|
|
|
async testEmail() {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.api('admin/send-email', {
|
2020-07-26 11:05:26 +09:00
|
|
|
to: this.maintainerEmail,
|
|
|
|
subject: 'Test email',
|
|
|
|
text: 'Yo'
|
|
|
|
}).then(x => {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-07-26 11:05:26 +09:00
|
|
|
type: 'success',
|
|
|
|
splash: true
|
|
|
|
});
|
|
|
|
}).catch(e => {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-07-26 11:05:26 +09:00
|
|
|
type: 'error',
|
|
|
|
text: e
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2020-02-17 02:21:27 +09:00
|
|
|
save(withDialog = false) {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.api('admin/update-meta', {
|
2020-02-17 02:21:27 +09:00
|
|
|
name: this.name,
|
|
|
|
description: this.description,
|
|
|
|
tosUrl: this.tosUrl,
|
|
|
|
bannerUrl: this.bannerUrl,
|
|
|
|
iconUrl: this.iconUrl,
|
2020-11-25 21:31:34 +09:00
|
|
|
logoImageUrl: this.logoImageUrl,
|
|
|
|
backgroundImageUrl: this.backgroundImageUrl,
|
2020-02-17 02:21:27 +09:00
|
|
|
maintainerName: this.maintainerName,
|
|
|
|
maintainerEmail: this.maintainerEmail,
|
|
|
|
maxNoteTextLength: this.maxNoteTextLength,
|
|
|
|
disableRegistration: !this.enableRegistration,
|
|
|
|
disableLocalTimeline: !this.enableLocalTimeline,
|
|
|
|
disableGlobalTimeline: !this.enableGlobalTimeline,
|
2020-04-28 14:29:33 +09:00
|
|
|
enableHcaptcha: this.enableHcaptcha,
|
|
|
|
hcaptchaSiteKey: this.hcaptchaSiteKey,
|
|
|
|
hcaptchaSecretKey: this.hcaptchaSecretKey,
|
2020-02-17 02:21:27 +09:00
|
|
|
enableRecaptcha: this.enableRecaptcha,
|
|
|
|
recaptchaSiteKey: this.recaptchaSiteKey,
|
|
|
|
recaptchaSecretKey: this.recaptchaSecretKey,
|
|
|
|
proxyAccountId: this.proxyAccountId,
|
|
|
|
cacheRemoteFiles: this.cacheRemoteFiles,
|
|
|
|
proxyRemoteFiles: this.proxyRemoteFiles,
|
|
|
|
localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10),
|
|
|
|
remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10),
|
|
|
|
blockedHosts: this.blockedHosts.split('\n') || [],
|
|
|
|
pinnedUsers: this.pinnedUsers ? this.pinnedUsers.split('\n') : [],
|
2020-11-17 14:59:15 +09:00
|
|
|
pinnedPages: this.pinnedPages ? this.pinnedPages.split('\n') : [],
|
2020-12-05 16:05:40 +09:00
|
|
|
pinnedClipId: (this.pinnedClipId && this.pinnedClipId) != '' ? this.pinnedClipId : null,
|
2020-02-17 02:21:27 +09:00
|
|
|
enableServiceWorker: this.enableServiceWorker,
|
|
|
|
swPublicKey: this.swPublicKey,
|
|
|
|
swPrivateKey: this.swPrivateKey,
|
2020-02-18 21:12:05 +09:00
|
|
|
useObjectStorage: this.useObjectStorage,
|
|
|
|
objectStorageBaseUrl: this.objectStorageBaseUrl ? this.objectStorageBaseUrl : null,
|
|
|
|
objectStorageBucket: this.objectStorageBucket ? this.objectStorageBucket : null,
|
|
|
|
objectStoragePrefix: this.objectStoragePrefix ? this.objectStoragePrefix : null,
|
|
|
|
objectStorageEndpoint: this.objectStorageEndpoint ? this.objectStorageEndpoint : null,
|
|
|
|
objectStorageRegion: this.objectStorageRegion ? this.objectStorageRegion : null,
|
|
|
|
objectStoragePort: this.objectStoragePort ? this.objectStoragePort : null,
|
|
|
|
objectStorageAccessKey: this.objectStorageAccessKey ? this.objectStorageAccessKey : null,
|
|
|
|
objectStorageSecretKey: this.objectStorageSecretKey ? this.objectStorageSecretKey : null,
|
|
|
|
objectStorageUseSSL: this.objectStorageUseSSL,
|
2020-04-12 20:32:34 +09:00
|
|
|
objectStorageUseProxy: this.objectStorageUseProxy,
|
2020-08-13 20:05:01 +09:00
|
|
|
objectStorageSetPublicRead: this.objectStorageSetPublicRead,
|
2021-02-06 11:48:57 +09:00
|
|
|
objectStorageS3ForcePathStyle: this.objectStorageS3ForcePathStyle,
|
2020-02-17 02:21:27 +09:00
|
|
|
enableTwitterIntegration: this.enableTwitterIntegration,
|
|
|
|
twitterConsumerKey: this.twitterConsumerKey,
|
|
|
|
twitterConsumerSecret: this.twitterConsumerSecret,
|
|
|
|
enableGithubIntegration: this.enableGithubIntegration,
|
|
|
|
githubClientId: this.githubClientId,
|
|
|
|
githubClientSecret: this.githubClientSecret,
|
|
|
|
enableDiscordIntegration: this.enableDiscordIntegration,
|
|
|
|
discordClientId: this.discordClientId,
|
|
|
|
discordClientSecret: this.discordClientSecret,
|
2020-07-26 11:05:26 +09:00
|
|
|
enableEmail: this.enableEmail,
|
|
|
|
email: this.email,
|
|
|
|
smtpSecure: this.smtpSecure,
|
|
|
|
smtpHost: this.smtpHost,
|
|
|
|
smtpPort: this.smtpPort,
|
|
|
|
smtpUser: this.smtpUser,
|
|
|
|
smtpPass: this.smtpPass,
|
|
|
|
summalyProxy: this.summalyProxy,
|
|
|
|
useStarForReactionFallback: this.useStarForReactionFallback,
|
2020-02-17 02:21:27 +09:00
|
|
|
}).then(() => {
|
2020-12-19 10:55:52 +09:00
|
|
|
fetchInstance();
|
2020-02-17 02:21:27 +09:00
|
|
|
if (withDialog) {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.success();
|
2020-02-17 02:21:27 +09:00
|
|
|
}
|
|
|
|
}).catch(e => {
|
2020-10-17 20:12:00 +09:00
|
|
|
os.dialog({
|
2020-02-17 02:21:27 +09:00
|
|
|
type: 'error',
|
|
|
|
text: e
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|