diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c126e5e7..4159bb48 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,13 +22,13 @@ jobs:
lfs: true
- name: Use Node.js
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v4
with:
- node-version: 16.x
+ node-version: 20.x
- - uses: pnpm/action-setup@v2.0.1
+ - uses: pnpm/action-setup@v4
with:
- version: 7.4.1
+ version: 9.8.0
run_install: |
- recursive: false
@@ -59,13 +59,13 @@ jobs:
- uses: actions/checkout@v2
- name: Use Node.js
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v4
with:
- node-version: 16.x
+ node-version: 20.x
- - uses: pnpm/action-setup@v2.0.1
+ - uses: pnpm/action-setup@v4
with:
- version: 7.4.1
+ version: 9.8.0
run_install: |
- recursive: false
@@ -78,14 +78,14 @@ jobs:
- name: Cypress
run: pnpm -C docs run cy:run
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: docs/cypress/screenshots
retention-days: 1
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100755
index 00000000..5e4a6152
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,8 @@
+{
+ "recommendations": [
+ "Vue.volar",
+ "dbaeumer.vscode-eslint",
+ "esbenp.prettier-vscode",
+ "antfu.unocss"
+ ]
+}
diff --git a/README.md b/README.md
index 97d2ddeb..83255c14 100644
--- a/README.md
+++ b/README.md
@@ -83,7 +83,7 @@ Visit the [documentation website][docs] to check out the [guides][guide] and sea
- [Vite] and [Vue]: for enabling an amazing development experience
- [Astro](https://astro.build): for sharing a novel way to define islands
- [MDX]: provides amazing flexibility when processing Markdown
-- [vue-router], [@vueuse/head], and [vite-plugin-pages]: the backbone of this library
+- [vue-router], [@unhead/vue], and [vite-plugin-pages]: the backbone of this library
- [unplugin-vue-components]: allows you to avoid the boilerplate
- [VitePress] and [vite-ssg]: for their different ideas on SSR
@@ -96,5 +96,5 @@ Visit the [documentation website][docs] to check out the [guides][guide] and sea
[VitePress]: https://vitepress.vuejs.org/
[vite-ssg]: https://github.com/antfu/vite-ssg
[vue-router]: https://next.router.vuejs.org/
-[@vueuse/head]: https://github.com/vueuse/head
+[@unhead/vue]: https://github.com/unjs/unhead
diff --git a/docs/cypress/e2e/dark-mode.cypress.cy.js b/docs/cypress/e2e/dark-mode.cypress.cy.js
index 093d2e21..08d34dff 100644
--- a/docs/cypress/e2e/dark-mode.cypress.cy.js
+++ b/docs/cypress/e2e/dark-mode.cypress.cy.js
@@ -6,12 +6,12 @@ describe('Dark Mode', () => {
}
const assertTheme = (theme) =>
- cy.get('html').then(html =>
+ cy.get('html').then((html) =>
expect(html.hasClass('dark')).to.equal(theme === 'dark'))
it('can toggle on and off', () => {
visitHome()
- cy.get('html').then(html => {
+ cy.get('html').then((html) => {
if (html.hasClass('dark')) toggleTheme()
assertTheme('light')
})
diff --git a/docs/cypress/e2e/docsearch.cypress.cy.js b/docs/cypress/e2e/docsearch.cypress.cy.js
index 2c44c657..e25d8687 100644
--- a/docs/cypress/e2e/docsearch.cypress.cy.js
+++ b/docs/cypress/e2e/docsearch.cypress.cy.js
@@ -15,7 +15,7 @@ describe('DocSearch', () => {
const searchModal = () =>
cy.get('.DocSearch-Modal')
- const closeSearchModal = () =>{
+ const closeSearchModal = () => {
cy.get('body').type('{esc}')
searchModal().should('not.exist')
}
diff --git a/docs/icons/arrowRight.svg b/docs/icons/arrowRight.svg
index 3df7d07c..8f542e6d 100644
--- a/docs/icons/arrowRight.svg
+++ b/docs/icons/arrowRight.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/docs/icons/logo.svg b/docs/icons/logo.svg
index ee45c710..622e7654 100644
--- a/docs/icons/logo.svg
+++ b/docs/icons/logo.svg
@@ -1 +1 @@
-
+
diff --git a/docs/icons/text.svg b/docs/icons/text.svg
index 75ee2c3b..7ccab2d1 100644
--- a/docs/icons/text.svg
+++ b/docs/icons/text.svg
@@ -1,4 +1,4 @@
-