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.
@coffeekraken/s-front
Advanced tools
Central package to handle frontend stuffs like theme, google, etc...
{% extends 'sugar/readme/layouts/main/main.twig' %} {% block body %}
This class allows you to access and manipulate all theme things like accessing configurations, override some, changing theme, etc...
Here's how to use our implementation:
import __STheme from '@coffeekraken/s-theme';
// Get the current theme
const theme = __STheme.getCurrentTheme();
// apply a theme variant
__STheme.setThemeVariant('dark'); // apply dark mode
// Override a color (DOM only)
__STheme.setColor('accent', '#ff0000');
// Access a color
const color = __STheme.getColor('complementary');
// Get the current theme hash
const hash = __STheme.hash();
// remapping a color to another and get back the css vars
const vars = __STheme.remapCssColor('accent', 'error');
// loop on all the theme colors
__STheme.loopOnColors((colorObj) => {
console.log(colorObj);
// {
// name: ...
// schema: ...
// value: {}
// }
});
// and more...
This package has two distinct API. One for the browser
platform, and the other for the node
one.
browser
integrationnode
integrationshared
integrationFor more information about the API of this class, please check our API documentation
{% endblock %}
FAQs
Central package to handle frontend stuffs like theme, google, etc...
We found that @coffeekraken/s-front demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.