From 3bc81522c65d724de121cbe6265c60e48a8f8ae7 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 3 Jun 2025 07:31:19 +0900 Subject: enhance(frontend): IDにUUIDを使うのをやめる (#16138) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * Update flash-edit.vue --- packages/frontend/src/deck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/frontend/src/deck.ts') diff --git a/packages/frontend/src/deck.ts b/packages/frontend/src/deck.ts index c108a365b6..73a3cecd3b 100644 --- a/packages/frontend/src/deck.ts +++ b/packages/frontend/src/deck.ts @@ -5,11 +5,11 @@ import { notificationTypes } from 'misskey-js'; import { ref } from 'vue'; -import { v4 as uuid } from 'uuid'; import { i18n } from './i18n.js'; import type { BasicTimelineType } from '@/timelines.js'; import type { SoundStore } from '@/preferences/def.js'; import type { MenuItem } from '@/types/menu.js'; +import { genId } from '@/utility/id.js'; import { deepClone } from '@/utility/clone.js'; import { prefer } from '@/preferences.js'; import * as os from '@/os.js'; @@ -103,7 +103,7 @@ function addProfile(name: string) { if (prefer.s['deck.profiles'].find(p => p.name === name)) return; const newProfile: DeckProfile = { - id: uuid(), + id: genId(), name, columns: [], layout: [], -- cgit v1.2.3-freya