Skip to content

Commit

Permalink
chore: ⬆️ Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Sep 14, 2024
1 parent cc54e95 commit 35dcf4d
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 63 deletions.
19 changes: 9 additions & 10 deletions biome.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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"
Expand Down Expand Up @@ -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"]
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions components/inputs/rich-textbox-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 3 additions & 1 deletion components/skeleton/Skeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion components/timelines/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>
2 changes: 1 addition & 1 deletion components/timelines/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>
2 changes: 1 addition & 1 deletion components/timelines/local.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>
2 changes: 1 addition & 1 deletion components/timelines/public.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ useListen("note:edit", (updatedNote) => {
updateItem(updatedNote);
});
useListen("composer:send", (ee) => {
useListen("composer:send", () => {
loadPrev();
});
</script>
2 changes: 1 addition & 1 deletion components/timelines/timeline-scroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion composables/NoteData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions pages/oauth/authorize.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pages/register/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
44 changes: 22 additions & 22 deletions styles/theme.css
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 35dcf4d

Please sign in to comment.