diff --git a/src/assets/icons/aws_cloud.svg b/src/assets/icons/aws_cloud.svg new file mode 100644 index 00000000..9ec18d56 --- /dev/null +++ b/src/assets/icons/aws_cloud.svg @@ -0,0 +1,17 @@ + + + + diff --git a/src/assets/icons/browser.svg b/src/assets/icons/browser.svg new file mode 100644 index 00000000..eab0146d --- /dev/null +++ b/src/assets/icons/browser.svg @@ -0,0 +1,17 @@ + + + + diff --git a/src/assets/icons/database.svg b/src/assets/icons/database.svg new file mode 100644 index 00000000..73d66841 --- /dev/null +++ b/src/assets/icons/database.svg @@ -0,0 +1,17 @@ + + + + diff --git a/src/assets/icons/general_service.svg b/src/assets/icons/general_service.svg new file mode 100755 index 00000000..f22dfca1 --- /dev/null +++ b/src/assets/icons/general_service.svg @@ -0,0 +1,16 @@ + + +icn/chart \ No newline at end of file diff --git a/src/assets/icons/infrastructure.svg b/src/assets/icons/infrastructure.svg new file mode 100644 index 00000000..2ab919b7 --- /dev/null +++ b/src/assets/icons/infrastructure.svg @@ -0,0 +1,18 @@ + + +scatter_plot + + diff --git a/src/assets/icons/kubernetes.svg b/src/assets/icons/kubernetes.svg new file mode 100644 index 00000000..1c4cad71 --- /dev/null +++ b/src/assets/icons/kubernetes.svg @@ -0,0 +1,17 @@ + + + + diff --git a/src/assets/icons/marketplace.svg b/src/assets/icons/marketplace.svg new file mode 100644 index 00000000..4433709c --- /dev/null +++ b/src/assets/icons/marketplace.svg @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/src/assets/icons/self_observability.svg b/src/assets/icons/self_observability.svg new file mode 100644 index 00000000..65f0531d --- /dev/null +++ b/src/assets/icons/self_observability.svg @@ -0,0 +1,29 @@ + + + + + Group + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/icons/service_mesh.svg b/src/assets/icons/service_mesh.svg new file mode 100755 index 00000000..c48868a2 --- /dev/null +++ b/src/assets/icons/service_mesh.svg @@ -0,0 +1,16 @@ + + +icn/epic \ No newline at end of file diff --git a/src/graphql/fragments/app.ts b/src/graphql/fragments/app.ts index 120b270a..8f87699f 100644 --- a/src/graphql/fragments/app.ts +++ b/src/graphql/fragments/app.ts @@ -26,3 +26,24 @@ export const OAPTimeInfo = { export const OAPVersion = { query: `version { version }`, }; + +export const MenuItems = { + query: ` + getMenuItems { + title + icon + layer + activate + description + documentLink + subItems { + title + icon + layer + activate + description + documentLink + } + } + `, +}; diff --git a/src/graphql/query/app.ts b/src/graphql/query/app.ts index d538c417..d74aeac4 100644 --- a/src/graphql/query/app.ts +++ b/src/graphql/query/app.ts @@ -14,8 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { OAPTimeInfo, OAPVersion } from "../fragments/app"; +import { OAPTimeInfo, OAPVersion, MenuItems } from "../fragments/app"; export const queryOAPTimeInfo = `query queryOAPTimeInfo {${OAPTimeInfo.query}}`; export const queryOAPVersion = `query ${OAPVersion.query}`; + +export const queryMenuItems = `query menuItems {${MenuItems.query}}`; diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index f5576306..26a0285e 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - {{ m.meta && t(m.meta.title) }} + {{ m.meta && m.meta.title }} @@ -56,7 +56,7 @@ limitations under the License. --> @@ -67,16 +67,14 @@ limitations under the License. --> diff --git a/src/views/Settings.vue b/src/views/marketplace/Settings.vue similarity index 100% rename from src/views/Settings.vue rename to src/views/marketplace/Settings.vue diff --git a/vite.config.ts b/vite.config.ts index a705e818..f63e7d5e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -79,7 +79,7 @@ export default ({ mode }: ConfigEnv): UserConfig => { }, }, build: { - target: "es2015", + target: "esnext", cssTarget: "chrome80", outDir: OUTPUT_DIR, manifest: false,