Skip to content

Commit 5ecc964

Browse files
committed
fix: no shadow nvm
1 parent 4434e59 commit 5ecc964

File tree

10 files changed

+15
-53
lines changed

10 files changed

+15
-53
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# vue-text-styler
22

3+
[![Netlify Status](https://api.netlify.com/api/v1/badges/15c71247-48b5-4bc5-afd4-2057bf183d43/deploy-status)](https://app.netlify.com/sites/vue-text-styler/deploys)
4+
35
[Demo](https://vue-text-styler.netlify.app/)
46

57
## 📦 Install

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
22
base = "/playground/"
33
command = "vite build"
4-
publish = "/playground/dist"
4+
publish = "dist"

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"lint": "eslint .",
4141
"lint:fix": "pnpm run lint --fix",
4242
"typecheck": "tsc --noEmit",
43-
"release": "bumpp && pnpm publish"
43+
"release": "unbuild && bumpp && pnpm publish"
4444
},
4545
"dependencies": {
4646
"isomorphic-dompurify": "^1.5.0",
@@ -49,14 +49,12 @@
4949
"devDependencies": {
5050
"@antfu/eslint-config": "^0.38.6",
5151
"@iconify-json/ph": "^1.1.5",
52-
"@iconify/utils": "^2.1.5",
5352
"@types/dompurify": "^3.0.2",
5453
"@types/node": "^20.1.4",
5554
"@vitejs/plugin-vue": "^4.2.3",
5655
"@vueuse/core": "^10.1.2",
5756
"bumpp": "^9.1.0",
5857
"eslint": "^8.40.0",
59-
"icon-shadow": "^1.0.5",
6058
"typescript": "^5.0.4",
6159
"unbuild": "^1.2.1",
6260
"unocss": "^0.52.3",

playground/public/PhInfoBold.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/public/PhMoonBold.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/public/PhSunBold.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/src/App.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,26 @@ function handleEnter(e: KeyboardEvent, index: number) {
135135
<div>
136136
<h1>TextStyler Playground</h1>
137137
<div flex="~ row" gap-2 items-center>
138-
<div i-shadow:ph-info-bold w-8 h-8 text-blue-6 />
138+
<div i-ph-info-bold w-6 h-6 text-blue-6 />
139139
Change the inputs' values and the styling will be updated.
140140
</div>
141141
</div>
142142
<div
143-
w-10 h-10 cursor-pointer mt-6 text-red-6 dark:text-red-5
144-
:class="isDark ? 'i-shadow:ph-moon-bold md:mr-2' : 'i-shadow:ph-sun-bold'" @click="toggleDark()"
143+
w-8 h-8 cursor-pointer mt-6 text-red-6 dark:text-red-5
144+
:class="isDark ? 'i-ph-moon-bold' : 'i-ph-sun-bold'" @click="toggleDark()"
145145
/>
146146
</div>
147147
<div v-for="(example, index) in examples" :key="index" flex="~ col md:row" gap-2>
148148
<div flex-1 bg-gray-1 dark:bg-dark-4 rounded-xl p-3 w="auto md:1" justify-between>
149149
<h2>{{ index + 1 }}. {{ example.info }}</h2>
150150
<TextStyler
151-
v-model:text="example.text" :special="example.special" :track="example.track" :line="example.line"
152-
:readonly="example.readonly" p-3 bg-gray-2 dark:bg-dark-3 rounded-xl @tracked="example.tracked = $event"
151+
v-model:text="example.text"
152+
:special="example.special"
153+
:track="example.track"
154+
:line="example.line"
155+
:readonly="example.readonly"
156+
p-3 bg-gray-2 dark:bg-dark-3 rounded-xl
157+
@tracked="example.tracked = $event"
153158
@keydown.enter="handleEnter($event, index)"
154159
/>
155160
<p>

playground/src/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.dark::-webkit-scrollbar {
66
background-color: #202324;
77
color: #aba499;
8-
width: 10px;
98
}
109

1110
.dark::-webkit-scrollbar-corner {

pnpm-lock.yaml

Lines changed: 0 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uno.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
import { defineConfig, presetAttributify, presetIcons, presetUno, presetWebFonts, transformerDirectives } from 'unocss'
2-
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'
3-
import { insertShadow } from 'icon-shadow'
42

53
export default defineConfig({
64
presets: [
75
presetUno(),
86
presetAttributify(),
97
presetIcons({
108
collections: {
11-
shadow: FileSystemIconLoader(
12-
'./playground/public',
13-
svg => insertShadow(svg, {
14-
stdDeviation: 2,
15-
opacity: 0.3,
16-
viewBoxScale: 1.5,
17-
}),
18-
),
9+
ph: () => import('@iconify-json/ph/icons.json').then(i => i.default),
1910
},
2011
}),
2112
presetWebFonts({

0 commit comments

Comments
 (0)