Skip to content

Commit 939e8a2

Browse files
authored
Merge pull request #170 from open-source-labs/dev
Dev
2 parents 1037c95 + 015e17b commit 939e8a2

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

src/components/nav-buttons/ExportMenu.vue

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -317,23 +317,18 @@ test('renders ${componentName}', () => {
317317

318318
if (compClass !== "" && compID !== "") {
319319

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-
}
323320
return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
324321
}
325322
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+
329324
return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
330325
}
331326
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+
333328
return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr} </div>\n</template>`;
334329
}
335330
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+
337332
return `<template>\n <div>\n\t${str}${templateTagStr}${routeStr} </div>\n</template>`;
338333
}
339334
}
@@ -416,22 +411,16 @@ test('renders ${componentName}', () => {
416411
let output;
417412
if (this.exportAsTypescript === "on") {
418413
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+
422415
output += imports + "\nexport default defineComponent ({\n name: '" + componentName + "'";
423416
} else {
424417
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+
428419
output += imports + "\nexport default {\n name: '" + componentName + "'";
429420

430421
}
431422
output += ",\n components: {\n";
432-
if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
433-
output+=`Oauth,`
434-
}
423+
435424
output += childrenComponentNames + " },\n";
436425
output += data;
437426
output += computed;

src/components/right-sidebar/RoutesTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Includes functionality to:
3030
</template>
3131
</q-input>
3232
<Routes></Routes>
33-
<!-- <UploadMockup></UploadMockup> -->
33+
<!-- <UploadMockup></UploadMockup> -->
3434
</div>
35-
35+
3636
</template>
3737

3838
<script>

src/components/right-sidebar/UploadMockup.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ export default {
7474
if (this.activeRoute !== "") {
7575
this.importImage({ img: res, route: this.activeRoute });
7676
if (this.imagePath[this.activeRoute]) {
77-
this.source = "file:///" + this.imagePath[this.activeRoute];
77+
this.source = "file://" + this.imagePath[this.activeRoute];
78+
console.log(this.source);
7879
}
7980
}
8081
})
@@ -170,7 +171,7 @@ export default {
170171

171172
.file-content {
172173
padding: 0em 1em 1em 1em;
173-
174+
174175
}
175176

176177
.browser-btn {

0 commit comments

Comments
 (0)