File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ Vue.use(VueProgress, {
7
7
defaultShape : 'circle'
8
8
} )
9
9
10
- ClientAddonApi . component ( 'vue- webpack- dashboard' , WebpackDashboard )
11
- ClientAddonApi . component ( 'vue- webpack- analyzer' , WebpackAnalyzer )
10
+ ClientAddonApi . component ( 'org. vue. webpack.components. dashboard' , WebpackDashboard )
11
+ ClientAddonApi . component ( 'org. vue. webpack.components. analyzer' , WebpackAnalyzer )
12
12
13
- ClientAddonApi . addRoutes ( 'vue- webpack' , [
14
- { path : '' , name : 'test- webpack-route ' , component : TestView }
13
+ ClientAddonApi . addRoutes ( 'org. vue. webpack' , [
14
+ { path : '' , name : 'org.vue. webpack.routes.test ' , component : TestView }
15
15
] )
16
16
17
17
// Locales
Original file line number Diff line number Diff line change @@ -93,5 +93,6 @@ export default class ClientAddonApi {
93
93
}
94
94
95
95
export function toComponentId ( id ) {
96
+ id = id . replace ( / \. / g, '-' )
96
97
return `client-addon--${ id } `
97
98
}
Original file line number Diff line number Diff line change @@ -112,19 +112,19 @@ module.exports = api => {
112
112
const views = {
113
113
views : [
114
114
{
115
- id : 'vue- webpack- dashboard' ,
115
+ id : 'org. vue. webpack.views. dashboard' ,
116
116
label : 'org.vue.vue-webpack.dashboard.title' ,
117
117
icon : 'dashboard' ,
118
- component : 'vue- webpack- dashboard'
118
+ component : 'org. vue. webpack.components. dashboard'
119
119
} ,
120
120
{
121
- id : 'vue- webpack- analyzer' ,
121
+ id : 'org. vue. webpack.views. analyzer' ,
122
122
label : 'org.vue.vue-webpack.analyzer.title' ,
123
123
icon : 'donut_large' ,
124
- component : 'vue- webpack- analyzer'
124
+ component : 'org. vue. webpack.components. analyzer'
125
125
}
126
126
] ,
127
- defaultView : 'vue- webpack- dashboard'
127
+ defaultView : 'org. vue. webpack.views. dashboard'
128
128
}
129
129
api . describeTask ( {
130
130
match : / v u e - c l i - s e r v i c e s e r v e ( \s + - - \S + ( \s + \S + ) ? ) * $ / ,
@@ -343,7 +343,7 @@ module.exports = api => {
343
343
344
344
// Webpack dashboard
345
345
api . addClientAddon ( {
346
- id : 'vue- webpack' ,
346
+ id : 'org. vue. webpack.client-addon ' ,
347
347
path : '@vue/cli-ui-addon-webpack/dist'
348
348
} )
349
349
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ module.exports = api => {
13
13
14
14
// Add a test page below 'plugins', 'configurations' and 'tasks' on the left sidebar
15
15
api . addView ( {
16
- id : 'vue- webpack- test-view ' ,
17
- name : 'test- webpack-route ' ,
16
+ id : 'org. vue. webpack.views. test' ,
17
+ name : 'org.vue. webpack.routes.test ' ,
18
18
// icon: 'pets',
19
19
icon : '/public/webpack-logo.png' ,
20
20
tooltip : 'Test view from webpack addon'
You can’t perform that action at this time.
0 commit comments