https://github.com/av/sample-widget-bundle

This repo holds a sample widget bundle

https://github.com/av/sample-widget-bundle

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (2.1%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

This repo holds a sample widget bundle

Basic Info
  • Host: GitHub
  • Owner: av
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Size: 87.9 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 5 years ago · Last pushed almost 5 years ago
Metadata Files
Readme License

README.md

sample-widget-bundle

This repo holds a sample widget bundle. It's implemented with Parcel (v1).

Widget Registration

Bundle root imports a CustomWidget.js component, which uses host application Browser API to register the widget instance:

javascript PremiumPortal.Dashboard.registerWidget(CustomWidget, { ... });

Dependency Sharing

Custom Widgets have to use the same exact React/ReactDOM version as the host application. This is achieved by using parcel-plugin-externals: javascript // package.json { // ... "externals": { "react": "window.PremiumPortal.React", "react-dom": "window.PremiumPortal.ReactDOM" } // ... }

Owner

  • Name: Ivan Charapanau
  • Login: av
  • Kind: user
  • Location: Warszawa

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package.json npm
  • parcel-bundler ^1.12.5 development
  • parcel-plugin-externals ^0.5.2 development
  • react ^17.0.2
yarn.lock npm
  • 718 dependencies