
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@ewc-lib/ewc-dialog-feedback
Advanced tools
Note: This component comes with predefined title, text and labels
The API of ewc-dialog applies to this component as well, because it derives from ewc-dialog.
However because this is a single purpose specialisation of ewc-dialog, there should be no need to specialise it any further.
That's why some setters of ewc-dialog are disabled.
Note: The dialog shows itself 2 seconds after page load, there is no way to show it manually.
Additionally, there are the following attributes:
Notes:
Properties:
Please see the usage-example/ directory, which contains working examples.
{
"cookieName": "eurostat-dashboards-survey",
"cookiePath": "/eurostat/cache",
"participationUrl": "https://ec.europa.eu/eusurvey/runner/dashboards_feedback",
"activationPeriods": [
{
"activeFrom": "2024-10-18 10:00",
"activeUntil": "2024-10-24 14:00",
"cookieExpiryDate": "2024-10-25"
},
{
"activeFrom": "2024-11-20 10:00",
"activeUntil": "2024-11-26 14:00",
"cookieExpiryDate": "2024-11-27"
},
{
"activeFrom": "2024-12-18 10:00",
"activeUntil": "2024-12-24 14:00",
"cookieExpiryDate": "2024-12-25"
}
]
}
Note: the user has to make sure the cookie expiry date of one period lies before the start of the next period
The following object is defined internally to specify the default texts.
{
title: "Your feedback wanted",
messageHTML: `<p>Have you looked at any of our dashboards?
We'd like to hear from you and get your feedback about them.</p>
<p>Please fill out our short, anonymous survey and participate.</p>`,
checkboxLabel: "Don't show this message again",
noLabel: "No thanks",
yesLabel: "Go to survey"
}
The texts can be changed by supplying an object w/ the properties shown above to the messages setter.
Note that it is not mandatory to set all properties in the given object - supplying an object w/ only some of the properties results in setting only the given texts.
The examples in the usage-example/ directory also contain this use case.
FAQs

We found that @ewc-lib/ewc-dialog-feedback demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.