Skip to content

Commit 80ee93b

Browse files
committed
switching to new branch
1 parent f6126e8 commit 80ee93b

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

src/components/nav-buttons/ExportMenu.vue

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,14 @@ const createComponentCode = async(
291291
}
292292
};
293293
294-
const createAssetFile = async (targetLocation: string, assetLocation: string | unknown) => {
295-
// @ts-ignore
296-
let saved = remote.nativeImage.createFromPath(assetLocation);
297-
let urlData = saved.toPNG();
298-
// fs.writeFileSync(targetLocation + ".png", urlData);
299-
await writeFile(targetLocation + ".png", urlData);
300-
};
294+
295+
// const createAssetFile = async (targetLocation: string, assetLocation: string | unknown) => {
296+
// // @ts-ignore
297+
// let saved = remote.nativeImage.createFromPath(assetLocation);
298+
// let urlData = saved.toPNG();
299+
// // fs.writeFileSync(targetLocation + ".png", urlData);
300+
// await writeFile(targetLocation + ".png", urlData);
301+
// };
301302
302303
const writeTemplateTag = (componentName: string) => {
303304
const htmlElementMap: HtmlElementMap = {
@@ -1339,15 +1340,15 @@ const exportFile = async (data: string) => {
13391340
// exports images to the /assets folder
13401341
// eslint-disable-next-line no-unused-vars
13411342
console.log('finished all the create funcs blocks and about to start loop')
1342-
for (let [routeImage, imageLocation] of Object.entries(imagePath.value)) {
1343-
if (imageLocation !== "") {
1344-
await createAssetFile(
1345-
// path.join(data, "src", "assets", routeImage),
1346-
await pathJoin(data, "src", "assets", routeImage),
1347-
imageLocation
1348-
);
1349-
}
1350-
}
1343+
// for (let [routeImage, imageLocation] of Object.entries(imagePath.value)) {
1344+
// if (imageLocation !== "") {
1345+
// await createAssetFile(
1346+
// // path.join(data, "src", "assets", routeImage),
1347+
// await pathJoin(data, "src", "assets", routeImage),
1348+
// imageLocation
1349+
// );
1350+
// }
1351+
// }
13511352
console.log('finished loop')
13521353
// main logic below for creating components
13531354
await createRouter(data);

src/components/nav-buttons/ExportMenuOptions.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!--
1+
<!--
22
LOCATION IN APP:
33
[top-right corner] 'Export' > Current Project || Current Active Component
44
55
FUNCTIONALITY:
66
- Designs export dialog box for current project / current active component
77
-->
8-
8+
<!--
99
<script>
1010
/* IMPORTS */
1111
import { mapState } from "vuex";
@@ -1014,3 +1014,4 @@ test('renders ${componentName}', () => {
10141014
},
10151015
};
10161016
</script>
1017+
-->

0 commit comments

Comments
 (0)