├── .gitignore ├── .gitpod.yml ├── .nvmrc ├── .prettierrc ├── package.json ├── pnpm-lock.yaml ├── public ├── favicon.svg └── index.html ├── scripts ├── build.ts └── plugins │ └── worker.ts ├── src ├── @astro │ └── internal │ │ ├── escape.ts │ │ ├── hydration.ts │ │ ├── index.ts │ │ ├── metadata.ts │ │ ├── render.ts │ │ └── util.ts ├── editor │ ├── modules │ │ ├── monaco-astro.ts │ │ └── monaco.ts │ ├── plugins │ │ ├── alias.ts │ │ ├── cdn.ts │ │ ├── entry.ts │ │ ├── external.ts │ │ ├── http.ts │ │ └── virtual-fs.ts │ ├── themes │ │ └── github-dark.ts │ └── workers │ │ ├── build.ts │ │ ├── editor.ts │ │ ├── empty.ts │ │ └── typescript.ts ├── index.ts ├── styles │ └── index.css ├── types.d.ts ├── ui │ ├── components │ │ ├── App.tsx │ │ ├── Editor.tsx │ │ ├── HTML.tsx │ │ ├── JS.tsx │ │ ├── Menu.tsx │ │ ├── Preview.tsx │ │ ├── Share.tsx │ │ ├── Sidebar.tsx │ │ ├── StatusBar.tsx │ │ ├── Tab.tsx │ │ └── Tabs.tsx │ ├── const.ts │ ├── hooks │ │ ├── useMonaco.ts │ │ └── useWindowSize.ts │ └── index.ts ├── util │ ├── WebWorker.ts │ ├── ansi.ts │ ├── brotli-wasm.js │ ├── cache.ts │ ├── debounce.ts │ ├── deep-equal.ts │ ├── encode-decode.ts │ ├── github-dark.ts │ ├── github-light.ts │ ├── loader.ts │ ├── parse-query.ts │ ├── path.ts │ ├── resolve-imports.js │ ├── util-cdn.ts │ └── worker-init.ts └── utils │ ├── WebWorker.ts │ ├── astro.ts │ ├── b64.ts │ ├── cache.ts │ ├── encode-decode.ts │ ├── index.ts │ ├── loader.ts │ ├── random-bytes.ts │ ├── serialize-javascript.ts │ └── worker-init.ts ├── tsconfig.json └── vercel.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v14.17.6 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/.prettierrc -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/public/index.html -------------------------------------------------------------------------------- /scripts/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/scripts/build.ts -------------------------------------------------------------------------------- /scripts/plugins/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/scripts/plugins/worker.ts -------------------------------------------------------------------------------- /src/@astro/internal/escape.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/escape.ts -------------------------------------------------------------------------------- /src/@astro/internal/hydration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/hydration.ts -------------------------------------------------------------------------------- /src/@astro/internal/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/index.ts -------------------------------------------------------------------------------- /src/@astro/internal/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/metadata.ts -------------------------------------------------------------------------------- /src/@astro/internal/render.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/render.ts -------------------------------------------------------------------------------- /src/@astro/internal/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/@astro/internal/util.ts -------------------------------------------------------------------------------- /src/editor/modules/monaco-astro.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/modules/monaco-astro.ts -------------------------------------------------------------------------------- /src/editor/modules/monaco.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/modules/monaco.ts -------------------------------------------------------------------------------- /src/editor/plugins/alias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/alias.ts -------------------------------------------------------------------------------- /src/editor/plugins/cdn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/cdn.ts -------------------------------------------------------------------------------- /src/editor/plugins/entry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/entry.ts -------------------------------------------------------------------------------- /src/editor/plugins/external.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/external.ts -------------------------------------------------------------------------------- /src/editor/plugins/http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/http.ts -------------------------------------------------------------------------------- /src/editor/plugins/virtual-fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/plugins/virtual-fs.ts -------------------------------------------------------------------------------- /src/editor/themes/github-dark.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/themes/github-dark.ts -------------------------------------------------------------------------------- /src/editor/workers/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/workers/build.ts -------------------------------------------------------------------------------- /src/editor/workers/editor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/workers/editor.ts -------------------------------------------------------------------------------- /src/editor/workers/empty.ts: -------------------------------------------------------------------------------- 1 | /// 2 | export { }; -------------------------------------------------------------------------------- /src/editor/workers/typescript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/editor/workers/typescript.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/styles/index.css -------------------------------------------------------------------------------- /src/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/types.d.ts -------------------------------------------------------------------------------- /src/ui/components/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/App.tsx -------------------------------------------------------------------------------- /src/ui/components/Editor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Editor.tsx -------------------------------------------------------------------------------- /src/ui/components/HTML.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/HTML.tsx -------------------------------------------------------------------------------- /src/ui/components/JS.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/JS.tsx -------------------------------------------------------------------------------- /src/ui/components/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Menu.tsx -------------------------------------------------------------------------------- /src/ui/components/Preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Preview.tsx -------------------------------------------------------------------------------- /src/ui/components/Share.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Share.tsx -------------------------------------------------------------------------------- /src/ui/components/Sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Sidebar.tsx -------------------------------------------------------------------------------- /src/ui/components/StatusBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/StatusBar.tsx -------------------------------------------------------------------------------- /src/ui/components/Tab.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Tab.tsx -------------------------------------------------------------------------------- /src/ui/components/Tabs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/components/Tabs.tsx -------------------------------------------------------------------------------- /src/ui/const.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/const.ts -------------------------------------------------------------------------------- /src/ui/hooks/useMonaco.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/hooks/useMonaco.ts -------------------------------------------------------------------------------- /src/ui/hooks/useWindowSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/hooks/useWindowSize.ts -------------------------------------------------------------------------------- /src/ui/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/ui/index.ts -------------------------------------------------------------------------------- /src/util/WebWorker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/WebWorker.ts -------------------------------------------------------------------------------- /src/util/ansi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/ansi.ts -------------------------------------------------------------------------------- /src/util/brotli-wasm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/brotli-wasm.js -------------------------------------------------------------------------------- /src/util/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/cache.ts -------------------------------------------------------------------------------- /src/util/debounce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/debounce.ts -------------------------------------------------------------------------------- /src/util/deep-equal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/deep-equal.ts -------------------------------------------------------------------------------- /src/util/encode-decode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/encode-decode.ts -------------------------------------------------------------------------------- /src/util/github-dark.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/github-dark.ts -------------------------------------------------------------------------------- /src/util/github-light.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/github-light.ts -------------------------------------------------------------------------------- /src/util/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/loader.ts -------------------------------------------------------------------------------- /src/util/parse-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/parse-query.ts -------------------------------------------------------------------------------- /src/util/path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/path.ts -------------------------------------------------------------------------------- /src/util/resolve-imports.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/resolve-imports.js -------------------------------------------------------------------------------- /src/util/util-cdn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/util-cdn.ts -------------------------------------------------------------------------------- /src/util/worker-init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/util/worker-init.ts -------------------------------------------------------------------------------- /src/utils/WebWorker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/WebWorker.ts -------------------------------------------------------------------------------- /src/utils/astro.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/astro.ts -------------------------------------------------------------------------------- /src/utils/b64.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/b64.ts -------------------------------------------------------------------------------- /src/utils/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/cache.ts -------------------------------------------------------------------------------- /src/utils/encode-decode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/encode-decode.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/loader.ts -------------------------------------------------------------------------------- /src/utils/random-bytes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/random-bytes.ts -------------------------------------------------------------------------------- /src/utils/serialize-javascript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/serialize-javascript.ts -------------------------------------------------------------------------------- /src/utils/worker-init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/src/utils/worker-init.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/withastro/astro-repl/HEAD/vercel.json --------------------------------------------------------------------------------