Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@debtcollective/dc-header-component
Advanced tools
This is a Web component built using Stencil to define the header for all debtcollective web apps.
Stencil is a compiler for building fast web apps using Web Components.
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
Stencil components are just Web Components, so they work in any major framework or with no framework at all.
yarn install
yarn start
In order to have a sense over the community session, you need to have the application running and make sure
community
prop variable match the application, likehttp://lvh.me:3000
. Ultimately, you will need to allow CORS on the community app in that sense: Admin > Settings > CORS > addhttp://lvh.me:3333
which suppose to be yourhost
prop
To build the component for production, run:
yarn build
To run the unit tests for the components, run:
yarn test
Need help? Check out our docs here.
Unlike Chrome, Firefox doesn't provide out of the box support to use lvh.me
to map localhost. Therefore, you need to make sure to fix your browser in order for this to work properly: check this and add lvh.me
as supported network.dns.localDomains
In order to being able to navigate using tabs throughtout the links there is also a known issue check out this
When creating new component tags, we recommend not using stencil
in the component name (ex: <stencil-datepicker>
). This is because the generated component has little to nothing to do with Stencil; it's just a web component!
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the Ionic generated web components use the prefix ion
.
<dc-header
id="dc-header"
homepage="http://lvh.me:3333"
union="/debt-union"
host="http://lvh.me:3333"
community="http://lvh.me:3000"
></dc-header>
NOTE: be aware of not adding the latest "/" on the url props such as host and community
<script type="module" src="https://unpkg.com/@debtcollective/dc-header-component@latest/dist/header/header.esm.js"></script>
in the head of your index.htmlnpm install @debtcollective/dc-header-component --save
<script src='node_modules/dc-header-component/dist/dropdown.js'></script>
in the head of your index.htmlnpm install @debtcollective/dc-header-component --save
import dc-header-component;
FAQs
Stencil header component for debtcollective web apps
The npm package @debtcollective/dc-header-component receives a total of 221 weekly downloads. As such, @debtcollective/dc-header-component popularity was classified as not popular.
We found that @debtcollective/dc-header-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.