Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions src/components/nav-buttons/ExportMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,23 +317,18 @@ test('renders ${componentName}', () => {

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

if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n<Oauth/>\n\t</div>\n</template>`;
}
return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
}
else if (compClass !== "" && compID === "") {
if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \t<Oauth/>\n\t</div>\n</template>`;
}

return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
}
else if (compClass === "" && compID !== "") {
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>`;}

return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr} </div>\n</template>`;
}
else {
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>`;}

return `<template>\n <div>\n\t${str}${templateTagStr}${routeStr} </div>\n</template>`;
}
}
Expand Down Expand Up @@ -416,22 +411,16 @@ test('renders ${componentName}', () => {
let output;
if (this.exportAsTypescript === "on") {
output = "\n\n<script lang='ts'>\n";
if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
output+=`import Oauth from '../components/oauth.vue';`
}

output += imports + "\nexport default defineComponent ({\n name: '" + componentName + "'";
} else {
output = "\n\n<script>\n";
if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
output+=`import Oauth from '../components/oauth.vue';`
}

output += imports + "\nexport default {\n name: '" + componentName + "'";

}
output += ",\n components: {\n";
if(this.$store.state.exportOauth ==='on'||this.$store.state.exportOauthGithub ==='on'){
output+=`Oauth,`
}

output += childrenComponentNames + " },\n";
output += data;
output += computed;
Expand Down
4 changes: 2 additions & 2 deletions src/components/right-sidebar/RoutesTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Includes functionality to:
</template>
</q-input>
<Routes></Routes>
<!-- <UploadMockup></UploadMockup> -->
<!-- <UploadMockup></UploadMockup> -->
</div>

</template>

<script>
Expand Down
5 changes: 3 additions & 2 deletions src/components/right-sidebar/UploadMockup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export default {
if (this.activeRoute !== "") {
this.importImage({ img: res, route: this.activeRoute });
if (this.imagePath[this.activeRoute]) {
this.source = "file:///" + this.imagePath[this.activeRoute];
this.source = "file://" + this.imagePath[this.activeRoute];
console.log(this.source);
}
}
})
Expand Down Expand Up @@ -170,7 +171,7 @@ export default {

.file-content {
padding: 0em 1em 1em 1em;

}

.browser-btn {
Expand Down