Skip to content

Commit

Permalink
fix(kcodeblock): improve matching perf (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo authored Jan 16, 2025
1 parent 0556c6b commit 8525a29
Show file tree
Hide file tree
Showing 8 changed files with 769 additions and 201 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"scss.scannerExclude": [
"**/.git",
"**/bower_components"
]
],
"eslint.useFlatConfig": true
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@
"date-fns-tz": "^2.0.1",
"focus-trap": "^7.6.0",
"focus-trap-vue": "^4.0.3",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.9",
"sortablejs": "^1.15.3",
"swrv": "^1.0.4",
"v-calendar": "^3.1.2",
"virtua": "^0.39.3",
"vue-draggable-next": "^2.2.1"
},
"peerDependencies": {
Expand All @@ -86,6 +88,7 @@
"@semantic-release/git": "^10.0.1",
"@stylistic/stylelint-plugin": "^3.1.1",
"@types/inquirer": "^9.0.7",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.1",
"@types/sortablejs": "^1.15.8",
"@vitejs/plugin-vue": "^5.1.4",
Expand Down
159 changes: 99 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sandbox/pages/SandboxCodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<KCodeBlock
v-if="highlighter"
id="syntax-highlighted-codeblock"
:code="code"
:code="`${code}\n`.repeat(100)"
:highlighted-line-numbers="highlightedLines"
language="json"
max-height="500"
Expand Down Expand Up @@ -122,7 +122,7 @@
>
<KCodeBlock
id="max-height-prop"
:code="code"
:code="`${code}\n`.repeat(100)"
language="json"
max-height="200"
searchable
Expand Down
Loading

0 comments on commit 8525a29

Please sign in to comment.