From 519573916c306aed5b8b528576244c00926fb58c Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 26 Mar 2025 21:10:27 +0100 Subject: [PATCH] feat: replace mcfly site with starlight docs --- .build.yml | 32 - docs/astro.config.mjs | 3 - docs/src/content/docs/index.mdx | 36 + netlify.toml | 2 +- package.json | 1 - pnpm-workspace.yaml | 3 +- site/.eslintignore | 5 - site/.gitignore | 10 - site/.prettierignore | 1 - site/README.md | 67 -- site/mcfly.config.mjs | 7 - site/package.json | 21 - site/src/components/awesome-header.html | 31 - site/src/components/call-to-action.html | 47 -- site/src/components/code-block.js | 41 -- site/src/components/feature-set.js | 85 --- site/src/components/my-counter.js | 10 - site/src/components/my-footer.html | 3 - site/src/components/my-head.html | 53 -- site/src/components/vanilla-hello-world.js | 22 - site/src/components/warning-block.html | 12 - site/src/pages/index.html | 152 ----- site/src/public/favicon.ico | Bin 1150 -> 0 bytes site/src/public/prism.css | 118 ---- site/src/public/prism.js | 753 --------------------- site/src/public/reset.css | 76 --- site/src/public/robots.txt | 2 - site/tsconfig.json | 3 - 28 files changed, 38 insertions(+), 1558 deletions(-) delete mode 100644 .build.yml create mode 100644 docs/src/content/docs/index.mdx delete mode 100644 site/.eslintignore delete mode 100644 site/.gitignore delete mode 100644 site/.prettierignore delete mode 100644 site/README.md delete mode 100644 site/mcfly.config.mjs delete mode 100644 site/package.json delete mode 100644 site/src/components/awesome-header.html delete mode 100644 site/src/components/call-to-action.html delete mode 100644 site/src/components/code-block.js delete mode 100644 site/src/components/feature-set.js delete mode 100644 site/src/components/my-counter.js delete mode 100644 site/src/components/my-footer.html delete mode 100644 site/src/components/my-head.html delete mode 100644 site/src/components/vanilla-hello-world.js delete mode 100644 site/src/components/warning-block.html delete mode 100644 site/src/pages/index.html delete mode 100644 site/src/public/favicon.ico delete mode 100644 site/src/public/prism.css delete mode 100644 site/src/public/prism.js delete mode 100644 site/src/public/reset.css delete mode 100644 site/src/public/robots.txt delete mode 100644 site/tsconfig.json diff --git a/.build.yml b/.build.yml deleted file mode 100644 index aa10890..0000000 --- a/.build.yml +++ /dev/null @@ -1,32 +0,0 @@ -image: alpine/edge -packages: - - nodejs - - npm - - pnpm -secrets: - - 291f0e35-9b8d-43ff-844c-77c5f29c1876 - - bbfcb6dc-7c4a-42ee-a11a-022f0339a133 -environment: - NETLIFY_SITE_ID: bfd69adf-f754-433c-9690-63426f0d2fa0 - REPO: wcb - GH_USER: ayoayco -tasks: - - push-mirror: | - cd ~/"${REPO}" - git config --global credential.helper store - git push --mirror "https://github.com/${GH_USER}/${REPO}" - - install-deps: | - cd ~/"${REPO}" - pnpm i - - build: | - cd ~/"${REPO}" - pnpm -F site run build - - deploy: | - cd ~/"${REPO}" - { - set +x - . ~/.buildsecrets - set -x - } - export NETLIFY_AUTH_TOKEN - pnpm -F site run deploy diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index bc27469..244c569 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -4,9 +4,6 @@ import starlight from '@astrojs/starlight' // https://astro.build/config export default defineConfig({ - redirects: { - '/': '/guides', - }, integrations: [ starlight({ title: 'WCB', diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx new file mode 100644 index 0000000..5394608 --- /dev/null +++ b/docs/src/content/docs/index.mdx @@ -0,0 +1,36 @@ +--- +title: Web Component Base +description: Web components in Easy Mode +template: splash +hero: + tagline: A simple reactivity system for web components + # image: + # file: ../../assets/houston.webp + actions: + - text: Example Guide + link: /guides/example/ + icon: right-arrow + - text: Read the Starlight docs + link: https://starlight.astro.build + icon: external + variant: minimal +--- + +import { Card, CardGrid } from '@astrojs/starlight/components'; + +## Next steps + + + + Edit `src/content/docs/index.mdx` to see this page change. + + + Add Markdown or MDX files to `src/content/docs` to create new pages. + + + Edit your `sidebar` and other config in `astro.config.mjs`. + + + Learn more in [the Starlight Docs](https://starlight.astro.build/). + + diff --git a/netlify.toml b/netlify.toml index d8fd5bc..de1f556 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] -base = "site" +base = "docs" publish = "dist" diff --git a/package.json b/package.json index 43174b9..cb6b056 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "test": "vitest --run", "test:watch": "vitest", "demo": "npx simple-server .", - "site": "pnpm -F site start", "docs": "pnpm -F docs start", "build": "pnpm run clean && tsc && pnpm run copy:source", "size-limit": "pnpm run build && size-limit", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9503624..f7e0f48 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,3 @@ packages: # include packages in subfolders (e.g. apps/ and packages/) - - 'site' - - 'docs' + - 'docs/' diff --git a/site/.eslintignore b/site/.eslintignore deleted file mode 100644 index c40e0f6..0000000 --- a/site/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -dist -node-modules -.output - -public \ No newline at end of file diff --git a/site/.gitignore b/site/.gitignore deleted file mode 100644 index c2a82ff..0000000 --- a/site/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -dist -node_modules -*.log* -.nitro -.cache -.output -.env -*~ -*swp -*swo \ No newline at end of file diff --git a/site/.prettierignore b/site/.prettierignore deleted file mode 100644 index f59ec20..0000000 --- a/site/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/site/README.md b/site/README.md deleted file mode 100644 index 53c673c..0000000 --- a/site/README.md +++ /dev/null @@ -1,67 +0,0 @@ -# McFly Starter Project - -## Background - -This project was generated from the basic template for **McFly** -- a no-framework framework that assists in leveraging the web platform. - -![template-basic](https://raw.githubusercontent.com/ayoayco/McFly/main/assets/template-basic.png) - -It contains example files to get you started using vanilla web technologies in a modern way. See the [Special Directories](#special-directories) section for more information. - -## Features - -The time has come for vanilla Web tech. 🎉 - -✅ Create web apps with vanilla custom elements
-✅ Write real .HTML files
-✅ Have no frameworks or reactivity libraries on the browser
-✅ Use server-side rendering
-✅ Deploy anywhere
- -## Special directories - -**1. `./src/pages/`** - -- file-based routing for `.html` files -- directly use custom elements & static fragments (no imports or registry maintenance needed) -- use ` - - - - - - - {{ project.name }} - {{ project.description }} - -
-
-

