@tuya-sat/micro-dev-loader 2.3.1 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -564,7 +564,7 @@ html {
|
|
|
564
564
|
// ---
|
|
565
565
|
@anchor-bg: transparent;
|
|
566
566
|
@anchor-border-color: @border-color-split;
|
|
567
|
-
@anchor-link-top: 7px;
|
|
567
|
+
@anchor-link-top: 7px; // 注意,一些版本可能会有样式问题
|
|
568
568
|
@anchor-link-left: 16px;
|
|
569
569
|
@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
|
|
570
570
|
|
|
@@ -616,7 +616,7 @@ html {
|
|
|
616
616
|
@modal-header-title-line-height: 22px;
|
|
617
617
|
@modal-header-title-font-size: @font-size-lg;
|
|
618
618
|
@modal-header-border-color-split: @border-color-split;
|
|
619
|
-
@modal-header-close-size:
|
|
619
|
+
@modal-header-close-size: @modal-header-title-line-height + 2 * @modal-header-padding-vertical;
|
|
620
620
|
@modal-content-bg: @component-background;
|
|
621
621
|
@modal-heading-color: @heading-color;
|
|
622
622
|
@modal-close-color: @text-color-secondary;
|
|
@@ -629,6 +629,7 @@ html {
|
|
|
629
629
|
@modal-mask-bg: fade(@black, 45%);
|
|
630
630
|
@modal-confirm-body-padding: 32px 32px 24px;
|
|
631
631
|
@modal-confirm-title-font-size: @font-size-lg;
|
|
632
|
+
@modal-border-radius: @border-radius-base;
|
|
632
633
|
|
|
633
634
|
// Progress
|
|
634
635
|
// --
|
|
@@ -927,7 +928,7 @@ html {
|
|
|
927
928
|
@breadcrumb-font-size: @font-size-base;
|
|
928
929
|
@breadcrumb-icon-font-size: @font-size-base;
|
|
929
930
|
@breadcrumb-link-color: @text-color-secondary;
|
|
930
|
-
@breadcrumb-link-color-hover: @
|
|
931
|
+
@breadcrumb-link-color-hover: @text-color;
|
|
931
932
|
@breadcrumb-separator-color: @text-color-secondary;
|
|
932
933
|
@breadcrumb-separator-margin: 0 @padding-xs;
|
|
933
934
|
|
|
@@ -1418,3 +1419,11 @@ html {
|
|
|
1418
1419
|
// Mentions
|
|
1419
1420
|
// ---
|
|
1420
1421
|
@mentions-dropdown-bg: @popover-background;
|
|
1422
|
+
|
|
1423
|
+
// Segmented
|
|
1424
|
+
// ---
|
|
1425
|
+
@segmented-bg: fade(@black, 25%);
|
|
1426
|
+
@segmented-hover-bg: fade(@black, 45%);
|
|
1427
|
+
@segmented-selected-bg: #333333;
|
|
1428
|
+
@segmented-label-color: fade(@white, 65%);
|
|
1429
|
+
@segmented-label-hover-color: fade(@white, 85%);
|
package/dist/less/plugin/file.js
CHANGED
|
@@ -25,7 +25,7 @@ class HandleImport extends less.FileManager {
|
|
|
25
25
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
if (filename.startsWith("~")) {
|
|
27
27
|
let filenamed = filename.replace("~", "");
|
|
28
|
-
const fullPath = require.resolve(filenamed);
|
|
28
|
+
const fullPath = require.resolve(filenamed, { paths: [currentDirectory] });
|
|
29
29
|
if (this.interceptReg.test(fullPath)) {
|
|
30
30
|
return {
|
|
31
31
|
filename: fullPath,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
|
+
var crypto = require('crypto');
|
|
6
7
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
7
8
|
var cheerio = require('cheerio');
|
|
8
9
|
var less = require('less');
|
|
@@ -45,8 +46,8 @@ class ThemePlugin {
|
|
|
45
46
|
return new RawSource(this.filterCssVarible(source.source().toString())[0]);
|
|
46
47
|
});
|
|
47
48
|
const [content, storeHtmlVariable] = yield this.runCssbundle();
|
|
48
|
-
const
|
|
49
|
-
const darkCssFileName = `dark.${
|
|
49
|
+
const darkHash = crypto.createHash("sha256").update(content).digest("hex").substring(0, 8);
|
|
50
|
+
const darkCssFileName = `dark.${darkHash}.css`;
|
|
50
51
|
compilation.emitAsset(`${this.stylePath}/${darkCssFileName}`, new RawSource(content));
|
|
51
52
|
HtmlWebpackPlugin__default["default"].getHooks(compilation).beforeAssetTagGeneration.tapAsync(this.pluginName, (data, cb) => {
|
|
52
53
|
HtmlWebpackPlugin__default["default"].getHooks(compilation).beforeEmit.tapAsync(this.pluginName, (data, cb) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-dev-loader",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@babel/generator": "7.17.7",
|
|
15
15
|
"@babel/plugin-syntax-typescript": "7.16.7",
|
|
16
16
|
"@babel/template": "7.16.7",
|
|
17
|
-
"@tuya-sat/micro-utils": "2.3.
|
|
17
|
+
"@tuya-sat/micro-utils": "2.3.4",
|
|
18
18
|
"cheerio": "1.0.0-rc.10",
|
|
19
19
|
"ejs": "3.1.6",
|
|
20
20
|
"fs-extra": "10.0.1",
|