This file contains hidden or 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 createNewInstance(myInstanceId) { | |
| Vue.component('button-counter', { | |
| data: function () { | |
| return { | |
| count: 0 | |
| } | |
| }, | |
| template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>' | |
| }) | |
| new Vue({ el: '#instance-' + myInstanceId }) |
This file contains hidden or 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
| import firebase from 'firebase/app' | |
| import 'firebase/auth' | |
| import 'firebase/firestore' | |
| import 'firebase/database' | |
| import moment from 'moment' | |
| function CREATE_DOCUMENT(collection, obj) { | |
| return new Promise((resolve, reject) => { | |
| firebase | |
| .firestore() |
This file contains hidden or 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
| import { createApp } from "vue"; | |
| import { createWebHistory, createRouter } from "vue-router"; | |
| import firebase from "firebase/app"; | |
| import "firebase/analytics"; | |
| import "firebase/auth"; | |
| import "firebase/firestore"; | |
| var firebaseConfig = { | |
| apiKey: process.env.VUE_APP_API_KEY, | |
| authDomain: process.env.VUE_APP_AUTH_DOMAIN, |
This file contains hidden or 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
| <template> | |
| <div> | |
| <input v-model.lazy="name" /> | |
| <p>{{ name }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs } from "vue"; |
This file contains hidden or 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
| <template> | |
| <div> | |
| <input v-model.lazy="name" /> | |
| <p>{{ msg }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs, computed } from "vue"; |
This file contains hidden or 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
| <template> | |
| <div> | |
| <input v-model="name" /> | |
| <p>{{ msg }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs, computed, watch } from "vue"; |
This file contains hidden or 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
| <template> | |
| <div> | |
| <p>{{ msg }}</p> | |
| </div> | |
| </template> | |
| <script> | |
| import { reactive, toRefs } from "vue"; | |
| export default { |
This file contains hidden or 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
| require("dotenv").config() | |
| const express = require('express') | |
| const app = express() | |
| const cors = require('cors') | |
| const bodyParser = require('body-parser') | |
| const PORT = process.env.PORT || 4000 | |
| app.use(cors()); | |
| app.use(express.json()); | |
| app.use(bodyParser.json(), cors()) |
This file contains hidden or 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
| async getPaymentIntent () { // get the payment intent from API | |
| const data = { | |
| amount: this.formatStripePrice(this.getCurrentCoaching.price), | |
| currency: 'eur' | |
| } | |
| this.isLoading = true | |
| await this.$api.payment.getPaymentIntent(data, process.env.NODE_ENV) // call API, env is to switch dev/staging/prod | |
| .then(({ client_secret }) => { | |
| this.clientSecret = client_secret | |
| this.buildCard() // build front module payment |
This file contains hidden or 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
| { | |
| id: { type: String, unique: true, required: true }, | |
| domain: Array, | |
| subdomain: { type: String }, | |
| file_external_id: Array, | |
| contract_external_id: Array, | |
| visualFileName: { type: String, default: "document.pdf" }, // n'a pas lieu d'être, nom + type généré à la volée | |
| name: { type: String, required: true }, | |
| code: { type: String, default: "" }, // internal unique name for file upload ???? | |
| desc: { type: String }, |
OlderNewer