@windwalker-io/core 4.1.9 → 4.1.11

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 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windwalker-io/core",
3
- "version": "4.1.9",
3
+ "version": "4.1.11",
4
4
  "type": "module",
5
5
  "description": "Windwalker Core JS package",
6
6
  "scripts": {
@@ -2,7 +2,7 @@
2
2
  import { babel, ts } from '@windwalker-io/fusion';
3
3
  import path from 'path';
4
4
  import { loadJson } from './utils.mjs';
5
- export * from './legacy/4.0/js-aync.mjs';
5
+ export * from './legacy/4.0/js-sync.mjs';
6
6
 
7
7
  export function syncModuleScripts(source = 'src/Module', dest = 'www/assets/js/view/', options = {}) {
8
8
  const jsOptions = options.js || {};
@@ -43,7 +43,7 @@ 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
+ path.dirname = path.dirname.replace(/\/assets/, '').toLowerCase();
47
47
  },
48
48
  ...options
49
49
  }
@@ -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';
@@ -72,20 +72,23 @@ export async function installVendors(npmVendors = [], legacyComposerVendors = []
72
72
 
73
73
  // Install local saved vendors
74
74
  const staticVendorDir = 'resources/assets/vendor/';
75
- const staticVendors = fs.readdirSync(staticVendorDir);
76
75
 
77
- for (const staticVendor of staticVendors) {
78
- if (staticVendor.startsWith('@')) {
79
- const subVendors = fs.readdirSync(staticVendorDir + staticVendor);
80
-
81
- for (const subVendor of subVendors) {
82
- const subVendorName = staticVendor + '/' + subVendor;
83
- console.log(`[${action} Local] resources/assets/vendor/${subVendorName}/ => ${root}/${subVendorName}/`);
84
- doInstall(staticVendorDir + subVendorName + '/', `${root}/${subVendorName}/`);
76
+ if (fs.existsSync(staticVendorDir)) {
77
+ const staticVendors = fs.readdirSync(staticVendorDir);
78
+
79
+ for (const staticVendor of staticVendors) {
80
+ if (staticVendor.startsWith('@')) {
81
+ const subVendors = fs.readdirSync(staticVendorDir + staticVendor);
82
+
83
+ for (const subVendor of subVendors) {
84
+ const subVendorName = staticVendor + '/' + subVendor;
85
+ console.log(`[${action} Local] resources/assets/vendor/${subVendorName}/ => ${root}/${subVendorName}/`);
86
+ doInstall(staticVendorDir + subVendorName + '/', `${root}/${subVendorName}/`);
87
+ }
88
+ } else {
89
+ console.log(`[${action} Local] resources/assets/vendor/${staticVendor}/ => ${root}/${staticVendor}/`);
90
+ doInstall(staticVendorDir + staticVendor, `${root}/${staticVendor}/`);
85
91
  }
86
- } else {
87
- console.log(`[${action} Local] resources/assets/vendor/${staticVendor}/ => ${root}/${staticVendor}/`);
88
- doInstall(staticVendorDir + staticVendor, `${root}/${staticVendor}/`);
89
92
  }
90
93
  }
91
94
  }
@@ -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
+ }