mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-15 09:23:21 +08:00
feat(settings): expose cookiecloud upload secret (#514)
This commit is contained in:
@@ -1998,6 +1998,9 @@ export default {
|
||||
userKeyHint: 'User KEY generated by CookieCloud browser plugin',
|
||||
e2ePassword: 'End-to-End Encryption Password',
|
||||
e2ePasswordHint: 'End-to-end encryption password generated by CookieCloud browser plugin',
|
||||
cookieCloudAuthHeader: 'Upload Auth Header',
|
||||
cookieCloudAuthHeaderHint:
|
||||
'Leave blank to disable upload authentication and keep original CookieCloud compatibility. When enabled, the uploader or reverse proxy must send X-CookieCloud-Auth.',
|
||||
autoSyncInterval: 'Auto Sync Interval',
|
||||
autoSyncIntervalHint:
|
||||
'Time interval for automatically syncing site cookies from CookieCloud server to MoviePilot',
|
||||
|
||||
@@ -1965,6 +1965,9 @@ export default {
|
||||
userKeyHint: 'CookieCloud浏览器插件生成的用户KEY',
|
||||
e2ePassword: '端对端加密密码',
|
||||
e2ePasswordHint: 'CookieCloud浏览器插件生成的端对端加密密码',
|
||||
cookieCloudAuthHeader: '上传认证 Header',
|
||||
cookieCloudAuthHeaderHint:
|
||||
'留空表示关闭上传认证并保持原 CookieCloud 兼容;启用后上传端或反向代理需要发送 X-CookieCloud-Auth。',
|
||||
autoSyncInterval: '自动同步间隔',
|
||||
autoSyncIntervalHint: '从CookieCloud服务器自动同步站点Cookie到MoviePilot的时间间隔',
|
||||
syncBlacklist: '同步域名黑名单',
|
||||
|
||||
@@ -1964,6 +1964,9 @@ export default {
|
||||
userKeyHint: 'CookieCloud瀏覽器插件生成的用戶KEY',
|
||||
e2ePassword: '端對端加密密碼',
|
||||
e2ePasswordHint: 'CookieCloud瀏覽器插件生成的端對端加密密碼',
|
||||
cookieCloudAuthHeader: '上傳認證 Header',
|
||||
cookieCloudAuthHeaderHint:
|
||||
'留空表示關閉上傳認證並保持原 CookieCloud 相容;啟用後上傳端或反向代理需要發送 X-CookieCloud-Auth。',
|
||||
autoSyncInterval: '自動同步間隔',
|
||||
autoSyncIntervalHint: '從CookieCloud服務器自動同步站點Cookie到MoviePilot的時間間隔',
|
||||
syncBlacklist: '同步域名黑名單',
|
||||
|
||||
@@ -28,12 +28,15 @@ const resetSitesDisabled = ref(false)
|
||||
|
||||
const isPasswordVisible = ref(false)
|
||||
|
||||
const isCookieCloudAuthHeaderVisible = ref(false)
|
||||
|
||||
// 站点设置默认值
|
||||
const siteSetting = ref<any>({
|
||||
CookieCloud: {
|
||||
COOKIECLOUD_HOST: '',
|
||||
COOKIECLOUD_KEY: '',
|
||||
COOKIECLOUD_PASSWORD: '',
|
||||
COOKIECLOUD_AUTH_HEADER: '',
|
||||
COOKIECLOUD_INTERVAL: 0,
|
||||
COOKIECLOUD_ENABLE_LOCAL: false,
|
||||
COOKIECLOUD_BLACKLIST: '',
|
||||
@@ -186,6 +189,18 @@ useSilentSettingRefresh(loadSiteSettings, {
|
||||
prepend-inner-icon="mdi-lock"
|
||||
/>
|
||||
</VCol>
|
||||
<VCol cols="12" md="6">
|
||||
<VTextField
|
||||
v-model="siteSetting.CookieCloud.COOKIECLOUD_AUTH_HEADER"
|
||||
:type="isCookieCloudAuthHeaderVisible ? 'text' : 'password'"
|
||||
:append-inner-icon="isCookieCloudAuthHeaderVisible ? 'mdi-eye-off-outline' : 'mdi-eye-outline'"
|
||||
@click:append-inner="isCookieCloudAuthHeaderVisible = !isCookieCloudAuthHeaderVisible"
|
||||
:label="t('setting.site.cookieCloudAuthHeader')"
|
||||
:hint="t('setting.site.cookieCloudAuthHeaderHint')"
|
||||
persistent-hint
|
||||
prepend-inner-icon="mdi-shield-key"
|
||||
/>
|
||||
</VCol>
|
||||
<VCol cols="12" md="6">
|
||||
<VSelect
|
||||
v-model="siteSetting.CookieCloud.COOKIECLOUD_INTERVAL"
|
||||
|
||||
Reference in New Issue
Block a user