Skip to content

Commit 95e95e9

Browse files
committed
Saving files before refreshing line endings
1 parent 0aa94fd commit 95e95e9

File tree

6 files changed

+232
-172
lines changed

6 files changed

+232
-172
lines changed

package-lock.json

Lines changed: 64 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
"@vue/compiler-sfc": "^3.1.0",
1515
"@vueform/toggle": "^2.0.1",
1616
"core-js": "^3.6.5",
17+
"fs-extra": "^10.0.0",
1718
"localforage": "^1.10.0",
1819
"lodash.clonedeep": "^4.5.0",
1920
"lodash.isequal": "^4.5.0",
2021
"lodash.throttle": "^4.1.1",
22+
"path": "^0.12.7",
2123
"quasar": "^2.0.0",
2224
"vue-draggable-resizable": "^2.3.0",
2325
"vue-multiselect": "^2.1.6",

quasar.conf.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ module.exports = configure(function (ctx) {
4747
build: {
4848
vueRouterMode: 'history', // available values: 'hash', 'history'
4949

50+
extendWebpack(cfg) {
51+
cfg.target = 'electron-main'
52+
},
53+
5054
// transpile: false,
5155
// publicPath: '/',
5256

@@ -70,22 +74,6 @@ module.exports = configure(function (ctx) {
7074
chain.plugin('eslint-webpack-plugin')
7175
.use(ESLintPlugin, [{ extensions: [ 'js', 'vue' ] }]);
7276

73-
// // Vue Migration Build Config settings
74-
// chain.resolve.alias.set('vue', '@vue/compat')
75-
76-
// chain.module
77-
// .rule('vue')
78-
// .use('vue-loader')
79-
// .tap(options => {
80-
// return {
81-
// ...options,
82-
// compilerOptions: {
83-
// compatConfig: {
84-
// MODE: 2
85-
// }
86-
// }
87-
// }
88-
// })
8977
},
9078
},
9179

src-electron/electron-main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { app, BrowserWindow, nativeTheme } from 'electron'
22
import path from 'path'
33
import os from 'os'
4+
import fs from 'fs-extra'
45

56
// needed in case process is undefined under Linux
67
const platform = process.platform || os.platform()

src-electron/electron-preload.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,20 @@
1515
* doAThing: () => {}
1616
* })
1717
*/
18+
// import path from 'path';
19+
// import fs from 'fs';
20+
// const { contextBridge } = require('electron');
21+
22+
// contextBridge.exposeInMainWorld(
23+
// 'path',
24+
// {
25+
// resolve: (...pathSegments) => path.resolve(pathSegments)
26+
// }
27+
// );
28+
29+
// contextBridge.exposeInMainWorld(
30+
// 'fs',
31+
// {
32+
// existsSync: (pathFile) => fs.existsSync(pathFile)
33+
// }
34+
// )

0 commit comments

Comments
 (0)