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
| public async getRepos(installationId: number, { page, limit, q }: any, git: GIT_TYPE = GIT_TYPE.GITHUB) { | |
| page = Number(page); | |
| limit = Number(limit); | |
| const deploymentProvider = DeploymentProvider.getProvider(git); | |
| let data: any; | |
| if (q) { |
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 CryptoJS from "crypto-js"; | |
| class LaravelEncrypt{ | |
| public key: string; | |
| constructor(key: string){ | |
| this.key = key; | |
| } | |
| public encrypt(data: string): string{ |
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 axis from 'axios'; | |
| const formData = new FormData(); | |
| formData.append("assigned_page", "Room page"); | |
| formData.append("name", "Test Project"); | |
| formData.append("media", this.state.selectedFile); | |
| async function upload(){ | |
| return await axios.post("<api_endpoint>", formData, { | |
| headers: { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Editable shit</title> | |
| <style type="text/css"> | |
| #edit {background-color:#FFFF99;} | |
| </style> | |
| <script type="text/javascript"> | |
| function saveEdits() { |
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
| console.log('\n'); | |
| let bitcore = require('bitcore-lib'); | |
| let privateKeyWIF = 'cVumzeajS3k7QeUb8dcUiF5JH43uTLZUmZSYM87rRLbJvv4zJnX8'; | |
| let privateKey = bitcore.PrivateKey.fromWIF(privateKeyWIF); | |
| let address = privateKey.toAddress(); |
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 Vue from 'vue' | |
| import VueRouter from 'vue-router' | |
| import Home from '../views/Home.vue' | |
| import SignIn from '../views/SignIn.vue' | |
| import Dashboard from '../views/Dashboard.vue' | |
| import store from '@/store' | |
| Vue.use(VueRouter) |
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 Vue from 'vue' | |
| import VueRouter from 'vue-router' | |
| import Home from '../views/Home.vue' | |
| import SignIn from '../views/SignIn.vue' | |
| import Dashboard from '../views/Dashboard.vue' | |
| import store from '@/store' | |
| Vue.use(VueRouter) |
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 store from '@/store' | |
| import axios from 'axios' | |
| store.subscribe((mutation) => { | |
| switch(mutation.type){ | |
| case 'auth/SET_TOKEN': | |
| if(mutation.payload){ | |
| axios.defaults.headers.common['Authorization'] = `Bearer ${mutation.payload}` | |
| localStorage.setItem('token', mutation.payload) | |
| }else{ |
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 axios from 'axios' | |
| export default{ | |
| namespaced: true, | |
| state: { | |
| token: null, | |
| user : null | |
| }, | |
| getters:{ |