mbkbucket 2.0.0 → 2.1.0
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/index.js +9 -9
- package/lib/config/index.js +27 -11
- package/lib/config/validation.js +5 -2
- package/lib/debug.js +12 -0
- package/lib/routes/api.js +41 -51
- package/lib/routes/view.js +37 -17
- package/lib/s3.js +41 -28
- package/package.json +5 -4
- package/public/bucketadmin.css +124 -1
- package/public/bucketadmin.js +177 -86
- package/views/bucketadmincontent.handlebars +15 -15
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</select>
|
|
29
29
|
<i class="fas fa-chevron-down bucket-switcher-caret" aria-hidden="true"></i>
|
|
30
30
|
</div>
|
|
31
|
-
<small id="bucketSwitchStatus" class="bucket-switcher-status
|
|
31
|
+
<small id="bucketSwitchStatus" class="bucket-switcher-status is-hidden">Switching bucket...</small>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<div class="drop-hint">Supports multiple files</div>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
<input type="file" class="form-control d-none"
|
|
68
|
+
<input type="file" class="form-control d-none" id="fileInput" name="files" multiple>
|
|
69
69
|
<div class="form-text">
|
|
70
70
|
<i class="fas fa-info-circle"></i>
|
|
71
71
|
You can drop multiple files. Large files will use chunked upload when available.
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
<div id="uploadQueue" class="mb-3"></div>
|
|
77
77
|
|
|
78
78
|
<!-- Upload Progress (global fallback) -->
|
|
79
|
-
<div id="uploadProgress" class="mb-3
|
|
79
|
+
<div id="uploadProgress" class="mb-3 is-hidden">
|
|
80
80
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
|
81
81
|
<span class="upload-label">Uploading...</span>
|
|
82
82
|
<span id="uploadPercent" class="upload-percent">0%</span>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="progress-container">
|
|
85
|
-
<div id="progressBar" class="progress-bar
|
|
85
|
+
<div id="progressBar" class="progress-bar progress-bar-empty"></div>
|
|
86
86
|
</div>
|
|
87
87
|
<div class="upload-details mt-2">
|
|
88
88
|
<small id="uploadDetails" class="text-muted"></small>
|
|
@@ -118,36 +118,36 @@
|
|
|
118
118
|
<!-- Inline Search (moved from separate card) -->
|
|
119
119
|
<div class="search-inline">
|
|
120
120
|
<input type="text" class="form-control form-control-sm" id="searchInput" placeholder="Search files and folders..." aria-label="Search files">
|
|
121
|
-
<button type="button" class="btn btn-sm btn-primary"
|
|
122
|
-
<button type="button" class="btn btn-sm btn-outline-secondary"
|
|
121
|
+
<button type="button" class="btn btn-sm btn-primary" data-action="search" aria-label="Search"><i class="fas fa-search"></i></button>
|
|
122
|
+
<button type="button" class="btn btn-sm btn-outline-secondary" data-action="clear-search" aria-label="Clear search"><i class="fas fa-times"></i></button>
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
125
|
<div class="quick-filter-group" role="group" aria-label="Quick filters">
|
|
126
|
-
<button type="button" class="btn btn-sm quick-filter-btn active" data-filter="all"
|
|
127
|
-
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="media"
|
|
128
|
-
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="docs"
|
|
129
|
-
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="code"
|
|
126
|
+
<button type="button" class="btn btn-sm quick-filter-btn active" data-filter="all">All</button>
|
|
127
|
+
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="media">Media</button>
|
|
128
|
+
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="docs">Docs</button>
|
|
129
|
+
<button type="button" class="btn btn-sm quick-filter-btn" data-filter="code">Code</button>
|
|
130
130
|
</div>
|
|
131
131
|
|
|
132
132
|
<div class="btn-group" role="group" aria-label="Actions">
|
|
133
|
-
<button type="button" class="btn btn-sm btn-success"
|
|
133
|
+
<button type="button" class="btn btn-sm btn-success" data-action="create-file" title="New Text File">
|
|
134
134
|
<i class="fas fa-file-alt"></i> New File
|
|
135
135
|
</button>
|
|
136
|
-
<button type="button" class="btn btn-sm btn-outline-success"
|
|
136
|
+
<button type="button" class="btn btn-sm btn-outline-success" data-action="create-folder" title="New Folder">
|
|
137
137
|
<i class="fas fa-folder-plus"></i> New Folder
|
|
138
138
|
</button>
|
|
139
139
|
</div>
|
|
140
140
|
|
|
141
141
|
<div class="btn-group" role="group" aria-label="View Mode">
|
|
142
|
-
<button type="button" class="btn btn-sm btn-light view-toggle-btn view-btn-left active" id="viewBtnFolder"
|
|
142
|
+
<button type="button" class="btn btn-sm btn-light view-toggle-btn view-btn-left active" id="viewBtnFolder" data-view-mode="folder" title="Folder View">
|
|
143
143
|
<i class="fas fa-folder"></i> Folders
|
|
144
144
|
</button>
|
|
145
|
-
<button type="button" class="btn btn-sm btn-outline-light view-toggle-btn view-btn-right" id="viewBtnFlat"
|
|
145
|
+
<button type="button" class="btn btn-sm btn-outline-light view-toggle-btn view-btn-right" id="viewBtnFlat" data-view-mode="flat" title="Flat List (All Files)">
|
|
146
146
|
<i class="fas fa-list-ul"></i> Flat View
|
|
147
147
|
</button>
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|
|
150
|
-
<div class="card-body
|
|
150
|
+
<div class="card-body file-list-card-body">
|
|
151
151
|
<div id="fileListContainer">
|
|
152
152
|
{{> bucketadmin_filelist_skeleton }}
|
|
153
153
|
</div>
|