This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function umdRequire(root, factory) { | |
'use strict'; | |
if (typeof define === 'function' && define.amd) { | |
define([ < dependances > ], factory); | |
} else { | |
factory( < dependances > ); | |
} | |
}(window, function widget( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dashboard "Food": | |
- h1 text: Food | |
- h2 text: By caloric content | |
- 3 columns: | |
- rows: | |
- h3 text: Bananas | |
- pie chart: { | |
"columns": [ | |
["Protein", 5], ["Sugar", 10], ["Other carbs", 40], ["Fat", 1] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let syncReturnPromise = null; | |
let resolveReturn = null; | |
let actionSave = []; | |
syncReturn(Vue, $store, apiResponse, action = false) => { | |
if(action){ | |
actionSave.push(action); | |
} | |
if (syncReturnPromise !== null) { | |
resolveReturn(Vue, $store, apiResponse); |
OlderNewer