
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.
@menucloudapp/mc-menu-widget
Advanced tools
This is the recommended way. To install, just do this:
npm i --save @menucloud/mc-menu-widget
Just add the dependency here and usage here:
<script src="node_modules/@menucloud/mc-menu-widget/dist/mc-menu-widget.js"></script>
<mc-menu-widget
secret="secret-key"
key="api-key"></mc-menu-widget>
The parameters:
Todo: Because this is a test, It needs to define more parameters (like booking-type or menu-id).
- demo - for manual testing and demo purposes
- index.html - a demo on how to use the file
- published.json - created using the command `npm run create-simulation`. This simulates the JSON response of the menucloud API
- dist - distribution purposes when installed on npm
- vendor - this is for demo purposes only, polyfills folder to make it work on IE11, Safari 9, and 10, Edge and Firefox
- mc-menu-widget.html - when you want to use `<link rel="import">`
- mc-menu-widget.js - the bundled version
- simulation - folder that houses the necessary templates and styles to be transformed into the published.json.
- components - houses all component templates that can be modified
- data - houses the data component of the simulated json
- menu.json - mimics a collection of menus to be loaded to the menu widget
- style - houses all styles in (currently) scss format
- components - all component styles that can be modifed
- menu.scss - example definition the global default style of all menus
- child-theme.scss - example definition of a child theme
- theme.json - links menu.scss and child-theme.scss to the global theme and a specifc menu theme respectively.
- index.js - simulation compiler. Run when `npm run create-simulation` is called
- src - contains all code for the widget to work
- components - all component logic
- mixins - contains reusable methods as extensions for the components
- mc-menu - contains the methods for getting and updating the mc-menu-widget state
- styles - contains the default style of the mc-menu-widget
- utils - extra libraries the needed by the widget
- mc-menu-widget.js - main source file
- webpack.config.js - bundler
Install dependencies...
npm i
Once the dependencies have be installed, You need to run 3 terminals (for now) to bundle/watch, serve it on localhost, and update the published.json.
1st terminal would bundle/watch the project
npm run watch
2nd terminal would run the http-server
on root project
http-server .
And then you can go to localhost:8080/demo
to see a working widget
If you made changes inside the simulation folder, you need to run
npm run create-simulation
FAQs
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.