{"id":18720045,"url":"https://github.com/geops/trafimage-maps","last_synced_at":"2025-04-12T14:11:23.531Z","repository":{"id":38804365,"uuid":"195830356","full_name":"geops/trafimage-maps","owner":"geops","description":"Code of the Trafimage web map portal and other applications built on it.","archived":false,"fork":false,"pushed_at":"2024-04-11T15:05:40.000Z","size":32680,"stargazers_count":14,"open_issues_count":5,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-12T16:53:45.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"trafimage-maps.vercel.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/geops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-07-08T14:35:02.000Z","updated_at":"2024-04-15T09:37:10.423Z","dependencies_parsed_at":"2023-12-20T12:25:40.174Z","dependency_job_id":"d473824b-ac08-461a-b176-cda317c76540","html_url":"https://github.com/geops/trafimage-maps","commit_stats":null,"previous_names":[],"tags_count":629,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Ftrafimage-maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Ftrafimage-maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Ftrafimage-maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geops%2Ftrafimage-maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geops","download_url":"https://codeload.github.com/geops/trafimage-maps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578877,"owners_count":21127713,"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-07T13:29:14.362Z","updated_at":"2025-04-12T14:11:23.430Z","avatar_url":"https://github.com/geops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trafimage-maps\n\n[![npm](https://img.shields.io/npm/v/trafimage-maps.svg)](https://www.npmjs.com/package/trafimage-maps)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n![unit tests](https://github.com/geops/trafimage-maps/actions/workflows/test.yml/badge.svg)\n![e2e chrome](https://github.com/geops/trafimage-maps/actions/workflows/cypress-chrome.yml/badge.svg)\n![e2e firefox](https://github.com/geops/trafimage-maps/actions/workflows/cypress-firefox.yml/badge.svg)\n![e2e edge](https://github.com/geops/trafimage-maps/actions/workflows/cypress-edge.yml/badge.svg)\n\n## About\n\nThis repo contains the web component used by the Trafimage Map Portal by Swiss Federal Railways SBB and other applications build on it.\n\n## Documentation\n\nSee [demo](https://apidoc.trafimage.ch/).\n\n## Technologies\n\n- web-component\n- react\n- redux\n- enzyme\n- jest\n- cypress\n- react-spatial\n- mobility-toolbox-js\n- eslint with airbnb\n- prettier\n- sass\n\n## Getting Started\n\nInstall:\n\n```bash\nyarn install\n```\n\nStart:\n\n```bash\nyarn start\n```\n\n## Publish as NPM package\n\nMake sure you're on the good branch.\n\nUsually, public version are only published from master, beta version can be published from every branches.\n\nUsing the following commands, the release version number is automatically updated depending on commit messages (tanks conventionnal commit!)\n\n- Always test the changelog content before publishing:\n\n```bash\nyarn publish:public:dryrun\n```\n\n- Publish a public version:\n\n```bash\nyarn login # only if it's not already done.\nyarn publish:public\n```\n\n- Publish a beta version:\n\n```bash\nyarn login # only if it's not already done.\nyarn publish:beta\n```\n\n## Udpate dependencies problems\n\nreact-styleguidist@11.0.8: We can't update after `11.0.8`. `11.0.9` and `11.0.10` have the `CopyWebpackPlugin` bug. `11.0.11` have fixed it but another errors occurs when we run `yarn doc`. It seems jsx code is not well parsed anymore.\n\nreact@16.14.0: React 17 is not well supported by `material-ui`. In the tarifverbundkarte topic, the select box used to update the import format crashes the app when we click on it. The search component also have troubles when dev tools are open and try to navigate in the results with the keyboard.\n\nfixpack@3.0.6: Fixpack `4.0.0` returns an exit code of 1 everytime, so it breaks the lint-staged hook. See [bug](https://github.com/HenrikJoreteg/fixpack/issues/50).\n\nol@6.6.1: The version `6.7.0` has some dependencies for the module `geotiff` like `txml` that the compiler can't find.\n\nbabel-preset-react-app@9: The version `10.0.0` doesn't compile the same way the files in the `build/es` folder, it removed the option `modules: false` for the preset-env. That double the size of the code when we compile in a parent project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeops%2Ftrafimage-maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeops%2Ftrafimage-maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeops%2Ftrafimage-maps/lists"}