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

Add Side Panel #55

Merged
merged 11 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 9 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const gulp = require('gulp')
const download = require('gulp-download2')

gulp.task('bootstrap', () => {
return gulp
Expand Down Expand Up @@ -34,7 +35,14 @@ gulp.task('jquery', () => {
.pipe(gulp.dest('src/dist/jquery'))
})

gulp.task('uppy', () => {
return download([
'https://releases.transloadit.com/uppy/v3.27.0/uppy.min.mjs',
'https://releases.transloadit.com/uppy/v3.27.0/uppy.min.css',
]).pipe(gulp.dest('src/dist/uppy'))
})

gulp.task(
'default',
gulp.parallel('bootstrap', 'clipboard', 'fontawesome', 'jquery')
gulp.parallel('bootstrap', 'clipboard', 'fontawesome', 'jquery', 'uppy')
)
5 changes: 4 additions & 1 deletion manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"background": {
"service_worker": "js/service-worker.js"
},
"permissions": ["offscreen"],
"permissions": ["offscreen", "sidePanel"],
"side_panel": {
"default_path": "html/sidepanel.html"
},
"minimum_chrome_version": "109"
}
12 changes: 12 additions & 0 deletions manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
"background": {
"scripts": ["js/service-worker.js"]
},
"sidebar_action": {
"default_panel": "html/sidepanel.html",
"default_title": "Django Files",
"open_at_install": false,
"default_icon": {
"16": "media/logo16.png",
"32": "media/logo32.png",
"48": "media/logo48.png",
"96": "media/logo96.png",
"128": "media/logo128.png"
}
},
"browser_specific_settings": {
"gecko": {
"id": "shane-web@cssnr.com",
Expand Down
8 changes: 7 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
},
"description": "Show Popup"
},
"showSidePanel": {
"suggested_key": {
"default": "Alt+Shift+S"
},
"description": "Show Side Panel"
},
"uploadFile": {
"suggested_key": {
"default": "Alt+Shift+A"
Expand All @@ -33,7 +39,7 @@
"scripting",
"storage"
],
"background": {},
"background": { "type": "module" },
"options_ui": {
"page": "html/options.html",
"open_in_tab": true
Expand Down
Loading