VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

Add Javascript Code to add Handlebars helpers and Event handlers #134

Closed mikhail-vl closed 1 year ago

mikhail-vl commented 1 year ago
  1. Resolves #115.
  2. Resolves #128
<button onclick="myFunc()">{{test}}</button>
myFunc = () => {
  alert('Bonjour!');
};
github-actions[bot] commented 1 year ago

Levitate is-compatible report:

πŸ” Resolving @grafana/data@latest... πŸ” Resolving @grafana/ui@latest... πŸ” Resolving @grafana/runtime@latest... πŸ” Resolving @grafana/schema@latest... πŸ” Resolving @grafana/e2e-selectors@latest... πŸ” Resolving @grafana/experimental@latest...

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/data@9.3.2... βœ” Found @grafana/data version 9.3.1 locally

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/ui@9.3.2... βœ” Found @grafana/ui version 9.3.1 locally

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/runtime@9.3.2... βœ” Found @grafana/runtime version 9.3.1 locally

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/schema@9.3.2... Skipping package @grafana/schema because it is not used in the project or not installed locally. did you forget to run yarn install or npm install?

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/e2e-selectors@9.3.2... Skipping package @grafana/e2e-selectors because it is not used in the project or not installed locally. did you forget to run yarn install or npm install?

πŸ”¬ Checking compatibility between ./src/module.ts and @grafana/experimental@1.0.2... Skipping package @grafana/experimental because it is not used in the project or not installed locally. did you forget to run yarn install or npm install?

βœ”οΈ ./src/module.ts appears to be compatible with @grafana/data,@grafana/ui,@grafana/runtime,@grafana/schema,@grafana/e2e-selectors,@grafana/experimental

codecov[bot] commented 1 year ago

Codecov Report

Base: 70.46% // Head: 66.85% // Decreases project coverage by -3.61% :warning:

Coverage data is based on head (c91d5bd) compared to base (baa9583). Patch coverage: 53.12% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #134 +/- ## ========================================== - Coverage 70.46% 66.85% -3.62% ========================================== Files 18 20 +2 Lines 149 178 +29 Branches 16 21 +5 ========================================== + Hits 105 119 +14 - Misses 41 54 +13 - Partials 3 5 +2 ``` | [Impacted Files](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs) | Coverage Ξ” | | |---|---|---| | [src/components/Text/Text.tsx](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvVGV4dC9UZXh0LnRzeA==) | `90.00% <ΓΈ> (ΓΈ)` | | | [src/constants/default.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbnN0YW50cy9kZWZhdWx0LnRz) | `100.00% <ΓΈ> (ΓΈ)` | | | [src/helpers/html.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2hlbHBlcnMvaHRtbC50cw==) | `70.58% <25.00%> (-15.13%)` | :arrow_down: | | [src/components/HelpersEditor/HelpersEditor.tsx](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvSGVscGVyc0VkaXRvci9IZWxwZXJzRWRpdG9yLnRzeA==) | `42.85% <42.85%> (ΓΈ)` | | | [src/components/HelpersEditor/index.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvSGVscGVyc0VkaXRvci9pbmRleC50cw==) | `100.00% <100.00%> (ΓΈ)` | | | [src/components/index.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbXBvbmVudHMvaW5kZXgudHM=) | `100.00% <100.00%> (ΓΈ)` | | | [src/constants/editor.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL2NvbnN0YW50cy9lZGl0b3IudHM=) | `100.00% <100.00%> (ΓΈ)` | | | [src/module.ts](https://codecov.io/gh/VolkovLabs/volkovlabs-dynamictext-panel/pull/134?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs#diff-c3JjL21vZHVsZS50cw==) | `100.00% <100.00%> (ΓΈ)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=VolkovLabs)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.