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 path from 'path'; | |
import { processToDisposable, spawnLanguageServer } from "../../utils/process"; | |
import { forwardConnection, LSPConnection } from "../../utils/connection"; | |
import { captureError } from "@codesandbox/pitcher-node-common"; | |
import { Disposable } from "@codesandbox/pitcher-common"; | |
import { InitializeParams } from "vscode-languageserver"; | |
import { LSPServer, LSPServerOptions } from "../server"; | |
export class AstroServer extends LSPServer { | |
lspConnection: LSPConnection | null = null; |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI.parse("https://zaczhdbo7s-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(3.33.0)%3B%20Browser%20(lite)%3B%20react%20(16.9.0)%3B%20react-instantsearch%20(5.7.0)%3B%20JS%20Helper%202.26.1&x-algolia-application-id=ZACZHDBO7S&x-algolia-api-key=7675b9e87ed7dd5bbf18f3e5310f92d6") | |
request = Net::HTTP::Post.new(uri) | |
request.content_type = "application/x-www-form-urlencoded" |
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
{ | |
"regenerator-runtime": { | |
"semver": "^0.12.0", | |
"resolved": "0.12.1", | |
"parents": [ | |
"@babel/runtime" | |
], | |
"entries": [] | |
}, | |
"assert": { |
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 * as React from "react"; | |
import * as Vue from "vue/dist/vue"; | |
import VueElement from "./VueElement"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Define type of property | |
interface Props { | |
text: string; | |
} |
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
#!/bin/bash | |
docker run --rm --name test-container -v $(pwd):/home/circleci/codesandbox-client -w /home/circleci/codesandbox-client -d -t codesandbox/node-puppeteer yarn start:test && \ | |
sleep 6 && docker exec -it test-container yarn test:integrations && \ | |
docker stop test-container |
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 puppeteer from 'puppeteer'; | |
const SANDBOXES = [ | |
/* ids */ | |
]; | |
function pageLoaded(page) { | |
return new Promise(async resolve => { | |
// We expose a function which the bundler will call after evaluation | |
await page.exposeFunction('__puppeteer__', () => { |
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
const SANDBOXES = []; | |
describe('sandboxes', () => { | |
SANDBOXES.forEach(sandbox => { | |
const id = sandbox.id || sandbox; | |
const threshold = sandbox.threshold || 0.01; | |
it( | |
`loads the sandbox with id '${id}'`, | |
async () => { |
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
const SANDBOXES = [ | |
'new', | |
'preact', | |
'vue', | |
'svelte', | |
'react-ts', | |
{ id: 'github/reactjs/redux/tree/master/examples/todomvc', threshold: 0.04 }, | |
{ id: 'jvlrl98xw3', threshold: 0.05 }, | |
// And moooore sandboxes | |
]; |
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
const puppeteer = require('puppeteer'); | |
let browser = puppeteer.launch({ | |
args: ['--no-sandbox', '--disable-setuid-sandbox'], | |
}); | |
async function test(url) { | |
browser = await browser; | |
const page = await browser.newPage(); | |
const a = Date.now(); | |
await page.goto(url, { |
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
{ | |
"aliases": { | |
"asap": "asap/browser-asap.js", | |
"asap/asap": "asap/browser-asap.js", | |
"asap/asap.js": "asap/browser-asap.js", | |
"asap/raw": "asap/browser-raw.js", | |
"asap/raw.js": "asap/browser-raw.js", | |
"asap/test/domain.js": "asap/test/browser-domain.js", | |
"core-js": "core-js/index.js", | |
"encoding": "encoding/lib/encoding.js", |
NewerOlder