From 86d70faae68852498cd9a74bee11089c17f6d087 Mon Sep 17 00:00:00 2001 From: Nikolai Dorofeev Date: Fri, 14 Jun 2024 22:03:52 +0400 Subject: [PATCH] Update dependencies (#14) * Remove unnscessary test packages * Uninstall patch-package * Uninstall vitest * Update main dependencies * Update layout config * Fix prerendrerd routes * Fix to and href used in NuxtLink simoultaniously warning * Fix hydration mismatch for navigation * Remove useSafeOnMounted() * Define package manager * Rename pipeline to tasks * lintfix * Prettier ignore turbo cache * Update linters * Downgrade eslint * Add eslint-plugin-import * Replace deprecated nuxt linter * lintfix * Update vite dependencies * Update changesets * Remove AST plugins * Update server deps * Fix puppeteer usage * Install unist-util-visit * Roll back puppeteer * Delete nuxt color mode alert * Use scroll-margin-top --- .changeset/dull-timers-divide.md | 5 + .changeset/nasty-coats-invent.md | 5 + .changeset/perfect-seals-shout.md | 8 + .changeset/rich-bulldogs-dance.md | 5 + .changeset/weak-squids-deliver.md | 6 + .eslintrc | 2 +- .prettierignore | 1 + apps/d0rich.me/.env.example | 4 + apps/d0rich.me/app.vue | 5 +- .../components/AsyncSafeSeoWithOg.vue | 4 +- .../components/blog/SurroundDocCard.vue | 4 +- .../d0rich.me/components/homepage/B1Intro.vue | 43 +- .../components/homepage/B2Sitemap.vue | 31 +- .../components/homepage/B3Skills.vue | 17 +- .../d0rich.me/components/homepage/B4Story.vue | 39 +- apps/d0rich.me/components/layouts/DHeader.vue | 8 +- .../components/resume/CertificatesCard.vue | 3 +- .../components/resume/ProjectsCard.vue | 3 +- apps/d0rich.me/nuxt.config.ts | 1 + apps/d0rich.me/package.json | 16 +- apps/d0rich.me/pages/resume/[type].vue | 3 +- apps/d0rich.me/server/utils/puppeteer.ts | 2 +- .../projects/ProjectsRepository.ts | 22 +- apps/d0xigen.d0rich.me/content/1.index.md | 9 - .../design.d0rich.me/components/B5Buttons.vue | 43 +- apps/design.d0rich.me/components/B6Lists.vue | 14 +- apps/design.d0rich.me/nuxt.config.ts | 2 +- apps/design.d0rich.me/package.json | 4 +- package-lock.json | 43427 +++++++++------- package.json | 35 +- .../d0xigen/components/d/AsyncSafeMeta.vue | 4 +- packages/d0xigen/components/d/Error404.vue | 2 +- .../components/d/layout/NavSidebar/Index.vue | 19 +- .../components/d/layout/SurroundDocCard.vue | 4 +- packages/d0xigen/composables/layout.ts | 4 +- packages/d0xigen/nuxt.config.ts | 1 + packages/d0xigen/package.json | 18 +- packages/d0xigen/pages/[...slug].vue | 12 +- .../server/assets/templates/favicon.html | 1 + .../server/assets/templates/og-image.html | 1 + packages/esprit-design/index.html | 1 + packages/esprit-design/package.json | 17 +- .../esprit-design/src/components/DStats.vue | 24 +- .../src/components/buttons/DBtn.vue | 5 +- .../esprit-design/src/composables/router.ts | 23 +- .../components/content/Mermaid.vue | 6 +- packages/nuxt-content-mermaid/package.json | 8 +- .../composables/safe-on-mounted.ts | 24 - packages/nuxt-design-system/package.json | 13 +- packages/nuxt-design-system/vitest.config.ts | 6 - turbo.json | 2 +- 51 files changed, 25174 insertions(+), 18792 deletions(-) create mode 100644 .changeset/dull-timers-divide.md create mode 100644 .changeset/nasty-coats-invent.md create mode 100644 .changeset/perfect-seals-shout.md create mode 100644 .changeset/rich-bulldogs-dance.md create mode 100644 .changeset/weak-squids-deliver.md create mode 100644 apps/d0rich.me/.env.example delete mode 100644 packages/nuxt-design-system/composables/safe-on-mounted.ts delete mode 100644 packages/nuxt-design-system/vitest.config.ts diff --git a/.changeset/dull-timers-divide.md b/.changeset/dull-timers-divide.md new file mode 100644 index 00000000..9300b2a9 --- /dev/null +++ b/.changeset/dull-timers-divide.md @@ -0,0 +1,5 @@ +--- +'d0xigen': patch +--- + +Fix prerendered routes diff --git a/.changeset/nasty-coats-invent.md b/.changeset/nasty-coats-invent.md new file mode 100644 index 00000000..eb500fe4 --- /dev/null +++ b/.changeset/nasty-coats-invent.md @@ -0,0 +1,5 @@ +--- +'d0xigen': patch +--- + +Fix hydration mismatch for navigation diff --git a/.changeset/perfect-seals-shout.md b/.changeset/perfect-seals-shout.md new file mode 100644 index 00000000..67965f88 --- /dev/null +++ b/.changeset/perfect-seals-shout.md @@ -0,0 +1,8 @@ +--- +'@d0rich/nuxt-content-mermaid': minor +'@d0rich/nuxt-design-system': minor +'@d0rich/esprit-design': minor +'d0xigen': minor +--- + +Update dependencies diff --git a/.changeset/rich-bulldogs-dance.md b/.changeset/rich-bulldogs-dance.md new file mode 100644 index 00000000..071bf752 --- /dev/null +++ b/.changeset/rich-bulldogs-dance.md @@ -0,0 +1,5 @@ +--- +'@d0rich/esprit-design': patch +--- + +Fix to and href used in NuxtLink simoultaniously warning diff --git a/.changeset/weak-squids-deliver.md b/.changeset/weak-squids-deliver.md new file mode 100644 index 00000000..e5f88cb6 --- /dev/null +++ b/.changeset/weak-squids-deliver.md @@ -0,0 +1,6 @@ +--- +'@d0rich/esprit-design': patch +'d0xigen': patch +--- + +Remove useSafeOnMounted() diff --git a/.eslintrc b/.eslintrc index 855a282d..bf7f832b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,7 +9,7 @@ "parser": "@typescript-eslint/parser" }, "extends": [ - "@nuxtjs/eslint-config-typescript", + "@nuxt/eslint-config", "plugin:prettier/recommended" ], "plugins": [], diff --git a/.prettierignore b/.prettierignore index 418f830f..12ce74fe 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,7 @@ node_modules .cache .output .env +.turbo dist build *.md diff --git a/apps/d0rich.me/.env.example b/apps/d0rich.me/.env.example new file mode 100644 index 00000000..397e5d00 --- /dev/null +++ b/apps/d0rich.me/.env.example @@ -0,0 +1,4 @@ +# https://github.com/settings/tokens +GITHUB_TOKEN=xxx +# https://app.netlify.com/user/applications +NETLIFY_TOKEN=xxx diff --git a/apps/d0rich.me/app.vue b/apps/d0rich.me/app.vue index 3c2154df..446d2691 100644 --- a/apps/d0rich.me/app.vue +++ b/apps/d0rich.me/app.vue @@ -1,10 +1,13 @@