mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
cc54e95e92
commit
35dcf4d10e
19
biome.json
19
biome.json
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true,
|
||||
"ignore": ["node_modules/**/*", "dist/**/*", ".output", ".nuxt"]
|
||||
|
|
@ -8,12 +8,17 @@
|
|||
"enabled": true,
|
||||
"rules": {
|
||||
"all": true,
|
||||
"suspicious": {
|
||||
"noConsole": "off"
|
||||
},
|
||||
"correctness": {
|
||||
"noNodejsModules": "off",
|
||||
"noUndeclaredVariables": "off",
|
||||
"useHookAtTopLevel": "off",
|
||||
"noUnusedVariables": "off",
|
||||
"noUnusedImports": "off"
|
||||
"noUnusedImports": "off",
|
||||
"noUndeclaredDependencies": "off",
|
||||
"useImportExtensions": "off"
|
||||
},
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": "off"
|
||||
|
|
@ -57,14 +62,8 @@
|
|||
}
|
||||
},
|
||||
"nursery": {
|
||||
"noDuplicateElseIf": "warn",
|
||||
"noDuplicateJsonKeys": "warn",
|
||||
"noEvolvingTypes": "warn",
|
||||
"noYodaExpression": "warn",
|
||||
"useConsistentBuiltinInstantiation": "warn",
|
||||
"useErrorMessage": "warn",
|
||||
"useImportExtensions": "off",
|
||||
"useThrowNewError": "warn"
|
||||
"noDuplicateElseIf": "error",
|
||||
"noCommonJs": "error"
|
||||
}
|
||||
},
|
||||
"ignore": ["node_modules/**/*", "dist/**/*", ".output", ".nuxt"]
|
||||
|
|
|
|||
|
|
@ -56,11 +56,11 @@ const remainingCharacters = computed(
|
|||
);
|
||||
const currentlyBeingTypedEmoji = computed(() => {
|
||||
const match = content.value?.match(partiallyTypedEmojiValidator);
|
||||
return match ? match.at(-1)?.replace(":", "") ?? "" : null;
|
||||
return match ? (match.at(-1)?.replace(":", "") ?? "") : null;
|
||||
});
|
||||
const currentlyBeingTypedMention = computed(() => {
|
||||
const match = content.value?.match(partiallyTypedMentionValidator);
|
||||
return match ? match.at(-1)?.replace("@", "") ?? "" : null;
|
||||
return match ? (match.at(-1)?.replace("@", "") ?? "") : null;
|
||||
});
|
||||
|
||||
const autocompleteEmoji = (emoji: string) => {
|
||||
|
|
|
|||
|
|
@ -51,5 +51,7 @@ const getWidth = (index: number, lines: number) => {
|
|||
return undefined;
|
||||
};
|
||||
|
||||
const lines = isContent.value ? props.lines ?? Math.ceil(Math.random() * 5) : 1;
|
||||
const lines = isContent.value
|
||||
? (props.lines ?? Math.ceil(Math.random() * 5))
|
||||
: 1;
|
||||
</script>
|
||||
|
|
@ -31,7 +31,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
|
|||
updateItem(updatedNote);
|
||||
});
|
||||
|
||||
useListen("composer:send", (ee) => {
|
||||
useListen("composer:send", () => {
|
||||
loadPrev();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -11,7 +11,7 @@ const yStored = useLocalStorage("versia:scroll", {
|
|||
});
|
||||
const { y } = useScroll(root);
|
||||
|
||||
useEventListener("popstate", async (event) => {
|
||||
useEventListener("popstate", async () => {
|
||||
if (yStored.value[route.fullPath] !== undefined) {
|
||||
// Wait for the Vue component to load
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export const useNoteData = (
|
|||
);
|
||||
const renderedNote = computed(() =>
|
||||
isReblog.value
|
||||
? toValue(noteProp)?.reblog ?? toValue(noteProp)
|
||||
? (toValue(noteProp)?.reblog ?? toValue(noteProp))
|
||||
: toValue(noteProp),
|
||||
);
|
||||
const showContentWarning = useSetting(SettingIds.ShowContentWarning);
|
||||
|
|
|
|||
34
package.json
34
package.json
|
|
@ -29,42 +29,42 @@
|
|||
"check": "bunx tsc -p ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@ark-ui/vue": "3.6.0",
|
||||
"@nuxt/fonts": "^0.7.2",
|
||||
"@tailwindcss/typography": "^0.5.14",
|
||||
"@ark-ui/vue": "^3.13.0",
|
||||
"@nuxt/fonts": "^0.8.0",
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@vee-validate/nuxt": "^4.13.2",
|
||||
"@vee-validate/zod": "^4.13.2",
|
||||
"@versia/client": "^0.1.0-rc.0",
|
||||
"@vite-pwa/nuxt": "^0.10.0",
|
||||
"@vueuse/core": "^11.0.1",
|
||||
"@vueuse/nuxt": "^11.0.1",
|
||||
"c12": "^1.11.1",
|
||||
"@versia/client": "^0.1.0",
|
||||
"@vite-pwa/nuxt": "^0.10.5",
|
||||
"@vueuse/core": "^11.0.3",
|
||||
"@vueuse/nuxt": "^11.0.3",
|
||||
"c12": "^1.11.2",
|
||||
"fastest-levenshtein": "^1.0.16",
|
||||
"html-to-text": "^9.0.5",
|
||||
"iconify-icon": "^2.1.0",
|
||||
"magic-regexp": "^0.8.0",
|
||||
"mitt": "^3.0.1",
|
||||
"nanoid": "^5.0.7",
|
||||
"nuxt": "^3.12.4",
|
||||
"nuxt": "^3.13.1",
|
||||
"nuxt-headlessui": "^1.2.0",
|
||||
"nuxt-security": "^2.0.0-rc.9",
|
||||
"nuxt-shiki": "^0.3.0",
|
||||
"overlayscrollbars": "^2.10.0",
|
||||
"overlayscrollbars-vue": "^0.5.9",
|
||||
"shiki": "^1.14.1",
|
||||
"vue": "^3.4.38",
|
||||
"vue-router": "^4.4.3",
|
||||
"shiki": "^1.17.6",
|
||||
"vue": "^3.5.5",
|
||||
"vue-router": "^4.4.5",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.8.3",
|
||||
"@nuxtjs/seo": "^2.0.0-rc.18",
|
||||
"@biomejs/biome": "^1.9.0",
|
||||
"@nuxtjs/seo": "^2.0.0-rc.21",
|
||||
"@nuxtjs/tailwindcss": "^6.12.1",
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tailwindcss/forms": "^0.5.9",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"@vue-email/nuxt": "^0.8.19",
|
||||
"typescript": "^5.5.4",
|
||||
"vue-tsc": "^2.0.29"
|
||||
"typescript": "^5.6.2",
|
||||
"vue-tsc": "^2.1.6"
|
||||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome",
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Client } from "@versia/client";
|
||||
import { toTypedSchema } from "@vee-validate/zod";
|
||||
import { Client } from "@versia/client";
|
||||
import { z } from "zod";
|
||||
import FieldError from "~/components/inputs/field-error.vue";
|
||||
import Field from "~/components/inputs/field.vue";
|
||||
|
|
@ -124,9 +124,7 @@ const validUrlParameters =
|
|||
params.client_id &&
|
||||
params.scope;
|
||||
|
||||
const instance = useInstanceFromClient(
|
||||
new Client(new URL(useBaseUrl().value)),
|
||||
);
|
||||
const instance = useInstanceFromClient(new Client(new URL(useBaseUrl().value)));
|
||||
|
||||
const ssoConfig = computed(() => instance.value?.sso);
|
||||
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { Collapsible } from "@ark-ui/vue";
|
||||
import type { ResponseError } from "@versia/client";
|
||||
import { toTypedSchema } from "@vee-validate/zod";
|
||||
import type { ResponseError } from "@versia/client";
|
||||
import { z } from "zod";
|
||||
import CheckboxInput from "~/components/inputs/checkbox-input.vue";
|
||||
import FieldError from "~/components/inputs/field-error.vue";
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
:root {
|
||||
--theme-dark-50: #4a4a4a;
|
||||
--theme-dark-100: #3c3c3c;
|
||||
--theme-dark-200: #323232;
|
||||
--theme-dark-300: #2d2d2d;
|
||||
--theme-dark-400: #222222;
|
||||
--theme-dark-500: #1f1f1f;
|
||||
--theme-dark-600: #1c1c1e;
|
||||
--theme-dark-700: #1b1b1b;
|
||||
--theme-dark-800: #181818;
|
||||
--theme-dark-900: #0f0f0f;
|
||||
--theme-dark-950: #080808;
|
||||
--theme-dark-50: #4a4a4a;
|
||||
--theme-dark-100: #3c3c3c;
|
||||
--theme-dark-200: #323232;
|
||||
--theme-dark-300: #2d2d2d;
|
||||
--theme-dark-400: #222222;
|
||||
--theme-dark-500: #1f1f1f;
|
||||
--theme-dark-600: #1c1c1e;
|
||||
--theme-dark-700: #1b1b1b;
|
||||
--theme-dark-800: #181818;
|
||||
--theme-dark-900: #0f0f0f;
|
||||
--theme-dark-950: #080808;
|
||||
|
||||
--theme-primary-50: #fdf2f8;
|
||||
--theme-primary-100: #fce7f3;
|
||||
--theme-primary-200: #fbcfe8;
|
||||
--theme-primary-300: #f9a8d4;
|
||||
--theme-primary-400: #f472b6;
|
||||
--theme-primary-500: #ec4899;
|
||||
--theme-primary-600: #db2777;
|
||||
--theme-primary-700: #be185d;
|
||||
--theme-primary-800: #9d174d;
|
||||
--theme-primary-900: #831843;
|
||||
--theme-primary-950: #500724;
|
||||
--theme-primary-50: #fdf2f8;
|
||||
--theme-primary-100: #fce7f3;
|
||||
--theme-primary-200: #fbcfe8;
|
||||
--theme-primary-300: #f9a8d4;
|
||||
--theme-primary-400: #f472b6;
|
||||
--theme-primary-500: #ec4899;
|
||||
--theme-primary-600: #db2777;
|
||||
--theme-primary-700: #be185d;
|
||||
--theme-primary-800: #9d174d;
|
||||
--theme-primary-900: #831843;
|
||||
--theme-primary-950: #500724;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue