Skip to content

Commit 18541a3

Browse files
committed
initial frontend commit
1 parent 9a114d6 commit 18541a3

22 files changed

+23641
-0
lines changed

frontend/.gitignore

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
.DS_Store
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# TypeScript cache
43+
*.tsbuildinfo
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env
62+
.env.test
63+
64+
# parcel-bundler cache (https://parceljs.org/)
65+
.cache
66+
67+
# next.js build output
68+
.next
69+
70+
# nuxt.js build output
71+
.nuxt
72+
73+
# vuepress build output
74+
.vuepress/dist
75+
76+
# Serverless directories
77+
.serverless/
78+
79+
# FuseBox cache
80+
.fusebox/
81+
82+
# DynamoDB Local files
83+
.dynamodb/
84+
85+
# Webpack
86+
.webpack/
87+
88+
# Vite
89+
.vite/
90+
91+
# Electron-Forge
92+
out/

frontend/forge.config.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
2+
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
3+
4+
module.exports = {
5+
packagerConfig: {
6+
asar: true,
7+
},
8+
rebuildConfig: {},
9+
makers: [
10+
{
11+
name: '@electron-forge/maker-squirrel',
12+
config: {},
13+
},
14+
{
15+
name: '@electron-forge/maker-zip',
16+
platforms: ['darwin'],
17+
},
18+
{
19+
name: '@electron-forge/maker-deb',
20+
config: {},
21+
},
22+
{
23+
name: '@electron-forge/maker-rpm',
24+
config: {},
25+
},
26+
],
27+
plugins: [
28+
{
29+
name: '@electron-forge/plugin-auto-unpack-natives',
30+
config: {},
31+
},
32+
{
33+
name: '@electron-forge/plugin-webpack',
34+
config: {
35+
mainConfig: './webpack.main.config.js',
36+
renderer: {
37+
config: './webpack.renderer.config.js',
38+
entryPoints: [
39+
{
40+
html: './src/index.html',
41+
js: './src/renderer.js',
42+
name: 'main_window',
43+
preload: {
44+
js: './src/preload.js',
45+
},
46+
},
47+
],
48+
},
49+
},
50+
},
51+
// Fuses are used to enable/disable various Electron functionality
52+
// at package time, before code signing the application
53+
new FusesPlugin({
54+
version: FuseVersion.V1,
55+
[FuseV1Options.RunAsNode]: false,
56+
[FuseV1Options.EnableCookieEncryption]: true,
57+
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
58+
[FuseV1Options.EnableNodeCliInspectArguments]: false,
59+
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
60+
[FuseV1Options.OnlyLoadAppFromAsar]: true,
61+
}),
62+
],
63+
};

0 commit comments

Comments
 (0)