dphelper 0.2.89 → 0.2.91

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