-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from krumIO/fix/APPLAUNCHER-21__fail_to_load_issue
fix: for APPLAUNCHER-21 fixed routing and error handling
- Loading branch information
Showing
7 changed files
with
69 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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 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 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 +1,2 @@ | ||
export const PRODUCT_NAME = 'app-launcher'; | ||
export const BLANK_CLUSTER = '_'; |
This file contains 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 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 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 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,13 +1,17 @@ | ||
import type { RouteConfig } from 'vue-router'; | ||
import { PRODUCT_NAME } from '../config/app-launcher'; | ||
import AppLauncher from "../pages/app-launcher.vue"; | ||
import Dashboard from '../pages/index.vue'; | ||
import { PRODUCT_NAME, BLANK_CLUSTER } from '../config/app-launcher'; | ||
|
||
const MAIN_APP_LAUNCHER_LOCATION: RouteConfig = { | ||
component: () => AppLauncher, | ||
name: PRODUCT_NAME, | ||
path: `/${PRODUCT_NAME}`, | ||
}; | ||
const routes = [MAIN_APP_LAUNCHER_LOCATION]; | ||
const routes = [ | ||
{ | ||
name: `${ PRODUCT_NAME }-c-cluster`, | ||
path: `/${ PRODUCT_NAME }/c/:cluster`, | ||
component: Dashboard, | ||
meta: { | ||
product: PRODUCT_NAME, | ||
cluster: BLANK_CLUSTER, | ||
pkg: PRODUCT_NAME | ||
} | ||
} | ||
]; | ||
|
||
export { MAIN_APP_LAUNCHER_LOCATION }; | ||
export default routes; | ||
export default routes; |