├── static ├── favicon.ico ├── eszip_wasm_bg.wasm ├── global.css └── logo.svg ├── .vscode ├── extensions.json └── settings.json ├── twind.config.ts ├── dev.ts ├── README.md ├── deno.json ├── components └── Button.tsx ├── routes └── index.tsx ├── main.ts ├── fresh.gen.ts ├── import_map.json └── islands └── EszipTool.tsx /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/eszip_viewer/main/static/favicon.ico -------------------------------------------------------------------------------- /static/eszip_wasm_bg.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denoland/eszip_viewer/main/static/eszip_wasm_bg.wasm -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "denoland.vscode-deno", 4 | "sastan.twind-intellisense" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deno.enable": true, 3 | "deno.lint": true, 4 | "editor.defaultFormatter": "denoland.vscode-deno" 5 | } 6 | -------------------------------------------------------------------------------- /twind.config.ts: -------------------------------------------------------------------------------- 1 | import { Options } from "$fresh/plugins/twind.ts"; 2 | 3 | export default { 4 | selfURL: import.meta.url, 5 | } as Options; 6 | -------------------------------------------------------------------------------- /dev.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env -S deno run -A --watch=static/,routes/ 2 | 3 | import dev from "$fresh/dev.ts"; 4 | 5 | await dev(import.meta.url, "./main.ts"); 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # fresh project 2 | 3 | ### Usage 4 | 5 | Start the project: 6 | 7 | ``` 8 | deno task start 9 | ``` 10 | 11 | This will watch the project directory and restart as necessary. 12 | -------------------------------------------------------------------------------- /deno.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": { 3 | "start": "deno run -A --watch=static/,routes/ dev.ts" 4 | }, 5 | "importMap": "./import_map.json", 6 | "compilerOptions": { 7 | "jsx": "react-jsx", 8 | "jsxImportSource": "preact" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /static/global.css: -------------------------------------------------------------------------------- 1 | pre { 2 | counter-reset: line; 3 | } 4 | 5 | pre span { 6 | display: block; 7 | line-height: 1.5rem; 8 | } 9 | 10 | pre span:before { 11 | counter-increment: line; 12 | content: counter(line); 13 | display: inline-block; 14 | padding-right: .5em; 15 | margin-right: .5em; 16 | color: #BBB; 17 | } 18 | -------------------------------------------------------------------------------- /components/Button.tsx: -------------------------------------------------------------------------------- 1 | import { JSX } from "preact"; 2 | import { IS_BROWSER } from "$fresh/runtime.ts"; 3 | 4 | export function Button(props: JSX.HTMLAttributes) { 5 | return ( 6 |