@appcorp/app-corp-vista 0.1.31 → 0.1.33
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/README.md
CHANGED
|
@@ -22,57 +22,3 @@
|
|
|
22
22
|
|
|
23
23
|

|
|
24
24
|
</p>
|
|
25
|
-
|
|
26
|
-
## About The Project
|
|
27
|
-
AppCorp design is a storybook app that houses all design philosophies that we had used previously for our clients.
|
|
28
|
-
|
|
29
|
-
## Installing
|
|
30
|
-
|
|
31
|
-
install from npm
|
|
32
|
-
```bash
|
|
33
|
-
yarn add @appcorp/design
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
```sh
|
|
39
|
-
usage: fast-copy.py [-h HELP] source destination [-d DELETE] [-s SYNC] [-r REPLACE]
|
|
40
|
-
|
|
41
|
-
optional arguments:
|
|
42
|
-
-h --help show this help message and exit
|
|
43
|
-
source the drive you are copying from
|
|
44
|
-
destination the drive you are copying to
|
|
45
|
-
-d --delete delete the source files after copy
|
|
46
|
-
-s --sync delete files in destination if not found in source (do not use, if using with rsync)
|
|
47
|
-
-r --replace replace files if they exist
|
|
48
|
-
-t --thread set the amount of parallel threads used
|
|
49
|
-
-l --size-limit set max size of files copied (supports gb, mb, kb) eg 1.5gb
|
|
50
|
-
```
|
|
51
|
-
The `source` and `destination` fields are required. Everything else is optional.
|
|
52
|
-
|
|
53
|
-
## Examples
|
|
54
|
-
```py
|
|
55
|
-
from google.colab import drive
|
|
56
|
-
drive.mount('/gdrive', force_remount=False)
|
|
57
|
-
import os
|
|
58
|
-
!wget -q https://raw.githubusercontent.com/L0garithmic/fastcolabcopy/main/fastcopy.py
|
|
59
|
-
import fastcopy
|
|
60
|
-
!python fastcopy.py /gdrive/Shareddrives/Source/. /gdrive/Shareddrives/Destination --thread 20 --size-limit 400mb
|
|
61
|
-
```
|
|
62
|
-
If you want to see copy execution time:
|
|
63
|
-
```mod
|
|
64
|
-
!pip install -q ipython-autotime
|
|
65
|
-
%load_ext autotime
|
|
66
|
-
```
|
|
67
|
-
Check out <a href="examples.md">examples.md</a> for some more examples.
|
|
68
|
-
|
|
69
|
-
## Best Practice
|
|
70
|
-
Colab has wildly varying transfer speeds, because of this, the best we can offer are suggestions:
|
|
71
|
-
- For large groups of medium/small files, 15-40 threads seems to work best.
|
|
72
|
-
- For 50+ files with significantly varying sizes, try 2 sequentially copies. `-t 15 -l 400` then `-t 2`
|
|
73
|
-
- For files that are 100MB+, it is best to use 2 threads. It is still faster then rsync.
|
|
74
|
-
- Currently `--sync` breaks if rsync is ran after. If you are mirroring drives. Disable `--sync` and use the rsync's `--delete` function.
|
|
75
|
-
|
|
76
|
-
## Credits
|
|
77
|
-
- Credit to [ikonikon](https://github.com/ikonikon/fast-copy) for the base multi-threading code.
|
|
78
|
-
- Thanks to [@Ostokhoon](https://www.freelancer.com/u/Ostokhoon) for ALL argument and folder hierarchy functionality.
|
|
@@ -11,7 +11,7 @@ var solid_1 = require("@heroicons/react/20/solid");
|
|
|
11
11
|
var VistaSelectV1 = function (_a) {
|
|
12
12
|
var _b = _a.className, className = _b === void 0 ? '' : _b, handleOnChange = _a.handleOnChange, label = _a.label, listItems = _a.listItems, nodeSelectedKey = _a.nodeSelectedKey, _c = _a.required, required = _c === void 0 ? false : _c, selectKey1 = _a.selectKey1, selectKey2 = _a.selectKey2, selectedItem = _a.selectedItem;
|
|
13
13
|
return (react_1.default.createElement("div", { className: className },
|
|
14
|
-
react_1.default.createElement(react_2.Listbox, { value: selectedItem, onChange: function (v) {
|
|
14
|
+
react_1.default.createElement(react_2.Listbox, { value: selectedItem, onChange: function (v) { handleOnChange(nodeSelectedKey, v); } },
|
|
15
15
|
label && (react_1.default.createElement(react_2.Label, { className: "block text-sm/6 font-medium text-gray-900 dark:text-white" },
|
|
16
16
|
label,
|
|
17
17
|
" ",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface VistaTableFooterV1Props {
|
|
2
2
|
currentPage: number;
|
|
3
3
|
handleNextOnClick: () => void;
|
|
4
|
-
handleOnSelect: (k: string, v: string) => void;
|
|
4
|
+
handleOnSelect: (k: string, v: object | string) => void;
|
|
5
5
|
handlePreviousOnClick: () => void;
|
|
6
6
|
isNextDisabled: boolean;
|
|
7
7
|
isPreviousDisabled: boolean;
|
|
@@ -9,7 +9,7 @@ export interface VistaTableHeaderActionItem {
|
|
|
9
9
|
export interface VistaTableV1Props {
|
|
10
10
|
currentPage: number;
|
|
11
11
|
handleNextOnClick: () => void;
|
|
12
|
-
handleOnSelect: (k: string, v: string) => void;
|
|
12
|
+
handleOnSelect: (k: string, v: object | string) => void;
|
|
13
13
|
handlePreviousOnClick: () => void;
|
|
14
14
|
handleSearchInput: (k: string, v: string) => void;
|
|
15
15
|
handleSuffixOnClick?: () => void;
|