Compare commits

...

12 Commits

Author SHA1 Message Date
Lea Anthony
a660e4a9da now binds go code to window.backend 2019-01-11 20:02:43 +11:00
Lea Anthony
a44fd57e98 Merge pull request #15 from wailsapp/Port-Build
Port build
2019-01-11 07:01:18 +11:00
Lea Anthony
c0371f141a Merge pull request #14 from wailsapp/Port-Build
Update vue template to use BoxString
2019-01-11 06:49:31 +11:00
Lea Anthony
a3c41d1740 Merge pull request #13 from wailsapp/Port-Build
Fix frameworkspinner
2019-01-11 06:32:41 +11:00
Lea Anthony
fb081b4876 Merge pull request #12 from wailsapp/Port-Build
Port build
2019-01-11 06:16:30 +11:00
Lea Anthony
9167063976 Merge pull request #11 from wailsapp/Port-Build
Made init less verbose
2019-01-09 08:26:56 +11:00
Lea Anthony
ffdbb0af64 Merge pull request #10 from wailsapp/Port-Build
updated runtime assets
2019-01-09 08:10:14 +11:00
Lea Anthony
d4b2563e9b Merge pull request #9 from wailsapp/Port-Build
mute logging of injected scripts
2019-01-09 06:35:52 +11:00
Lea Anthony
ab6e7531b4 Merge pull request #8 from wailsapp/Port-Build
Add assets
2019-01-08 21:33:04 +11:00
Lea Anthony
13efa58c9a Merge pull request #7 from wailsapp/Port-Build
fixes building on linux
2019-01-08 21:04:35 +11:00
Lea Anthony
0011e39c55 Merge pull request #6 from wailsapp/Port-Build
Initial Port
2019-01-08 20:15:49 +11:00
Lea Anthony
733258cc83 Merge pull request #5 from wailsapp/Port-Build
Initial commit of wails build
2019-01-08 07:59:22 +11:00
5 changed files with 30 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,8 @@
// Wails runtime JS
(function () {
window.wails = window.wails || {
$: {}
};
window.wails = window.wails || {};
window.backend = {};
/****************** Utility Functions ************************/
@@ -63,7 +62,7 @@
/************************* Bindings *************************/
var bindingsBasePath = window.wails.$;
var bindingsBasePath = window.backend;
// Creates the path given in the bindings path
function addBindingPath(pathSections) {
@@ -92,11 +91,14 @@
function newBinding(bindingName) {
// Get all the sections of the binding
var bindingSections = bindingName.split('.');
var bindingSections = bindingName.split('.').splice(1);
// Get the actual function/method call name
var callName = bindingSections.pop();
let pathToBinding;
let err;
// Add path to binding
[pathToBinding, err] = addBindingPath(bindingSections)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -18,7 +18,7 @@ export default {
methods: {
getNewQuote: function() {
var self = this;
wails.$.main.QuotesCollection.GetQuote().then(result => {
backend.QuotesCollection.GetQuote().then(result => {
self.quote = result;
});
}