layerpro 0.0.64 → 0.0.68

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.
Files changed (67) hide show
  1. package/{dist/LICENSE.txt → LICENSE.txt} +0 -0
  2. package/{dist/README.md → README.md} +0 -0
  3. package/index.js +2 -7
  4. package/package.json +142 -138
  5. package/.editorconfig +0 -13
  6. package/.env +0 -3
  7. package/.eslintignore +0 -12
  8. package/.eslintrc.json +0 -110
  9. package/.gitattributes +0 -2
  10. package/.github/FUNDING.yml +0 -12
  11. package/.github/dependabot.yml +0 -12
  12. package/.jsbeautifyrc +0 -26
  13. package/.prettierignore +0 -2
  14. package/.prettierrc +0 -7
  15. package/.vscode/launch.json +0 -22
  16. package/.vscode/settings.json +0 -84
  17. package/.vscodeignore +0 -28
  18. package/__mocks__/fileMock.js +0 -3
  19. package/__mocks__/styleMock.js +0 -3
  20. package/babel.config.js +0 -34
  21. package/backup.bat +0 -43
  22. package/coverage/coverage-final.json +0 -1
  23. package/coverage/lcov-report/base.css +0 -224
  24. package/coverage/lcov-report/block-navigation.js +0 -87
  25. package/coverage/lcov-report/favicon.png +0 -0
  26. package/coverage/lcov-report/index.html +0 -101
  27. package/coverage/lcov-report/prettify.css +0 -1
  28. package/coverage/lcov-report/prettify.js +0 -2
  29. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  30. package/coverage/lcov-report/sorter.js +0 -196
  31. package/coverage/lcov.info +0 -0
  32. package/documents/LICENSE.txt +0 -21
  33. package/documents/README.md +0 -7
  34. package/documents/SECURITY.md +0 -3
  35. package/init.js +0 -33
  36. package/jest.config.js +0 -61
  37. package/jsconfig.json +0 -10
  38. package/node/createTag.js +0 -7
  39. package/node/gitDeploy.js +0 -7
  40. package/node/goLive.js +0 -7
  41. package/scripts/genLayer.jsx +0 -234
  42. package/scripts/message.jsx +0 -280
  43. package/scripts/mouseCoords.jsx +0 -45
  44. package/scripts/popup.jsx +0 -612
  45. package/scripts/purge.jsx +0 -29
  46. package/scripts/smoothScroll.js +0 -69
  47. package/scripts/window.js +0 -28
  48. package/styles/dock.scss +0 -100
  49. package/styles/general.scss +0 -241
  50. package/styles/icons.scss +0 -33
  51. package/styles/input.scss +0 -35
  52. package/styles/messages.scss +0 -76
  53. package/styles/resize.scss +0 -99
  54. package/styles/root.scss +0 -14
  55. package/styles/scrollbar.scss +0 -24
  56. package/tests/setupJest.tsx +0 -4
  57. package/tsconfig.json +0 -69
  58. package/typings/cordova.d.ts +0 -12
  59. package/typings/dphelper.d.ts +0 -29
  60. package/typings/image.d.ts +0 -9
  61. package/typings/index.d.ts +0 -7
  62. package/typings/layerpro.d.ts +0 -23
  63. package/typings/menupro.d.ts +0 -18
  64. package/typings/namespace.d.ts +0 -7
  65. package/typings/styles.d.ts +0 -27
  66. package/typings/vscode.d.ts +0 -14724
  67. package/webpack.config.js +0 -239
