mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-30 22:43:57 +02:00
enhance(frontend): ウィジェットの設定項目の多言語対応 (#17032)
* enhance(frontend): ウィジェットの設定項目の多言語対応 * Update Changelog * refactor: move options locale key to root for optimizing artifacts for locale inlining * fix * fix * ✌️ --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -35,6 +35,7 @@ import MkMarqueeText from '@/components/MkMarqueeText.vue';
|
||||
import type { FormWithDefault, GetFormResultType } from '@/utility/form.js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
import { shuffle } from '@/utility/shuffle.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { url as base } from '@@/js/config.js';
|
||||
import { useInterval } from '@@/js/use-interval.js';
|
||||
|
||||
@@ -43,23 +44,28 @@ const name = 'rssTicker';
|
||||
const widgetPropsDef = {
|
||||
url: {
|
||||
type: 'string',
|
||||
label: i18n.ts._widgetOptions._rss.url,
|
||||
default: 'http://feeds.afpbb.com/rss/afpbb/afpbbnews',
|
||||
manualSave: true,
|
||||
},
|
||||
shuffle: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions._rssTicker.shuffle,
|
||||
default: true,
|
||||
},
|
||||
refreshIntervalSec: {
|
||||
type: 'number',
|
||||
label: i18n.ts._widgetOptions._rss.refreshIntervalSec,
|
||||
default: 60,
|
||||
},
|
||||
maxEntries: {
|
||||
type: 'number',
|
||||
label: i18n.ts._widgetOptions._rss.maxEntries,
|
||||
default: 15,
|
||||
},
|
||||
duration: {
|
||||
type: 'range',
|
||||
label: i18n.ts._widgetOptions._rssTicker.duration,
|
||||
default: 70,
|
||||
step: 1,
|
||||
min: 5,
|
||||
@@ -67,14 +73,17 @@ const widgetPropsDef = {
|
||||
},
|
||||
reverse: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions._rssTicker.reverse,
|
||||
default: false,
|
||||
},
|
||||
showHeader: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions.showHeader,
|
||||
default: false,
|
||||
},
|
||||
transparent: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions.transparent,
|
||||
default: false,
|
||||
},
|
||||
} satisfies FormWithDefault;
|
||||
|
||||
Reference in New Issue
Block a user