#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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/[email protected]/css/materialdesignicons.min.css" rel="stylesheet"> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/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. |