package/webpack.config.js DELETED
@@ -1,239 +0,0 @@
1
- /*
2
- Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
- License: CC BY-NC-ND 4.0
4
- */
5
-
6
- const path = require("node:path")
7
- const webpack = require("webpack")
8
- const dotenv = require('dotenv').config({ path: __dirname + '/.env' })
9
- const TerserPlugin = require("terser-webpack-plugin")
10
- const CopyPlugin = require("copy-webpack-plugin")
11
-
12
- let pjson = require('./package.json')
13
-
14
- module.exports = (environment, argv) => {
15
-
16
- console.log(
17
- {
18
- version: pjson.version,
19
- codeName: pjson.appCode,
20
- relaseCodeName: pjson.appCodeRelease,
21
- relaseType: pjson.appType,
22
- appName: pjson.appName,
23
- root: pjson.appFolder,
24
- folderAPI: pjson.appAPI,
25
- mode: argv.mode === 'development' ? 'development' : 'production',
26
- }
27
- )
28
-
29
- console.debug("\n\tYour API came from: " + JSON.stringify(pjson.apiDev) + "\n\n")
30
-
31
- return {
32
-
33
- mode: argv.mode === 'development' ? 'development' : 'production',
34
- devtool: argv.mode === 'development' ? 'eval-source-map' : 'cheap-module-source-map',
35
- stats: argv.mode === 'development' ? 'errors-warnings' : '',
36
- cache: argv.mode === 'development' ? false : true,
37
- target: 'web',
38
-
39
- devServer: {
40
-
41
- static: {
42
- directory: path.join(__dirname, 'dist'),
43
- publicPath: '/',
44
- },
45
-
46
- port: pjson.appPort,
47
- compress: argv.mode === 'development' ? false : true,
48
- magicHtml: argv.mode === 'development' ? true : false,
49
- liveReload: argv.mode === 'development' ? true : false,
50
- hot: argv.mode === 'development' ? true : false,
51
- historyApiFallback: true,
52
- open: false,
53
-
54
- headers: {
55
- 'Access-Control-Allow-Origin': '*',
56
- 'Access-Control-Allow-Credentials': true,
57
- 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
58
- 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
59
- 'Accept-Encoding': '*',
60
- 'Crossorigin': 'anonymous',
61
- 'Author': 'Dario Passariello',
62
- },
63
-
64
- webSocketServer: 'ws',
65
- client: {
66
- overlay: argv.mode === 'development' ? true : false,
67
- webSocketTransport: 'ws',
68
- //progress: true,
69
- //logging: 'info',
70
- },
71
-
72
- },
73
-
74
- entry: {
75
- index: ['./index.js']
76
- },
77
-
78
- output: {
79
- filename: '[name].js?t=' + Date.now(),
80
- path: path.resolve(__dirname, 'dist'),
81
- clean: true,
82
- publicPath: '/'
83
- },
84
-
85
- performance: {
86
- hints: argv.mode === 'development' ? 'error' : false,
87
- maxEntrypointSize: 51_200_000,
88
- maxAssetSize: 51_200_000
89
- },
90
-
91
- optimization: {
92
- minimize: argv.mode === 'development' ? false : true,
93
- minimizer: [new TerserPlugin({
94
- exclude: /static/,
95
- })]
96
- },
97
-
98
- resolve: {
99
-
100
- fallback: {
101
- "fs": false
102
- },
103
-
104
- alias: {
105
- Assets: path.resolve(__dirname, 'public/assets'),
106
- Components: path.resolve(__dirname, 'src/components'),
107
- Shared: path.resolve(__dirname, 'src/shared'),
108
- App: path.resolve(__dirname, 'src/app'),
109
- Config: path.resolve(__dirname, 'src/config'),
110
- Data: path.resolve(__dirname, 'src/data'),
111
- Pages: path.resolve(__dirname, 'src/pages'),
112
- Scripts: path.resolve(__dirname, 'src/scripts'),
113
- Styles: path.resolve(__dirname, 'src/styles'),
114
- Typings: path.resolve(__dirname, 'src/typings'),
115
- Utils: path.resolve(__dirname, 'src/utils'),
116
- Validators: path.resolve(__dirname, 'src/validators'),
117
- Layout: path.resolve(__dirname, 'src/layout'),
118
- Root: path.resolve(__dirname, 'src/')
119
- },
120
-
121
- modules: [path.resolve('node_modules')],
122
- extensions: [".ts", ".tsx", ".js", ".jsx", ".less", ".css", ".sass", ".scss"],
123
-
124
- },
125
-
126
- module: {
127
-
128
- rules: [
129
- // we use babel-loader to load our jsx and tsx files
130
- {
131
- test: /\.(ts|tsx|js|jsx)$/,
132
- loader: require.resolve('babel-loader'),
133
- exclude: [/node_modules/, /.OLD/],
134
- options: {
135
- //plugins: ['react-hot-loader/babel'],
136
- cacheDirectory: argv.mode === 'development' ? true : false,
137
- },
138
- },
139
-
140
- // plain file loader
141
- {
142
- test: /\.(txt)$/i, //
143
- loader: 'file-loader',
144
- exclude: [/.OLD/]
145
- },
146
-
147
- // CSS, SCSS
148
- {
149
- test: /\.(s?(c|a)ss)(\?v=\d+\.\d+\.\d+)?$/i,
150
- use: [
151
- {
152
- loader: "style-loader"
153
- }, {
154
- loader: 'css-loader',
155
- options: {
156
- importLoaders: 1,
157
- modules: false,
158
- sourceMap: false,
159
- url: false
160
- },
161
- }, {
162
- loader: "sass-loader"
163
- },
164
- ],
165
- exclude: [/.OLD/]
166
- },
167
-
168
- // css-loader and less-loader
169
- {
170
- test: /\.(less)(\?v=\d+\.\d+\.\d+)?$/i,
171
- use: [
172
- {
173
- loader: "style-loader"
174
- }, {
175
- loader: "css-loader",
176
- options: {
177
- sourceMap: true,
178
- modules: true,
179
- url: false
180
- }
181
- }, {
182
- loader: "less-loader"
183
- },
184
- ],
185
- exclude: [/.OLD/]
186
- },
187
-
188
- // assets
189
- {
190
- test: /\.(a?png|jpe?g|gif|ico|bmp|webb|svg)(\?v=\d+\.\d+\.\d+)?$/i,
191
- type: 'asset/resource',
192
- exclude: [/node_modules/, /.OLD/],
193
- },
194
-
195
- // fonts
196
- {
197
- test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/i,
198
- type: 'asset/resource',
199
- exclude: [/node_modules/, /.OLD/],
200
- },
201
-
202
- ],
203
- },
204
-
205
- plugins: [
206
-
207
- //Environment
208
- new webpack.DefinePlugin({
209
- 'process.env.NODE_ENV': JSON.stringify(argv.mode),
210
- 'process.env': dotenv.parsed,
211
- 'process.env.debug': argv.mode === 'development' ? true : false
212
- }),
213
-
214
- new CopyPlugin({
215
- patterns: [
216
- {
217
- from: "./public",
218
- to: "./",
219
- noErrorOnMissing: true,
220
- globOptions: {
221
- gitignore: true
222
- },
223
- },
224
- { from: "./.github", to: "./.github" },
225
- //{ from: "./typings", to: "./" },
226
- { from: "./documents", to: "./" }
227
- ],
228
- options: {
229
- concurrency: 100,
230
- }
231
- })
232
-
233
- ]
234
-
235
- }
236
-
237
- }
238
-
239
-