{"id":20629161,"url":"https://github.com/dcts/timeline-component","last_synced_at":"2025-06-11T03:35:26.822Z","repository":{"id":41698150,"uuid":"246144276","full_name":"dcts/timeline-component","owner":"dcts","description":"WebComponent that visualizes historical data as an interactive histogram. Written with lit-element.","archived":false,"fork":false,"pushed_at":"2023-01-13T23:44:08.000Z","size":2145,"stargazers_count":6,"open_issues_count":28,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:26:03.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dcts-timeline.web.app/","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}},"created_at":"2020-03-09T21:19:03.000Z","updated_at":"2025-03-28T00:35:21.000Z","dependencies_parsed_at":"2023-02-09T17:47:14.208Z","dependency_job_id":null,"html_url":"https://github.com/dcts/timeline-component","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%2Ftimeline-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Ftimeline-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Ftimeline-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Ftimeline-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcts","download_url":"https://codeload.github.com/dcts/timeline-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249116232,"owners_count":21215142,"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:57.193Z","updated_at":"2025-04-15T17:01:26.130Z","avatar_url":"https://github.com/dcts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timeline Component for KBA / TEIPublisher\n\nComponent to display a timeline (barchart) of search results. Build with lit-element. [Check out the interactive demo](https://dcts-timeline.web.app/).\n\n**Preview**\u003cbr\u003e\n\u003ca href=\"https://dcts-timeline.web.app/\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/44790691/81136032-a79af380-8f5a-11ea-8191-03a0e739c45d.png\"\u003e\u003c/a\u003e\n\n# Requirements\n- **`nodeJS`**\n- **`npm`**\n- [**`lit-element`**](https://lit-element.polymer-project.org/) [npm-link](https://www.npmjs.com/package/lit-element)\n- [**`firebase`**](https://firebase.google.com/docs/cli) (only for hosting)\n\n### Install\n```bash\nnpm install\n```\n\n### Development\n```bash\nnpm run dev # runs webpack dev server on port 8080\n```\n\n### Production\nApp is live: https://dcts-timeline.web.app/ (hosted by firebase hosting)\n```bash\n# deploy in 2 steps\nnpm run prod    # bundle and build production files with webpack\nfirebase deploy # deploys content of /dist folder to firebase\n\n# script (runs both steps)\nnpm run deploy\n```\n\n### Testing with AVA\n```\nnpm run test\n```\nto test the `ParseDateService` and `SearchResultService`. [AVA testing framework](https://github.com/avajs/ava) was used + the npm package `esm` to enable modern module imports in AVA (as described on [StackOverflow](https://stackoverflow.com/a/55803624/6272061)).\n\n\n# To Dos\n- [x] Support for date stringformat \"2012-W01\" to \"2012-W53\" (weeks)\n- [x] updating range in the rangepicker should update the selection in the timeline\n- [x] reset range button (in the datepicker)\n- [x] tooltip on hover\n- [x] tooltip during selection\n- [ ] move selection around by dragging\n- [ ] distinct behavior for both inputs\n- [x] custom validations for inputs\n- [x] custom views for all 6 scopes\n  - [x] decades(10Y)\n  - [x] decades(5Y)\n  - [x] years\n  - [x] months\n  - [x] weeks\n  - [x] day\n- [ ] cleanup code and repo\n- [ ] API documentation / storybook \n- [ ] publish on NPM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Ftimeline-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcts%2Ftimeline-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Ftimeline-component/lists"}