-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into route-relative
- Loading branch information
Showing
20 changed files
with
500 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
const fs = require('fs') | ||
const path = require('path') | ||
import * as fs from 'node:fs' | ||
import * as path from 'node:path' | ||
import type { UserConfig } from '@commitlint/types' | ||
|
||
const getSubDirectories = (dir) => | ||
const getSubDirectories = (dir: string): string[] => | ||
fs | ||
.readdirSync(dir) | ||
.filter((item) => fs.statSync(path.join(dir, item)).isDirectory()) | ||
const packages = getSubDirectories(path.resolve(__dirname, 'packages')) | ||
|
||
module.exports = { | ||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': [2, 'always', packages], | ||
'footer-max-line-length': [0], | ||
}, | ||
} | ||
} satisfies UserConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<button id="home" @click="goHome">Home</button> | ||
<button id="404" @click="go404">404</button> | ||
|
||
<script setup lang="ts"> | ||
import { useRouter } from 'vuepress/client'; | ||
|
||
const router = useRouter(); | ||
|
||
const goHome = () => { | ||
router.push('/?home=true'); | ||
} | ||
|
||
const go404 = () => { | ||
router.push('/404.html#404'); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
it('should preserve query', () => { | ||
const E2E_BASE = Cypress.env('E2E_BASE') | ||
|
||
cy.visit('/router/navigation.html') | ||
|
||
cy.get('#home').click() | ||
|
||
cy.location('pathname').should('eq', E2E_BASE) | ||
cy.location('search').should('eq', '?home=true') | ||
}) | ||
|
||
it('should preserve hash', () => { | ||
const E2E_BASE = Cypress.env('E2E_BASE') | ||
|
||
cy.visit('/router/navigation.html') | ||
|
||
cy.get('#404').click() | ||
|
||
cy.location('pathname').should('eq', `${E2E_BASE}404.html`) | ||
cy.location('hash').should('eq', '#404') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/markdown/src/plugins/codePlugin/resolveHighlightLines.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.