![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@momentum-design/widgets
Advanced tools
A pure ui library based on web components that is for building dashboards.
$ npm i @momentum-design/widgets
Import library and enable web component support in src/app/app.module.ts.
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
+import '@momentum-design/widgets';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent],
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule { }
Use the components in your HTML template.
<wc-hello-world [name]="who"></wc-hello-world>
Clone this repo.
Install all dependencies via run command npm install
.
Now, run npm start
to start your work.
The component code should be placed to src/components. The new component should be structured as below:
new-component
├─ index.ts // should export all public members
├─ new-component.ts // the component code
├─ new-component.spec.ts // unit tests
├─ new-component.types.ts // all types definitions
└─ new-component.plugins.ts // plugins of chart.js if need
The style file should be placed with component code and imported in src/styles/main.scss.
Also export the new component in src/components/index.ts file.
Commit your changes and push them to your forked repo, and submit a Pull Request to main branch.
I
as a prefix for interface names._
as a prefix for private properties.All commit message MUST follow Angular Commit Message Format.
Format as:
<type>(<scope>): <short summary>
│ │ │
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
│ │
│ └─⫸ Commit Scope: <component-name>
│
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test
The <type>
and <summary>
fields are mandatory, the (<scope>)
field is optional.
npm run data
will print the random data which is predefined in ./tools/data.ts and can be used to test your component. For example, npm run data -- --pie --default --5
FAQs
widgets based on Chart.js for building dashboards
The npm package @momentum-design/widgets receives a total of 3 weekly downloads. As such, @momentum-design/widgets popularity was classified as not popular.
We found that @momentum-design/widgets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.