mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 04:05:12 -07:00
Compare commits
2 Commits
v1.6.0
...
336---vani
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be83d16b2b | ||
|
|
6214b41c43 |
@@ -28,4 +28,3 @@ Wails is what it is because of the time and effort given by these great people.
|
|||||||
* [Konez2k](https://github.com/konez2k)
|
* [Konez2k](https://github.com/konez2k)
|
||||||
* [msms](https://github.com/sayuthisobri)
|
* [msms](https://github.com/sayuthisobri)
|
||||||
* [dedo1911](https://github.com/dedo1911)
|
* [dedo1911](https://github.com/dedo1911)
|
||||||
* [Florian Didron](https://github.com/fdidron)
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -5,24 +5,25 @@ const runtime = require('@wailsapp/runtime');
|
|||||||
// running our JS
|
// running our JS
|
||||||
runtime.Init(() => {
|
runtime.Init(() => {
|
||||||
|
|
||||||
// Ensure the default app div is 100% wide/high
|
// Ensure the default app div is 100% wide/high
|
||||||
var app = document.getElementById('app');
|
var app = document.getElementById("app");
|
||||||
app.style.width = '100%';
|
app.style.width = "100%";
|
||||||
app.style.height = '100%';
|
app.style.height = "100%";
|
||||||
|
|
||||||
// Inject html
|
// Inject html
|
||||||
app.innerHTML = `
|
app.innerHTML = `
|
||||||
<div class='logo'></div>
|
<div class="logo"></div>
|
||||||
<div class='container'>
|
<div class="container">
|
||||||
<button id='button'>Click Me!</button>
|
<button id="button">Click Me!</button>
|
||||||
<div id='result'/>
|
<div id="result"/>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// Connect button to Go method
|
||||||
|
document.getElementById("button").onclick = () => {
|
||||||
|
window.backend.basic().then((result) => {
|
||||||
|
document.getElementById("result").innerText = result;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Connect button to Go method
|
|
||||||
document.getElementById('button').onclick = () => {
|
|
||||||
window.backend.basic().then((result) => {
|
|
||||||
document.getElementById('result').innerText = result;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
let imageSizeLimit = 9007199254740991; // Number.MAX_SAFE_INTEGER
|
let imageSizeLimit = 9999999999999999;
|
||||||
let sourceDir = path.resolve(__dirname, 'src');
|
let sourceDir = path.resolve(__dirname, 'src');
|
||||||
let buildDir = path.resolve(__dirname, 'build');
|
let buildDir = path.resolve(__dirname, 'build');
|
||||||
|
|
||||||
@@ -40,17 +40,19 @@ module.exports = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
from: path.resolve(sourceDir, 'main.css'),
|
from: path.resolve(sourceDir, 'main.css'),
|
||||||
to: path.resolve(buildDir, 'main.css')
|
to: path.resolve(buildDir, 'main.css')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: path.resolve(sourceDir, 'index.html'),
|
from: path.resolve(sourceDir, 'index.html'),
|
||||||
to: path.resolve(buildDir, 'index.html')
|
to: path.resolve(buildDir, 'index.html')
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
// Version - Wails version
|
// Version - Wails version
|
||||||
const Version = "v1.6.0"
|
const Version = "v1.6.0-pre6"
|
||||||
|
|||||||
Reference in New Issue
Block a user