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.
The fastest IIIF document viewer. Check out the demo.
To embed TIFY into your site:
dist/
directory to your server.tify.js
.The container element should have the following CSS applied:
position: relative
or position: absolute
height
and width
The required HTML code looks something like this:
<div id="tify"></div>
<script src="tify.js"></script>
The only required parameter manifestUrl
is a URL pointing to the manifest. It can be set either as a query parameter or with the tifyOptions
object, whereby the latter takes precedence.
container
(default: #tify
): The HTML element TIFY is loaded into.language
(default: en
): The interface language. Currently, only English and German (de
) are available.manifestUrl
: A URL pointing to the IIIF manifest. If this option is not set, the URL has to be provided via a query parameter of the same name.stylesheetUrl
: Provide your own stylesheet, replacing TIFY's default styles. Use null
to disable loading any styles, e.g. if your site's stylesheet already includes styles for TIFY.title
(default: TIFY
): By default, TIFY replaces the window title with the document title as defined by the manifest, appended by TIFY
. Set this to any string, or null
to disable title modification.Below an example with all available options set.
<div id="viewer"></div>
<script>
tifyOptions = {
container: '#viewer',
language: 'de',
manifestUrl: 'https://example.com/iiif/manifest.json',
stylesheetUrl: '../styles/my-very-own-tify-styles.css',
title: null,
}
</script>
<script src="tify.js"></script>
Install dependencies:
npm install
Run in development mode with hot reload on localhost:8080
:
npm run dev
In development mode, the manifest URL must be provided via query parameter, e.g. http://localhost:8080/?manifestUrl=http://gdzdev.sub.uni-goettingen.de/api/PPN616082037/manifest
.
npm run build
The production build will be stored in dist
, just copy the contents of this directory to your server.
Install AVA for unit tests and CodeceptJS for end-to-end tests:
npm install -g ava
npm install -g codeceptjs
Run tests:
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
FAQs
A slim and mobile-friendly IIIF document viewer
The npm package tify receives a total of 94 weekly downloads. As such, tify popularity was classified as not popular.
We found that tify demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.