@windwalker-io/core 4.1.11 → 4.1.12

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.
@@ -1,13 +1,13 @@
1
- /*!
2
- * Bootstrap v5.3.2 (https://getbootstrap.com/)
3
- * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- */
6
-
7
- /*!
8
- * vue-router v4.2.5
9
- * (c) 2023 Eduardo San Martin Morote
10
- * @license MIT
11
- */
12
-
13
- /*! #__NO_SIDE_EFFECTS__ */
1
+ /*!
2
+ * Bootstrap v5.3.2 (https://getbootstrap.com/)
3
+ * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */
6
+
7
+ /*!
8
+ * vue-router v4.2.5
9
+ * (c) 2023 Eduardo San Martin Morote
10
+ * @license MIT
11
+ */
12
+
13
+ /*! #__NO_SIDE_EFFECTS__ */
@@ -1,2 +1,2 @@
1
- .wd-fixed{position:fixed}.wd-bottom-0{bottom:0}.wd-mb-1{margin-bottom:.25rem}.wd-flex{display:-webkit-box;display:-ms-flexbox;display:flex}.wd-w-full{width:100%}@-webkit-keyframes wd-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes wd-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes wd-ping{100%,75%{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes wd-ping{100%,75%{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@-webkit-keyframes wd-pulse{50%{opacity:.5}}@keyframes wd-pulse{50%{opacity:.5}}@-webkit-keyframes wd-bounce{0%,100%{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes wd-bounce{0%,100%{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.wd-items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wd-whitespace-nowrap{white-space:nowrap}.wd-rounded-full{border-radius:9999px}.wd-bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.wd-bg-gray-800{--tw-bg-opacity:1;background-color:rgba(37,47,63,var(--tw-bg-opacity))}.hover\:wd-bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgba(55,65,81,var(--tw-bg-opacity))}.wd-p-3{padding:.75rem}.wd-px-3{padding-left:.75rem;padding-right:.75rem}.wd-px-5{padding-left:1.25rem;padding-right:1.25rem}.wd-text-sm{font-size:.875rem;line-height:1.25rem}.wd-text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.wd-text-gray-800{--tw-text-opacity:1;color:rgba(37,47,63,var(--tw-text-opacity))}.wd-no-underline{text-decoration:none}*,::after,::before{--tw-shadow:0 0 #0000}*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(63, 131, 248, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}html{padding-bottom:50px}.ww-debug-console::-webkit-scrollbar{display:none}
2
- /*# sourceMappingURL=debugger-console.css.map */
1
+ .wd-fixed{position:fixed}.wd-bottom-0{bottom:0}.wd-mb-1{margin-bottom:.25rem}.wd-flex{display:-webkit-box;display:-ms-flexbox;display:flex}.wd-w-full{width:100%}@-webkit-keyframes wd-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes wd-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes wd-ping{100%,75%{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes wd-ping{100%,75%{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@-webkit-keyframes wd-pulse{50%{opacity:.5}}@keyframes wd-pulse{50%{opacity:.5}}@-webkit-keyframes wd-bounce{0%,100%{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes wd-bounce{0%,100%{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.wd-items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wd-whitespace-nowrap{white-space:nowrap}.wd-rounded-full{border-radius:9999px}.wd-bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.wd-bg-gray-800{--tw-bg-opacity:1;background-color:rgba(37,47,63,var(--tw-bg-opacity))}.hover\:wd-bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgba(55,65,81,var(--tw-bg-opacity))}.wd-p-3{padding:.75rem}.wd-px-3{padding-left:.75rem;padding-right:.75rem}.wd-px-5{padding-left:1.25rem;padding-right:1.25rem}.wd-text-sm{font-size:.875rem;line-height:1.25rem}.wd-text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.wd-text-gray-800{--tw-text-opacity:1;color:rgba(37,47,63,var(--tw-text-opacity))}.wd-no-underline{text-decoration:none}*,::after,::before{--tw-shadow:0 0 #0000}*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(63, 131, 248, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}html{padding-bottom:50px}.ww-debug-console::-webkit-scrollbar{display:none}
2
+ /*# sourceMappingURL=debugger-console.css.map */
@@ -1,2 +1,2 @@
1
- (() => {})();
2
- //# sourceMappingURL=debugger-console.js.map
1
+ (() => {})();
2
+ //# sourceMappingURL=debugger-console.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windwalker-io/core",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "type": "module",
5
5
  "description": "Windwalker Core JS package",
6
6
  "scripts": {
@@ -21,6 +21,7 @@
21
21
  "@fortawesome/vue-fontawesome": "^3.0.1",
22
22
  "@tailwindcss/custom-forms": "^0.2.1",
23
23
  "@tailwindcss/ui": "^0.7.2",
24
+ "@types/gulp-rename": "^2",
24
25
  "@vue/reactivity": "^3.3.7",
25
26
  "@vue/tsconfig": "^0.4.0",
26
27
  "@windwalker-io/fusion": "^1.0",
@@ -52,5 +53,8 @@
52
53
  "vendors": [
53
54
  "@windwalker-io/core"
54
55
  ]
56
+ },
57
+ "dependencies": {
58
+ "gulp-rename": "^2.0.0"
55
59
  }
56
60
  }
@@ -43,7 +43,10 @@ export function syncModuleTS(source = 'src/Module', dest = 'www/assets/js/view/'
43
43
  {
44
44
  tsconfig: path.resolve('tsconfig.json'),
45
45
  rename: (path) => {
46
- path.dirname = path.dirname.replace(/\/assets/, '').toLowerCase();
46
+
47
+ path.dirname = path.dirname.replace(/\\/g, '/')
48
+ .replace(/\/assets/, '')
49
+ .toLowerCase();
47
50
  },
48
51
  ...options
49
52
  }
@@ -1,2 +1,2 @@
1
- declare module '*.jpg';
2
- declare module '*.svg';
1
+ declare module '*.jpg';
2
+ declare module '*.svg';
@@ -1,9 +1,9 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- resolve: {
5
- alias: {
6
- '@': path.resolve(__dirname),
7
- }
8
- }
9
- };
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ resolve: {
5
+ alias: {
6
+ '@': path.resolve(__dirname),
7
+ }
8
+ }
9
+ };
package/src/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /**
2
- * Part of funclass project.
3
- *
4
- * @copyright Copyright (C) 2021 LYRASOFT.
5
- * @license __LICENSE__
6
- */
7
-
8
- export * from './asset-sync.mjs';
9
- export * from './install-vendors.mjs';
1
+ /**
2
+ * Part of funclass project.
3
+ *
4
+ * @copyright Copyright (C) 2021 LYRASOFT.
5
+ * @license __LICENSE__
6
+ */
7
+
8
+ export * from './asset-sync.mjs';
9
+ export * from './install-vendors.mjs';
@@ -1,74 +1,74 @@
1
- import { findModules } from '@windwalker-io/core/src/index.mjs';
2
- import { dest as toDest, src, ts } from '@windwalker-io/fusion';
3
- import { postStream, prepareStream } from '@windwalker-io/fusion/src/lifecycles.js';
4
- import { extractDest } from '@windwalker-io/fusion/src/utilities/utilities.js';
5
- import { existsSync } from 'fs';
6
- import rename from 'gulp-rename';
7
- import path from 'path';
8
-
9
- /**
10
- * @deprecated
11
- */
12
- export function jsSync(source = 'src/Module', dest, options = {}) {
13
- const tsOptions = options.ts || {};
14
-
15
- if (!tsOptions.tsconfig) {
16
- tsOptions.tsconfig = path.resolve('tsconfig.json');
17
-
18
- if (!existsSync(tsOptions.tsconfig)) {
19
- tsOptions.tsconfig = path.resolve('node_modules/@windwalker-io/unicorn/tsconfig.js.json');
20
- }
21
- }
22
-
23
- const sourceList = [];
24
-
25
- sourceList.push(...findModules('**/assets/*.{js,mjs}'));
26
- sourceList.push(source + '**/assets/*.{js,mjs}');
27
-
28
- let stream = prepareStream(src(sourceList));
29
-
30
- stream = stream.pipe(rename((path) => {
31
- path.dirname = path.dirname.replace(/assets$/, '').toLowerCase();
32
- }));
33
-
34
- const jsDest = extractDest(dest);
35
-
36
- //
37
- // // if (dest.merge) {
38
- // // stream = stream.pipe(rename(path.basename(dest.file)));
39
- // // }
40
- //
41
- stream = stream.pipe(toDest(jsDest.path).on('error', e => console.error(e)));
42
-
43
- return Promise.all([
44
- new Promise((resolve) => {
45
- postStream(stream).on('end', (event) => {
46
- const data = {
47
- event,
48
- src,
49
- dest: jsDest,
50
- stream
51
- };
52
-
53
- resolve(data);
54
- });
55
- }),
56
- // Legacy mode
57
- ts(
58
- [
59
- ...findModules('**/assets/*.ts'),
60
- 'node_modules/@windwalker-io/unicorn/src/types/*.d.ts',
61
- `${source}/**/*.ts`,
62
- ],
63
- dest,
64
- {
65
- rename: (path) => {
66
- path.dirname = path.dirname.replace(/assets$/, '').toLowerCase();
67
- },
68
- ...tsOptions
69
- }
70
- )
71
- ]).then((v) => {
72
- return v[0];
73
- });
74
- }
1
+ import { findModules } from '@windwalker-io/core/src/index.mjs';
2
+ import { dest as toDest, src, ts } from '@windwalker-io/fusion';
3
+ import { postStream, prepareStream } from '@windwalker-io/fusion/src/lifecycles.js';
4
+ import { extractDest } from '@windwalker-io/fusion/src/utilities/utilities.js';
5
+ import { existsSync } from 'fs';
6
+ import rename from 'gulp-rename';
7
+ import path from 'path';
8
+
9
+ /**
10
+ * @deprecated
11
+ */
12
+ export function jsSync(source = 'src/Module', dest, options = {}) {
13
+ const tsOptions = options.ts || {};
14
+
15
+ if (!tsOptions.tsconfig) {
16
+ tsOptions.tsconfig = path.resolve('tsconfig.json');
17
+
18
+ if (!existsSync(tsOptions.tsconfig)) {
19
+ tsOptions.tsconfig = path.resolve('node_modules/@windwalker-io/unicorn/tsconfig.js.json');
20
+ }
21
+ }
22
+
23
+ const sourceList = [];
24
+
25
+ sourceList.push(...findModules('**/assets/*.{js,mjs}'));
26
+ sourceList.push(source + '**/assets/*.{js,mjs}');
27
+
28
+ let stream = prepareStream(src(sourceList));
29
+
30
+ stream = stream.pipe(rename((path) => {
31
+ path.dirname = path.dirname.replace(/assets$/, '').toLowerCase();
32
+ }));
33
+
34
+ const jsDest = extractDest(dest);
35
+
36
+ //
37
+ // // if (dest.merge) {
38
+ // // stream = stream.pipe(rename(path.basename(dest.file)));
39
+ // // }
40
+ //
41
+ stream = stream.pipe(toDest(jsDest.path).on('error', e => console.error(e)));
42
+
43
+ return Promise.all([
44
+ new Promise((resolve) => {
45
+ postStream(stream).on('end', (event) => {
46
+ const data = {
47
+ event,
48
+ src,
49
+ dest: jsDest,
50
+ stream
51
+ };
52
+
53
+ resolve(data);
54
+ });
55
+ }),
56
+ // Legacy mode
57
+ ts(
58
+ [
59
+ ...findModules('**/assets/*.ts'),
60
+ 'node_modules/@windwalker-io/unicorn/src/types/*.d.ts',
61
+ `${source}/**/*.ts`,
62
+ ],
63
+ dest,
64
+ {
65
+ rename: (path) => {
66
+ path.dirname = path.dirname.replace(/assets$/, '').toLowerCase();
67
+ },
68
+ ...tsOptions
69
+ }
70
+ )
71
+ ]).then((v) => {
72
+ return v[0];
73
+ });
74
+ }