-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Express refactor: Static file routes and templates #2246
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
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.
Handlebars + static combo-wombo! This looks great! ty again for taking care of this.
faed813
to
4140b09
Compare
6fece46
to
d8fe245
Compare
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.
Latest changes look great! There are still some unresolved comments (looks like they're being collapsed and hidden though).
} | ||
|
||
// Then, observe the meta theme element for changes. | ||
const themeElement = document.getElementById("monaco-workbench-meta-theme-color") as HTMLMetaElement |
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.
This is neat! In the future we could even update local storage with this method instead of doing it in the patch. It's always a happy day when we can reduce the patch size.
ef7ce56
to
3f1750c
Compare
a46e01f
to
97bd72d
Compare
e90c633
to
19f5971
Compare
- Refactor static routing, template vars. - Fixed issue where JSON entities may be unescaped - Updated web manifest schema, route handler. - Clean up issues surrounding static paths, types. - Removed static path helper. - Fixed issue where locals may change during request handling. - Added missing types. - Fixed issue where body theme color is stale. - Refactor missing tar endpoint. - Add local route handler.
19f5971
to
34b52a0
Compare
I haven't been able to re-review this yet. The divergence is growing and I'm not totally sure the best way to proceed but here's my plan:
Additionally, we had a discussion about Handlebars and we want to try taking a route that lets us have type checking in the template (if we do though it'll basically just be replacing the |
Deleted this branch for now. I have it locally and saved on my fork in case we need to access these commits again. Just trying to keep the main repositories branches clean. |
For posterity, the link is https://github.com/nhooyr/code-server/tree/z/handlebars-templates |
This PR continues the Expressification of code-server.
Progress
csStaticPath
conceptvscode
route./local
route for authenticated static file servingCloses #1292