{"id":15385971,"url":"https://github.com/alstonchan/thewitcheralbum","last_synced_at":"2026-03-12T09:30:17.167Z","repository":{"id":44349770,"uuid":"511818258","full_name":"AlstonChan/TheWitcherAlbum","owner":"AlstonChan","description":"An album made with Web Component bundled with Vite","archived":false,"fork":false,"pushed_at":"2024-06-29T02:44:12.000Z","size":18017,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T15:54:00.362Z","etag":null,"topics":["custom-elements","html-template","shadow-dom"],"latest_commit_sha":null,"homepage":"https://thewitcheralbum.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlstonChan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-08T08:19:53.000Z","updated_at":"2024-06-29T02:44:15.000Z","dependencies_parsed_at":"2024-10-18T17:52:51.828Z","dependency_job_id":"75aae21d-8f59-49de-8165-e5268e880a03","html_url":"https://github.com/AlstonChan/TheWitcherAlbum","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"14461a5cf8fbf123a9c1b0bf10ea4684b553f207"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FTheWitcherAlbum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FTheWitcherAlbum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FTheWitcherAlbum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FTheWitcherAlbum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlstonChan","download_url":"https://codeload.github.com/AlstonChan/TheWitcherAlbum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914929,"owners_count":19717760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-elements","html-template","shadow-dom"],"created_at":"2024-10-01T14:46:53.034Z","updated_at":"2026-03-12T09:30:17.107Z","avatar_url":"https://github.com/AlstonChan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TheWitcherAlbum [![Netlify Status](https://api.netlify.com/api/v1/badges/50403584-b0e2-4a87-ae0e-e534c865b124/deploy-status)](https://app.netlify.com/sites/thewitcheralbum/deploys)\n\nBuilt with custom element, custom dom and html template element.\n\n## Getting Started\n\n1. Clone this repository into your local machine\n\n   ```bash\n   git clone https://github.com/AlstonChan/TheWitcherAlbum.git\n   ```\n\n2. Install dependency for **Vite** to work:\n\n   ```bash\n   cd TheWitcherAlbum\n   npm install\n   ```\n\n3. Enter `npm run dev` to spin up the development server, it runs at `localhost:3000`.\n\n## Overview\n\n**State management :** I have used both [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) and [Reflect](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect) to form a simple, yet effective enough for this small website.\n\n**Web Component :** You may create your own tag by extending `HTMLElement` class and have a reusable component with it's own dom, namely the [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM).\n\n## Developer notes\n\nDuring local development with `npm run dev` using **vite**, when vite does hot reloading with the browser, another instance of the hot reloaded `handler.js` is being placed without replacing the old file, resulting in two instances of `handler.js` with another one hashed by **vite**. This causes bugs that will cause the left and right navigation button to be executed **TWICE**. I haven't figure out a way to solve this automatically, so, to solve this manually, restart the development server and open another tab of the site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fthewitcheralbum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falstonchan%2Fthewitcheralbum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fthewitcheralbum/lists"}