{"id":26058058,"url":"https://github.com/gapitio/htmlgraphics-react-bundler-template","last_synced_at":"2026-04-09T20:05:07.872Z","repository":{"id":49929287,"uuid":"333749412","full_name":"gapitio/htmlgraphics-react-bundler-template","owner":"gapitio","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-27T12:50:14.000Z","size":538,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-03T23:10:50.930Z","etag":null,"topics":["eslint","grafana","htmlgraphics-bundler","prettier","react","rollup","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/gapitio.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":"2021-01-28T12:17:01.000Z","updated_at":"2022-07-08T13:06:53.000Z","dependencies_parsed_at":"2022-09-15T18:50:52.403Z","dependency_job_id":null,"html_url":"https://github.com/gapitio/htmlgraphics-react-bundler-template","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gapitio%2Fhtmlgraphics-react-bundler-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gapitio%2Fhtmlgraphics-react-bundler-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gapitio%2Fhtmlgraphics-react-bundler-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gapitio%2Fhtmlgraphics-react-bundler-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gapitio","download_url":"https://codeload.github.com/gapitio/htmlgraphics-react-bundler-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242546035,"owners_count":20147096,"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":["eslint","grafana","htmlgraphics-bundler","prettier","react","rollup","typescript"],"created_at":"2025-03-08T12:00:02.955Z","updated_at":"2026-04-09T20:05:07.820Z","avatar_url":"https://github.com/gapitio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bundler\n\nBundler to make developing code easier and scalable.\n\n## Contains\n\n- [React](https://reactjs.org/)\n- [rollup.js](https://rollupjs.org/)\n- [Prettier](https://prettier.io/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [ESLint](https://eslint.org/)\n- Local development server to run the code live in the browser.\n\n## Usage\n\nFirst you have to install the required dependencies\n\n```bash\nnpm install\n```\n\nThen you start the development script\n\n```bash\nnpm run dev\n```\n\nGo to \u003chttp://localhost:5173\u003e. Change some code in `./src/onInit.ts`, `./src/onRender.ts`, or `./src/design/html.html`, and the website will update.\n\nWhen the code is ready to be uploaded to Grafana, start the build script\n\n```bash\nnpm run build\n```\n\nThen go to `/dist` and copy the content of `panel-options.json` to the panels `Import/export` option.\n\n## Dev site\n\n`src/devSite` is a folder where most of the configuration for the dev website is.\n\nTo add custom series go to `src/devSite/data.ts` and add createSeries() in series.\n\nWindow has been used to get global variables like data, customProperties, ETC.\n\n## Eslint\n\nIt's recommended to use the current eslint config, but as it's strongly opinionated it might be _easier_ to use a less opinionated config.\n\nReplace the current .eslint.cjs with the below code.\n\n```ts\nmodule.exports = {\n  env: {\n    node: true,\n    browser: true,\n  },\n  extends: [\n    \"eslint:recommended\",\n    \"plugin:@typescript-eslint/recommended\",\n    \"prettier\",\n  ],\n  parser: \"@typescript-eslint/parser\",\n  plugins: [\"@typescript-eslint\"],\n  root: true,\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgapitio%2Fhtmlgraphics-react-bundler-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgapitio%2Fhtmlgraphics-react-bundler-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgapitio%2Fhtmlgraphics-react-bundler-template/lists"}