-
Notifications
You must be signed in to change notification settings - Fork 10
Add a quicklaunch toolbar to spawn new charms to the space default charm #1775
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
Conversation
…toolshed patterns endpoint
jsantell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
|
||
| try { | ||
| // Security: validate filename doesn't contain path traversal | ||
| if (filename.includes("..") || filename.includes("/")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| const url = new URL(filename, this.baseUrl); | ||
|
|
||
| try { | ||
| return await Deno.readFile(url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we want to cache this somewhere so that we don't have to hit the disk as often, potential followup
HttpProgramResolverand the patterns api endpoint, instead of the static cacheSummary by cubic
Adds a Quicklaunch toolbar to the default space charm and serves the default app via a new Toolshed patterns API, replacing the old static recipe. This makes spawning common charms one click and decouples Shell from bundled assets.
New Features
Refactors