Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@interactivethings/swiss-federal-ci
Advanced tools
A React library with common components that comply with Swiss federal CI guidelines.
This is a library that contains React components that adhere to the corporate identity guidelines of the Swiss Confederation.
To install and use in your project, run npm install @interactivethings/swiss-federal-ci
. The package uses ES modules, so it can be used both in the Node.js environment as well as directly in the browser with type="module"
.
import { CookieBanner } from "@interactivethings/swiss-federal-ci/dist/components";
return <CookieBanner />;
⚠️ The package requires that the app it's imported into contains the packages specified in
peerDependencies
. This means that it is compatible with Next.js apps that use Material UI.
The library supports both app and pages routers, which means that for some components that require router-specific logic you need to import the appropriate version depending on the router you use.
// App router
import { LocaleSwitcher } from "@interactivethings/swiss-federal-ci/dist/components/app-router";
const App = () => {
return <LocaleSwitcher locales={["de", "en", "fr", "it", "rm"]} />;
};
// Pages router
import { LocaleSwitcher } from "@interactivethings/swiss-federal-ci/dist/components/pages-router";
const App = () => {
return <LocaleSwitcher locales={["de", "en", "fr", "it", "rm"]} />;
};
For components that don't require router-specific logic, you can import them directly from the main package.
import { Footer } from "@interactivethings/swiss-federal-ci/dist/components";
return <Footer />;
Before contributing, please read the CONTRIBUTING.md file.
First, run the yarn install
command to install the dependencies.
In this project, Storybook is used both as a documentation site and as an environment to develop and test the components. Run the yarn storybook
command to start the Storybook server.
Automated screenshots are made from the storybook and uploaded to Argos for regression testing.
Publishing is done automatically through semantic-release
via a GitHub action job,
from the branch main. Commit prefixes will trigger different types of versions
and we use the default commit analyzer.
semantic-release
also automatically updates CHANGELOG.md
when a new version is published.
FAQs
A React library with common components that comply with Swiss federal CI guidelines.
The npm package @interactivethings/swiss-federal-ci receives a total of 82 weekly downloads. As such, @interactivethings/swiss-federal-ci popularity was classified as not popular.
We found that @interactivethings/swiss-federal-ci demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
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.