-
-
Notifications
You must be signed in to change notification settings - Fork 449
ui-next #1138
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
ui-next #1138
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
58b173a
ui-next: inject args into vite html
renbaoshuo e2a07e6
core: improved RendererContext typing
renbaoshuo f2a5a17
ui-next: add hydroPlugins to dynamically load route plugins
renbaoshuo 9d5bff2
ui-next: serialize injected data correctly
renbaoshuo 562ff3a
*: update devcontainer config
renbaoshuo 8f366a0
ui-next: refactor addon ui patch resolving
renbaoshuo 8d7a48b
ui-next: enable for all pages
renbaoshuo 5b20f42
ui-next: add component registry
renbaoshuo e147b17
ui-next: page data context
renbaoshuo 0b72aea
ui-next: refactor code structure
renbaoshuo bfca73c
ui-next: inject route map
renbaoshuo c6b4d4f
workspace: include ui-next package in eslint configuration
renbaoshuo 3575ad6
ui-next: add missing return statements in hydroPlugins function
renbaoshuo 0d16157
ui-next: format index.ts
renbaoshuo 2bc1f58
ui-next: better page data context
renbaoshuo 950910f
ui-next: url builder
renbaoshuo f753d1b
ui-next: restructure registry context
renbaoshuo b5ec79d
ui-next: use route name
renbaoshuo b441356
framework: prepare for ui-next data fetching logics
renbaoshuo efc9294
ui-next: use kebab-case for file naming
renbaoshuo f71d641
ui-next: navigation
renbaoshuo 15dd1fc
ui-next: registry hmr support
renbaoshuo 6ce3025
framework: build routeMap from koa router stack
renbaoshuo 4acb572
ui-next: disable vite clear terminal screen behavior
renbaoshuo 979cda7
ui-next: refactor router
renbaoshuo b66bdfa
ui-next: fix indent for server-side files
renbaoshuo 8bb0892
ui-next: remove _ui_next search param
renbaoshuo 28f977f
ui-next: refactor component registry structure
renbaoshuo ad49272
ui-next: handle link navigation correctly
renbaoshuo 504b963
ui-next: add sample plugin
renbaoshuo 871b4c2
ui-next: endpoint support
renbaoshuo 8232b89
ui-next: prod build
renbaoshuo 50ed8a6
ui-next: error boundary
renbaoshuo 8dc7a73
ui-next: catch installPlugin errors
renbaoshuo 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "name": "@hydrooj/ui-next-plugin-sample", | ||
| "dependencies": { | ||
| "@hydrooj/ui-next": "workspace:*" | ||
| } | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export default function BeforeComponent() { | ||
| console.log('before app'); | ||
| // throw new Error('test error boundary in before interceptor'); | ||
| return <div>before app via @hydrooj/ui-next-plugin-sample</div>; | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import type { PluginAPI } from '@hydrooj/ui-next'; | ||
| import BeforeComponent from './before'; | ||
|
|
||
| export function setup(api: PluginAPI) { | ||
| api.before('page:app', BeforeComponent); | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './src/api'; |
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
Oops, something went wrong.
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.