Skip to content

Commit 09bb612

Browse files
committed
fix: use @ctrl/tinycolor replace tinycolor2
1 parent b51a531 commit 09bb612

File tree

5 files changed

+26
-38
lines changed

5 files changed

+26
-38
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"rollup-plugin-postcss": "^4.0.1",
5252
"rollup-plugin-terser": "^7.0.2",
5353
"rollup-plugin-vue": "^6.0.0",
54-
"sass": "^1.43.2",
5554
"standard-version": "^9.3.1",
5655
"vue": "3.2.20"
5756
},
@@ -62,7 +61,7 @@
6261
"clamp": "^1.0.1",
6362
"lodash.throttle": "^4.1.1",
6463
"material-colors": "^1.2.6",
65-
"tinycolor2": "^1.4.2"
64+
"@ctrl/tinycolor": "^3.4.0"
6665
},
6766
"engines": {
6867
"node": ">=12"

src/components/twitter/twitter.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/mixin/color.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import tinycolor from 'tinycolor2';
1+
import { TinyColor } from '@ctrl/tinycolor';
2+
3+
function tinycolor(...args) {
4+
return new TinyColor(...args);
5+
}
26

37
function _colorChange(data, oldHue) {
48
const alpha = data && data.a;

src/styles/var.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

yarn.lock

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@
175175
dependencies:
176176
chalk "^4.0.0"
177177

178+
"@ctrl/tinycolor@^3.4.0":
179+
version "3.4.0"
180+
resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.4.0.tgz#c3c5ae543c897caa9c2a68630bed355be5f9990f"
181+
integrity sha512-JZButFdZ1+/xAfpguQHoabIXkcqRRKpMrWKBkpEZZyxfY9C1DpADFB8PEqGSTeFr135SaTRfKqGKx5xSCLI7ZQ==
182+
178183
"@endemolshinegroup/cosmiconfig-typescript-loader@^3.0.2":
179184
version "3.0.2"
180185
resolved "https://registry.yarnpkg.com/@endemolshinegroup/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-3.0.2.tgz#eea4635828dde372838b0909693ebd9aafeec22d"
@@ -1706,21 +1711,6 @@ check-types@^8.0.3:
17061711
resolved "https://registry.yarnpkg.com/check-types/-/check-types-8.0.3.tgz#3356cca19c889544f2d7a95ed49ce508a0ecf552"
17071712
integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ==
17081713

1709-
"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.1:
1710-
version "3.5.2"
1711-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75"
1712-
integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==
1713-
dependencies:
1714-
anymatch "~3.1.2"
1715-
braces "~3.0.2"
1716-
glob-parent "~5.1.2"
1717-
is-binary-path "~2.1.0"
1718-
is-glob "~4.0.1"
1719-
normalize-path "~3.0.0"
1720-
readdirp "~3.6.0"
1721-
optionalDependencies:
1722-
fsevents "~2.3.2"
1723-
17241714
chokidar@^2.1.8:
17251715
version "2.1.8"
17261716
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
@@ -1740,6 +1730,21 @@ chokidar@^2.1.8:
17401730
optionalDependencies:
17411731
fsevents "^1.2.7"
17421732

1733+
chokidar@^3.4.1:
1734+
version "3.5.2"
1735+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75"
1736+
integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==
1737+
dependencies:
1738+
anymatch "~3.1.2"
1739+
braces "~3.0.2"
1740+
glob-parent "~5.1.2"
1741+
is-binary-path "~2.1.0"
1742+
is-glob "~4.0.1"
1743+
normalize-path "~3.0.0"
1744+
readdirp "~3.6.0"
1745+
optionalDependencies:
1746+
fsevents "~2.3.2"
1747+
17431748
chownr@^1.1.1:
17441749
version "1.1.4"
17451750
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
@@ -7672,13 +7677,6 @@ safe-regex@^1.1.0:
76727677
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
76737678
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
76747679

7675-
sass@^1.43.2:
7676-
version "1.43.2"
7677-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.43.2.tgz#c02501520c624ad6622529a8b3724eb08da82d65"
7678-
integrity sha512-DncYhjl3wBaPMMJR0kIUaH3sF536rVrOcqqVGmTZHQRRzj7LQlyGV7Mb8aCKFyILMr5VsPHwRYtyKpnKYlmQSQ==
7679-
dependencies:
7680-
chokidar ">=3.0.0 <4.0.0"
7681-
76827680
sax@~1.2.4:
76837681
version "1.2.4"
76847682
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
@@ -8581,11 +8579,6 @@ timsort@^0.3.0:
85818579
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
85828580
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
85838581

8584-
tinycolor2@^1.4.2:
8585-
version "1.4.2"
8586-
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
8587-
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
8588-
85898582
to-arraybuffer@^1.0.0:
85908583
version "1.0.1"
85918584
resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"

0 commit comments

Comments
 (0)