Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dashboard with file system #1047

Merged
merged 56 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
cbb0553
🎨 remove unused imports, fix linting
chetbae Jun 14, 2023
96433ef
Set up FileSystem/
chetbae Jun 15, 2023
8598d0a
Add types and interfaces for FileSystem
chetbae Jun 21, 2023
533e1e9
Implement fs localstorage and structure
chetbae Jun 22, 2023
08187a4
Remove cyclical structure from Entry types
chetbae Jun 28, 2023
7ef9a14
Refactor dashboard files
chetbae Jun 30, 2023
f2ecc67
Implement folder system
chetbae Jun 30, 2023
8bb6e78
fix handleDeleteDocuments, refactor dashboard
chetbae Jul 5, 2023
4577d64
implement navbar with links
chetbae Jul 5, 2023
8ea7cbf
Make clickable navbar, replaces previous title
chetbae Jul 5, 2023
6c552dd
Take ShiftSelection out of DocumentSelector.ts
chetbae Jul 5, 2023
5fd8503
Move unecessary listeners out of InitDocumentSelector
chetbae Jul 6, 2023
7e9c4c2
integrate uploading with filesystem
chetbae Jul 6, 2023
f7b3f63
sort by file type, save fs to locstore on reload
chetbae Jul 6, 2023
7a5d991
create make folder function
chetbae Jul 6, 2023
9d2f855
folder icon background image
chetbae Jul 6, 2023
fca1a59
Style Nav back btn
chetbae Jul 7, 2023
cda0442
fix dashboard back-btn
chetbae Jul 7, 2023
5343263
fix immutable parent folder msg
chetbae Jul 7, 2023
4629d5d
style new-folder-button
chetbae Jul 7, 2023
772a397
comment out back-button
chetbae Jul 7, 2023
c79fed9
add renaming for fs dashboard
chetbae Jul 7, 2023
d2522f7
prompt for new name on handleAddFolder
chetbae Jul 7, 2023
5dc03db
Rename DocumentSelector->Dashboard, getEntryById()
chetbae Jul 10, 2023
7343826
Extract Dashboard State
chetbae Jul 10, 2023
73b8d7e
Add getting id for folder vs file
chetbae Jul 10, 2023
e46ca92
Rewrite formatFilename
chetbae Jul 12, 2023
318475a
✨Add 'In-Tile' renaming
chetbae Jul 12, 2023
f85494a
✨Add AddNewFolder behaviour with in-tile prompt
chetbae Jul 12, 2023
a7452c3
🎨 Add comments for major functions
chetbae Jul 12, 2023
f7a7bc3
💄 Add styling for input when renaming
chetbae Jul 12, 2023
acd5592
✨Re-add back button in dashboard
chetbae Jul 12, 2023
b53801e
✨ 💄 Add drag-and-drop feature, start work on context-menu, add and ed…
cadagong Jul 11, 2023
3b64ae1
✨ 💄 Add context menu feature, add "move" icon, edit context menu CSS
cadagong Jul 12, 2023
8c9709c
✨ 💄 Add drag-and-drop feature, start work on context-menu, add and ed…
cadagong Jul 11, 2023
08072c4
✨ 💄 Add context menu feature, add "move" icon, edit context menu CSS
cadagong Jul 12, 2023
553abab
💄refactor dashboard css + fix navbar animation
chetbae Jul 13, 2023
560440e
🐛 Fix drag-drop, extract fs_function checks
chetbae Jul 13, 2023
547cf8e
🎨 Update for infer-string-literal lint
chetbae Jul 13, 2023
bf4b0ae
🚑️ Implement corrected drag+drog behaviour
chetbae Jul 13, 2023
8e5b12b
💄 Adjust opacity for back-btn, change top/middle zone animations
chetbae Jul 13, 2023
8a087d0
✨Rewrite drag-drop to use fs objects, backbtn and navbar droppable
chetbae Jul 13, 2023
4c3eb67
🐛 Fix case where folders get dropped into itself
chetbae Jul 13, 2023
9a8bd43
💄Reduce animation time
chetbae Jul 14, 2023
43e2e79
💄swap folder and doc upload position, emphasize document highlights
chetbae Jul 14, 2023
9f022b7
🐛 Fix open one selected folder with action button
chetbae Jul 14, 2023
b1c77f0
🎨 Remove linting errors
chetbae Jul 17, 2023
4f34779
🐛 Fix addFolder not working on empty folder
chetbae Jul 17, 2023
0e8b2ce
🎨 Move fs states to dashboardState
chetbae Jul 17, 2023
753b97b
💄Align upload docs items
chetbae Jul 18, 2023
d3a9f1c
✨ Set up modal window for dashboard move-to
chetbae Jul 18, 2023
c83fc79
✨ Implement multiple move-to-folder function
chetbae Jul 19, 2023
7d00527
🚚 Update sample filenames for dashboard
chetbae Jul 19, 2023
b06a94a
🐛 Improve fs error msg + uncouple state + revert rename function
chetbae Jul 19, 2023
9879e02
💄 Add responsive drop areas + remove print statements
chetbae Jul 20, 2023
d37225d
🎨 Remove unnecessary filename-text container
chetbae Jul 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions assets/img/move-doc-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/img/new-folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions assets/img/open-doc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 3 additions & 13 deletions deployment/scripts/dashboard.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import { InitDocumentSelector } from '../../src/Dashboard/DocumentSelector';
import { InitUploadArea } from '../../src/Dashboard/UploadArea';
import FileManager from '../../src/Dashboard/FileManager';

export const fm = FileManager.getInstance();

InitDocumentSelector();

document.querySelector('#upload-new-doc-button')?.addEventListener('click', function() {
InitUploadArea();
});

document.querySelector('#home-link')?.setAttribute('href', __LINK_LOCATION__);
import { loadDashboard } from '../../src/Dashboard/Dashboard';

loadDashboard();
document.querySelector('#home-link')?.setAttribute('href', __LINK_LOCATION__);
Loading
Loading