mirror of
https://github.com/taigrr/wails.git
synced 2026-04-07 23:51:34 -07:00
Compare commits
12 Commits
Port-Build
...
change-cod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a660e4a9da | ||
|
|
a44fd57e98 | ||
|
|
c0371f141a | ||
|
|
a3c41d1740 | ||
|
|
fb081b4876 | ||
|
|
9167063976 | ||
|
|
ffdbb0af64 | ||
|
|
d4b2563e9b | ||
|
|
ab6e7531b4 | ||
|
|
13efa58c9a | ||
|
|
0011e39c55 | ||
|
|
733258cc83 |
File diff suppressed because one or more lines are too long
@@ -1,9 +1,8 @@
|
|||||||
// Wails runtime JS
|
// Wails runtime JS
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
window.wails = window.wails || {
|
window.wails = window.wails || {};
|
||||||
$: {}
|
window.backend = {};
|
||||||
};
|
|
||||||
|
|
||||||
/****************** Utility Functions ************************/
|
/****************** Utility Functions ************************/
|
||||||
|
|
||||||
@@ -63,7 +62,7 @@
|
|||||||
|
|
||||||
/************************* Bindings *************************/
|
/************************* Bindings *************************/
|
||||||
|
|
||||||
var bindingsBasePath = window.wails.$;
|
var bindingsBasePath = window.backend;
|
||||||
|
|
||||||
// Creates the path given in the bindings path
|
// Creates the path given in the bindings path
|
||||||
function addBindingPath(pathSections) {
|
function addBindingPath(pathSections) {
|
||||||
@@ -92,11 +91,14 @@
|
|||||||
function newBinding(bindingName) {
|
function newBinding(bindingName) {
|
||||||
|
|
||||||
// Get all the sections of the binding
|
// Get all the sections of the binding
|
||||||
var bindingSections = bindingName.split('.');
|
var bindingSections = bindingName.split('.').splice(1);
|
||||||
|
|
||||||
// Get the actual function/method call name
|
// Get the actual function/method call name
|
||||||
var callName = bindingSections.pop();
|
var callName = bindingSections.pop();
|
||||||
|
|
||||||
|
let pathToBinding;
|
||||||
|
let err;
|
||||||
|
|
||||||
// Add path to binding
|
// Add path to binding
|
||||||
[pathToBinding, err] = addBindingPath(bindingSections)
|
[pathToBinding, err] = addBindingPath(bindingSections)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
16
cmd/frameworks/bootstrap4lux/a_bootstrap4-packr.go
Normal file
16
cmd/frameworks/bootstrap4lux/a_bootstrap4-packr.go
Normal file
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getNewQuote: function() {
|
getNewQuote: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
wails.$.main.QuotesCollection.GetQuote().then(result => {
|
backend.QuotesCollection.GetQuote().then(result => {
|
||||||
self.quote = result;
|
self.quote = result;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user