{"id":20629163,"url":"https://github.com/dcts/webcomponents","last_synced_at":"2026-04-23T09:36:34.854Z","repository":{"id":101464985,"uuid":"244648603","full_name":"dcts/webcomponents","owner":"dcts","description":"webcomponents library in Vanilla JS.","archived":false,"fork":false,"pushed_at":"2020-03-03T15:25:05.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T11:13:18.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://webcomponent-library.firebaseapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-03T13:51:45.000Z","updated_at":"2020-03-03T15:25:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b34e1e5-911d-4f7f-97b1-358eaf3ac9aa","html_url":"https://github.com/dcts/webcomponents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fwebcomponents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fwebcomponents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fwebcomponents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fwebcomponents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcts","download_url":"https://codeload.github.com/dcts/webcomponents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242582608,"owners_count":20153279,"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":[],"created_at":"2024-11-16T13:41:58.458Z","updated_at":"2026-04-23T09:36:34.813Z","avatar_url":"https://github.com/dcts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webcomponent Library by DCTS\n\n- Demo of all WebComponents hosted here: https://webcomponent-library.firebaseapp.com/\n\n### Switch\n```js\nmySwitch = document.querySelector(\"dcts-switch\");\nmySwitch.on();     // turns switch on\nmySwitch.off();    // turns switch off\nmySwitch.toggle(); // toggles switch\n// Display Data\nconsole.log(mySwitch.status);  // =\u003e \"on\" or \"off\"\n```\n\n### Activity Calendar (WORK IN PROGRESS)\n```js\nmyCal = document.querySelector(\"dcts-activity-calendar\");\nmyCal.randomize(); // randomly assign values for each day\n```\n\n### Goal Tracker\n```js\nconst myTracker = document.getElementById(\"myGoalTrackerWater\");\nmyTracker.title = \"WATER\";\nmyTracker.unit = \"liter\";\nmyTracker.color = \"#10316b\";\nmyTracker.max = 3;\nmyTracker.step = 0.25;\nmyTracker.current = 0;\n\nmyTracker.increase(); // increase the progress bar by 1 step\nmyTracker.decrease(); // decrease the progress bar by 1 step\n```\n\n# Hosting\nwebcomponents library is hosted via firebase. Url: https://webcomponent-library.firebaseapp.com/\n\n### push to production\n```bash\nfirebase login # login to redingstreet@gmail.com google account and select project\nfirebase deploy --only hosting # push to production\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fwebcomponents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcts%2Fwebcomponents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fwebcomponents/lists"}