├── public ├── robots.txt ├── _headers ├── favicon.ico └── favicon.svg ├── knip.ts ├── .github ├── renovate.json └── workflows │ └── main.yml ├── src ├── assets │ ├── images │ │ ├── caos.jpg │ │ ├── hero.png │ │ ├── tools.jpg │ │ ├── colors.jpg │ │ ├── default.png │ │ ├── do-more.jpg │ │ ├── vintage.jpg │ │ ├── creativity.jpg │ │ └── stickers.jpg │ └── styles │ │ └── base.css ├── env.d.ts ├── layouts │ ├── CodeLayout.astro │ ├── PageLayout.astro │ ├── MarkdownLayout.astro │ └── BaseLayout.astro ├── types.ts ├── pages │ ├── handlers.mdx │ ├── 404.astro │ ├── usage.mdx │ ├── apis.mdx │ ├── bindings.mdx │ └── [...date].astro ├── components │ ├── widgets │ │ ├── Announcement.astro │ │ ├── Footer.astro │ │ └── Header.astro │ ├── common │ │ ├── ToggleMenu.astro │ │ ├── ToggleTheme.astro │ │ └── BasicScripts.astro │ └── Logo.astro ├── data.js ├── generate.mjs └── config.mjs ├── eslint.config.js ├── README.md ├── tsconfig.json ├── .editorconfig ├── .gitignore ├── astro.config.mjs ├── tailwind.config.cjs ├── LICENSE.md └── package.json /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: -------------------------------------------------------------------------------- /knip.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'simple-knip-config' 2 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["github>DaniFoldi/workflows"] 3 | } 4 | -------------------------------------------------------------------------------- /public/_headers: -------------------------------------------------------------------------------- 1 | /_astro/* 2 | Cache-Control: public, max-age=31536000, immutable -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/images/caos.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/caos.jpg -------------------------------------------------------------------------------- /src/assets/images/hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/hero.png -------------------------------------------------------------------------------- /src/assets/images/tools.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/tools.jpg -------------------------------------------------------------------------------- /src/assets/images/colors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/colors.jpg -------------------------------------------------------------------------------- /src/assets/images/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/default.png -------------------------------------------------------------------------------- /src/assets/images/do-more.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/do-more.jpg -------------------------------------------------------------------------------- /src/assets/images/vintage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/vintage.jpg -------------------------------------------------------------------------------- /src/assets/images/creativity.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/creativity.jpg -------------------------------------------------------------------------------- /src/assets/images/stickers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaniFoldi/workers-types/HEAD/src/assets/images/stickers.jpg -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import { config } from 'bundled-eslint-config' 2 | 3 | 4 | export default config({}, [ 5 | { 6 | ignores: [ 'src/workers-types/**' ] 7 | } 8 | ]) 9 | -------------------------------------------------------------------------------- /src/env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | // / 4 | 5 | // / 6 | -------------------------------------------------------------------------------- /src/layouts/CodeLayout.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Layout from '~/layouts/MarkdownLayout.astro' 3 | --- 4 | 5 | 6 |
7 | 8 |
9 |
10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Workers-Types 2 | 3 | Special thanks to: 4 | 5 | - **AstroWind** (MIT) 6 | - **cloudflare/workerd** and **cloudflare/workers-types** (Apache-2.0) 7 | - @MrBBot and @Cherry :orange_heart: 8 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "astro/tsconfigs/base", 3 | "compilerOptions": { 4 | "strictNullChecks": true, 5 | "allowJs": true, 6 | "baseUrl": ".", 7 | "paths": { 8 | "~/*": ["src/*"] 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | export interface MetaSEO { 2 | title?: string 3 | description?: string 4 | image?: string 5 | 6 | canonical?: string | URL 7 | noindex?: boolean 8 | nofollow?: boolean 9 | 10 | ogTitle?: string 11 | ogType?: string 12 | } 13 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | charset = utf-8 8 | end_of_line = lf 9 | indent_size = 2 10 | indent_style = space 11 | insert_final_newline = true 12 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist/ 3 | .output/ 4 | 5 | # dependencies 6 | node_modules/ 7 | 8 | # logs 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | pnpm-debug.log* 13 | 14 | 15 | # environment variables 16 | .env 17 | .env.production 18 | 19 | # macOS-specific files 20 | .DS_Store 21 | 22 | .astro 23 | .idea 24 | 25 | src/tarballs/ 26 | src/workers-types/ 27 | -------------------------------------------------------------------------------- /src/pages/handlers.mdx: -------------------------------------------------------------------------------- 1 | --- 2 | layout: src/layouts/CodeLayout.astro 3 | --- 4 | 5 | ```ts 6 | export default { 7 | async email(message, env, ctx) { 8 | 9 | }, 10 | async fetch(request, env, ctx) { 11 | 12 | }, 13 | async queue(batch, env, ctx) { 14 | 15 | }, 16 | async scheduled(event, env, ctx) { 17 | 18 | }, 19 | // Renamed from trace 20 | async tail(events, env, ctx) { 21 | 22 | } 23 | async test(controller, env, ctx) { 24 | 25 | } 26 | } 27 | ``` 28 | -------------------------------------------------------------------------------- /src/layouts/PageLayout.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Footer from '~/components/widgets/Footer.astro' 3 | import Header from '~/components/widgets/Header.astro' 4 | // import Announcement from '~/components/widgets/Announcement.astro'; 5 | 6 | import { headerData, footerData } from '~/data' 7 | import Layout from '~/layouts/BaseLayout.astro' 8 | 9 | --- 10 | 11 | 12 | 15 | 16 |
17 | 18 |
19 | 20 |
21 | 22 |