dphelper 0.2.89 → 0.2.93

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 (121) hide show
  1. package/{LICENSE.txt → LICENSE.md} +0 -0
  2. package/README.md +6 -0
  3. package/index.js +2 -12
  4. package/package.json +130 -136
  5. package/.editorconfig +0 -13
  6. package/.env +0 -3
  7. package/.eslintignore +0 -13
  8. package/.eslintrc.json +0 -87
  9. package/.eslintrc.legacy.json +0 -91
  10. package/.gitattributes +0 -2
  11. package/.github/FUNDING.yml +0 -12
  12. package/.github/dependabot.yml +0 -12
  13. package/.hintrc +0 -11
  14. package/.jsbeautifyrc +0 -25
  15. package/.jshintrc +0 -16
  16. package/.prettierignore +0 -2
  17. package/.prettierrc.json +0 -8
  18. package/.stylelintignore +0 -0
  19. package/.stylelintrc.json +0 -468
  20. package/.vscode/launch.json +0 -34
  21. package/.vscode/settings.json +0 -58
  22. package/3party/shortcut.js +0 -224
  23. package/CHANGELOG.txt +0 -4
  24. package/SECURITY.md +0 -3
  25. package/__mocks__/fileMock.js +0 -3
  26. package/__mocks__/styleMock.js +0 -3
  27. package/babel.config.js +0 -30
  28. package/backup.bat +0 -43
  29. package/coverage/coverage-final.json +0 -1
  30. package/coverage/lcov-report/base.css +0 -224
  31. package/coverage/lcov-report/block-navigation.js +0 -87
  32. package/coverage/lcov-report/favicon.png +0 -0
  33. package/coverage/lcov-report/index.html +0 -101
  34. package/coverage/lcov-report/prettify.css +0 -1
  35. package/coverage/lcov-report/prettify.js +0 -2
  36. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  37. package/coverage/lcov-report/sorter.js +0 -196
  38. package/coverage/lcov.info +0 -0
  39. package/data/list.json +0 -19
  40. package/dist/LICENSE.txt +0 -209
  41. package/dist/README.md +0 -79
  42. package/elements/button/component.js +0 -0
  43. package/elements/code/component.js +0 -0
  44. package/elements/costants.tsx +0 -13
  45. package/elements/fieldset/component.js +0 -0
  46. package/elements/input/checkbox/component.js +0 -0
  47. package/elements/input/date/component.js +0 -27
  48. package/elements/input/number/component.js +0 -0
  49. package/elements/input/radio/component.js +0 -0
  50. package/elements/input/search/component.js +0 -0
  51. package/elements/input/select/component.js +0 -0
  52. package/elements/input/slider/component.js +0 -0
  53. package/elements/input/switch/component.js +0 -0
  54. package/elements/tab/component.js +0 -0
  55. package/elements/table/component.js +0 -0
  56. package/elements/tags.less +0 -0
  57. package/elements/textarea/component.js +0 -0
  58. package/elements/x-foo/define.js +0 -33
  59. package/elements/x-foo/namespace.d.ts +0 -7
  60. package/init.js +0 -87
  61. package/jest.config.js +0 -81
  62. package/node/createTag.js +0 -7
  63. package/node/gitDeploy.js +0 -7
  64. package/node/goLive.js +0 -7
  65. package/public/assets/images/banner.png +0 -0
  66. package/public/assets/logos/logo.svg +0 -64
  67. package/public/documents/iDB/list.html +0 -11
  68. package/public/documents/iDB/toState.html +0 -11
  69. package/scripts/.OLD/import.js +0 -48
  70. package/scripts/.OLD/onBeforeUnLoad.js +0 -120
  71. package/scripts/.OLD/purge.js +0 -53
  72. package/scripts/.OLD/string.js +0 -27
  73. package/scripts/anchor.js +0 -73
  74. package/scripts/array.js +0 -203
  75. package/scripts/avoid.js +0 -48
  76. package/scripts/browser.js +0 -100
  77. package/scripts/color.js +0 -121
  78. package/scripts/console.js +0 -97
  79. package/scripts/console.mapped.js +0 -160
  80. package/scripts/coods.js +0 -57
  81. package/scripts/cookie.js +0 -105
  82. package/scripts/date.js +0 -179
  83. package/scripts/disable.js +0 -91
  84. package/scripts/errors.js +0 -3
  85. package/scripts/event.js +0 -57
  86. package/scripts/font.js +0 -60
  87. package/scripts/form.js +0 -211
  88. package/scripts/format.js +0 -71
  89. package/scripts/function.js +0 -55
  90. package/scripts/iDB.js +0 -688
  91. package/scripts/json.js +0 -84
  92. package/scripts/load.js +0 -112
  93. package/scripts/math.js +0 -100
  94. package/scripts/obj.js +0 -118
  95. package/scripts/path.js +0 -101
  96. package/scripts/promise.js +0 -56
  97. package/scripts/screen.js +0 -82
  98. package/scripts/scrollbar.js +0 -293
  99. package/scripts/shortcut.js +0 -83
  100. package/scripts/socket.js +0 -184
  101. package/scripts/state.js +0 -87
  102. package/scripts/storage.js +0 -93
  103. package/scripts/store.js +0 -115
  104. package/scripts/svg.js +0 -380
  105. package/scripts/text.js +0 -116
  106. package/scripts/time.js +0 -43
  107. package/scripts/timer.js +0 -54
  108. package/scripts/tool.js +0 -73
  109. package/scripts/trigger.js +0 -57
  110. package/scripts/type.js +0 -76
  111. package/scripts/ui.js +0 -41
  112. package/scripts/window.js +0 -244
  113. package/styles/console.less +0 -95
  114. package/tests/setupJest.tsx +0 -4
  115. package/typings/.OLD/cordova.d.ts +0 -12
  116. package/typings/.OLD/layerpro.d.ts +0 -20
  117. package/typings/.OLD/menupro.d.ts +0 -20
  118. package/typings/dphelper.d.ts +0 -26
  119. package/typings/image.d.ts +0 -5
  120. package/typings/styles.d.ts +0 -23
  121. 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
-