-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Merge some standalone Vite entries into index.js #37085
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
Merged
Merged
Changes from 29 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5525c17
Fix Swagger/OpenAPI rendering in dev mode and improve theme support
silverwind ea7d012
Address review feedback: sync dark mode on theme change, allow iframe…
silverwind 31ecb83
Merge standalone Vite entry points into index.js
silverwind 2b507dd
Merge origin/main into fixswag
silverwind 70e237c
Fix double script injection in openapi iframe
silverwind 6efaefd
Remove stale web_src/css/standalone/swagger.css
silverwind ed3b987
Restore external render, keep external-render-iframe standalone, add …
silverwind 40a5f8e
Remove HeadScriptHTML, fix iframe dark mode and height
silverwind c4c538d
Merge branch 'main' into fixswag
silverwind 0d0a548
Rename standalone/ and modules/ to pages/
silverwind 8a1d47a
tweak
silverwind 376666f
Remove redundant ErrAbortHandler recover in vitedev proxy
silverwind 567eccc
remove lint exclusion
silverwind 090f02a
Restore gitea-is-dark-theme URL parameter on iframe
silverwind 76fc400
Remove dead jQuery check from devtest header
silverwind 307d38d
Remove unnecessary comment in openapi.go
silverwind 501470d
Restore HeadScriptHTML, remove manual window.config stub
silverwind 01a7f09
Fix missing CSS var copy, log RenderToHTML error, parallelize swagger…
silverwind 802a682
Revert parallel swagger imports to preserve CSS cascade order
silverwind 8eb1127
Import swagger-ui CSS from swagger.css, parallelize JS/CSS imports
silverwind 110f65f
refactor
wxiaoguang aecbe92
fix "standalone" path problem
wxiaoguang 9512a4a
add comments
wxiaoguang 924c1f7
fine tune comments
wxiaoguang 54d9263
fix test
wxiaoguang 9690716
Merge branch 'main' into fixswag
wxiaoguang 82b08a6
add comment
wxiaoguang 70f137b
remove unclear swagger css style
wxiaoguang e8e718f
fix unclear js name mapping
wxiaoguang c010dbc
add tests to cover RenderIFrame behavior
wxiaoguang d27ad93
simplify external render css injection
wxiaoguang fad6527
fix test
wxiaoguang 3cb2cd1
Merge branch 'main' into fixswag
wxiaoguang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| <link rel="stylesheet" href="{{AssetURI "css/index.css"}}"> | ||
| <link rel="stylesheet" href="{{AssetURI (printf "css/theme-%s.css" (PathEscape ctx.CurrentWebTheme.InternalName))}}"> | ||
| <link id="current-web-theme-style" rel="stylesheet" href="{{ctx.CurrentWebTheme.PublicAssetURI}}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| {{/* TODO: the devtest.js is isolated from index.js, so no module is shared and many index.js functions do not work in devtest.ts */}} | ||
| <script type="module" src="{{AssetURI "js/devtest.js"}}"></script> | ||
| {{template "base/footer" ctx.RootData}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.