1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-26 10:14:16 +02:00

refactor(frontend): ID生成処理を統一

This commit is contained in:
syuilo
2025-06-03 07:37:08 +09:00
parent 3bc81522c6
commit 93d17aff6c
16 changed files with 35 additions and 20 deletions

View File

@@ -57,6 +57,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onMounted, onUnmounted, ref, useTemplateRef } from 'vue';
import { genId } from '@/utility/id.js';
const particles = ref<{
id: string,
@@ -86,7 +87,7 @@ onMounted(() => {
const y = (Math.random() * (height.value - 64));
const sizeFactor = Math.random();
const particle = {
id: Math.random().toString(),
id: genId(),
x,
y,
size: 0.2 + ((sizeFactor / 10) * 3),