feat(settings): up to 16 fields for glitch edition

This commit is contained in:
三咲智子 2023-01-10 16:33:20 +08:00
parent 88731ee18d
commit 217f1ea567
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
6 changed files with 61 additions and 47 deletions

View file

@ -24,7 +24,7 @@ const onlineSrc = $computed(() => ({
const { form, reset, submitter, dirtyFields, isError } = useForm({
form: () => {
// For complex types of objects, a deep copy is required to ensure correct comparison of initial and modified values
const fieldsAttributes = Array.from({ length: 4 }, (_, i) => {
const fieldsAttributes = Array.from({ length: maxAccountFieldCount.value }, (_, i) => {
const field = { ...account?.fields?.[i] || { name: '', value: '' } }
const linkElement = (parse(field.value)?.children?.[0])
@ -151,16 +151,8 @@ onReactivated(refreshInfo)
</label>
<!-- metadata -->
<div space-y-2>
<div font-medium>
{{ $t('settings.profile.appearance.profile_metadata') }}
</div>
<div text-sm text-secondary>
{{ $t('settings.profile.appearance.profile_metadata_desc') }}
</div>
<SettingsProfileMetadata v-if="isHydrated" v-model:form="form" />
</div>
<SettingsProfileMetadata v-if="isHydrated" v-model:form="form" />
<!-- actions -->
<div flex="~ gap2" justify-end>