diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-06-03 07:31:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 07:31:19 +0900 |
| commit | 3bc81522c65d724de121cbe6265c60e48a8f8ae7 (patch) | |
| tree | 1d526c17f19ec0209d2a4b179cb6756e25b2b916 /packages/frontend/src/widgets | |
| parent | [skip ci] Update CHANGELOG.md (prepend template) (diff) | |
| download | misskey-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/widgets')
| -rw-r--r-- | packages/frontend/src/widgets/server-metric/cpu-mem.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/frontend/src/widgets/server-metric/cpu-mem.vue b/packages/frontend/src/widgets/server-metric/cpu-mem.vue index 614ffe59e3..1f22e14a70 100644 --- a/packages/frontend/src/widgets/server-metric/cpu-mem.vue +++ b/packages/frontend/src/widgets/server-metric/cpu-mem.vue @@ -77,7 +77,7 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup> import { onMounted, onBeforeUnmount, ref } from 'vue'; import * as Misskey from 'misskey-js'; -import { v4 as uuid } from 'uuid'; +import { genId } from '@/utility/id.js'; const props = defineProps<{ connection: Misskey.ChannelConnection<Misskey.Channels['serverStats']>, @@ -87,10 +87,10 @@ const props = defineProps<{ const viewBoxX = ref<number>(50); const viewBoxY = ref<number>(30); const stats = ref<Misskey.entities.ServerStats[]>([]); -const cpuGradientId = uuid(); -const cpuMaskId = uuid(); -const memGradientId = uuid(); -const memMaskId = uuid(); +const cpuGradientId = genId(); +const cpuMaskId = genId(); +const memGradientId = genId(); +const memMaskId = genId(); const cpuPolylinePoints = ref<string>(''); const memPolylinePoints = ref<string>(''); const cpuPolygonPoints = ref<string>(''); |