Skip to content

Commit

Permalink
fix a117 warnings
Browse files Browse the repository at this point in the history
bump mdvsex for svelte v4
drop npm install --force
  • Loading branch information
janosh committed Jun 24, 2023
1 parent 8dfb8c3 commit 535a980
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ on:
jobs:
build:
uses: janosh/workflows/.github/workflows/nodejs-gh-pages.yml@main
with:
install-cmd: npm install --force
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ on:
jobs:
tests:
uses: janosh/workflows/.github/workflows/npm-test-release.yml@main
with:
install-cmd: npm install --force
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@
"test": "vitest"
},
"dependencies": {
"@sveltejs/kit": "^1.20.4",
"@sveltejs/kit": "^1.20.5",
"highlight.js": "^11.8.0",
"svelte": "4.0.0-next.2"
"svelte": "4.0.0"
},
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/package": "^2.0.2",
"@sveltejs/package": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vitest/coverage-v8": "^0.32.2",
"eslint": "^8.43.0",
"eslint-plugin-svelte3": "^4.0.0",
"hastscript": "^7.2.0",
"jsdom": "^22.1.0",
"mdsvex": "^0.10.6",
"mdsvex": "^0.11.0",
"mdsvexamples": "^0.3.3",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"svelte-check": "^3.4.3",
"svelte-check": "^3.4.4",
"svelte-multiselect": "^9.0.0",
"svelte-preprocess": "^5.0.4",
"svelte2tsx": "^0.6.15",
"svelte2tsx": "^0.6.16",
"typescript": "5.1.3",
"vite": "^4.3.9",
"vitest": "^0.32.2"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/CopyButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</script>

{#if !(global || global_selector)}
<svelte:element this={as} on:click={copy} {style}>
<svelte:element this={as} on:click={copy} {style} role="button" tabindex={0}>
<slot>
<Icon icon={labels[state][1]} />
<span>{labels[state][0]}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/icons/Collapse.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- https://icones.js.org/collection/all?s=bx:collapse-vertical -->
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor" {...$$props} on:click>
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor" {...$$props}>
<path
d="M12 7.59L7.05 2.64L5.64 4.05L12 10.41l6.36-6.36l-1.41-1.41L12 7.59zM5.64 19.95l1.41 1.41L12 16.41l4.95 4.95l1.41-1.41L12 13.59l-6.36 6.36z"
/>
Expand Down
8 changes: 7 additions & 1 deletion src/routes/(demos)/RadioButtons/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
const options = [1, 2, 3]
let selected
const handler = (event) =>
const handler = (event) => {
console.log(
'New value is ' + event.target.value + ' triggered by on:' + event.type
)
}
</script>
<RadioButtons
Expand All @@ -30,6 +31,11 @@ Pre-selected value:
const options = ['foo', 'bar', 'baz']
let selected = 'baz'
const handler = (event) => {
console.log(
'New value is ' + event.target.value + ' triggered by on:' + event.type
)
}
</script>
<RadioButtons
Expand Down

0 comments on commit 535a980

Please sign in to comment.