-
Notifications
You must be signed in to change notification settings - Fork 21
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
chore: Developer portal #691
chore: Developer portal #691
Conversation
Codecov Report
@@ Coverage Diff @@
## feat/portal-url #691 +/- ##
===================================================
- Coverage 31.6% 31.57% -0.03%
===================================================
Files 103 103
Lines 1386 1387 +1
Branches 361 361
===================================================
Hits 438 438
- Misses 917 918 +1
Partials 31 31
Continue to review full report at Codecov.
|
@@ -223,7 +228,9 @@ export default class AppAdd extends Component { | |||
onClick={() => { | |||
if (isCreateApp) { | |||
history.replace( | |||
`/dashboard/app/${appDetail.app_id}/create-version` | |||
toRoute(routes.portal._dev.versionDetail, { |
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.
这里写错了,是创建版本,不是版本详情
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.
好的。
src/routes/portals/dev.jsx
Outdated
@@ -36,6 +35,13 @@ export default ({ prefix }) => ( | |||
path={`${prefix}/apps/:appId/versions/:versionId`} | |||
component={VersionDetail} | |||
/> | |||
<WrapRoute | |||
path={`${prefix}/apps/:appId/deploy/:versionId`} |
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.
版本是可选的,改为 : versionId?
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 path = user.isDev | ||
? `/dashboard/app/${appId}/sandbox-instances` | ||
: '/dashboard/clusters'; | ||
const path = getPortalFromPath() === 'user' |
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.
这里判断错了吧
* Add user, dev, isv, admin portal routes * feat: Portal architecture * chore: Admin portal (#690) * chore: Developer portal (#691) * fix: TopNav switch link in different portals (#692) * feat: Add cluster, cluster detail to user portal * Refine entry file * Refine Layout comp, remove socket listen * feat: Add runtimes, runtime create page for user portal * Fix all routes links * Refactor: Cluster, runtime pages suit user and non-user portal
No description provided.