Skip to content

Commit

Permalink
chore(deps): update nuxt version (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodds authored Feb 1, 2024
2 parents 0748024 + 254be69 commit 67c7b51
Show file tree
Hide file tree
Showing 9 changed files with 1,152 additions and 662 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion apps/frontend/components/markdown/MarkdownRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ const props = defineProps<{
content: string;
}>();
const dom = computed(() => DOMPurify.sanitize(marked.parse(props.content)));
const dom = computed(() =>
DOMPurify.sanitize(marked.parse(props.content) as string),
);
</script>
7 changes: 6 additions & 1 deletion apps/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ export default defineNuxtConfig({
alias: {
types: fileURLToPath(new URL("types", import.meta.url)),
},
modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt", "nuxt-gtag"],
modules: [
"@nuxtjs/tailwindcss",
"@pinia/nuxt",
"nuxt-gtag",
"@nuxt/test-utils/module",
],
build: {
transpile: [
"@fortawesome/fontawesome-svg-core",
Expand Down
8 changes: 4 additions & 4 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "1.3.14",
"license": "AGPL-3.0-or-later",
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev -p 3001",
Expand All @@ -16,13 +17,12 @@
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/vue-fontawesome": "^3.0.6",
"@nuxt/test-utils": "^3.8.1",
"@nuxt/test-utils": "^3.11.0",
"@nuxtjs/tailwindcss": "^6.10.1",
"@pinia/nuxt": "^0.4.11",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@tweenjs/tween.js": "^18.6.4",
"@vitejs/plugin-vue": "^4.5.2",
"@vue/test-utils": "^2.4.3",
"chart.js": "^4.4.1",
"easymde": "^2.18.0",
Expand All @@ -32,11 +32,11 @@
"marked-gfm-heading-id": "^3.1.2",
"marked-highlight": "^2.0.9",
"marked-mangle": "^1.1.6",
"nuxt": "^3.8.2",
"nuxt": "^3.10.0",
"nuxt-gtag": "^1.1.2",
"pinia": "^2.1.7",
"tailwind-scrollbar-hide": "^1.1.7",
"vitest": "^1.0.4",
"vitest": "^1.2.2",
"vue-chartjs": "^5.2.0"
}
}
1 change: 1 addition & 0 deletions apps/frontend/plugins/marked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default defineNuxtPlugin((nuxtApp) => {
);
marked.setOptions({
breaks: true,
async: false,
});
});
});
2 changes: 1 addition & 1 deletion apps/frontend/tests/components/AnimationBackground.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from "@vue/test-utils";
import { nextTick } from "vue";
import AnimationBackground from "~~/components/AnimationBackground.vue";
import AnimationBackground from "~/components/AnimationBackground.vue";
import { describe, expect, it } from "vitest";

describe("AnimationBackground test", () => {
Expand Down
13 changes: 3 additions & 10 deletions apps/frontend/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { defineConfig } from "vitest/config";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
import { defineVitestConfig } from "@nuxt/test-utils/config";

export default defineConfig({
plugins: [vue()],
export default defineVitestConfig({
// any custom Vitest config you require
test: {
environment: "jsdom",
alias: {
"~~": resolve(__dirname, "."),
"@@": resolve(__dirname, "."),
"~": resolve(__dirname, "."),
"@": resolve(__dirname, "."),
types: resolve(__dirname, "types"),
assets: resolve(__dirname, "assets"),
public: resolve(__dirname, "public"),
},
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lint-staged": {
"apps/frontend/**/*.{ts,vue}": [
"prettier -w --config \"./apps/frontend/.prettierrc\"",
"eslint --fix -c \"./apps/frontend/.eslintrc.js\""
"eslint --fix -c \"./apps/frontend/.eslintrc.cjs\""
],
"apps/backend/{src,apps,libs,test}/**/*.ts": [
"eslint --fix -c \"./apps/backend/.eslintrc.js\""
Expand Down
Loading

0 comments on commit 67c7b51

Please sign in to comment.