@@ -44,92 +44,6 @@ SPDX-License-Identifier: AGPL-3.0-only
44
44
<template #caption>{{ i18n.ts.makeExplorableDescription }}</template>
45
45
</MkSwitch>
46
46
47
- <FormSection>
48
- <template #label>{{ i18n.ts.lockdown }}<span class="_beta">{{ i18n.ts.beta }}</span></template>
49
-
50
- <div class="_gaps_m">
51
- <MkSwitch :modelValue="requireSigninToViewContents" @update:modelValue="update_requireSigninToViewContents">
52
- {{ i18n.ts._accountSettings.requireSigninToViewContents }}
53
- <template #caption>
54
- <div>{{ i18n.ts._accountSettings.requireSigninToViewContentsDescription1 }}</div>
55
- <div><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._accountSettings.requireSigninToViewContentsDescription2 }}</div>
56
- <div v-if="instance.federation !== 'none'"><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._accountSettings.requireSigninToViewContentsDescription3 }}</div>
57
- </template>
58
- </MkSwitch>
59
-
60
- <FormSlot>
61
- <template #label>{{ i18n.ts._accountSettings.makeNotesFollowersOnlyBefore }}</template>
62
-
63
- <div class="_gaps_s">
64
- <MkSelect :modelValue="makeNotesFollowersOnlyBefore_type" @update:modelValue="makeNotesFollowersOnlyBefore = $event === 'relative' ? -604800 : $event === 'absolute' ? Math.floor(Date.now() / 1000) : null">
65
- <option :value="null">{{ i18n.ts.none }}</option>
66
- <option value="relative">{{ i18n.ts._accountSettings.notesHavePassedSpecifiedPeriod }}</option>
67
- <option value="absolute">{{ i18n.ts._accountSettings.notesOlderThanSpecifiedDateAndTime }}</option>
68
- </MkSelect>
69
-
70
- <MkSelect v-if="makeNotesFollowersOnlyBefore_type === 'relative'" v-model="makeNotesFollowersOnlyBefore">
71
- <option :value="-3600">{{ i18n.ts.oneHour }}</option>
72
- <option :value="-86400">{{ i18n.ts.oneDay }}</option>
73
- <option :value="-259200">{{ i18n.ts.threeDays }}</option>
74
- <option :value="-604800">{{ i18n.ts.oneWeek }}</option>
75
- <option :value="-2592000">{{ i18n.ts.oneMonth }}</option>
76
- <option :value="-7776000">{{ i18n.ts.threeMonths }}</option>
77
- <option :value="-31104000">{{ i18n.ts.oneYear }}</option>
78
- </MkSelect>
79
-
80
- <MkInput
81
- v-if="makeNotesFollowersOnlyBefore_type === 'absolute'"
82
- :modelValue="formatDateTimeString(new Date(makeNotesFollowersOnlyBefore * 1000), 'yyyy-MM-dd')"
83
- type="date"
84
- :manualSave="true"
85
- @update:modelValue="makeNotesFollowersOnlyBefore = Math.floor(new Date($event).getTime() / 1000)"
86
- >
87
- </MkInput>
88
- </div>
89
-
90
- <template #caption>
91
- <div>{{ i18n.ts._accountSettings.makeNotesFollowersOnlyBeforeDescription }}</div>
92
- <div v-if="instance.federation !== 'none'"><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._accountSettings.mayNotEffectForFederatedNotes }}</div>
93
- </template>
94
- </FormSlot>
95
-
96
- <FormSlot>
97
- <template #label>{{ i18n.ts._accountSettings.makeNotesHiddenBefore }}</template>
98
-
99
- <div class="_gaps_s">
100
- <MkSelect :modelValue="makeNotesHiddenBefore_type" @update:modelValue="makeNotesHiddenBefore = $event === 'relative' ? -604800 : $event === 'absolute' ? Math.floor(Date.now() / 1000) : null">
101
- <option :value="null">{{ i18n.ts.none }}</option>
102
- <option value="relative">{{ i18n.ts._accountSettings.notesHavePassedSpecifiedPeriod }}</option>
103
- <option value="absolute">{{ i18n.ts._accountSettings.notesOlderThanSpecifiedDateAndTime }}</option>
104
- </MkSelect>
105
-
106
- <MkSelect v-if="makeNotesHiddenBefore_type === 'relative'" v-model="makeNotesHiddenBefore">
107
- <option :value="-3600">{{ i18n.ts.oneHour }}</option>
108
- <option :value="-86400">{{ i18n.ts.oneDay }}</option>
109
- <option :value="-259200">{{ i18n.ts.threeDays }}</option>
110
- <option :value="-604800">{{ i18n.ts.oneWeek }}</option>
111
- <option :value="-2592000">{{ i18n.ts.oneMonth }}</option>
112
- <option :value="-7776000">{{ i18n.ts.threeMonths }}</option>
113
- <option :value="-31104000">{{ i18n.ts.oneYear }}</option>
114
- </MkSelect>
115
-
116
- <MkInput
117
- v-if="makeNotesHiddenBefore_type === 'absolute'"
118
- :modelValue="formatDateTimeString(new Date(makeNotesHiddenBefore * 1000), 'yyyy-MM-dd')"
119
- type="date"
120
- :manualSave="true"
121
- @update:modelValue="makeNotesHiddenBefore = Math.floor(new Date($event).getTime() / 1000)"
122
- >
123
- </MkInput>
124
- </div>
125
-
126
- <template #caption>
127
- <div>{{ i18n.ts._accountSettings.makeNotesHiddenBeforeDescription }}</div>
128
- <div v-if="instance.federation !== 'none'"><i class="ti ti-alert-triangle" style="color: var(--MI_THEME-warn);"></i> {{ i18n.ts._accountSettings.mayNotEffectForFederatedNotes }}</div>
129
- </template>
130
- </FormSlot>
131
- </div>
132
- </FormSection>
133
47
<MkSwitch v-model="isIndexable" @update:modelValue="save()">
134
48
{{ i18n.ts.makeIndexable }}
135
49
<span class="_beta">yojo-art</span>
0 commit comments