@@ -317,23 +317,18 @@ test('renders ${componentName}', () => {
317
317
318
318
if (compClass !== "" && compID !== "") {
319
319
320
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
321
- return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n<Oauth/>\n\t</div>\n</template>`;
322
- }
323
320
return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
324
321
}
325
322
else if (compClass !== "" && compID === "") {
326
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
327
- return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \t<Oauth/>\n\t</div>\n</template>`;
328
- }
323
+
329
324
return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
330
325
}
331
326
else if (compClass === "" && compID !== "") {
332
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr}\n<Oauth/>\n\t</div>\n</template>`;}
327
+
333
328
return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr} </div>\n</template>`;
334
329
}
335
330
else {
336
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){return `<template>\n <div>\n\t${str}${templateTagStr}${routeStr}\t<Oauth/> \n\t</div>\n</template>`;}
331
+
337
332
return `<template>\n <div>\n\t${str}${templateTagStr}${routeStr} </div>\n</template>`;
338
333
}
339
334
}
@@ -416,22 +411,16 @@ test('renders ${componentName}', () => {
416
411
let output;
417
412
if (this.exportAsTypescript === "on") {
418
413
output = "\n\n<script lang='ts'>\n";
419
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
420
- output+=`import Oauth from '../components/oauth.vue';`
421
- }
414
+
422
415
output += imports + "\nexport default defineComponent ({\n name: '" + componentName + "'";
423
416
} else {
424
417
output = "\n\n<script>\n";
425
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
426
- output+=`import Oauth from '../components/oauth.vue';`
427
- }
418
+
428
419
output += imports + "\nexport default {\n name: '" + componentName + "'";
429
420
430
421
}
431
422
output += ",\n components: {\n";
432
- if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
433
- output+=`Oauth,`
434
- }
423
+
435
424
output += childrenComponentNames + " },\n";
436
425
output += data;
437
426
output += computed;
0 commit comments