File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 13
13
import { computed } from " vue" ;
14
14
import { useStore } from " ../../../store/main.js" ;
15
15
import { useCreateComponent } from " ../../composables/useCreateComponent.js" ;
16
- import * as fs from " fs" ;
16
+ // import * as fs from "fs";
17
17
import { Component , HtmlElement , HtmlElementMap } from " ../../../../types" ;
18
- const { ipcRenderer } = window .require (" electron" );
18
+ // @ts-ignore
19
+ const { fs, ipcRenderer } = window ;
19
20
const store = useStore ();
20
21
21
22
const props = defineProps ([" title" ]);
@@ -140,6 +141,7 @@ const parsingStringToState = (str: string) => {
140
141
};
141
142
142
143
// the bulk of the work for this component
144
+ // @ts-ignore
143
145
const openVueFile = (data ) => {
144
146
if (data === undefined ) return ;
145
147
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ Description:
34
34
import { computed } from " vue" ;
35
35
import { useStore } from " ../../store/main" ;
36
36
import { useExportComponent } from " ../composables/useExportComponent" ;
37
- import * as fs from " fs" ;
38
- import path from " path" ;
37
+ // import * as fs from "fs";
38
+ // import path from "path";
39
39
import {
40
40
Component ,
41
41
HtmlElement ,
@@ -45,7 +45,7 @@ import {
45
45
46
46
const store = useStore ();
47
47
// @ts-ignore
48
- const { ipcRenderer } = window ;
48
+ const { fs, ipcRenderer } = window ;
49
49
50
50
const componentMap = computed (() => store .componentMap );
51
51
const imagePath = computed (() => store .imagePath );
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ Description:
31
31
import { useStore } from " ../../store/main" ;
32
32
import ImportComponent from " ../left-sidebar/ComponentTab/ImportComponent.vue" ;
33
33
import { Component } from " ../../../types" ;
34
- import * as fs from " fs" ;
34
+ // import * as fs from "fs";
35
35
const Mousetrap = require (" mousetrap" );
36
36
// @ts-ignore
37
- const { ipcRenderer } = window ;
37
+ const { fs, ipcRenderer } = window ;
38
38
39
39
const store = useStore ();
40
40
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ import localforage from "localforage";
21
21
import { useStore } from " ../../store/main" ;
22
22
import { computed } from " vue" ;
23
23
import { HtmlElement } from " app/types" ;
24
- import * as fs from " fs" ;
24
+ // import * as fs from "fs";
25
25
const Mousetrap = require (" mousetrap" );
26
26
// @ts-ignore
27
- const { ipcRenderer } = window ;
27
+ const { fs, ipcRenderer } = window ;
28
28
29
29
const store = useStore ();
30
30
Original file line number Diff line number Diff line change 40
40
" dist" ,
41
41
" .quasar" ,
42
42
" node_modules" ,
43
+ " src" ,
43
44
]
44
45
}
You can’t perform that action at this time.
0 commit comments