From 656ba0efd45a03a2f8efb53a795004b3fc4ceb4b Mon Sep 17 00:00:00 2001 From: June P Date: Sat, 20 Jan 2024 03:34:09 +0900 Subject: [PATCH] fix some bugs --- astro.config.mjs | 2 - public/assets/mockevents.json | 214 +++++++++++++++----------- public/assets/mockrepos.json | 2 +- src/components/preact/MarqueeItem.tsx | 2 +- tools/update_apps.mjs | 2 +- 5 files changed, 130 insertions(+), 92 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 9531d1c..289416d 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,8 +2,6 @@ import { defineConfig } from 'astro/config'; import tailwind from "@astrojs/tailwind"; import preact from "@astrojs/preact"; -import svelte from "@astrojs/svelte"; - // https://astro.build/config export default defineConfig({ integrations: [tailwind(), preact()] diff --git a/public/assets/mockevents.json b/public/assets/mockevents.json index 34599c6..3ca3756 100644 --- a/public/assets/mockevents.json +++ b/public/assets/mockevents.json @@ -1,4 +1,131 @@ [ + { + "id": "34968955073", + "type": "PushEvent", + "actor": { + "id": 40409848, + "login": "junepark678", + "display_login": "junepark678", + "gravatar_id": "", + "url": "https://api.github.com/users/junepark678", + "avatar_url": "https://avatars.githubusercontent.com/u/40409848?" + }, + "repo": { + "id": 502541849, + "name": "SideStore/sidestore.github.io", + "url": "https://api.github.com/repos/SideStore/sidestore.github.io" + }, + "payload": { + "repository_id": 502541849, + "push_id": 16713883497, + "size": 1, + "distinct_size": 1, + "ref": "refs/heads/rewrite", + "head": "c5ad92c0aa92c0c9cc58e48337c073a5c91dafdf", + "before": "1bdeaf7db52f45e3e7ac01344c146a35b1658082", + "commits": [ + { + "sha": "c5ad92c0aa92c0c9cc58e48337c073a5c91dafdf", + "author": { + "email": "rjp2030@outlook.com", + "name": "June P" + }, + "message": "remove unnecessary css link", + "distinct": true, + "url": "https://api.github.com/repos/SideStore/sidestore.github.io/commits/c5ad92c0aa92c0c9cc58e48337c073a5c91dafdf" + } + ] + }, + "public": true, + "created_at": "2024-01-19T17:46:22Z", + "org": { + "id": 105070799, + "login": "SideStore", + "gravatar_id": "", + "url": "https://api.github.com/orgs/SideStore", + "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" + } + }, + { + "id": "34968918733", + "type": "PushEvent", + "actor": { + "id": 40409848, + "login": "junepark678", + "display_login": "junepark678", + "gravatar_id": "", + "url": "https://api.github.com/users/junepark678", + "avatar_url": "https://avatars.githubusercontent.com/u/40409848?" + }, + "repo": { + "id": 502541849, + "name": "SideStore/sidestore.github.io", + "url": "https://api.github.com/repos/SideStore/sidestore.github.io" + }, + "payload": { + "repository_id": 502541849, + "push_id": 16713865156, + "size": 1, + "distinct_size": 1, + "ref": "refs/heads/rewrite", + "head": "1bdeaf7db52f45e3e7ac01344c146a35b1658082", + "before": "3d7c469dc486a08f66a7a8a30e53f75e3be45c24", + "commits": [ + { + "sha": "1bdeaf7db52f45e3e7ac01344c146a35b1658082", + "author": { + "email": "rjp2030@outlook.com", + "name": "June P" + }, + "message": "Fix readme", + "distinct": true, + "url": "https://api.github.com/repos/SideStore/sidestore.github.io/commits/1bdeaf7db52f45e3e7ac01344c146a35b1658082" + } + ] + }, + "public": true, + "created_at": "2024-01-19T17:44:45Z", + "org": { + "id": 105070799, + "login": "SideStore", + "gravatar_id": "", + "url": "https://api.github.com/orgs/SideStore", + "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" + } + }, + { + "id": "34968808294", + "type": "CreateEvent", + "actor": { + "id": 40409848, + "login": "junepark678", + "display_login": "junepark678", + "gravatar_id": "", + "url": "https://api.github.com/users/junepark678", + "avatar_url": "https://avatars.githubusercontent.com/u/40409848?" + }, + "repo": { + "id": 502541849, + "name": "SideStore/sidestore.github.io", + "url": "https://api.github.com/repos/SideStore/sidestore.github.io" + }, + "payload": { + "ref": "rewrite", + "ref_type": "branch", + "master_branch": "master", + "description": "https://sidestore.io", + "pusher_type": "user" + }, + "public": true, + "created_at": "2024-01-19T17:40:01Z", + "org": { + "id": 105070799, + "login": "SideStore", + "gravatar_id": "", + "url": "https://api.github.com/orgs/SideStore", + "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" + } + }, { "id": "34966859424", "type": "PushEvent", @@ -8218,92 +8345,5 @@ "url": "https://api.github.com/orgs/SideStore", "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" } - }, - { - "id": "34635828711", - "type": "WatchEvent", - "actor": { - "id": 151382658, - "login": "josephjsteen1", - "display_login": "josephjsteen1", - "gravatar_id": "", - "url": "https://api.github.com/users/josephjsteen1", - "avatar_url": "https://avatars.githubusercontent.com/u/151382658?" - }, - "repo": { - "id": 609742062, - "name": "SideStore/omnisette-server", - "url": "https://api.github.com/repos/SideStore/omnisette-server" - }, - "payload": { - "action": "started" - }, - "public": true, - "created_at": "2024-01-08T01:48:30Z", - "org": { - "id": 105070799, - "login": "SideStore", - "gravatar_id": "", - "url": "https://api.github.com/orgs/SideStore", - "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" - } - }, - { - "id": "34630405607", - "type": "WatchEvent", - "actor": { - "id": 5357004, - "login": "daoye", - "display_login": "daoye", - "gravatar_id": "", - "url": "https://api.github.com/users/daoye", - "avatar_url": "https://avatars.githubusercontent.com/u/5357004?" - }, - "repo": { - "id": 489490307, - "name": "SideStore/SideStore", - "url": "https://api.github.com/repos/SideStore/SideStore" - }, - "payload": { - "action": "started" - }, - "public": true, - "created_at": "2024-01-07T15:22:21Z", - "org": { - "id": 105070799, - "login": "SideStore", - "gravatar_id": "", - "url": "https://api.github.com/orgs/SideStore", - "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" - } - }, - { - "id": "34629463593", - "type": "WatchEvent", - "actor": { - "id": 24431667, - "login": "Jeffrey031", - "display_login": "Jeffrey031", - "gravatar_id": "", - "url": "https://api.github.com/users/Jeffrey031", - "avatar_url": "https://avatars.githubusercontent.com/u/24431667?" - }, - "repo": { - "id": 489490307, - "name": "SideStore/SideStore", - "url": "https://api.github.com/repos/SideStore/SideStore" - }, - "payload": { - "action": "started" - }, - "public": true, - "created_at": "2024-01-07T13:37:29Z", - "org": { - "id": 105070799, - "login": "SideStore", - "gravatar_id": "", - "url": "https://api.github.com/orgs/SideStore", - "avatar_url": "https://avatars.githubusercontent.com/u/105070799?" - } } ] \ No newline at end of file diff --git a/public/assets/mockrepos.json b/public/assets/mockrepos.json index 6a8aef1..397dfa6 100644 --- a/public/assets/mockrepos.json +++ b/public/assets/mockrepos.json @@ -3346,7 +3346,7 @@ "deployments_url": "https://api.github.com/repos/SideStore/sidestore.github.io/deployments", "created_at": "2022-06-12T06:54:14Z", "updated_at": "2024-01-19T08:26:45Z", - "pushed_at": "2024-01-19T03:42:08Z", + "pushed_at": "2024-01-19T17:46:20Z", "git_url": "git://github.com/SideStore/sidestore.github.io.git", "ssh_url": "git@github.com:SideStore/sidestore.github.io.git", "clone_url": "https://github.com/SideStore/sidestore.github.io.git", diff --git a/src/components/preact/MarqueeItem.tsx b/src/components/preact/MarqueeItem.tsx index 6156abb..d1ed4d2 100644 --- a/src/components/preact/MarqueeItem.tsx +++ b/src/components/preact/MarqueeItem.tsx @@ -7,7 +7,7 @@ class MarqueeItemProps { export default function MarqueeItem(props: MarqueeItemProps) { return (
- {props.name} + {props.name}

{props.name}

{props.desc}

diff --git a/tools/update_apps.mjs b/tools/update_apps.mjs index e972c8b..f824762 100644 --- a/tools/update_apps.mjs +++ b/tools/update_apps.mjs @@ -21,7 +21,7 @@ const folderExists = async (path) => { return exists; }; -const outFolder = path.join(__dirname, '../public/assets/apps_data/'); +const outFolder = 'public/assets/apps_data/'; //for each app get the name icon and subtitle and download the icon (async () => { console.log(`✨ Updating mock events...`);