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
Cypress.on("window:before:load", win => { | |
win.handleFromCypress = function(request) { | |
return fetch(request.url, { | |
method: request.method, | |
headers: request.requestHeaders, | |
body: request.requestBody | |
}) | |
.then(res => { | |
return new Promise(resolve => { | |
res.json().then(body => { |
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
{ | |
"Vue Simple Component": { | |
"scope": "vue", | |
"prefix": "vsc", | |
"body": [ | |
"<script>", | |
"export default {", | |
" name: '$1',", | |
"};", | |
"</script>", |
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
/* eslint-disable no-undef */ | |
/// <reference types="cypress" /> | |
const visitFirstVideo = () => | |
cy.visit('/?class=o-que-ha-de-novo-no-vue-3-introducao'); | |
const visitSecondVideo = () => | |
cy.visit('/?class=o-que-ha-de-novo-no-vue-3-instalacao'); |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
import { buildSchema, graphql } from "graphql"; | |
// Construct a schema, using GraphQL schema language | |
let graphqlSchema = buildSchema(` | |
type Query { | |
recipes: [Recipe] | |
recipes_by_pk(id: Int!): Recipe | |
} | |
type Recipe { | |
id: ID! |
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
{"lastUpload":"2020-03-30T17:16:21.561Z","extensionVersion":"v3.4.3"} |
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
import axios from 'axios' | |
const http = axios.create({ | |
baseURL: 'http://localhost:8081' | |
}) | |
export default function install (Vue) { | |
Object.defineProperty(Vue.prototype, '$http', { | |
get () { |
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
async function awaitSubmissionFinish(submissionID, status) { | |
const response = await submissionInfo(submissionID) | |
if(status == 0) return response | |
return new Promise(resolve => { | |
setTimeout(() => resolve(awaitSubmissionFinish(submissionID, response.status)), 5000) | |
}) | |
} |
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
import React from 'react' | |
import actions from '../store/actions' | |
import { connect } from 'redux-zero/react' | |
import PropTypes from 'prop-types' | |
require('./App.scss') // eslint-disable-line no-undef | |
const App = ({ error, children, resetError }) => ( | |
<div> |
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
# v2 syntax | |
version: '2' | |
# Named volumes | |
volumes: | |
# Redis Data | |
octimine2017vedovelli-redis-data: | |
driver: local | |
services: |