@putkoff/abstract-securefiles 0.0.19 → 0.0.21
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/dist/App/{secure_files.d.ts → SecureFiles.d.ts} +2 -2
- package/dist/App/index.d.ts +1 -1
- package/dist/FileHandlers/FileRow/imports.d.ts +2 -0
- package/dist/FileHandlers/FileRow/index.d.ts +1 -0
- package/dist/FileHandlers/FileRow/src/index.d.ts +1 -0
- package/dist/FileHandlers/FileRow/src/row_utils.d.ts +2 -0
- package/dist/FileHandlers/FileTable/imports.d.ts +4 -0
- package/dist/FileHandlers/FileTable/index.d.ts +1 -0
- package/dist/FileHandlers/FileTable/src/index.d.ts +1 -0
- package/dist/FileHandlers/FileTable/src/table_utils.d.ts +2 -0
- package/dist/FileHandlers/ShareModal/imports.d.ts +2 -0
- package/dist/FileHandlers/ShareModal/index.d.ts +1 -0
- package/dist/FileHandlers/ShareModal/src/index.d.ts +1 -0
- package/dist/FileHandlers/ShareModal/src/share_utils.d.ts +2 -0
- package/dist/FileHandlers/Upload/imports.d.ts +2 -0
- package/dist/FileHandlers/Upload/index.d.ts +1 -0
- package/dist/FileHandlers/Upload/src/index.d.ts +2 -0
- package/dist/FileHandlers/Upload/src/upload_utils.d.ts +2 -0
- package/dist/FileHandlers/imports.d.ts +4 -0
- package/dist/FileHandlers/index.d.ts +4 -0
- package/dist/UI/index.d.ts +19 -0
- package/dist/file_utils/imports.d.ts +2 -0
- package/dist/file_utils/index.d.ts +1 -0
- package/dist/file_utils/src/delete_utils/imports.d.ts +1 -0
- package/dist/file_utils/src/delete_utils/index.d.ts +1 -0
- package/dist/file_utils/src/delete_utils/src/delete_row.d.ts +2 -0
- package/dist/file_utils/src/delete_utils/src/delete_select.d.ts +1 -0
- package/dist/file_utils/src/delete_utils/src/delete_selected.d.ts +2 -0
- package/dist/file_utils/src/delete_utils/src/index.d.ts +3 -0
- package/dist/file_utils/src/download_utils/imports.d.ts +2 -0
- package/dist/file_utils/src/download_utils/index.d.ts +1 -0
- package/dist/file_utils/src/download_utils/src/direct_download.d.ts +3 -0
- package/dist/file_utils/src/download_utils/src/download_file.d.ts +2 -0
- package/dist/file_utils/src/download_utils/src/download_select.d.ts +2 -0
- package/dist/file_utils/src/download_utils/src/index.d.ts +5 -0
- package/dist/file_utils/src/download_utils/src/target_downloads.d.ts +4 -0
- package/dist/file_utils/src/download_utils/src/trigger_download.d.ts +2 -0
- package/dist/file_utils/src/imports.d.ts +2 -0
- package/dist/file_utils/src/index.d.ts +6 -0
- package/dist/file_utils/src/list_utils/imports.d.ts +2 -0
- package/dist/file_utils/src/list_utils/index.d.ts +1 -0
- package/dist/file_utils/src/list_utils/src/index.d.ts +1 -0
- package/dist/file_utils/src/list_utils/src/list_utils.d.ts +2 -0
- package/dist/file_utils/src/select_utils/index.d.ts +1 -0
- package/dist/file_utils/src/select_utils/src/index.d.ts +3 -0
- package/dist/file_utils/src/select_utils/src/init_select_all.d.ts +2 -0
- package/dist/file_utils/src/select_utils/src/sync_header_checkbox.d.ts +5 -0
- package/dist/file_utils/src/select_utils/src/toggle_checkboxes.d.ts +2 -0
- package/dist/file_utils/src/share_utils/imports.d.ts +2 -0
- package/dist/file_utils/src/share_utils/index.d.ts +1 -0
- package/dist/file_utils/src/share_utils/src/index.d.ts +1 -0
- package/dist/file_utils/src/share_utils/src/share_utils.d.ts +7 -0
- package/dist/file_utils/src/upload_utils/imports.d.ts +1 -0
- package/dist/file_utils/src/upload_utils/index.d.ts +1 -0
- package/dist/file_utils/src/upload_utils/src/index.d.ts +3 -0
- package/dist/file_utils/src/upload_utils/src/patch_file_settings.d.ts +2 -0
- package/dist/file_utils/src/upload_utils/src/upload_file.d.ts +2 -0
- package/dist/file_utils/src/upload_utils/src/upload_files.d.ts +5 -0
- package/dist/hooks/imports.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useFiles/imports.d.ts +2 -0
- package/dist/hooks/useFiles/index.d.ts +1 -0
- package/dist/hooks/useFiles/src/deleteFile.d.ts +6 -0
- package/dist/hooks/useFiles/src/index.d.ts +6 -0
- package/dist/hooks/useFiles/src/load.d.ts +6 -0
- package/dist/hooks/useFiles/src/patchShareSettings.d.ts +7 -0
- package/dist/hooks/useFiles/src/toggleShare.d.ts +6 -0
- package/dist/hooks/useFiles/src/useFiles.d.ts +13 -0
- package/dist/hooks/useFiles/src/useSaveShareSettings.d.ts +3 -0
- package/dist/imports.d.ts +5 -0
- package/dist/index.cjs +928 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +882 -13
- package/dist/index.js.map +1 -1
- package/dist/styles/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/types.d.ts +75 -0
- package/package.json +4 -4
- package/src/App/{secure_files.tsx → SecureFiles.tsx} +4 -5
- package/src/App/index.ts +1 -1
- package/src/FileHandlers/FileRow/imports.ts +2 -0
- package/src/FileHandlers/FileRow/index.ts +1 -0
- package/src/FileHandlers/FileRow/src/index.ts +1 -0
- package/src/FileHandlers/FileRow/src/row_utils.tsx +143 -0
- package/src/FileHandlers/FileTable/imports.ts +16 -0
- package/src/FileHandlers/FileTable/index.ts +1 -0
- package/src/FileHandlers/FileTable/src/index.ts +1 -0
- package/src/FileHandlers/FileTable/src/table_utils.tsx +251 -0
- package/src/FileHandlers/ShareModal/imports.ts +2 -0
- package/src/FileHandlers/ShareModal/index.ts +1 -0
- package/src/FileHandlers/ShareModal/src/index.ts +1 -0
- package/src/FileHandlers/ShareModal/src/share_utils.tsx +158 -0
- package/src/FileHandlers/Upload/imports.ts +3 -0
- package/src/FileHandlers/Upload/index.ts +1 -0
- package/src/FileHandlers/Upload/src/index.ts +2 -0
- package/src/FileHandlers/Upload/src/upload_utils.tsx +267 -0
- package/src/FileHandlers/imports.ts +20 -0
- package/src/FileHandlers/index.ts +4 -0
- package/src/UI/index.tsx +113 -0
- package/src/custom.d.ts +7 -0
- package/src/file_utils/imports.ts +2 -0
- package/src/file_utils/index.ts +1 -0
- package/src/file_utils/src/delete_utils/imports.ts +1 -0
- package/src/file_utils/src/delete_utils/index.ts +1 -0
- package/src/file_utils/src/delete_utils/src/delete_row.ts +11 -0
- package/src/file_utils/src/delete_utils/src/delete_select.ts +9 -0
- package/src/file_utils/src/delete_utils/src/delete_selected.ts +15 -0
- package/src/file_utils/src/delete_utils/src/index.ts +3 -0
- package/src/file_utils/src/download_utils/imports.ts +3 -0
- package/src/file_utils/src/download_utils/index.ts +1 -0
- package/src/file_utils/src/download_utils/src/direct_download.ts +22 -0
- package/src/file_utils/src/download_utils/src/download_file.ts +24 -0
- package/src/file_utils/src/download_utils/src/download_select.ts +20 -0
- package/src/file_utils/src/download_utils/src/index.ts +5 -0
- package/src/file_utils/src/download_utils/src/target_downloads.ts +21 -0
- package/src/file_utils/src/download_utils/src/trigger_download.ts +14 -0
- package/src/file_utils/src/imports.ts +3 -0
- package/src/file_utils/src/index.ts +6 -0
- package/src/file_utils/src/list_utils/imports.ts +2 -0
- package/src/file_utils/src/list_utils/index.ts +1 -0
- package/src/file_utils/src/list_utils/src/index.ts +1 -0
- package/src/file_utils/src/list_utils/src/list_utils.ts +24 -0
- package/src/file_utils/src/select_utils/index.ts +1 -0
- package/src/file_utils/src/select_utils/src/index.ts +3 -0
- package/src/file_utils/src/select_utils/src/init_select_all.ts +37 -0
- package/src/file_utils/src/select_utils/src/sync_header_checkbox.ts +18 -0
- package/src/file_utils/src/select_utils/src/toggle_checkboxes.ts +11 -0
- package/src/file_utils/src/share_utils/imports.ts +2 -0
- package/src/file_utils/src/share_utils/index.ts +1 -0
- package/src/file_utils/src/share_utils/src/index.ts +1 -0
- package/src/file_utils/src/share_utils/src/share_utils.ts +29 -0
- package/src/file_utils/src/upload_utils/imports.ts +1 -0
- package/src/file_utils/src/upload_utils/index.ts +1 -0
- package/src/file_utils/src/upload_utils/src/index.ts +3 -0
- package/src/file_utils/src/upload_utils/src/patch_file_settings.ts +18 -0
- package/src/file_utils/src/upload_utils/src/upload_file.ts +28 -0
- package/src/file_utils/src/upload_utils/src/upload_files.ts +34 -0
- package/src/global.d.ts +1 -0
- package/src/hooks/imports.ts +3 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useFiles/imports.ts +3 -0
- package/src/hooks/useFiles/index.ts +1 -0
- package/src/hooks/useFiles/src/deleteFile.ts +22 -0
- package/src/hooks/useFiles/src/index.ts +6 -0
- package/src/hooks/useFiles/src/load.ts +52 -0
- package/src/hooks/useFiles/src/patchShareSettings.ts +37 -0
- package/src/hooks/useFiles/src/toggleShare.ts +28 -0
- package/src/hooks/useFiles/src/useFiles.ts +35 -0
- package/src/hooks/useFiles/src/useSaveShareSettings.ts +25 -0
- package/src/imports.ts +20 -0
- package/src/index.ts +7 -1
- package/src/styles/SecureFiles/index.css +10 -0
- package/src/styles/SecureFilesStyles.module.css +287 -0
- package/src/styles/index.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/src/index.ts +1 -0
- package/src/types/src/types.ts +88 -0
- package/src/App/index.d.ts +0 -1
- package/src/App/secure_files.d.ts +0 -4
- package/src/App/styles/index.css +0 -15
- package/src/index.d.ts +0 -1
- package/src/logs/abstract_flask.log +0 -0
- package/src/logs/clipit_logs.log +0 -10
- package/src/logs/fetch_utils.log +0 -0
- package/src/logs/pair_data.log +0 -0
- package/src/logs/query_utils.log +0 -0
- package/src/logs/routes_bp.log +0 -2
- /package/src/{App/styles → hooks/useFiles/src}/logs/clipit_logs.log +0 -0
- /package/src/{App/styles → hooks/useFiles/src}/logs/routes_bp.log +0 -0
- /package/src/{App/styles → styles/SecureFiles}/App.css +0 -0
- /package/{package.tmp.json → src/styles/SecureFiles/logs/clipit_logs.log} +0 -0
- /package/src/{logs/abstract_clipit.clipit.gui_frontend.drag_and_drop_component.imports.robust_readers.directory_reader.directory_reader.log → styles/SecureFiles/logs/routes_bp.log} +0 -0
- /package/src/{App/styles → styles/SecureFiles}/tailwind.css +0 -0
- /package/src/{App/styles → styles/SecureFiles}/window-manager.css +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/* SecureFilesStyles.module.css */
|
|
2
|
+
|
|
3
|
+
/* Scope all styles under .secure-files */
|
|
4
|
+
.secure-files {
|
|
5
|
+
/* Pull in Tailwind utilities if needed (but skip @base to avoid global resets) */
|
|
6
|
+
@tailwind utilities;
|
|
7
|
+
|
|
8
|
+
/* window-manager.css styles (prefixed where needed) */
|
|
9
|
+
.wm-table {
|
|
10
|
+
width: 100%;
|
|
11
|
+
font-size: 13px;
|
|
12
|
+
table-layout: fixed;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wm-thead th {
|
|
16
|
+
background-color: #e5e7eb;
|
|
17
|
+
border-bottom: 1px solid #9ca3af;
|
|
18
|
+
padding: 5px 8px;
|
|
19
|
+
text-align: left;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.wm-row {
|
|
24
|
+
border-bottom: 1px solid #d1d5db;
|
|
25
|
+
background-color: #f9fafb;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wm-row:hover {
|
|
29
|
+
background-color: #eff6ff;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wm-cell {
|
|
33
|
+
padding: 5px 8px;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.wm-checkbox {
|
|
40
|
+
height: 14px;
|
|
41
|
+
width: 14px;
|
|
42
|
+
color: #2563eb;
|
|
43
|
+
border: 1px solid #9ca3af;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.wm-btn-link {
|
|
49
|
+
color: #2563eb;
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wm-btn-link:hover {
|
|
54
|
+
color: #1e40af;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.wm-btn-link:disabled {
|
|
58
|
+
color: #9ca3af;
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wm-btn-icon {
|
|
63
|
+
color: #4b5563;
|
|
64
|
+
padding: 2px;
|
|
65
|
+
border-radius: 4px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.wm-btn-icon:hover {
|
|
69
|
+
color: #111827;
|
|
70
|
+
background-color: #e5e7eb;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wm-btn-icon:disabled {
|
|
74
|
+
color: #9ca3af;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* file-table styles */
|
|
78
|
+
.file-table {
|
|
79
|
+
width: 100%;
|
|
80
|
+
border: 1px solid #9ca3af;
|
|
81
|
+
font-size: 13px;
|
|
82
|
+
line-height: 1.15rem;
|
|
83
|
+
border-collapse: collapse;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.file-table thead th {
|
|
87
|
+
background-color: #e5e7eb;
|
|
88
|
+
color: #1f2937;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
padding: 6px 12px;
|
|
91
|
+
user-select: none;
|
|
92
|
+
border-bottom: 1px solid #9ca3af;
|
|
93
|
+
border-right: 1px solid #d1d5db;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.file-table thead th:last-child {
|
|
97
|
+
border-right: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.file-table tbody tr {
|
|
101
|
+
border-bottom: 1px solid #d1d5db;
|
|
102
|
+
transition: background-color 0.2s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.file-table tbody tr:hover {
|
|
106
|
+
background-color: #f3f4f6;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.file-table tbody tr:nth-child(even) {
|
|
110
|
+
background-color: #f9fafb;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.file-table td {
|
|
114
|
+
padding: 6px 12px;
|
|
115
|
+
vertical-align: middle;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
border-right: 1px solid #d1d5db;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.file-table td:last-child {
|
|
121
|
+
border-right: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.file-table .unsaved {
|
|
125
|
+
color: #dc2626;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Modals */
|
|
129
|
+
.modal-backdrop {
|
|
130
|
+
position: fixed;
|
|
131
|
+
top: 0;
|
|
132
|
+
right: 0;
|
|
133
|
+
bottom: 0;
|
|
134
|
+
left: 0;
|
|
135
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.modal-wrapper {
|
|
139
|
+
position: fixed;
|
|
140
|
+
top: 0;
|
|
141
|
+
right: 0;
|
|
142
|
+
bottom: 0;
|
|
143
|
+
left: 0;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.modal-panel {
|
|
150
|
+
background-color: #ffffff;
|
|
151
|
+
border-radius: 12px;
|
|
152
|
+
padding: 24px;
|
|
153
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
154
|
+
outline: none;
|
|
155
|
+
max-width: 28rem;
|
|
156
|
+
max-height: 90vh;
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Forms & Inputs */
|
|
161
|
+
.form-container {
|
|
162
|
+
background-color: #ffffff;
|
|
163
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
164
|
+
border-radius: 8px;
|
|
165
|
+
padding: 24px;
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
gap: 16px;
|
|
169
|
+
max-width: 28rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.form-title {
|
|
173
|
+
font-size: 20px;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.form-input {
|
|
179
|
+
display: block;
|
|
180
|
+
width: 100%;
|
|
181
|
+
border-radius: 4px;
|
|
182
|
+
border: 1px solid #d1d5db;
|
|
183
|
+
padding: 4px 8px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.form-input:disabled {
|
|
187
|
+
background-color: #f3f4f6;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.form-group {
|
|
191
|
+
margin-bottom: 16px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.form-label {
|
|
195
|
+
display: block;
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
margin-bottom: 4px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.form-error {
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
color: #dc2626;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Buttons */
|
|
207
|
+
.btn {
|
|
208
|
+
border-radius: 8px;
|
|
209
|
+
padding: 4px 12px;
|
|
210
|
+
font-size: 14px;
|
|
211
|
+
font-weight: 500;
|
|
212
|
+
transition: background-color 0.15s, color 0.15s;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.btn:focus {
|
|
216
|
+
outline: none;
|
|
217
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 0, 0, 0.1);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.btn-primary {
|
|
221
|
+
background-color: #2563eb;
|
|
222
|
+
color: #ffffff;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.btn-primary:hover {
|
|
226
|
+
background-color: #1d4ed8;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.btn-primary:focus {
|
|
230
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(59, 130, 246, 0.5);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.btn-secondary {
|
|
234
|
+
background-color: #e5e7eb;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.btn-secondary:hover {
|
|
238
|
+
background-color: #d1d5db;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.btn-secondary:focus {
|
|
242
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(156, 163, 175, 0.5);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.btn-success {
|
|
246
|
+
background-color: #16a34a;
|
|
247
|
+
color: #ffffff;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.btn-success:hover {
|
|
251
|
+
background-color: #15803d;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.btn-success:focus {
|
|
255
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(34, 197, 94, 0.5);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.btn-danger {
|
|
259
|
+
background-color: #dc2626;
|
|
260
|
+
color: #ffffff;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.btn-danger:hover {
|
|
264
|
+
background-color: #b91c1c;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.btn-danger:focus {
|
|
268
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(239, 68, 68, 0.5);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.btn-icon {
|
|
272
|
+
padding: 4px;
|
|
273
|
+
background-color: transparent;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.btn-icon:hover {
|
|
277
|
+
background-color: #f3f4f6;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* Checkbox */
|
|
281
|
+
.checkbox {
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: 8px;
|
|
285
|
+
margin-bottom: 16px;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SecureFiles/index.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { QueuedFile, FileItem, FileTableProps, UploadProps, ShareModalProps, FileRowProps, ApiRow, EnhancedInputProps } from './src/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { QueuedFile, FileItem, FileTableProps, UploadProps, ShareModalProps, FileRowProps, ApiRow, EnhancedInputProps } from './types';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
export interface FileItem {
|
|
3
|
+
id: number | string;
|
|
4
|
+
filename: string;
|
|
5
|
+
uploader_id: string;
|
|
6
|
+
filepath: string;
|
|
7
|
+
created_at: string;
|
|
8
|
+
download_count: number;
|
|
9
|
+
download_limit: number | null;
|
|
10
|
+
shareable: boolean;
|
|
11
|
+
needsPassword: boolean;
|
|
12
|
+
share_password: string | null;
|
|
13
|
+
password_str: string | null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ApiRow {
|
|
17
|
+
id: number | string;
|
|
18
|
+
filename: string;
|
|
19
|
+
uploader_id: string;
|
|
20
|
+
filepath: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
download_count: number;
|
|
23
|
+
download_limit: number | null;
|
|
24
|
+
shareable: boolean;
|
|
25
|
+
needsPassword: boolean;
|
|
26
|
+
share_password: string;
|
|
27
|
+
password_str: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface FileListResponse {
|
|
31
|
+
files?: ApiRow[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface FileTableProps {
|
|
35
|
+
files: FileItem[];
|
|
36
|
+
loading: boolean;
|
|
37
|
+
error: Error | null;
|
|
38
|
+
onDownload(id: any): Promise<void>;
|
|
39
|
+
onToggleShare(id: any): Promise<void>;
|
|
40
|
+
onPatchShare(id: any): Promise<void>;
|
|
41
|
+
onDelete(id: any): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export interface ShareModalProps {
|
|
46
|
+
file: FileItem | null;
|
|
47
|
+
onClose(): void;
|
|
48
|
+
onSave(patch: Partial<FileItem>): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
export interface UploadProps {
|
|
51
|
+
/** Called *after* a successful upload */
|
|
52
|
+
onUploaded: () => Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export interface FileRowProps {
|
|
58
|
+
file: FileItem;
|
|
59
|
+
onDownload: () => Promise<void>;
|
|
60
|
+
onSettings: () => void;
|
|
61
|
+
onToggleShare: () => Promise<void>;
|
|
62
|
+
onDelete: () => any;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface QueuedFile {
|
|
66
|
+
file: File;
|
|
67
|
+
relPath: string;
|
|
68
|
+
progress: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface InputProps {
|
|
72
|
+
label?: any;
|
|
73
|
+
type?: any;
|
|
74
|
+
value?: any;
|
|
75
|
+
onChange?: any;
|
|
76
|
+
disabled?: any;
|
|
77
|
+
placeholder?: any;
|
|
78
|
+
error?: string;
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface FileInputExtra {
|
|
83
|
+
directory?: boolean; // true → allow folder selection
|
|
84
|
+
multiple?: boolean; // true → allow multiple files
|
|
85
|
+
accept?: string; // optional MIME filter
|
|
86
|
+
}
|
|
87
|
+
/** keep other InputProps fields … */
|
|
88
|
+
export type EnhancedInputProps = InputProps & FileInputExtra;
|
package/src/App/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SecureFiles } from './secure_files';
|
package/src/App/styles/index.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* src/styles/index.css */
|
|
2
|
-
|
|
3
|
-
/* 1) Tailwind layers */
|
|
4
|
-
@tailwind base;
|
|
5
|
-
@tailwind components;
|
|
6
|
-
@tailwind utilities;
|
|
7
|
-
|
|
8
|
-
/* 2) Your custom layer */
|
|
9
|
-
@layer components {
|
|
10
|
-
/* 2) pull in your custom @layer components */
|
|
11
|
-
@import "./window-manager.css";
|
|
12
|
-
|
|
13
|
-
/* 3) pull in all your overrides & global resets */
|
|
14
|
-
@import "./App.css";
|
|
15
|
-
}
|
package/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SecureFiles } from './App';
|
|
File without changes
|
package/src/logs/clipit_logs.log
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
2025-08-02 16:10:06,669 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:06] _filtered_file_list returned 10588 path(s)
|
|
2
|
-
2025-08-02 16:10:06,670 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:06] Proceeding to process 10588 file(s).
|
|
3
|
-
2025-08-02 16:10:06,944 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:06] Visible extensions: {'.ts', '.flow', '.js', '.markdown', '.iml', '.cts', '.md', '.mjs', '.cjs', '.node', '.html', '.wasm', '.tsx', '.lesser', '.coffee', '.css', '.txt', '.1', '.mts', '.map', '.json', '.tsbuildinfo', '.jison'}
|
|
4
|
-
2025-08-02 16:10:13,401 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:13] _filtered_file_list returned 0 path(s)
|
|
5
|
-
2025-08-02 16:10:13,402 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:13] No valid paths after filtering.
|
|
6
|
-
2025-08-02 16:10:39,813 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:39] _filtered_file_list returned 21 path(s)
|
|
7
|
-
2025-08-02 16:10:39,813 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:39] Proceeding to process 21 file(s).
|
|
8
|
-
2025-08-02 16:10:39,822 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:39] Visible extensions: {'.tsx', '.ts', '.mjs', '.css', '.json', '.cjs', '.js'}
|
|
9
|
-
2025-08-02 16:10:39,835 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:39] _filtered_file_list returned 0 path(s)
|
|
10
|
-
2025-08-02 16:10:39,836 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_clipit/clipit/gui_frontend/drag_and_drop_component/file_drop_area/file_drop_area.py - [2025-08-02 16:10:39] No valid paths after filtering.
|
package/src/logs/fetch_utils.log
DELETED
|
File without changes
|
package/src/logs/pair_data.log
DELETED
|
File without changes
|
package/src/logs/query_utils.log
DELETED
|
File without changes
|
package/src/logs/routes_bp.log
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
2025-08-02 16:10:00,636 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_flask/abstract_flask.py - Python path: ['', '/home/computron/miniconda/lib/python312.zip', '/home/computron/miniconda/lib/python3.12', '/home/computron/miniconda/lib/python3.12/lib-dynload', '/home/computron/.local/lib/python3.12/site-packages', '/home/computron/miniconda/lib/python3.12/site-packages', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf']
|
|
2
|
-
2025-08-02 16:10:38,808 - INFO - /home/computron/miniconda/lib/python3.12/site-packages/abstract_flask/abstract_flask.py - Python path: ['', '/home/computron/miniconda/lib/python312.zip', '/home/computron/miniconda/lib/python3.12', '/home/computron/miniconda/lib/python3.12/lib-dynload', '/home/computron/.local/lib/python3.12/site-packages', '/home/computron/miniconda/lib/python3.12/site-packages', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf', '/home/computron/miniconda/lib/python3.12/site-packages/odf']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|