Compare commits

..

No commits in common. "6d82f5f5b3cd40a253e60db68dfa190c435011cf" and "67cf9b5bf7d6035901d5e7882a933b07b329fc7a" have entirely different histories.

8 changed files with 9 additions and 33 deletions

View File

@ -6,13 +6,12 @@ function createWindow() {
width: 800,
height: 600,
webPreferences: {
contextIsolation: false,
nodeIntegration: true,
contextIsolation: true,
},
});
if (process.env.NODE_ENV === 'production') {
win.loadFile('./index.html');
win.loadFile('./build/index.html');
} else {
win.loadURL('http://localhost:8080');
}

View File

@ -1,3 +0,0 @@
{
"main": "main.js"
}

9
app/package-lock.json generated
View File

@ -272,15 +272,6 @@
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
"dev": true
},
"cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.1"
}
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@ -1,18 +1,18 @@
{
"main": "electron.js",
"scripts": {
"start": "snowpack dev",
"build": "snowpack build",
"snowpack-dev": "snowpack dev --open none",
"electron-dev": "concurrently \"npm run snowpack-dev\" \"npm run electron-start\"",
"electron-start": "electron ./build",
"electron-prod": "cross-env NODE_ENV=production electron ./build"
"electron-start": "electron .",
"electron-prod": "cross-env NODE_ENV=production electron ."
},
"devDependencies": {
"@snowpack/plugin-svelte": "^3.5.2",
"@snowpack/plugin-typescript": "^1.2.1",
"@tsconfig/svelte": "^1.0.10",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"electron": "^11.2.3",
"snowpack": "^3.0.1",
"svelte-preprocess": "^4.6.9",

View File

@ -4,10 +4,10 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Accord" />
<link rel="stylesheet" type="text/css" href="./index.css" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<title>Accord</title>
</head>
<body>
<script type="module" src="./dist/index.js"></script>
<script type="module" src="/dist/index.js"></script>
</body>
</html>

View File

@ -4,7 +4,6 @@ module.exports = {
/* ... */
// 'build directory'
public: '/',
electron: '/',
src: '/dist',
},
plugins: [

View File

@ -1,16 +1,12 @@
<script lang='typescript'>
import { onMount } from 'svelte'
const { spawn } = require('child_process')
import AppHeader from './components/AppHeader.svelte'
let count: number = 0
onMount(() => {
const interval = setInterval(() => count++, 1000)
// TODO: Spin up service
return () => {
clearInterval(interval)
// TODO: Close service
}
})
</script>
@ -19,10 +15,7 @@
</style>
<div class="App">
<AppHeader/>
<nav>
</nav>
<main>
<header class="App-header">
<p>Page has been open for <code>{count}</code> seconds.</p>
</main>
</header>
</div>

View File

@ -1,3 +0,0 @@
<header>
Application Header
</header>