Skip to content
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

Merged
merged 5 commits into from
Jan 22, 2019

Conversation

whDongRui
Copy link
Contributor

No description provided.

@whDongRui whDongRui changed the base branch from master to feat/portal-url January 21, 2019 10:50
@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #691 into feat/portal-url will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@                 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
Impacted Files Coverage Δ
src/components/Layout/SideNav/navMap.js 100% <ø> (ø) ⬆️
src/components/Layout/SideNav/index.jsx 2.81% <0%> (-0.05%) ⬇️
src/components/EnhanceTable/columns.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f9881b...0e6e278. Read the comment docs.

@openpitrix openpitrix deleted a comment Jan 21, 2019
@@ -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, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里写错了,是创建版本,不是版本详情

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的。

@@ -36,6 +35,13 @@ export default ({ prefix }) => (
path={`${prefix}/apps/:appId/versions/:versionId`}
component={VersionDetail}
/>
<WrapRoute
path={`${prefix}/apps/:appId/deploy/:versionId`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

版本是可选的,改为 : versionId?

Copy link
Contributor Author

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里判断错了吧

@sunnywx sunnywx merged commit 5dcd475 into openpitrix:feat/portal-url Jan 22, 2019
sunnywx added a commit that referenced this pull request Jan 22, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants