♻️ Move 'src-vue' directory to git submodule

This commit is contained in:
KaKi87 2022-03-21 16:14:13 +01:00
parent 1e88058ac7
commit 4cfc029177
6 changed files with 8 additions and 25 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "src-vue"]
path = src-vue
url = https://git.kaki87.net/KaKi87/template-vue3-src.git

View File

@ -6,11 +6,11 @@
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module">
import { createApp } from '../node_modules/vue/dist/vue.esm-browser.js';
import { createApp } from './node_modules/vue/dist/vue.esm-browser.js';
import App from './components/App.js';
import { createMyApp } from './src-vue/app.js';
const app = createApp(App);
const app = createMyApp({ createApp });
document.addEventListener('DOMContentLoaded', () => app.mount('.app'));
</script>

View File

@ -54,6 +54,6 @@ const
});
if(app.isPackaged)
mainWindow.webContents.closeDevTools();
await mainWindow.loadFile('./src-vue/index.html');
await mainWindow.loadFile('./index.html');
mainWindow.show();
})();

1
src-vue Submodule

@ -0,0 +1 @@
Subproject commit 8891ad07a6b411b6e79e8d785722e486e2f7e1ae

View File

@ -1,11 +0,0 @@
import AppMain from './AppMain.js';
export default {
components: {
AppMain
},
template: `
<AppMain>
</AppMain>
`
};

View File

@ -1,10 +0,0 @@
export default {
'data': () => ({
message: 'Hello, World !'
}),
template: `
<main class="App__Main">
{{ message }}
</main>
`
};