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

Display each drive filebrowser in a separate side panel #10

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d45a600
Create a new Drive class and a DefaultAndDrivesFileBrowser SidePanel …
HaudinFlorence Nov 7, 2023
d49203d
Merge the dialog and the filebrowser plugins into one single called A…
HaudinFlorence Nov 9, 2023
b40c9e4
Try to add a toolbar to the default browser.
HaudinFlorence Nov 13, 2023
ce9a6c5
Take comments into account concerning adding the toolbar of the browser.
HaudinFlorence Nov 13, 2023
6d075cc
Introduce changes to keep all the attributes required by the IDrive i…
HaudinFlorence Nov 15, 2023
97cf02b
Try to modify the filebrowser to handle several Dirlistings.
HaudinFlorence Nov 17, 2023
a1cb12b
Introduce the DriveDirlisting class
HaudinFlorence Nov 28, 2023
c61e3b7
Rename class DriveListing -> DriveBrowser, rename file browser.ts -> …
HaudinFlorence Nov 29, 2023
7cfb522
Rename class DriveListing -> DriveBrowser, rename file browser.ts -> …
HaudinFlorence Nov 29, 2023
f1176e2
Display each drive filebrowser in a separate side panel.
HaudinFlorence Dec 5, 2023
b445681
Try to implement the Untitled method in Drive class in contents.ts an…
HaudinFlorence Dec 7, 2023
ff2728d
Try to implement the delete method in Drive class in contents.ts.
HaudinFlorence Dec 11, 2023
fb4e714
Try to implement the rename method in Drive class contents.ts
HaudinFlorence Dec 12, 2023
b1e206b
Try to implement a copy method in Drive class in contents.ts.
HaudinFlorence Dec 14, 2023
5288ca5
Add a command removeDriveBrowser and the relative logics to remove a …
HaudinFlorence Dec 15, 2023
6ff5fad
Move the logics to add a drive filebrowser in a command named AddDriv…
HaudinFlorence Dec 15, 2023
f8aa3e9
Add logics to dispose a drive in the command RemoveDriveBrowser.
HaudinFlorence Dec 18, 2023
47a6de6
Add a disposed signal on Drive and use it for disposing the proper si…
HaudinFlorence Dec 19, 2023
592ce7a
Add a getDrivesList request and a createDrivesList in index.ts to get…
HaudinFlorence Dec 21, 2023
b03aaf3
Restore logics to open a dialog to select the drives to be added.
HaudinFlorence Dec 29, 2023
106e5b8
Fix bug with the toolbar and the error message related to setFilter a…
HaudinFlorence Jan 16, 2024
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.2.0",
"jupyterlab-unfold": "0.3.0",
"mkdirp": "^1.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
Expand Down
67 changes: 64 additions & 3 deletions schema/widget.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"jupyter.lab.toolbars": {
"FileBrowser": [
"DrivePanel": [
{
"name": "new-directory",
"command": "filebrowser:create-new-directory",
Expand All @@ -19,6 +19,67 @@
"title": "'@jupyter/drives",
"description": "jupyter-drives settings.",
"type": "object",
"properties": {},
"additionalProperties": false
"jupyter.lab.transform": true,
"properties": {
"toolbar": {
"title": "File browser toolbar items",
"description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:",
"items": {
"$ref": "#/definitions/toolbarItem"
},
"type": "array",
"default": []
}
},
"additionalProperties": false,
"definitions": {
"toolbarItem": {
"properties": {
"name": {
"title": "Unique name",
"type": "string"
},
"args": {
"title": "Command arguments",
"type": "object"
},
"command": {
"title": "Command id",
"type": "string",
"default": ""
},
"disabled": {
"title": "Whether the item is ignored or not",
"type": "boolean",
"default": false
},
"icon": {
"title": "Item icon id",
"description": "If defined, it will override the command icon",
"type": "string"
},
"label": {
"title": "Item label",
"description": "If defined, it will override the command label",
"type": "string"
},
"caption": {
"title": "Item caption",
"description": "If defined, it will override the command caption",
"type": "string"
},
"type": {
"title": "Item type",
"type": "string",
"enum": ["command", "spacer"]
},
"rank": {
"title": "Item rank",
"type": "number",
"minimum": 0,
"default": 50
}
}
}
}
}
Loading
Loading