summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/page-editor
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-06-03 07:31:19 +0900
committerGitHub <noreply@github.com>2025-06-03 07:31:19 +0900
commit3bc81522c65d724de121cbe6265c60e48a8f8ae7 (patch)
tree1d526c17f19ec0209d2a4b179cb6756e25b2b916 /packages/frontend/src/pages/page-editor
parent[skip ci] Update CHANGELOG.md (prepend template) (diff)
downloadmisskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.tar.gz
misskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.tar.bz2
misskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.zip
enhance(frontend): IDにUUIDを使うのをやめる (#16138)
* wip * Update flash-edit.vue
Diffstat (limited to 'packages/frontend/src/pages/page-editor')
-rw-r--r--packages/frontend/src/pages/page-editor/els/page-editor.el.section.vue4
-rw-r--r--packages/frontend/src/pages/page-editor/page-editor.vue6
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/frontend/src/pages/page-editor/els/page-editor.el.section.vue b/packages/frontend/src/pages/page-editor/els/page-editor.el.section.vue
index 4d1a3716e7..11f83b6ec6 100644
--- a/packages/frontend/src/pages/page-editor/els/page-editor.el.section.vue
+++ b/packages/frontend/src/pages/page-editor/els/page-editor.el.section.vue
@@ -24,7 +24,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { defineAsyncComponent, inject, onMounted, watch, ref } from 'vue';
import * as Misskey from 'misskey-js';
-import { v4 as uuid } from 'uuid';
+import { genId } from '@/utility/id.js';
import XContainer from '../page-editor.container.vue';
import * as os from '@/os.js';
import { i18n } from '@/i18n.js';
@@ -73,7 +73,7 @@ async function add() {
});
if (canceled) return;
- const id = uuid();
+ const id = genId();
children.value.push({ id, type });
}
diff --git a/packages/frontend/src/pages/page-editor/page-editor.vue b/packages/frontend/src/pages/page-editor/page-editor.vue
index 49d9150852..05eb0bd9d2 100644
--- a/packages/frontend/src/pages/page-editor/page-editor.vue
+++ b/packages/frontend/src/pages/page-editor/page-editor.vue
@@ -62,7 +62,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { computed, provide, watch, ref } from 'vue';
import * as Misskey from 'misskey-js';
-import { v4 as uuid } from 'uuid';
+import { genId } from '@/utility/id.js';
import { url } from '@@/js/config.js';
import XBlocks from './page-editor.blocks.vue';
import MkButton from '@/components/MkButton.vue';
@@ -200,7 +200,7 @@ async function add() {
});
if (canceled) return;
- const id = uuid();
+ const id = genId();
content.value.push({ id, type });
}
@@ -240,7 +240,7 @@ async function init() {
content.value = page.value.content;
eyeCatchingImageId.value = page.value.eyeCatchingImageId;
} else {
- const id = uuid();
+ const id = genId();
content.value = [{
id,
type: 'text',