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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dphelper",
3
- "version": "0.2.89",
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 jsdom",
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-transform-runtime": "7.18.0",
91
- "css-loader": "6.7.1",
92
- "eslint": "8.16.0",
93
- "file-loader": "6.2.0",
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.2",
106
- "@testing-library/user-event": "^14.0.0",
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
- "progress-bar-webpack-plugin": "2.1.0",
129
- "react": "18.1.0",
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
@@ -1,13 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- tab_width = 2
6
- indent_size = 2
7
- indent_style = space
8
- end_of_line = CRLF
9
- insert_final_newline = true
10
- trim_trailing_whitespace = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
package/.env DELETED
@@ -1,3 +0,0 @@
1
- # THIS FILE IS INTENTIONALLY BLANK
2
- # IF YOU WANT TO ADD SOME ENV PLEASE USE PACKAGE.JSON
3
- # YOU CAN USE THIS FILE IN CASE YOU NEED A CUSTOM ENV VAR
package/.eslintignore DELETED
@@ -1,13 +0,0 @@
1
- dist
2
- docs/
3
- *.d.ts
4
- packages/*/*/doc
5
- packages/*/*/index.ts
6
- packages/**/bad.js
7
- tmpl
8
- assets/vendor/**/*
9
- node_modules/**/*
10
- **/js_test_files/**/*
11
- *.js
12
- !*.es6.js
13
-
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
- }
@@ -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
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
package/.hintrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "connector": {
3
- "name": "connectorName"
4
- },
5
- "formatters": [],
6
- "parsers": [],
7
- "hints": {
8
- "no-inline-styles": "error"
9
- },
10
- "hintsTimeout": 120000
11
- }
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
@@ -1,2 +0,0 @@
1
- # Ignore all files:
2
- *.*
package/.prettierrc.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "trailingComma": "none",
3
- "prettier.trailingComma": "none",
4
- "tabWidth": 2,
5
- "semi": false,
6
- "singleQuote": true,
7
- "printWidth": 80
8
- }
package/.stylelintignore DELETED
File without changes