Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## 環境変数

~~~env
```env
SECRET_TOKEN="YOUR_TOKEN"
~~~
```
40 changes: 20 additions & 20 deletions website/attribution.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Open Source Attribution for Scratch Status Monitor
- Hono
- ky
- react
- react dom
- zod
- @cloudflare/vite-plugin
- @cloudflare/workers-types
- @tailwindcss/postcss
- @types/react
- @types/react-dom
- @vitejs/plugin-react
- postcss
- tailwindcss
- vite
- vite-ssr-components
- vite-tsconfig-paths
- wrangler
# Open Source Attribution for Scratch Status Monitor

- Hono
- ky
- react
- react dom
- zod

- @cloudflare/vite-plugin
- @cloudflare/workers-types
- @tailwindcss/postcss
- @types/react
- @types/react-dom
- @vitejs/plugin-react
- postcss
- tailwindcss
- vite
- vite-ssr-components
- vite-tsconfig-paths
- wrangler
124 changes: 62 additions & 62 deletions website/motitors.ts
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
import { MonitorConfigType } from "~/src/types/motior";
export const MonitorConfig: MonitorConfigType = {
category: [
{
id: "main",
label: "Main",
},
{
id: "siteapi",
label: "Site API",
},
{
id: "api",
label: "API",
},
],
items: [
{
id: "c79c0e1e-8292-45ee-8dba-58e672d32184",
title: "Website",
category: "main",
url: "https://scratch.mit.edu",
},
{
id: "7de6ff07-02d7-4e00-afd7-5bc1c292a098",
title: "API",
category: "main",
url: "https://api.scratch.mit.edu",
},
{
id: "a76fe285-5171-4f9c-876e-8a4230267e83",
title: "User Activity",
category: "siteapi",
url: "https://scratch.mit.edu/messages/ajax/user-activity/?user=griffpatch&max=1",
},
{
id: "41fe485e-05a3-4bdd-b7e4-94b2fce1de74",
title: "Profile Comments",
category: "siteapi",
url: "https://scratch.mit.edu/site-api/comments/user/griffpatch/?page=1",
},
{
id: "72c6be4f-0a48-4a09-9117-41b956f6072f",
title: "Explore API",
category: "api",
url: "https://api.scratch.mit.edu/explore/projects?limit=1&offset=0&language=en&mode=trending&q=*",
},
{
id: "02c50c46-12fa-4e97-8ac2-cbdc6d0752e9",
title: "Search API",
category: "api",
url: "https://api.scratch.mit.edu/search/projects?limit=1&offset=0&language=en&mode=popular&q=cat",
},
{
id: "1a394936-53de-4a24-b221-058361c0a8ab",
title: "Clouddata",
category: "api",
url: "https://clouddata.scratch.mit.edu/logs?projectid=60917032&limit=40&offset=0",
},
],
};
import { MonitorConfigType } from "~/src/types/motior";

export const MonitorConfig: MonitorConfigType = {
category: [
{
id: "main",
label: "Main",
},
{
id: "siteapi",
label: "Site API",
},
{
id: "api",
label: "API",
},
],
items: [
{
id: "c79c0e1e-8292-45ee-8dba-58e672d32184",
title: "Website",
category: "main",
url: "https://scratch.mit.edu",
},
{
id: "7de6ff07-02d7-4e00-afd7-5bc1c292a098",
title: "API",
category: "main",
url: "https://api.scratch.mit.edu",
},
{
id: "a76fe285-5171-4f9c-876e-8a4230267e83",
title: "User Activity",
category: "siteapi",
url: "https://scratch.mit.edu/messages/ajax/user-activity/?user=griffpatch&max=1",
},
{
id: "41fe485e-05a3-4bdd-b7e4-94b2fce1de74",
title: "Profile Comments",
category: "siteapi",
url: "https://scratch.mit.edu/site-api/comments/user/griffpatch/?page=1",
},
{
id: "72c6be4f-0a48-4a09-9117-41b956f6072f",
title: "Explore API",
category: "api",
url: "https://api.scratch.mit.edu/explore/projects?limit=1&offset=0&language=en&mode=trending&q=*",
},
{
id: "02c50c46-12fa-4e97-8ac2-cbdc6d0752e9",
title: "Search API",
category: "api",
url: "https://api.scratch.mit.edu/search/projects?limit=1&offset=0&language=en&mode=popular&q=cat",
},
{
id: "1a394936-53de-4a24-b221-058361c0a8ab",
title: "Clouddata",
category: "api",
url: "https://clouddata.scratch.mit.edu/logs?projectid=60917032&limit=40&offset=0",
},
],
};
13 changes: 4 additions & 9 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"name": "website",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "$npm_execpath run build && vite preview",
"deploy": "$npm_execpath run build && wrangler deploy",
"cf-typegen": "wrangler types --env-interface CloudflareBindings"
"dev": "wrangler dev",
"deploy": "wrangler deploy --minify",
"cf-typegen": "wrangler types --env-interface CloudflareBindings",
"prettier": "pnpm dlx prettier . --write"
},
"dependencies": {
"hono": "^4.10.6",
Expand All @@ -21,12 +20,8 @@
"@tailwindcss/postcss": "^4.1.17",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.17",
"vite": "^6.3.5",
"vite-ssr-components": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4",
"wrangler": "^4.17.0"
}
}
Loading