1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 00:34:14 +02:00
Files
misskey/packages/frontend/src/pages/page-editor/common.ts
かっこかり d4654dd7bd refactor(frontend): os.select, MkSelectのitem指定をオブジェクトによる定義に統一し、型を狭める (#16475)
* refactor(frontend): MkSelectのitem指定をオブジェクトによる定義に統一

* fix

* spdx

* fix

* fix os.select

* fix lint

* add comment

* fix

* fix: os.select対応漏れを修正

* fix

* fix

* fix: MkSelectのmodelに対する型チェックを厳格化

* fix

* fix

* fix

* Update packages/frontend/src/components/MkEmbedCodeGenDialog.vue

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* fix

* fix types

* fix

* fix

* Update packages/frontend/src/pages/admin/roles.editor.vue

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

* fix: MkSelectに直接配列を指定している場合に正常に型が解決されるように

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2025-09-13 21:00:33 +09:00

17 lines
521 B
TypeScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { i18n } from '@/i18n.js';
import type { MkSelectItem } from '@/components/MkSelect.vue';
export function getPageBlockList() {
return [
{ value: 'section', label: i18n.ts._pages.blocks.section },
{ value: 'text', label: i18n.ts._pages.blocks.text },
{ value: 'image', label: i18n.ts._pages.blocks.image },
{ value: 'note', label: i18n.ts._pages.blocks.note },
] as const satisfies MkSelectItem[];
}