From 3f6f28ba2508e83c14490ae4ded21f15de998356 Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Tue, 22 Oct 2024 20:47:49 -0300 Subject: [PATCH] chore: fix tsc for examples --- docs/cypress/e2e/dark-mode.cypress.cy.js | 4 ++-- docs/cypress/e2e/docsearch.cypress.cy.js | 2 +- docs/src/components/Iles.vue | 7 ++++--- docs/src/components/NavBarLink.vue | 6 +++--- docs/src/components/NavBarLinks.vue | 2 +- docs/src/components/SidebarLink.vue | 12 +++--------- docs/src/components/SidebarLinkItem.vue | 6 ++---- docs/src/components/TimeAgo.vue | 8 ++++---- docs/src/logic/sidebar.ts | 6 +++--- docs/src/pages/guide/documents.mdx | 9 --------- docs/src/pages/guide/rss.mdx | 4 ++-- docs/tsconfig.json | 5 ++++- playground/the-vue-point/src/components/BackLink.tsx | 4 +++- playground/the-vue-point/src/pages/index.vue | 2 +- playground/the-vue-point/src/pages/posts/[page].vue | 2 +- playground/the-vue-point/tsconfig.json | 3 +++ 16 files changed, 37 insertions(+), 45 deletions(-) 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/src/components/Iles.vue b/docs/src/components/Iles.vue index cdf09d4d..0a2748e8 100644 --- a/docs/src/components/Iles.vue +++ b/docs/src/components/Iles.vue @@ -1,11 +1,12 @@