Skip to content

Commit

Permalink
feat: use incremental iconsets
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 2, 2021
1 parent b282539 commit dd68cb0
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 121 deletions.
1 change: 0 additions & 1 deletion .tazerc.json
@@ -1,6 +1,5 @@
{
"exclude": [
"@iconify/json",
"husky",
"cypress"
]
Expand Down
2 changes: 1 addition & 1 deletion demo/starter/package.json
Expand Up @@ -11,6 +11,6 @@
"@slidev/theme-seriph": "^0.21.0",
"@slidev/types": "workspace:*",
"nodemon": "^2.0.13",
"vite-plugin-inspect": "^0.3.7"
"vite-plugin-inspect": "^0.3.8"
}
}
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -34,7 +34,7 @@
"@slidev/parser": "workspace:*",
"@slidev/types": "workspace:*",
"@types/cli-progress": "^3.9.2",
"@types/codemirror": "^5.60.3",
"@types/codemirror": "^5.60.4",
"@types/connect": "^3.4.35",
"@types/debug": "^4.1.7",
"@types/file-saver": "^2.0.3",
Expand All @@ -48,7 +48,7 @@
"@types/prettier": "^2.4.1",
"@types/prismjs": "^1.16.6",
"@types/prompts": "^2.4.0",
"@types/recordrtc": "^5.6.7",
"@types/recordrtc": "^5.6.8",
"@types/resolve": "^1.20.1",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.32.0",
Expand All @@ -65,14 +65,14 @@
"katex": "^0.13.18",
"lint-staged": "^11.1.2",
"mermaid": "^8.13.2",
"playwright-chromium": "^1.15.0",
"playwright-chromium": "^1.15.1",
"pnpm": "^6.16.0",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.5",
"tsup": "5.2.1",
"typescript": "^4.4.3",
"vite": "^2.6.1",
"vite-plugin-windicss": "^1.4.8",
"vite": "^2.6.2",
"vite-plugin-windicss": "^1.4.9",
"zx": "^4.2.0"
},
"engines": {
Expand Down
4 changes: 3 additions & 1 deletion packages/client/internals/DrawingControls.vue
Expand Up @@ -35,7 +35,9 @@ function setBrushColor(color: typeof brush.color) {
<carbon:pen />
</button>
<button class="icon-btn" :class="{ shallow: drawingMode != 'line' }" @click="setDrawingMode('line')">
<uil:line-alt />
<svg width="1em" height="1em" class="-mt-0.5" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path d="M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z" fill="currentColor"></path>
</svg>
</button>
<button class="icon-btn" :class="{ shallow: drawingMode != 'arrow' }" @click="setDrawingMode('arrow')">
<carbon:arrow-up-right />
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Expand Up @@ -30,7 +30,7 @@
"prettier": "^2.4.1",
"recordrtc": "^5.6.2",
"resolve": "^1.20.0",
"vite-plugin-windicss": "^1.4.8",
"vite-plugin-windicss": "^1.4.9",
"vue": "^3.2.19",
"vue-router": "^4.0.11",
"windicss": "^3.1.8"
Expand Down
1 change: 1 addition & 0 deletions packages/slidev/node/plugins/preset.ts
Expand Up @@ -109,6 +109,7 @@ export async function ViteSlidevPlugin(

Icons({
defaultClass: 'slidev-icon',
autoInstall: true,
...iconsOptions,
}),

Expand Down
11 changes: 6 additions & 5 deletions packages/slidev/package.json
Expand Up @@ -46,7 +46,8 @@
},
"dependencies": {
"@antfu/utils": "^0.3.0",
"@iconify/json": "^1.1.406",
"@iconify-json/carbon": "^1.0.3",
"@iconify-json/ph": "^1.0.1",
"@slidev/client": "workspace:*",
"@slidev/parser": "workspace:*",
"@slidev/types": "workspace:*",
Expand Down Expand Up @@ -77,13 +78,13 @@
"resolve-from": "^5.0.0",
"resolve-global": "^1.0.0",
"shiki": "^0.9.11",
"unplugin-icons": "^0.11.4",
"unplugin-vue-components": "^0.15.4",
"vite": "^2.6.1",
"unplugin-icons": "^0.12.4",
"unplugin-vue-components": "^0.15.6",
"vite": "^2.6.2",
"vite-plugin-md": "^0.11.1",
"vite-plugin-remote-assets": "^0.2.2",
"vite-plugin-vue-server-ref": "^0.2.4",
"vite-plugin-windicss": "^1.4.8",
"vite-plugin-windicss": "^1.4.9",
"vue": "^3.2.19",
"windicss": "^3.1.8",
"yargs": "^17.2.1"
Expand Down

0 comments on commit dd68cb0

Please sign in to comment.