chore: pnpm v11 (#7942)

* chore: remove rolldown dep

* fix: issues-helper and maintain-one-comment are temporarily disabled due to security issues

* chore: update deps

* fix: change error type to TypeError for non-browser environment check in LocalStorageDriver

* chore: update pnpm v11
This commit is contained in:
xingyu
2026-05-22 12:02:14 +08:00
committed by GitHub
parent c066889c37
commit f2b3b12553
12 changed files with 508 additions and 691 deletions

View File

@@ -18,8 +18,7 @@ class LocalStorageDriver implements IStorageDriver {
storageType = 'localStorage',
}: LocalStorageDriverOptions = {}) {
if (typeof window === 'undefined') {
// eslint-disable-next-line unicorn/prefer-type-error -- not a type check, it's an environment check
throw new Error(
throw new TypeError(
'LocalStorageDriver is not available in non-browser environments. Use MemoryStorageDriver instead.',
);
}

View File

@@ -14,11 +14,17 @@ function clearPreferencesAndLogout() {
}
const preferencesRef = ref<InstanceType<typeof Preferences> | null>(null);
</script>
<template>
<Preferences ref="preferencesRef" @clear-preferences-and-logout="clearPreferencesAndLogout">
<VbenIconButton class="hover:animate-[shrink_0.3s_ease-in-out]" @click="preferencesRef?.open();">
<Preferences
ref="preferencesRef"
@clear-preferences-and-logout="clearPreferencesAndLogout"
>
<VbenIconButton
class="hover:animate-[shrink_0.3s_ease-in-out]"
@click="preferencesRef?.open()"
>
<Settings class="size-4 text-foreground" />
</VbenIconButton>
</Preferences>