- Route configuration - An example configuration file to be built for use in SSR.
- Full example - An SSRed example of what we produce today.
- Styles
- Stylesheets using Astro.resolve - Explainer for stylesheet links.
- Astro scoped styles - Explainer for Astro scoped stylesheets.
- Styles imported in JS - Explainer for styles that are imported into JavaScript, such as a React component importing CSS.
- Scripts
- Styles
- Hydrated components - Explainer for hydrated components.
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 | |
usage() { | |
program_name=$(basename $0) | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
cat <<EOM | |
Usage: $program_name [options] status | |
Post a status update to a Mastodon account. |
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
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Promise=e():"undefined"!=typeof global?global.Promise=e():"undefined"!=typeof self&&(self.Promise=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
/** @license MIT License (c) copyright 2010-2014 original author or authors */ | |
/** @author Brian Cavalier */ | |
/** @author John Hann */ | |
/** | |
* ES6 global Promise shim | |
*/ | |
var unhandledRejections = require('../lib/decorators/unhandledRejection'); | |
var PromiseConstructor = unhandledRejections( |
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
export const HOLE = 'hole'; | |
export const ASSIGN = 'assign'; |
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
<!doctype html> | |
<html lang="en"> | |
<title>Some title</title> | |
<my-element id="myel"><my-element> | |
<script type="module"> | |
class MyElement extends HTMLElement { | |
static get observedAttributes() { | |
let defines = this.define; |
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
(function() { | |
"use strict"; | |
Object.defineProperty(HTMLLinkElement.prototype, 'template', { | |
get: function() { | |
if(!/template/i.test(this.rel)) { | |
return ""; | |
} | |
var req = new XMLHttpRequest(); |
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 | |
bin_name=$1 | |
bin_path="node_modules/.bin/$bin_name" | |
bin_dir=$(dirname $bin_path) | |
if [ ! -f "$bin_path" ]; then | |
echo "$bin_path does not exists" | |
exit 1 | |
fi |
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 { LitElement } from 'lit-element'; | |
import { State } from 'haunted'; | |
export default class LitHauntedElement extends LitElement { | |
constructor() { | |
super(); | |
this.hauntedState = new State(() => this.requestUpdate(), this); | |
} |
deno run --allow-net --unstable server.js
NewerOlder