Compare commits

..

6 Commits

Author SHA1 Message Date
Lea Anthony
aa93e5d8d2 Merge branch 'develop' 2020-06-19 09:42:15 +10:00
Lea Anthony
bbc16fe03a Lint fixes 2020-06-19 09:38:01 +10:00
Lea Anthony
bdfc3ca631 Release v1.6.0 2020-06-19 09:26:19 +10:00
Lea Anthony
490d66cf77 Update Contributors 2020-06-19 09:11:34 +10:00
Lea Anthony
bce686d779 lint fixes 2020-06-19 08:52:44 +10:00
Lea Anthony
c0b0ef0200 Initial implementation of vanilla template 2020-06-19 08:52:44 +10:00
5 changed files with 50 additions and 51 deletions

View File

@@ -28,3 +28,4 @@ Wails is what it is because of the time and effort given by these great people.
* [Konez2k](https://github.com/konez2k)
* [msms](https://github.com/sayuthisobri)
* [dedo1911](https://github.com/dedo1911)
* [Florian Didron](https://github.com/fdidron)

File diff suppressed because one or more lines are too long

View File

@@ -5,25 +5,24 @@ const runtime = require('@wailsapp/runtime');
// running our JS
runtime.Init(() => {
// Ensure the default app div is 100% wide/high
var app = document.getElementById("app");
app.style.width = "100%";
app.style.height = "100%";
// Ensure the default app div is 100% wide/high
var app = document.getElementById('app');
app.style.width = '100%';
app.style.height = '100%';
// Inject html
app.innerHTML = `
<div class="logo"></div>
<div class="container">
<button id="button">Click Me!</button>
<div id="result"/>
</div>
`;
// Connect button to Go method
document.getElementById("button").onclick = () => {
window.backend.basic().then((result) => {
document.getElementById("result").innerText = result;
})
}
// Inject html
app.innerHTML = `
<div class='logo'></div>
<div class='container'>
<button id='button'>Click Me!</button>
<div id='result'/>
</div>
`;
// Connect button to Go method
document.getElementById('button').onclick = () => {
window.backend.basic().then((result) => {
document.getElementById('result').innerText = result;
})
}
});

View File

@@ -1,7 +1,7 @@
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
let imageSizeLimit = 9999999999999999;
let imageSizeLimit = 9007199254740991; // Number.MAX_SAFE_INTEGER
let sourceDir = path.resolve(__dirname, 'src');
let buildDir = path.resolve(__dirname, 'build');
@@ -40,19 +40,17 @@ module.exports = {
]
},
plugins: [
new CopyWebpackPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(sourceDir, 'main.css'),
to: path.resolve(buildDir, 'main.css')
{
from: path.resolve(sourceDir, 'main.css'),
to: path.resolve(buildDir, 'main.css')
},
{
from: path.resolve(sourceDir, 'index.html'),
to: path.resolve(buildDir, 'index.html')
{
from: path.resolve(sourceDir, 'index.html'),
to: path.resolve(buildDir, 'index.html')
},
]
})
]
}
]
};

View File

@@ -1,4 +1,4 @@
package cmd
// Version - Wails version
const Version = "v1.6.0-pre6"
const Version = "v1.6.0"