- Build lightweight custom elements that browsers & - you understand. -

- -
- -

Features

-
    -
  • - A robust API for synchronizing your component's UI and - properties -
  • -
  • - ~1 kB base class (minified, compressed) with versatile utilities -
  • -
  • - Sensible life-cycle hooks that you understand and remember -
  • -
  • - Use the built-in JSX-like syntax or bring your own custom - templating -
  • -
-
-
-
-
-

Why use this base class?

-

- Often times, when simple websites need a quick - custom element, the best way is still to create one extending from - HTMLElement. However, it can quickly - reach a point where writing the code from scratch can seem confusing - and hard to maintain especially when compared to other projects with - more advanced setups. -

-

- Also, when coming from frameworks with an easy declarative coding - experience (using templates), the default imperative way (e.g., - creating instances of elements, manually attaching event handlers, and - other DOM manipulations) is a frequent pain point we see. -

-

- This project aims to address these with virtually zero tooling - required and thin abstractions from vanilla custom element APIs – - giving you only the bare minimum code to be productive. -

-

- It works on current-day browsers without needing compilers, - transpilers, or polyfills. -

-

- Here's an interactive custom element: - -

- -
-import { WebComponent, html } from "https://esm.sh/web-component-base";
-
-export class Counter extends WebComponent {
-  static props = {
-    count: 0
-  }
-  onInit() {
-    // do something...
-  }
-  get template() {
-    return html`
-      <button onClick=${() => ++this.props.count}>
-        ${this.props.count}
-      </button>
-    `;
-  }
-}
-
-customElements.define("my-counter", Counter);
-
-
-
- - - Website - built with McFly.
- Copyright © {{author.year}} - {{ author.name }}. -
-
- - - \ No newline at end of file diff --git a/site/src/public/favicon.ico b/site/src/public/favicon.ico deleted file mode 100644 index edb0e4b60d048c92e395d1b447d148ab40376ee0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lH~{6afd4=-s^f%&g#V^)0a(oi z$;AROK70Q|0lFGipj$ye+dc@d{;~)QusU@8pI+R+DvquW#K#4mzW;{TZkSo0U*Ey7 z3nak6z)6&Tm>YmG2v-04?r9A3V0Pi6K^jioe*@MJVsAQemuR~|W(J81fwaN(GkV20Dv;001`bWIg}@ diff --git a/site/src/public/prism.css b/site/src/public/prism.css deleted file mode 100644 index eb01f2b..0000000 --- a/site/src/public/prism.css +++ /dev/null @@ -1,118 +0,0 @@ -/* PrismJS 1.29.0 -https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ -code[class*='language-'], -pre[class*='language-'] { - color: #000; - background: 0 0; - text-shadow: 0 1px #fff; - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - font-size: 1em; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} -code[class*='language-'] ::-moz-selection, -code[class*='language-']::-moz-selection, -pre[class*='language-'] ::-moz-selection, -pre[class*='language-']::-moz-selection { - text-shadow: none; - background: #b3d4fc; -} -code[class*='language-'] ::selection, -code[class*='language-']::selection, -pre[class*='language-'] ::selection, -pre[class*='language-']::selection { - text-shadow: none; - background: #b3d4fc; -} -@media print { - code[class*='language-'], - pre[class*='language-'] { - text-shadow: none; - } -} -pre[class*='language-'] { - padding: 1em; - margin: 0.5em 0; - overflow: auto; -} -:not(pre) > code[class*='language-'], -pre[class*='language-'] { - background: #f5f2f0; -} -:not(pre) > code[class*='language-'] { - padding: 0.1em; - border-radius: 0.3em; - white-space: normal; -} -.token.cdata, -.token.comment, -.token.doctype, -.token.prolog { - color: #708090; -} -.token.punctuation { - color: #999; -} -.token.namespace { - opacity: 0.7; -} -.token.boolean, -.token.constant, -.token.deleted, -.token.number, -.token.property, -.token.symbol, -.token.tag { - color: #905; -} -.token.attr-name, -.token.builtin, -.token.char, -.token.inserted, -.token.selector, -.token.string { - color: #690; -} -.language-css .token.string, -.style .token.string, -.token.entity, -.token.operator, -.token.url { - color: #9a6e3a; - background: hsla(0, 0%, 100%, 0.5); -} -.token.atrule, -.token.attr-value, -.token.keyword { - color: #07a; -} -.token.class-name, -.token.function { - color: #dd4a68; -} -.token.important, -.token.regex, -.token.variable { - color: #e90; -} -.token.bold, -.token.important { - font-weight: 700; -} -.token.italic { - font-style: italic; -} -.token.entity { - cursor: help; -} diff --git a/site/src/public/prism.js b/site/src/public/prism.js deleted file mode 100644 index bc77578..0000000 --- a/site/src/public/prism.js +++ /dev/null @@ -1,753 +0,0 @@ -/* PrismJS 1.29.0 -https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ -var _self = - 'undefined' != typeof window - ? window - : 'undefined' != typeof WorkerGlobalScope && - self instanceof WorkerGlobalScope - ? self - : {}, - Prism = (function (e) { - var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, - t = 0, - r = {}, - a = { - manual: e.Prism && e.Prism.manual, - disableWorkerMessageHandler: - e.Prism && e.Prism.disableWorkerMessageHandler, - util: { - encode: function e(n) { - return n instanceof i - ? new i(n.type, e(n.content), n.alias) - : Array.isArray(n) - ? n.map(e) - : n - .replace(/&/g, '&') - .replace(/= g.reach); - A += w.value.length, w = w.next - ) { - var E = w.value - if (n.length > e.length) return - if (!(E instanceof i)) { - var P, - L = 1 - if (y) { - if (!(P = l(b, A, e, m)) || P.index >= e.length) break - var S = P.index, - O = P.index + P[0].length, - j = A - for (j += w.value.length; S >= j; ) - j += (w = w.next).value.length - if (((A = j -= w.value.length), w.value instanceof i)) - continue - for ( - var C = w; - C !== n.tail && (j < O || 'string' == typeof C.value); - C = C.next - ) - L++, (j += C.value.length) - L--, (E = e.slice(A, j)), (P.index -= A) - } else if (!(P = l(b, 0, E, m))) continue - S = P.index - var N = P[0], - _ = E.slice(0, S), - M = E.slice(S + N.length), - W = A + E.length - g && W > g.reach && (g.reach = W) - var z = w.prev - if ( - (_ && ((z = u(n, z, _)), (A += _.length)), - c(n, z, L), - (w = u(n, z, new i(f, p ? a.tokenize(N, p) : N, k, N))), - M && u(n, w, M), - L > 1) - ) { - var I = { cause: f + ',' + d, reach: W } - o(e, n, t, w.prev, A, I), - g && I.reach > g.reach && (g.reach = I.reach) - } - } - } - } - } - } - function s() { - var e = { value: null, prev: null, next: null }, - n = { value: null, prev: e, next: null } - ;(e.next = n), (this.head = e), (this.tail = n), (this.length = 0) - } - function u(e, n, t) { - var r = n.next, - a = { value: t, prev: n, next: r } - return (n.next = a), (r.prev = a), e.length++, a - } - function c(e, n, t) { - for (var r = n.next, a = 0; a < t && r !== e.tail; a++) r = r.next - ;(n.next = r), (r.prev = n), (e.length -= a) - } - if ( - ((e.Prism = a), - (i.stringify = function e(n, t) { - if ('string' == typeof n) return n - if (Array.isArray(n)) { - var r = '' - return ( - n.forEach(function (n) { - r += e(n, t) - }), - r - ) - } - var i = { - type: n.type, - content: e(n.content, t), - tag: 'span', - classes: ['token', n.type], - attributes: {}, - language: t, - }, - l = n.alias - l && - (Array.isArray(l) - ? Array.prototype.push.apply(i.classes, l) - : i.classes.push(l)), - a.hooks.run('wrap', i) - var o = '' - for (var s in i.attributes) - o += - ' ' + - s + - '="' + - (i.attributes[s] || '').replace(/"/g, '"') + - '"' - return ( - '<' + - i.tag + - ' class="' + - i.classes.join(' ') + - '"' + - o + - '>' + - i.content + - '' - ) - }), - !e.document) - ) - return e.addEventListener - ? (a.disableWorkerMessageHandler || - e.addEventListener( - 'message', - function (n) { - var t = JSON.parse(n.data), - r = t.language, - i = t.code, - l = t.immediateClose - e.postMessage(a.highlight(i, a.languages[r], r)), l && e.close() - }, - !1 - ), - a) - : a - var g = a.util.currentScript() - function f() { - a.manual || a.highlightAll() - } - if ( - (g && - ((a.filename = g.src), - g.hasAttribute('data-manual') && (a.manual = !0)), - !a.manual) - ) { - var h = document.readyState - 'loading' === h || ('interactive' === h && g && g.defer) - ? document.addEventListener('DOMContentLoaded', f) - : window.requestAnimationFrame - ? window.requestAnimationFrame(f) - : window.setTimeout(f, 16) - } - return a - })(_self) -'undefined' != typeof module && module.exports && (module.exports = Prism), - 'undefined' != typeof global && (global.Prism = Prism) -;(Prism.languages.markup = { - comment: { pattern: //, greedy: !0 }, - prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, - doctype: { - pattern: - /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, - greedy: !0, - inside: { - 'internal-subset': { - pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, - lookbehind: !0, - greedy: !0, - inside: null, - }, - string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, - punctuation: /^$|[[\]]/, - 'doctype-tag': /^DOCTYPE/i, - name: /[^\s<>'"]+/, - }, - }, - cdata: { pattern: //i, greedy: !0 }, - tag: { - pattern: - /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, - greedy: !0, - inside: { - tag: { - pattern: /^<\/?[^\s>\/]+/, - inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ }, - }, - 'special-attr': [], - 'attr-value': { - pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, - inside: { - punctuation: [ - { pattern: /^=/, alias: 'attr-equals' }, - { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }, - ], - }, - }, - punctuation: /\/?>/, - 'attr-name': { - pattern: /[^\s>\/]+/, - inside: { namespace: /^[^\s>\/:]+:/ }, - }, - }, - }, - entity: [ - { pattern: /&[\da-z]{1,8};/i, alias: 'named-entity' }, - /&#x?[\da-f]{1,8};/i, - ], -}), - (Prism.languages.markup.tag.inside['attr-value'].inside.entity = - Prism.languages.markup.entity), - (Prism.languages.markup.doctype.inside['internal-subset'].inside = - Prism.languages.markup), - Prism.hooks.add('wrap', function (a) { - 'entity' === a.type && - (a.attributes.title = a.content.replace(/&/, '&')) - }), - Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { - value: function (a, e) { - var s = {} - ;(s['language-' + e] = { - pattern: /(^$)/i, - lookbehind: !0, - inside: Prism.languages[e], - }), - (s.cdata = /^$/i) - var t = { - 'included-cdata': { pattern: //i, inside: s }, - } - t['language-' + e] = { pattern: /[\s\S]+/, inside: Prism.languages[e] } - var n = {} - ;(n[a] = { - pattern: RegExp( - '(<__[^>]*>)(?:))*\\]\\]>|(?!)'.replace( - /__/g, - function () { - return a - } - ), - 'i' - ), - lookbehind: !0, - greedy: !0, - inside: t, - }), - Prism.languages.insertBefore('markup', 'cdata', n) - }, - }), - Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', { - value: function (a, e) { - Prism.languages.markup.tag.inside['special-attr'].push({ - pattern: RegExp( - '(^|["\'\\s])(?:' + - a + - ')\\s*=\\s*(?:"[^"]*"|\'[^\']*\'|[^\\s\'">=]+(?=[\\s>]))', - 'i' - ), - lookbehind: !0, - inside: { - 'attr-name': /^[^\s=]+/, - 'attr-value': { - pattern: /=[\s\S]+/, - inside: { - value: { - pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, - lookbehind: !0, - alias: [e, 'language-' + e], - inside: Prism.languages[e], - }, - punctuation: [{ pattern: /^=/, alias: 'attr-equals' }, /"|'/], - }, - }, - }, - }) - }, - }), - (Prism.languages.html = Prism.languages.markup), - (Prism.languages.mathml = Prism.languages.markup), - (Prism.languages.svg = Prism.languages.markup), - (Prism.languages.xml = Prism.languages.extend('markup', {})), - (Prism.languages.ssml = Prism.languages.xml), - (Prism.languages.atom = Prism.languages.xml), - (Prism.languages.rss = Prism.languages.xml) -!(function (s) { - var e = - /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/ - ;(s.languages.css = { - comment: /\/\*[\s\S]*?\*\//, - atrule: { - pattern: RegExp( - '@[\\w-](?:[^;{\\s"\']|\\s+(?!\\s)|' + e.source + ')*?(?:;|(?=\\s*\\{))' - ), - inside: { - rule: /^@[\w-]+/, - 'selector-function-argument': { - pattern: - /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, - lookbehind: !0, - alias: 'selector', - }, - keyword: { - pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, - lookbehind: !0, - }, - }, - }, - url: { - pattern: RegExp( - '\\burl\\((?:' + e.source + '|(?:[^\\\\\r\n()"\']|\\\\[^])*)\\)', - 'i' - ), - greedy: !0, - inside: { - function: /^url/i, - punctuation: /^\(|\)$/, - string: { pattern: RegExp('^' + e.source + '$'), alias: 'url' }, - }, - }, - selector: { - pattern: RegExp( - '(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + - e.source + - ')*(?=\\s*\\{)' - ), - lookbehind: !0, - }, - string: { pattern: e, greedy: !0 }, - property: { - pattern: - /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, - lookbehind: !0, - }, - important: /!important\b/i, - function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, - punctuation: /[(){};:,]/, - }), - (s.languages.css.atrule.inside.rest = s.languages.css) - var t = s.languages.markup - t && (t.tag.addInlined('style', 'css'), t.tag.addAttribute('style', 'css')) -})(Prism) -Prism.languages.clike = { - comment: [ - { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, - { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }, - ], - string: { - pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, - greedy: !0, - }, - 'class-name': { - pattern: - /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, - lookbehind: !0, - inside: { punctuation: /[.\\]/ }, - }, - keyword: - /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, - boolean: /\b(?:false|true)\b/, - function: /\b\w+(?=\()/, - number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, - operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, - punctuation: /[{}[\];(),.:]/, -} -;(Prism.languages.javascript = Prism.languages.extend('clike', { - 'class-name': [ - Prism.languages.clike['class-name'], - { - pattern: - /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, - lookbehind: !0, - }, - ], - keyword: [ - { pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, - { - pattern: - /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, - lookbehind: !0, - }, - ], - function: - /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, - number: { - pattern: RegExp( - '(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])' - ), - lookbehind: !0, - }, - operator: - /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/, -})), - (Prism.languages.javascript['class-name'][0].pattern = - /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/), - Prism.languages.insertBefore('javascript', 'keyword', { - regex: { - pattern: RegExp( - '((?:^|[^$\\w\\xA0-\\uFFFF."\'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))' - ), - lookbehind: !0, - greedy: !0, - inside: { - 'regex-source': { - pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, - lookbehind: !0, - alias: 'language-regex', - inside: Prism.languages.regex, - }, - 'regex-delimiter': /^\/|\/$/, - 'regex-flags': /^[a-z]+$/, - }, - }, - 'function-variable': { - pattern: - /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, - alias: 'function', - }, - parameter: [ - { - pattern: - /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, - lookbehind: !0, - inside: Prism.languages.javascript, - }, - { - pattern: - /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, - lookbehind: !0, - inside: Prism.languages.javascript, - }, - { - pattern: - /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, - lookbehind: !0, - inside: Prism.languages.javascript, - }, - { - pattern: - /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, - lookbehind: !0, - inside: Prism.languages.javascript, - }, - ], - constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/, - }), - Prism.languages.insertBefore('javascript', 'string', { - hashbang: { pattern: /^#!.*/, greedy: !0, alias: 'comment' }, - 'template-string': { - pattern: - /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, - greedy: !0, - inside: { - 'template-punctuation': { pattern: /^`|`$/, alias: 'string' }, - interpolation: { - pattern: - /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, - lookbehind: !0, - inside: { - 'interpolation-punctuation': { - pattern: /^\$\{|\}$/, - alias: 'punctuation', - }, - rest: Prism.languages.javascript, - }, - }, - string: /[\s\S]+/, - }, - }, - 'string-property': { - pattern: - /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, - lookbehind: !0, - greedy: !0, - alias: 'property', - }, - }), - Prism.languages.insertBefore('javascript', 'operator', { - 'literal-property': { - pattern: - /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, - lookbehind: !0, - alias: 'property', - }, - }), - Prism.languages.markup && - (Prism.languages.markup.tag.addInlined('script', 'javascript'), - Prism.languages.markup.tag.addAttribute( - 'on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)', - 'javascript' - )), - (Prism.languages.js = Prism.languages.javascript) diff --git a/site/src/public/reset.css b/site/src/public/reset.css deleted file mode 100644 index 20ba865..0000000 --- a/site/src/public/reset.css +++ /dev/null @@ -1,76 +0,0 @@ -/** -THANKS TO JOSH COMEAU FOR HIS CUSTOM CSS RESET -👉 https://www.joshwcomeau.com/css/custom-css-reset/ -**/ - -/* - 1. Use a more-intuitive box-sizing model. -*/ -*, -*::before, -*::after { - box-sizing: border-box; -} -/* - 2. Remove default margin - */ -* { - margin: 0; -} -/* - 3. Allow percentage-based heights in the application - */ -html, -body { - height: 100%; -} -/* - Typographic tweaks! - 4. Add accessible line-height - 5. Improve text rendering - */ -body { - line-height: 1.5; - -webkit-font-smoothing: antialiased; -} -/* - 6. Improve media defaults - */ -img, -picture, -video, -canvas, -svg, -iframe { - display: block; - max-width: 100%; - margin: 0 auto; -} -/* - 7. Remove built-in form typography styles - */ -input, -button, -textarea, -select { - font: inherit; -} -/* - 8. Avoid text overflows - */ -p, -h1, -h2, -h3, -h4, -h5, -h6 { - overflow-wrap: break-word; -} -/* - 9. Create a root stacking context - */ -#root, -#__next { - isolation: isolate; -} diff --git a/site/src/public/robots.txt b/site/src/public/robots.txt deleted file mode 100644 index eb05362..0000000 --- a/site/src/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: diff --git a/site/tsconfig.json b/site/tsconfig.json deleted file mode 100644 index 43008af..0000000 --- a/site/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "./.nitro/types/tsconfig.json" -}