Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@oerlikon/routing
Advanced tools
Provides simple react components for menu frame -> main frame routing inside your oerlikon app.
Provides simple react components for menu frame -> main frame routing inside your oerlikon app.
Disclaimer: This module depends on react-router-dom. If you indent to use a different routing system in your app, this module is not for you.
main frame: the main part of your app that is always visible to the user
menu frame: the sidebar menu that can be openend and cloapsed.
Ensure the <Router>
is placed high in your main frame rendering tree.
import { Router } from '@oerlikon/routing';
import { render } from 'react-dom';
import App from './App';
render(
<Router>
<App />
</Router>,
document.getElementById('root')
);
There are two methods to use this module in your menu frame components:
Use the <Link>
component inside your menu by providing to
as prop and a label as children
.
import React from 'react';
import { Link } from '@oerlikon/routing';
export const MyMenu = () => {
return (
<>
<h1>This is my menu</h1>
<Link to="/overview">Go to overview inside the main frame!</link>
</>
);
};
use the useRouting
hook to programatically change the route.
import React from 'react';
import { useRouting } from '@oerlikon/routing';
export const MyMenu = () => {
const { pushPath } = useRouting();
const handleButtonClick = () => {
pushPath('/overview');
};
return (
<>
<h1>This is my menu</h1>
<button type="button" onClick={handleButtonClick}>
Go to overview inside the main frame!
</button>
</>
);
};
FAQs
Provides simple react components for menu frame -> main frame routing inside your oerlikon app.
We found that @oerlikon/routing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.