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.
@azerion/add-to-homescreen
Advanced tools
This tool wil display a popup on the second day a use visits your site, it will suggest the user that he can add it to his homescreen note: this is a mobile feature.
Lets start by installing the package, like most of the other package we will make use of NPM
npm install @orange-games/add-to-homescreen --save-dev
Now lets call get the tool in our project.
import Homescreen from '@orange-games/add-to-homescreen';
At last let's call the feature!
new Homescreen('popup', {
storage_name: "homescreen",
title: "title",
stepChrome: "step 1 chrome",
stepSafari: "step 1 safari",
step2: "step 2"
});
note: all those parameters are REQUIRED
And done, it's that simple!
The styles are not included in this tool. Here are the style elements used. (SASS format)
popup {
/* Basic styling of the popup */
.title-container,
.text-container {
/* The container elements (basic styling like padding etc.) */
p {
/* This is for the icons of the respective browser */
&.chrome {
&:after {
/* Chrome icon */
}
}
&.safari {
&:after {
/* Safari icon*/
}
}
}
}
.title-container {
/* The title style (Things like background-color, font color etc.) */
/* It is recommended to use display: flex; for this */
h3 {
/* The actual text */
}
button {
/* This is the little close button. */
&:before {
/* Close icon */
}
}
}
.text-container {
/* Style for the steps (Things like background color etc.) */
p {
/* Style for the text + icon */
}
}
}
FAQs
Add to homescreen popup feature
The npm package @azerion/add-to-homescreen receives a total of 1 weekly downloads. As such, @azerion/add-to-homescreen popularity was classified as not popular.
We found that @azerion/add-to-homescreen demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.