Skip to content

Commit 0bd80d5

Browse files
Update vue example
1 parent e724ca3 commit 0bd80d5

3 files changed

Lines changed: 19 additions & 29 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { addNavMenuSection } from '@vendure/admin-ui/core';
2+
3+
export default [
4+
// This adds a new nav menu section linking to the Vue app route.
5+
addNavMenuSection({
6+
id: 'demo-extensions',
7+
label: 'Demo Extensions',
8+
items: [
9+
{
10+
id: 'vue-app',
11+
label: 'Vue App',
12+
routerLink: ['/extensions/vue-ui'],
13+
icon: 'code',
14+
},
15+
],
16+
}),
17+
];

src/ui-extensions/modules/shared-ui-extension.module.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/ui-extensions/ui-extensions.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AdminUiExtension } from '@vendure/ui-devkit/compiler';
33

44
/**
55
* This demonstrates how to configure a UI extension hosting an application built on
6-
* other web technologies than Angular. In this case, Vue and React.
6+
* other web technologies than Angular. In this case, Vue.
77
*/
88
export const nonAngularUiExtensions: AdminUiExtension = {
99
extensionPath: path.join(__dirname, 'modules'),
@@ -14,12 +14,8 @@ export const nonAngularUiExtensions: AdminUiExtension = {
1414
ngModuleFileName: 'vue-ui-extension.module.ts',
1515
ngModuleName: 'VueUiExtensionModule',
1616
},
17-
{
18-
type: 'shared',
19-
ngModuleFileName: 'shared-ui-extension.module.ts',
20-
ngModuleName: 'UiSharedModule',
21-
},
2217
],
18+
providers: ['providers.ts'],
2319
staticAssets: [
2420
// Here we are copying the static files of the Vue app to the `assets/` directory
2521
// of the compiled Admin UI app.

0 commit comments

Comments
 (0)