Skip to content

Commit

Permalink
sync first remote smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Mar 1, 2022
1 parent a217c66 commit 696193a
Show file tree
Hide file tree
Showing 331 changed files with 32,912 additions and 0 deletions.
130 changes: 130 additions & 0 deletions smoke/astro.build-main/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# macOS-specific files
.DS_Store
5 changes: 5 additions & 0 deletions smoke/astro.build-main/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[![Netlify Status](https://api.netlify.com/api/v1/badges/3442658e-265e-48ac-b3bc-e270853129c8/deploy-status)](https://app.netlify.com/sites/astro-build/deploys)

# [astro.build](https://astro.build)

The source code for [astro.build](https://astro.build), built with [Astro](https://github.com/withastro/astro).
33 changes: 33 additions & 0 deletions smoke/astro.build-main/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import type { AstroUserConfig } from "astro";

const config: AstroUserConfig = {
buildOptions: {
site: "https://astro.build",
sitemap: true,
},
renderers: [],
markdownOptions: {
render: [
"@astrojs/markdown-remark",
{
remarkPlugins: [
"remark-smartypants",
["remark-autolink-headings", { behavior: "wrap" }],
],
rehypePlugins: [
"rehype-slug",
["rehype-autolink-headings", { behavior: "wrap" }],
],
syntaxHighlight: 'shiki',
},
],
},
vite: {
ssr: {
noExternal: ['smartypants'],
external: ["svgo"],
},
},
};

export default config;
27 changes: 27 additions & 0 deletions smoke/astro.build-main/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "astro.build",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "astro dev --experimental-static-build",
"dev": "astro dev",
"build": "astro build --experimental-static-build",
"preview": "astro preview",
"update-contributors": "node ./update-contributors.mjs"
},
"devDependencies": {
"astro": "0.23.0-next.10",
"astro-icon": "^0.6.0"
},
"volta": {
"node": "14.18.3"
},
"dependencies": {
"date-fns": "^2.28.0",
"quicklink": "^2.2.0",
"rehype-autolink-headings": "^6.1.0",
"remark-autolink-headings": "^7.0.1",
"remark-smartypants": "^2.0.0",
"smartypants": "^0.1.6"
}
}
4 changes: 4 additions & 0 deletions smoke/astro.build-main/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Netlify Redirects
/chat https://discord.gg/grF4GTXXYm
/play/* https://play.astro.build/play/:splat 200
/v0.21 /blog/astro-021-release/ 301
18 changes: 18 additions & 0 deletions smoke/astro.build-main/public/assets/blog/astro-018/lit-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/authors/drew.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/authors/fred.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/authors/jon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/authors/nate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions smoke/astro.build-main/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
59 changes: 59 additions & 0 deletions smoke/astro.build-main/public/pixel.worklet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// @ts-nocheck
class Pixel {
static get inputProperties() {
return ['--border-radius', '--border-color', '--pixel-size', '--variant'];
}
paint(ctx, size, styleMap) {
ctx.fillStyle = "black";
const variant = styleMap.get("--variant").toString().trim();
const corner = styleMap.get("--border-radius").toString();
const px = styleMap.get("--pixel-size").toString();
const w = size.width;
const h = size.height;

switch (variant) {
case 'primary': {
ctx.fillRect(corner, 0, w - corner * 2, h);

for (let i = 0; i < Math.round(corner / px); i++) {
let v = px * i;
let x = v;
let y = corner - v;
ctx.fillRect(x, y, px, h - corner * 2 + (v * 2));
}
for (let i = 0; i < Math.round(corner / px); i++) {
let v = px * i;
let x = w - (px * (i + 1));
let y = corner - v;
ctx.fillRect(x, y, px, h - corner * 2 + (v * 2));
}
return;
}
case 'outline': {
// top + right + bottom + left border
ctx.fillRect(corner, 0, w - corner * 2, px);
ctx.fillRect(w - px, corner, px, h - (corner * 2));
ctx.fillRect(corner, h - px, w - corner * 2, px);
ctx.fillRect(0, corner, px, h - (corner * 2));

for (let i = 0; i < Math.round(corner / px) + 1; i++) {
let v = px * i;
let x = v;
let y = corner - v;
ctx.fillRect(x, y, px, px * 2);
ctx.fillRect(x, h - y - (px * 2), px, px * 2);
}
for (let i = 0; i < Math.round(corner / px) + 1; i++) {
let v = px * i;
let x = w - (px * (i + 1));
let y = corner - v;
ctx.fillRect(x, y, px, px * 2);
ctx.fillRect(x, h - y - (px * 2), px, px * 2);
}
return;
}
}
}
}

registerPaint("pixel", Pixel);
6 changes: 6 additions & 0 deletions smoke/astro.build-main/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# I, for one, welcome our new robotic overlords

User-agent: *
Allow: /

Sitemap: https://astro.build/sitemap.xml
3 changes: 3 additions & 0 deletions smoke/astro.build-main/public/scripts/defer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (window.matchMedia('(hover: hover)').matches) {
import('/scripts/konami.js').then(mod => mod.init());
}
59 changes: 59 additions & 0 deletions smoke/astro.build-main/public/scripts/konami.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Aha! These are not analytics at all!
class KonamiCode {
enabled = false;
keys = ["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowLeft", "ArrowRight", "b", "a"];
accepted = [...new Set(this.keys)];
inputs = [];

constructor({ enable, disable }) {
this.enable = enable;
this.disable = disable;
this.handleKey = this.handleKey.bind(this);
document.addEventListener('keydown', this.handleKey);
}

handleKey({ key }) {
if (this.enabled) {
this.reset();
return;
}
if (!this.accepted.includes(key)) return;

if (this.keys[this.inputs.length] === key) {
this.handleInput(key)
} else {
this.reset();
}
}

handleInput(key) {
this.inputs.push(key);

if (this.inputs.length === 10) {
this.handleMatch();
}
}

handleMatch() {
this.enabled = true;
this.enable();
this.inputs = [];
}

reset() {
if (this.enabled) {
this.enabled = false;
this.disable();
}
if (this.inputs.length) {
this.inputs = [];
}
}
}

export function init() {
new KonamiCode({
enable: () => document.body.classList.add('🥚'),
disable: () => document.body.classList.remove('🥚'),
});
}
Binary file added smoke/astro.build-main/public/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/stars-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added smoke/astro.build-main/public/stars.png
Loading

0 comments on commit 696193a

Please sign in to comment.