Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@pushwoosh/web-push-subscribe-popup
Advanced tools
Readme
Subscription pop-up widget for Pushwoosh WebSDK. Отдельный пакет который отрисовывает попап подписки если он сконифгурирован через init параметры WebSDK.
Проект старый и часть локальной сборки теперь не актуальна, поэтому вот вам HOW TO:
const popup = new PWSubscribePopup(ev.detail.pw);
->
const popup = new (globalThis as any).PWSubscribePopup(ev.detail.pw) || new PWSubscribePopup(ev.detail.pw);
pushwoosh-service-worker.uncompress.js
pushwoosh-web-notifications.uncompress.js
Публичная документация по фиче: https://docs.pushwoosh.com/platform-docs/pushwoosh-sdk/web-push-notifications/custom-subscription-popup#implementation
Параметры попапа:
Pushwoosh.push('init', {
. . .,
subscribePopup: {
enable: true, // boolean флаг для активации попапа
text: 'Text on popup', // текст на попапе
askLaterButtonText: 'Not now', // текст на кнопке “Ask later”
confirmSubscriptionButtonText: 'Subscribe', // текст на кнопке “Subscribe”
delay: 60, // задержка между прогрузкой страницы и показом попапа в секундах
retryOffset: 604800, // через какое время (в секундах) ещё раз показать пользователю попап после прошлого отказа
overlay: false, // boolean флаг, включающий overlay на странице при показе попапа
position: 'top', // позиция попапа 'top' | 'center' | 'bottom'
mobileViewMargin: '0', // отступ снизу для мобильной версии, для тех кто использует App-like меню (sport1)
bgColor: '#fff', // цвет фона попапа
borderColor: 'transparent', // цвет бордера попапа
boxShadow: '0 3px 6px rgba(0,0,0,0.16)', // тень попапа
textColor: '#000', // цвет текста на попапе
textSize: 'inherit', // размер текста на попапе
textWeight: 'normal', // толщина основного текста
fontFamily: 'inherit', // шрифт на попапе
subscribeBtnBgColor: '#4285f4', // цвет кнопки “Subscribe”
subscribeBtnTextColor: '#fff', // цвет текста на кнопке “Subscribe”
subscribeBtnTextWeight: 'normal', // толщина текста кнопки “Subscribe”
subscribeBtnBorderColor: 'transparent', // цвет рамки “Subscribe”
subscribeBtnBorderRadius: '2px', // радиус скругления кнопки “Subscribe”
askLaterBtnBgColor: 'transparent', // цвет кнопки “Ask later”
askLaterBtnTextColor: '#000', // цвет текста на кнопке “Ask later”
askLaterBtnTextWeight: 'normal', // толщина текста кнопки “Ask later”
askLaterBtnBorderColor: '#fff', // цвет рамки “Ask later”
askLaterBtnBorderRadius: '8px', // радиус скругления кнопки “Ask later”
theme: 'material' | 'topbar' // тема попапа
}
});
FAQs
Pushwoosh web notifications subscribtion popup
The npm package @pushwoosh/web-push-subscribe-popup receives a total of 529 weekly downloads. As such, @pushwoosh/web-push-subscribe-popup popularity was classified as not popular.
We found that @pushwoosh/web-push-subscribe-popup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.