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.
- package/{CHANGELOG.txt → CHANGELOG.md} +0 -0
- package/{LICENSE.txt → LICENSE.md} +0 -0
- package/SECURITY.md +3 -3
- package/{public/assets → assets}/images/banner.png +0 -0
- package/{public/assets → assets}/logos/logo.svg +0 -0
- package/{public/documents → documents}/iDB/list.html +2 -2
- package/{public/documents → documents}/iDB/toState.html +0 -0
- package/index.js +2 -12
- package/index.js.LICENSE.txt +31 -0
- package/package.json +27 -35
- package/.editorconfig +0 -13
- package/.env +0 -3
- package/.eslintignore +0 -13
- package/.eslintrc.json +0 -87
- package/.eslintrc.legacy.json +0 -91
- package/.gitattributes +0 -2
- package/.hintrc +0 -11
- package/.jsbeautifyrc +0 -25
- package/.jshintrc +0 -16
- package/.prettierignore +0 -2
- package/.prettierrc.json +0 -8
- package/.stylelintignore +0 -0
- package/.stylelintrc.json +0 -468
- package/.vscode/launch.json +0 -34
- package/.vscode/settings.json +0 -58
- package/3party/shortcut.js +0 -224
- package/__mocks__/fileMock.js +0 -3
- package/__mocks__/styleMock.js +0 -3
- package/babel.config.js +0 -30
- package/backup.bat +0 -43
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -0
- package/data/list.json +0 -19
- package/dist/LICENSE.txt +0 -209
- package/dist/README.md +0 -79
- package/elements/button/component.js +0 -0
- package/elements/code/component.js +0 -0
- package/elements/costants.tsx +0 -13
- package/elements/fieldset/component.js +0 -0
- package/elements/input/checkbox/component.js +0 -0
- package/elements/input/date/component.js +0 -27
- package/elements/input/number/component.js +0 -0
- package/elements/input/radio/component.js +0 -0
- package/elements/input/search/component.js +0 -0
- package/elements/input/select/component.js +0 -0
- package/elements/input/slider/component.js +0 -0
- package/elements/input/switch/component.js +0 -0
- package/elements/tab/component.js +0 -0
- package/elements/table/component.js +0 -0
- package/elements/tags.less +0 -0
- package/elements/textarea/component.js +0 -0
- package/elements/x-foo/define.js +0 -33
- package/elements/x-foo/namespace.d.ts +0 -7
- package/init.js +0 -87
- package/jest.config.js +0 -81
- package/node/createTag.js +0 -7
- package/node/gitDeploy.js +0 -7
- package/node/goLive.js +0 -7
- package/scripts/.OLD/import.js +0 -48
- package/scripts/.OLD/onBeforeUnLoad.js +0 -120
- package/scripts/.OLD/purge.js +0 -53
- package/scripts/.OLD/string.js +0 -27
- package/scripts/anchor.js +0 -73
- package/scripts/array.js +0 -203
- package/scripts/avoid.js +0 -48
- package/scripts/browser.js +0 -100
- package/scripts/color.js +0 -121
- package/scripts/console.js +0 -97
- package/scripts/console.mapped.js +0 -160
- package/scripts/coods.js +0 -57
- package/scripts/cookie.js +0 -105
- package/scripts/date.js +0 -179
- package/scripts/disable.js +0 -91
- package/scripts/errors.js +0 -3
- package/scripts/event.js +0 -57
- package/scripts/font.js +0 -60
- package/scripts/form.js +0 -211
- package/scripts/format.js +0 -71
- package/scripts/function.js +0 -55
- package/scripts/iDB.js +0 -688
- package/scripts/json.js +0 -84
- package/scripts/load.js +0 -112
- package/scripts/math.js +0 -100
- package/scripts/obj.js +0 -118
- package/scripts/path.js +0 -101
- package/scripts/promise.js +0 -56
- package/scripts/screen.js +0 -82
- package/scripts/scrollbar.js +0 -293
- package/scripts/shortcut.js +0 -83
- package/scripts/socket.js +0 -184
- package/scripts/state.js +0 -87
- package/scripts/storage.js +0 -93
- package/scripts/store.js +0 -115
- package/scripts/svg.js +0 -380
- package/scripts/text.js +0 -116
- package/scripts/time.js +0 -43
- package/scripts/timer.js +0 -54
- package/scripts/tool.js +0 -73
- package/scripts/trigger.js +0 -57
- package/scripts/type.js +0 -76
- package/scripts/ui.js +0 -41
- package/scripts/window.js +0 -244
- package/styles/console.less +0 -95
- package/tests/setupJest.tsx +0 -4
- package/typings/.OLD/cordova.d.ts +0 -12
- package/typings/.OLD/layerpro.d.ts +0 -20
- package/typings/.OLD/menupro.d.ts +0 -20
- package/typings/dphelper.d.ts +0 -26
- package/typings/image.d.ts +0 -5
- package/typings/styles.d.ts +0 -23
- package/webpack.config.js +0 -249
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dphelper",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Developer Tools",
|
|
3
|
+
"version": "0.2.91",
|
|
4
|
+
"description": "Developer Tools by Dario Passariello",
|
|
5
5
|
"deprecated": false,
|
|
6
6
|
"appCode": "dphelper",
|
|
7
7
|
"appCodeRelease": "dphelper",
|
|
@@ -31,12 +31,13 @@
|
|
|
31
31
|
"git-tag": "cd node && node createTag",
|
|
32
32
|
"backup": "backup.bat",
|
|
33
33
|
"goLive": "cd node && node goLive",
|
|
34
|
-
"test_jest": "jest --watchAll --coverage --testEnvironment
|
|
34
|
+
"test_jest": "jest --watchAll --coverage --testEnvironment",
|
|
35
35
|
"test_lint": "eslint --fix"
|
|
36
36
|
},
|
|
37
37
|
"eslintConfig": {
|
|
38
38
|
"globals": {
|
|
39
|
-
"window": true
|
|
39
|
+
"window": true,
|
|
40
|
+
"dphelper": true
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
"author": {
|
|
@@ -87,52 +88,43 @@
|
|
|
87
88
|
"url": "https://github.com/passariello/dpHelper/issues"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@babel/plugin-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"jest": "27.5.1",
|
|
95
|
-
"less-loader": "11.0.0",
|
|
96
|
-
"sass-loader": "13.0.0",
|
|
97
|
-
"style-loader": "3.3.1",
|
|
98
|
-
"webpack-cli": "4.9.2"
|
|
99
|
-
},
|
|
100
|
-
"dependencies": {
|
|
101
|
-
"@babel/plugin-proposal-class-properties": "7.17.12",
|
|
102
|
-
"@babel/preset-env": "7.18.0",
|
|
103
|
-
"@babel/preset-react": "7.17.12",
|
|
91
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
92
|
+
"@babel/plugin-transform-runtime": "7.18.9",
|
|
93
|
+
"@babel/preset-env": "7.18.9",
|
|
94
|
+
"@babel/preset-react": "7.18.6",
|
|
104
95
|
"@babel/preset-typescript": "7.18.6",
|
|
105
|
-
"@testing-library/jest-dom": "^5.16.
|
|
106
|
-
"@testing-library/user-event": "^14.
|
|
96
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
97
|
+
"@testing-library/user-event": "^14.3.0",
|
|
107
98
|
"@types/enzyme-adapter-react-16": "1.0.6",
|
|
108
99
|
"babel-loader": "8.2.5",
|
|
109
100
|
"child_process": "1.0.2",
|
|
110
|
-
"classnames": "2.3.1",
|
|
111
101
|
"cli-confirm": "1.0.1",
|
|
112
102
|
"compression-webpack-plugin": "10.0.0",
|
|
113
|
-
"concurrently": "7.2.2",
|
|
114
103
|
"copy-webpack-plugin": "11.0.0",
|
|
115
|
-
"css": "3.0.0",
|
|
116
104
|
"dotenv": "16.0.1",
|
|
117
105
|
"enzyme": "3.11.0",
|
|
118
|
-
"enzyme-adapter-react-16": "1.15.6",
|
|
119
106
|
"enzyme-to-json": "3.6.2",
|
|
107
|
+
"eslint": "8.20.0",
|
|
108
|
+
"file-loader": "6.2.0",
|
|
120
109
|
"fs": "0.0.1-security",
|
|
121
110
|
"html-webpack-plugin": "5.5.0",
|
|
111
|
+
"jest": "28.1.3",
|
|
112
|
+
"lint": "1.1.2",
|
|
113
|
+
"progress-bar-webpack-plugin": "2.1.0",
|
|
114
|
+
"style-loader": "3.3.1",
|
|
115
|
+
"ts-jest": "28.0.7",
|
|
116
|
+
"webpack": "5.73.0",
|
|
117
|
+
"webpack-cli": "4.10.0"
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"classnames": "2.3.1",
|
|
121
|
+
"concurrently": "7.3.0",
|
|
122
|
+
"css": "3.0.0",
|
|
122
123
|
"jquery": "3.6.0",
|
|
123
124
|
"jsdom-worker": "0.2.1",
|
|
124
|
-
"jshint": "^2.13.4",
|
|
125
|
-
"less": "4.1.2",
|
|
126
125
|
"moment": "2.29.4",
|
|
127
126
|
"path": "0.12.7",
|
|
128
|
-
"
|
|
129
|
-
"react": "18.
|
|
130
|
-
"react-dom": "18.1.0",
|
|
131
|
-
"require": "2.4.20",
|
|
132
|
-
"sass": "1.53.0",
|
|
133
|
-
"socket.io-client": "4.5.1",
|
|
134
|
-
"ts-jest": "27.1.4",
|
|
135
|
-
"tslint": "6.1.3",
|
|
136
|
-
"webpack": "5.72.1"
|
|
127
|
+
"react": "18.2.0",
|
|
128
|
+
"react-dom": "18.2.0"
|
|
137
129
|
}
|
|
138
130
|
}
|
package/.editorconfig
DELETED
package/.env
DELETED
package/.eslintignore
DELETED
package/.eslintrc.json
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
|
|
4
|
-
"env": {
|
|
5
|
-
"es2021": true,
|
|
6
|
-
"browser": true,
|
|
7
|
-
"node": true,
|
|
8
|
-
"jest": true
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
"parser": "@typescript-eslint/parser",
|
|
12
|
-
|
|
13
|
-
"parserOptions": {
|
|
14
|
-
"ecmaVersion": "latest",
|
|
15
|
-
"sourceType": "module",
|
|
16
|
-
"parser": "babel-eslint",
|
|
17
|
-
"ecmaFeatures": {
|
|
18
|
-
"modules": true,
|
|
19
|
-
"impliedStrict": true,
|
|
20
|
-
"jsx": true,
|
|
21
|
-
"experimentalObjectRestSpread": true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
"globals": {
|
|
26
|
-
"jQuery": true,
|
|
27
|
-
"$": true,
|
|
28
|
-
"dphelper": true,
|
|
29
|
-
"menupro": true,
|
|
30
|
-
"layerpro": true,
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
"settings": {
|
|
34
|
-
"react": {
|
|
35
|
-
"version": "detect"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
"plugins": [
|
|
40
|
-
"react",
|
|
41
|
-
"@typescript-eslint",
|
|
42
|
-
"import",
|
|
43
|
-
"node",
|
|
44
|
-
"promise",
|
|
45
|
-
"jest"
|
|
46
|
-
],
|
|
47
|
-
|
|
48
|
-
"extends": [
|
|
49
|
-
"eslint:recommended",
|
|
50
|
-
"plugin:react/recommended",
|
|
51
|
-
"plugin:@typescript-eslint/recommended",
|
|
52
|
-
"plugin:node/recommended",
|
|
53
|
-
"plugin:promise/recommended",
|
|
54
|
-
"plugin:jest/recommended"
|
|
55
|
-
],
|
|
56
|
-
|
|
57
|
-
"rules": {
|
|
58
|
-
"allow": [
|
|
59
|
-
"arrowFunctions",
|
|
60
|
-
"generatorFunctions",
|
|
61
|
-
"methods",
|
|
62
|
-
"generatorMethods",
|
|
63
|
-
"getters",
|
|
64
|
-
"setters",
|
|
65
|
-
"asyncFunctions",
|
|
66
|
-
"asyncMethods"
|
|
67
|
-
],
|
|
68
|
-
"no-empty": 0,
|
|
69
|
-
"no-console": 0,
|
|
70
|
-
"no-process-exit": 0,
|
|
71
|
-
"no-underscore-dangle":["off"],
|
|
72
|
-
"no-plusplus":["warn",{"allowForLoopAfterthoughts": true}],
|
|
73
|
-
"no-param-reassign":["off"],
|
|
74
|
-
"no-prototype-builtins":["off"],
|
|
75
|
-
"no-unused-vars":["warn"],
|
|
76
|
-
"unicorn/no-process-exit": 0,
|
|
77
|
-
"comma-dangle": 0,
|
|
78
|
-
"semi": ["error","never"],
|
|
79
|
-
"consistent-return":["off"],
|
|
80
|
-
"max-nested-callbacks":["warn",3],
|
|
81
|
-
"import/no-mutable-exports":["warn"],
|
|
82
|
-
"valid-jsdoc":["warn",{"prefer": { "returns": "return","property": "prop"},"requireReturn": false}],
|
|
83
|
-
"operator-linebreak":["error","after",{"overrides": {"?": "ignore",":": "ignore"}}]
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
}
|
package/.eslintrc.legacy.json
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "eslint:recommended",
|
|
3
|
-
"root": true,
|
|
4
|
-
"env": {
|
|
5
|
-
"browser": true
|
|
6
|
-
},
|
|
7
|
-
"globals": {
|
|
8
|
-
"domready": true,
|
|
9
|
-
"jQuery": true,
|
|
10
|
-
"_": true,
|
|
11
|
-
"matchMedia": true,
|
|
12
|
-
"Backbone": true,
|
|
13
|
-
"Modernizr": true,
|
|
14
|
-
"CKEDITOR": true
|
|
15
|
-
},
|
|
16
|
-
"rules": {
|
|
17
|
-
"array-bracket-spacing": ["error", "never"],
|
|
18
|
-
"block-scoped-var": "error",
|
|
19
|
-
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
|
|
20
|
-
"comma-dangle": ["error", "never"],
|
|
21
|
-
"comma-spacing": "error",
|
|
22
|
-
"comma-style": ["error", "last"],
|
|
23
|
-
"computed-property-spacing": ["error", "never"],
|
|
24
|
-
"curly": ["error", "all"],
|
|
25
|
-
"eol-last": "error",
|
|
26
|
-
"eqeqeq": ["error", "smart"],
|
|
27
|
-
"guard-for-in": "error",
|
|
28
|
-
"indent": ["error", 2, {"SwitchCase": 1}],
|
|
29
|
-
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
|
|
30
|
-
"keyword-spacing": ["error", {"before": true, "after": true}],
|
|
31
|
-
"linebreak-style": ["error", "unix"],
|
|
32
|
-
"lines-around-comment": ["error", {"beforeBlockComment": true, "afterBlockComment": false}],
|
|
33
|
-
"new-parens": "error",
|
|
34
|
-
"no-array-constructor": "error",
|
|
35
|
-
"no-caller": "error",
|
|
36
|
-
"no-catch-shadow": "error",
|
|
37
|
-
"no-eval": "error",
|
|
38
|
-
"no-extend-native": "error",
|
|
39
|
-
"no-extra-bind": "error",
|
|
40
|
-
"no-extra-parens": ["error", "functions"],
|
|
41
|
-
"no-implied-eval": "error",
|
|
42
|
-
"no-iterator": "error",
|
|
43
|
-
"no-label-var": "error",
|
|
44
|
-
"no-labels": "error",
|
|
45
|
-
"no-lone-blocks": "error",
|
|
46
|
-
"no-loop-func": "error",
|
|
47
|
-
"no-multi-spaces": "error",
|
|
48
|
-
"no-multi-str": "error",
|
|
49
|
-
"no-native-reassign": "error",
|
|
50
|
-
"no-nested-ternary": "error",
|
|
51
|
-
"no-new-func": "error",
|
|
52
|
-
"no-new-object": "error",
|
|
53
|
-
"no-new-wrappers": "error",
|
|
54
|
-
"no-octal-escape": "error",
|
|
55
|
-
"no-process-exit": "error",
|
|
56
|
-
"no-proto": "error",
|
|
57
|
-
"no-return-assign": "error",
|
|
58
|
-
"no-script-url": "error",
|
|
59
|
-
"no-sequences": "error",
|
|
60
|
-
"no-shadow-restricted-names": "error",
|
|
61
|
-
"no-spaced-func": "error",
|
|
62
|
-
"no-trailing-spaces": "error",
|
|
63
|
-
"no-undef-init": "error",
|
|
64
|
-
"no-undefined": "error",
|
|
65
|
-
"no-unused-expressions": "error",
|
|
66
|
-
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
|
|
67
|
-
"no-with": "error",
|
|
68
|
-
"object-curly-spacing": ["error", "never"],
|
|
69
|
-
"one-var": ["error", "never"],
|
|
70
|
-
"quote-props": ["error", "consistent-as-needed"],
|
|
71
|
-
"quotes": ["error", "single", "avoid-escape"],
|
|
72
|
-
"semi": ["error", "always"],
|
|
73
|
-
"semi-spacing": ["error", {"before": false, "after": true}],
|
|
74
|
-
"space-before-blocks": ["error", "always"],
|
|
75
|
-
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
|
|
76
|
-
"space-in-parens": ["error", "never"],
|
|
77
|
-
"space-infix-ops": "error",
|
|
78
|
-
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
|
|
79
|
-
"spaced-comment": ["error", "always"],
|
|
80
|
-
"strict": ["error", "function"],
|
|
81
|
-
"yoda": ["error", "never"],
|
|
82
|
-
"max-nested-callbacks": ["warn", 3],
|
|
83
|
-
"valid-jsdoc": ["warn", {
|
|
84
|
-
"prefer": {
|
|
85
|
-
"returns": "return",
|
|
86
|
-
"property": "prop"
|
|
87
|
-
},
|
|
88
|
-
"requireReturn": false
|
|
89
|
-
}]
|
|
90
|
-
}
|
|
91
|
-
}
|
package/.gitattributes
DELETED
package/.hintrc
DELETED
package/.jsbeautifyrc
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"js":
|
|
3
|
-
{
|
|
4
|
-
"allowed_file_extensions": ["js", "jsx", "ts", "tsx", "json", "jshintrc", "jsbeautifyrc"],
|
|
5
|
-
"brace_style": "collapse-preserve-inline",
|
|
6
|
-
"break_chained_methods": false,
|
|
7
|
-
"e4x": false,
|
|
8
|
-
"end_with_newline": true,
|
|
9
|
-
"indent_char": " ",
|
|
10
|
-
"indent_level": 0,
|
|
11
|
-
"indent_size": 2,
|
|
12
|
-
"indent_with_tabs": false,
|
|
13
|
-
"jslint_happy": true,
|
|
14
|
-
"keep_array_indentation": false,
|
|
15
|
-
"keep_function_indentation": false,
|
|
16
|
-
"max_preserve_newlines": 2,
|
|
17
|
-
"preserve_newlines": true,
|
|
18
|
-
"space_after_anon_function": false,
|
|
19
|
-
"space_before_conditional": true,
|
|
20
|
-
"space_in_empty_paren": false,
|
|
21
|
-
"space_in_paren": false,
|
|
22
|
-
"unescape_strings": false,
|
|
23
|
-
"wrap_line_length": 0
|
|
24
|
-
}
|
|
25
|
-
}
|
package/.jshintrc
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"esversion": 2021,
|
|
3
|
-
"sub": true,
|
|
4
|
-
"asi": false,
|
|
5
|
-
"esnext": false,
|
|
6
|
-
"moz": true,
|
|
7
|
-
"browser": true,
|
|
8
|
-
"boss": true,
|
|
9
|
-
"node": true,
|
|
10
|
-
"validthis": true,
|
|
11
|
-
"globals": {
|
|
12
|
-
"EventEmitter": true,
|
|
13
|
-
"Promise": true,
|
|
14
|
-
"document": true
|
|
15
|
-
}
|
|
16
|
-
}
|
package/.prettierignore
DELETED
package/.prettierrc.json
DELETED
package/.stylelintignore
DELETED
|
File without changes
|