#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
| --[[ | |
| * Original developed by: https://www.youtube.com/watch?v=tfGmjB72t0o | |
| * More motions functions: https://www.lexaloffle.com/bbs/?tid=40577 | |
| ]] | |
| routines = {} | |
| -- Call this in the _update function to update eat routine in the table | |
| --[[ | |
| Sample of usage: |
| export type Turbin3Prereq = { | |
| "address": "WBAQSygkwMox2VuWKU133NxFrpDZUBdvSBeaBEue2Jq", | |
| "metadata": { | |
| "name": "wba_prereq", | |
| "version": "0.1.0", | |
| "spec": "0.1.0", | |
| "description": "Created with Anchor" | |
| }, | |
| "instructions": [ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function () { | |
| window.addEventListener("message", (event) => { | |
| let iframe = document.querySelector('#my-iframe'); | |
| iframe.height = event.data.height; | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> | |
| <link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet"> | |
| <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
| </head> | |
| <body> | |
| <div id="app"> |
| <template> | |
| <div>Test page</div> | |
| </template> | |
| <script> | |
| export default { | |
| name: "Mycomponent", | |
| beforeCreate() { | |
| console.log("beforeCreate"); | |
| }, |
| import Vue from "vue"; | |
| import App from "./App.vue"; | |
| import customMethods from "@/plugins/customMethods.js"; | |
| Vue.use(customMethods); | |
| // ... ommited |
| const customMethods = { | |
| install(Vue) { | |
| // INSTALL | |
| if (this.installed) return; | |
| this.installed = true; | |
| Vue.options = Vue.util.mergeOptions(Vue.options, { | |
| created: function() { | |
| if (this.$options.customMethod) { | |
| // If found in the component. |