feffery_utils_components 0.0.5 → 0.0.6

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 (36) hide show
  1. package/.Rbuildignore +34 -0
  2. package/DESCRIPTION +1 -1
  3. package/NAMESPACE +1 -0
  4. package/Project.toml +1 -1
  5. package/{feffery_utils_components/FefferyContextMenu.py → build/lib/feffery_utils_components/FefferyCaptcha.py} +20 -8
  6. package/build/lib/feffery_utils_components/FefferyPasteImage.py +56 -0
  7. package/build/lib/feffery_utils_components/FefferySyntaxHighlighter.py +52 -0
  8. package/build/lib/feffery_utils_components/FefferyTopProgress.py +68 -0
  9. package/build/lib/feffery_utils_components/FefferyUtilsComponents.py +40 -0
  10. package/{feffery_utils_components/FefferyNprogress.py → build/lib/feffery_utils_components/FefferyWaterMark.py} +21 -9
  11. package/build/lib/feffery_utils_components/__init__.py +89 -0
  12. package/build/lib/feffery_utils_components/_imports_.py +13 -0
  13. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +4 -0
  14. package/build/lib/feffery_utils_components/metadata.json +578 -0
  15. package/build/lib/feffery_utils_components/package-info.json +79 -0
  16. package/feffery_utils_components/FefferyTopProgress.py +68 -0
  17. package/feffery_utils_components/_imports_.py +2 -0
  18. package/feffery_utils_components/feffery_utils_components.min.js +1 -1
  19. package/feffery_utils_components/feffery_utils_components.min.js.LICENSE.txt +3 -0
  20. package/feffery_utils_components/metadata.json +169 -0
  21. package/feffery_utils_components/package-info.json +3 -4
  22. package/git-operations.md +23 -0
  23. package/package.json +3 -2
  24. package/src/FefferyUtilsComponents.jl +4 -3
  25. package/src/jl/''_fefferytopprogress.jl +41 -0
  26. package/src/lib/components/FefferyTopProgress.react.js +180 -0
  27. package/src/lib/index.js +3 -1
  28. package/usage.py +42 -37
  29. package/feffery_utils_components/FefferyFefferySyntaxHighlighter.py +0 -46
  30. package/feffery_utils_components/__pycache__/FefferyCaptcha.cpython-37.pyc +0 -0
  31. package/feffery_utils_components/__pycache__/FefferyPasteImage.cpython-37.pyc +0 -0
  32. package/feffery_utils_components/__pycache__/FefferySyntaxHighlighter.cpython-37.pyc +0 -0
  33. package/feffery_utils_components/__pycache__/FefferyWaterMark.cpython-37.pyc +0 -0
  34. package/feffery_utils_components/__pycache__/__init__.cpython-37.pyc +0 -0
  35. package/feffery_utils_components/__pycache__/_imports_.cpython-37.pyc +0 -0
  36. package/feffery_utils_components/feffery_utils_components.min.js.map +0 -1
