
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
org.webjars.bowergithub.vaadin:vaadin-pdf-viewer
Advanced tools
WebJar for vaadin-pdf-viewer
<vaadin-pdf-viewer> is a Web Component providing <element-functionality>, part of the Vaadin components.
Live Demo ↗ | API documentation ↗
<vaadin-pdf-viewer>
...
</vaadin-pdf-viewer>
The Vaadin components are distributed as Bower and npm packages. Please note that the version range is the same, as the API has not changed. You should not mix Bower and npm versions in the same application, though.
Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components are only published on npm, not pushed to GitHub repositories.
Install vaadin-pdf-viewer
:
bower i vaadin/vaadin-pdf-viewer --save
Once installed, import it in your application:
<link rel="import" href="bower_components/vaadin-pdf-viewer/vaadin-pdf-viewer.html">
Install vaadin-pdf-viewer
:
npm i @vaadin/vaadin-pdf-viewer --save
Once installed, import it in your application:
import '@vaadin/vaadin-pdf-viewer/vaadin-pdf-viewer.js';
Vaadin components use the Lumo theme by default.
To use the Material theme, import the correspondent file from the theme/material
folder.
The component with the Lumo theme:
theme/lumo/vaadin-pdf-viewer.html
The component with the Material theme:
theme/material/vaadin-pdf-viewer.html
Alias for theme/lumo/vaadin-pdf-viewer.html
:
vaadin-pdf-viewer.html
Fork the vaadin-pdf-viewer
repository and clone it locally.
Make sure you have npm installed.
When in the vaadin-pdf-viewer
directory, run npm install
and then bower install
to install dependencies.
Make sure you have polymer-cli installed globally: npm i -g polymer-cli
.
Run npm start
, browser will automatically open the component API documentation.
You can also open demo or in-browser tests by adding demo or test to the URL, for example:
vaadin-pdf-viewer
directory, run polymer test
We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running gulp lint
, which will automatically lint all .js
files as well as JavaScript snippets inside .html
files.
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.
This component uses Mozilla's PDF.js.
To contribute to the component, please read the guideline first.
Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see LICENSE.
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
FAQs
WebJar for vaadin-pdf-viewer
We found that org.webjars.bowergithub.vaadin:vaadin-pdf-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.