@@ -0,0 +1,578 @@
1
+ {
2
+ "src/lib/components/FefferyCaptcha.react.js": {
3
+ "description": "",
4
+ "displayName": "FefferyCaptcha",
5
+ "methods": [],
6
+ "props": {
7
+ "id": {
8
+ "type": {
9
+ "name": "custom",
10
+ "raw": "PropTypes.string"
11
+ },
12
+ "required": false,
13
+ "description": ""
14
+ },
15
+ "className": {
16
+ "type": {
17
+ "name": "custom",
18
+ "raw": "PropTypes.string"
19
+ },
20
+ "required": false,
21
+ "description": ""
22
+ },
23
+ "style": {
24
+ "type": {
25
+ "name": "custom",
26
+ "raw": "PropTypes.object"
27
+ },
28
+ "required": false,
29
+ "description": ""
30
+ },
31
+ "captcha": {
32
+ "type": {
33
+ "name": "custom",
34
+ "raw": "PropTypes.string"
35
+ },
36
+ "required": false,
37
+ "description": ""
38
+ },
39
+ "charNum": {
40
+ "type": {
41
+ "name": "custom",
42
+ "raw": "PropTypes.number"
43
+ },
44
+ "required": false,
45
+ "description": "",
46
+ "defaultValue": {
47
+ "value": "4",
48
+ "computed": false
49
+ }
50
+ },
51
+ "height": {
52
+ "type": {
53
+ "name": "custom",
54
+ "raw": "PropTypes.number"
55
+ },
56
+ "required": false,
57
+ "description": ""
58
+ },
59
+ "width": {
60
+ "type": {
61
+ "name": "custom",
62
+ "raw": "PropTypes.number"
63
+ },
64
+ "required": false,
65
+ "description": ""
66
+ },
67
+ "bgColor": {
68
+ "type": {
69
+ "name": "custom",
70
+ "raw": "PropTypes.string"
71
+ },
72
+ "required": false,
73
+ "description": ""
74
+ },
75
+ "fontSize": {
76
+ "type": {
77
+ "name": "custom",
78
+ "raw": "PropTypes.number"
79
+ },
80
+ "required": false,
81
+ "description": ""
82
+ },
83
+ "loading_state": {
84
+ "type": {
85
+ "name": "custom",
86
+ "raw": "PropTypes.shape({\r\n /**\r\n * Determines if the component is loading or not\r\n */\r\n is_loading: PropTypes.bool,\r\n /**\r\n * Holds which property is loading\r\n */\r\n prop_name: PropTypes.string,\r\n /**\r\n * Holds the name of the component that is loading\r\n */\r\n component_name: PropTypes.string\r\n})"
87
+ },
88
+ "required": false,
89
+ "description": ""
90
+ },
91
+ "setProps": {
92
+ "type": {
93
+ "name": "custom",
94
+ "raw": "PropTypes.func"
95
+ },
96
+ "required": false,
97
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
98
+ }
99
+ }
100
+ },
101
+ "src/lib/components/FefferyPasteImage.react.js": {
102
+ "description": "",
103
+ "displayName": "FefferyPasteImage",
104
+ "methods": [],
105
+ "props": {
106
+ "id": {
107
+ "type": {
108
+ "name": "string"
109
+ },
110
+ "required": true,
111
+ "description": ""
112
+ },
113
+ "children": {
114
+ "type": {
115
+ "name": "node"
116
+ },
117
+ "required": false,
118
+ "description": "The content of the tab - will only be displayed if this tab is selected"
119
+ },
120
+ "className": {
121
+ "type": {
122
+ "name": "string"
123
+ },
124
+ "required": false,
125
+ "description": "",
126
+ "defaultValue": {
127
+ "value": "'feffery-paste-image-container'",
128
+ "computed": false
129
+ }
130
+ },
131
+ "style": {
132
+ "type": {
133
+ "name": "object"
134
+ },
135
+ "required": false,
136
+ "description": ""
137
+ },
138
+ "currentPastedImages": {
139
+ "type": {
140
+ "name": "arrayOf",
141
+ "value": {
142
+ "name": "any"
143
+ }
144
+ },
145
+ "required": false,
146
+ "description": "",
147
+ "defaultValue": {
148
+ "value": "[]",
149
+ "computed": false
150
+ }
151
+ },
152
+ "deletedIdx": {
153
+ "type": {
154
+ "name": "arrayOf",
155
+ "value": {
156
+ "name": "number"
157
+ }
158
+ },
159
+ "required": false,
160
+ "description": "",
161
+ "defaultValue": {
162
+ "value": "[]",
163
+ "computed": false
164
+ }
165
+ },
166
+ "imageHeight": {
167
+ "type": {
168
+ "name": "number"
169
+ },
170
+ "required": false,
171
+ "description": "",
172
+ "defaultValue": {
173
+ "value": "200",
174
+ "computed": false
175
+ }
176
+ },
177
+ "loading_state": {
178
+ "type": {
179
+ "name": "shape",
180
+ "value": {
181
+ "is_loading": {
182
+ "name": "bool",
183
+ "description": "Determines if the component is loading or not",
184
+ "required": false
185
+ },
186
+ "prop_name": {
187
+ "name": "string",
188
+ "description": "Holds which property is loading",
189
+ "required": false
190
+ },
191
+ "component_name": {
192
+ "name": "string",
193
+ "description": "Holds the name of the component that is loading",
194
+ "required": false
195
+ }
196
+ }
197
+ },
198
+ "required": false,
199
+ "description": ""
200
+ },
201
+ "setProps": {
202
+ "type": {
203
+ "name": "func"
204
+ },
205
+ "required": false,
206
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
207
+ }
208
+ }
209
+ },
210
+ "src/lib/components/FefferySyntaxHighlighter.react.js": {
211
+ "description": "",
212
+ "displayName": "FefferySyntaxHighlighter",
213
+ "methods": [],
214
+ "props": {
215
+ "id": {
216
+ "type": {
217
+ "name": "string"
218
+ },
219
+ "required": false,
220
+ "description": ""
221
+ },
222
+ "codeStyle": {
223
+ "type": {
224
+ "name": "string"
225
+ },
226
+ "required": false,
227
+ "description": "",
228
+ "defaultValue": {
229
+ "value": "'prism'",
230
+ "computed": false
231
+ }
232
+ },
233
+ "codeString": {
234
+ "type": {
235
+ "name": "string"
236
+ },
237
+ "required": true,
238
+ "description": ""
239
+ },
240
+ "language": {
241
+ "type": {
242
+ "name": "string"
243
+ },
244
+ "required": true,
245
+ "description": ""
246
+ },
247
+ "showLineNumbers": {
248
+ "type": {
249
+ "name": "bool"
250
+ },
251
+ "required": false,
252
+ "description": ""
253
+ },
254
+ "showInlineLineNumbers": {
255
+ "type": {
256
+ "name": "bool"
257
+ },
258
+ "required": false,
259
+ "description": ""
260
+ },
261
+ "loading_state": {
262
+ "type": {
263
+ "name": "shape",
264
+ "value": {
265
+ "is_loading": {
266
+ "name": "bool",
267
+ "description": "Determines if the component is loading or not",
268
+ "required": false
269
+ },
270
+ "prop_name": {
271
+ "name": "string",
272
+ "description": "Holds which property is loading",
273
+ "required": false
274
+ },
275
+ "component_name": {
276
+ "name": "string",
277
+ "description": "Holds the name of the component that is loading",
278
+ "required": false
279
+ }
280
+ }
281
+ },
282
+ "required": false,
283
+ "description": ""
284
+ },
285
+ "setProps": {
286
+ "type": {
287
+ "name": "func"
288
+ },
289
+ "required": false,
290
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
291
+ }
292
+ }
293
+ },
294
+ "src/lib/components/FefferyTopProgress.react.js": {
295
+ "description": "",
296
+ "displayName": "FefferyTopProgress",
297
+ "methods": [],
298
+ "props": {
299
+ "id": {
300
+ "type": {
301
+ "name": "string"
302
+ },
303
+ "required": false,
304
+ "description": ""
305
+ },
306
+ "children": {
307
+ "type": {
308
+ "name": "node"
309
+ },
310
+ "required": false,
311
+ "description": "The content of the tab - will only be displayed if this tab is selected"
312
+ },
313
+ "className": {
314
+ "type": {
315
+ "name": "string"
316
+ },
317
+ "required": false,
318
+ "description": ""
319
+ },
320
+ "style": {
321
+ "type": {
322
+ "name": "object"
323
+ },
324
+ "required": false,
325
+ "description": ""
326
+ },
327
+ "spinning": {
328
+ "type": {
329
+ "name": "bool"
330
+ },
331
+ "required": false,
332
+ "description": "",
333
+ "defaultValue": {
334
+ "value": "false",
335
+ "computed": false
336
+ }
337
+ },
338
+ "minimum": {
339
+ "type": {
340
+ "name": "number"
341
+ },
342
+ "required": false,
343
+ "description": ""
344
+ },
345
+ "easing": {
346
+ "type": {
347
+ "name": "string"
348
+ },
349
+ "required": false,
350
+ "description": ""
351
+ },
352
+ "speed": {
353
+ "type": {
354
+ "name": "number"
355
+ },
356
+ "required": false,
357
+ "description": ""
358
+ },
359
+ "showSpinner": {
360
+ "type": {
361
+ "name": "bool"
362
+ },
363
+ "required": false,
364
+ "description": ""
365
+ },
366
+ "debug": {
367
+ "type": {
368
+ "name": "bool"
369
+ },
370
+ "required": false,
371
+ "description": "",
372
+ "defaultValue": {
373
+ "value": "false",
374
+ "computed": false
375
+ }
376
+ },
377
+ "listenPropsMode": {
378
+ "type": {
379
+ "name": "enum",
380
+ "value": [
381
+ {
382
+ "value": "'default'",
383
+ "computed": false
384
+ },
385
+ {
386
+ "value": "'exclude'",
387
+ "computed": false
388
+ },
389
+ {
390
+ "value": "'include'",
391
+ "computed": false
392
+ }
393
+ ]
394
+ },
395
+ "required": false,
396
+ "description": "",
397
+ "defaultValue": {
398
+ "value": "'default'",
399
+ "computed": false
400
+ }
401
+ },
402
+ "excludeProps": {
403
+ "type": {
404
+ "name": "arrayOf",
405
+ "value": {
406
+ "name": "string"
407
+ }
408
+ },
409
+ "required": false,
410
+ "description": "",
411
+ "defaultValue": {
412
+ "value": "[]",
413
+ "computed": false
414
+ }
415
+ },
416
+ "includeProps": {
417
+ "type": {
418
+ "name": "arrayOf",
419
+ "value": {
420
+ "name": "string"
421
+ }
422
+ },
423
+ "required": false,
424
+ "description": "",
425
+ "defaultValue": {
426
+ "value": "[]",
427
+ "computed": false
428
+ }
429
+ },
430
+ "loading_state": {
431
+ "type": {
432
+ "name": "shape",
433
+ "value": {
434
+ "is_loading": {
435
+ "name": "bool",
436
+ "description": "Determines if the component is loading or not",
437
+ "required": false
438
+ },
439
+ "prop_name": {
440
+ "name": "string",
441
+ "description": "Holds which property is loading",
442
+ "required": false
443
+ },
444
+ "component_name": {
445
+ "name": "string",
446
+ "description": "Holds the name of the component that is loading",
447
+ "required": false
448
+ }
449
+ }
450
+ },
451
+ "required": false,
452
+ "description": ""
453
+ },
454
+ "setProps": {
455
+ "type": {
456
+ "name": "func"
457
+ },
458
+ "required": false,
459
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
460
+ }
461
+ }
462
+ },
463
+ "src/lib/components/FefferyWaterMark.react.js": {
464
+ "description": "",
465
+ "displayName": "FefferyWaterMark",
466
+ "methods": [],
467
+ "props": {
468
+ "id": {
469
+ "type": {
470
+ "name": "string"
471
+ },
472
+ "required": false,
473
+ "description": ""
474
+ },
475
+ "children": {
476
+ "type": {
477
+ "name": "node"
478
+ },
479
+ "required": false,
480
+ "description": "The content of the tab - will only be displayed if this tab is selected"
481
+ },
482
+ "className": {
483
+ "type": {
484
+ "name": "string"
485
+ },
486
+ "required": false,
487
+ "description": ""
488
+ },
489
+ "style": {
490
+ "type": {
491
+ "name": "object"
492
+ },
493
+ "required": false,
494
+ "description": ""
495
+ },
496
+ "content": {
497
+ "type": {
498
+ "name": "string"
499
+ },
500
+ "required": false,
501
+ "description": ""
502
+ },
503
+ "rotate": {
504
+ "type": {
505
+ "name": "number"
506
+ },
507
+ "required": false,
508
+ "description": ""
509
+ },
510
+ "zIndex": {
511
+ "type": {
512
+ "name": "number"
513
+ },
514
+ "required": false,
515
+ "description": ""
516
+ },
517
+ "fontColor": {
518
+ "type": {
519
+ "name": "string"
520
+ },
521
+ "required": false,
522
+ "description": ""
523
+ },
524
+ "fontSize": {
525
+ "type": {
526
+ "name": "number"
527
+ },
528
+ "required": false,
529
+ "description": ""
530
+ },
531
+ "gapX": {
532
+ "type": {
533
+ "name": "number"
534
+ },
535
+ "required": false,
536
+ "description": ""
537
+ },
538
+ "gapY": {
539
+ "type": {
540
+ "name": "number"
541
+ },
542
+ "required": false,
543
+ "description": ""
544
+ },
545
+ "loading_state": {
546
+ "type": {
547
+ "name": "shape",
548
+ "value": {
549
+ "is_loading": {
550
+ "name": "bool",
551
+ "description": "Determines if the component is loading or not",
552
+ "required": false
553
+ },
554
+ "prop_name": {
555
+ "name": "string",
556
+ "description": "Holds which property is loading",
557
+ "required": false
558
+ },
559
+ "component_name": {
560
+ "name": "string",
561
+ "description": "Holds the name of the component that is loading",
562
+ "required": false
563
+ }
564
+ }
565
+ },
566
+ "required": false,
567
+ "description": ""
568
+ },
569
+ "setProps": {
570
+ "type": {
571
+ "name": "func"
572
+ },
573
+ "required": false,
574
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
575
+ }
576
+ }
577
+ }
578
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "feffery_utils_components",
3
+ "version": "0.0.6",
4
+ "description": "Utility augments components of Dash!",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/https://github.com/CNFeffery/feffery-utils-components.git"
8
+ },
9
+ "bugs": {
10
+ "url": "https://github.com/https://github.com/CNFeffery/feffery-utils-components/issues"
11
+ },
12
+ "homepage": "https://github.com/https://github.com/CNFeffery/feffery-utils-components",
13
+ "main": "build/index.js",
14
+ "scripts": {
15
+ "start": "webpack-serve --config ./webpack.serve.config.js --open",
16
+ "build:js": "webpack --mode production",
17
+ "build:backends": "dash-generate-components ./src/lib/components feffery_utils_components -p package-info.json --r-prefix '' --jl-prefix ''",
18
+ "build:backends-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
19
+ "build": "npm run build:js && npm run build:backends",
20
+ "build:activated": "npm run build:js && npm run build:backends-activated"
21
+ },
22
+ "author": "CNFeffery <fefferypzy@gmail.com>",
23
+ "license": "MIT",
24
+ "dependencies": {
25
+ "@ant-design/pro-layout": "^6.24.0",
26
+ "@charliewilco/gluejar": "^1.0.0",
27
+ "github-markdown-css": "^5.0.0",
28
+ "less": "^3.13.1",
29
+ "less-loader": "^5.0.0",
30
+ "nprogress": "^0.2.0",
31
+ "ramda": "^0.26.1",
32
+ "react-captcha-code": "^1.0.7",
33
+ "react-contexify": "^5.0.0",
34
+ "react-copy-to-clipboard": "^5.0.4",
35
+ "react-icons": "^4.3.1",
36
+ "react-syntax-highlighter": "^15.4.4"
37
+ },
38
+ "devDependencies": {
39
+ "@babel/core": "^7.5.4",
40
+ "@babel/plugin-proposal-object-rest-spread": "^7.5.4",
41
+ "@babel/preset-env": "^7.5.4",
42
+ "@babel/preset-react": "^7.0.0",
43
+ "@plotly/dash-component-plugins": "^1.2.0",
44
+ "@plotly/webpack-dash-dynamic-import": "^1.2.0",
45
+ "babel-eslint": "^10.0.2",
46
+ "babel-loader": "^8.0.6",
47
+ "copyfiles": "^2.1.1",
48
+ "css-loader": "^3.0.0",
49
+ "eslint": "^6.0.1",
50
+ "eslint-config-prettier": "^6.0.0",
51
+ "eslint-plugin-import": "^2.18.0",
52
+ "eslint-plugin-react": "^7.14.2",
53
+ "npm": "^6.1.0",
54
+ "prop-types": "^15.7.2",
55
+ "react": "^16.8.6",
56
+ "react-docgen": "^4.1.1",
57
+ "react-dom": "^16.8.6",
58
+ "style-loader": "^0.23.1",
59
+ "styled-jsx": "^3.2.1",
60
+ "terser-webpack-plugin": "^2.3.0",
61
+ "url-loader": "^4.1.1",
62
+ "webpack": "4.36.1",
63
+ "webpack-cli": "3.3.6",
64
+ "webpack-serve": "3.1.0"
65
+ },
66
+ "babel": {
67
+ "presets": [
68
+ "@babel/preset-react",
69
+ "@babel/preset-env"
70
+ ],
71
+ "plugins": [
72
+ "@babel/plugin-transform-react-jsx"
73
+ ]
74
+ },
75
+ "engines": {
76
+ "node": ">=8.11.0",
77
+ "npm": ">=6.1.0"
78
+ }
79
+ }