GithubHelp home page GithubHelp logo

00mjk / yale-mirador Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yale-web-technologies/yale-mirador

0.0 0.0 0.0 8.31 MB

Yale extension to IIIF Mirador

HTML 0.09% JavaScript 65.04% CSS 34.80% Shell 0.07%

yale-mirador's Introduction

Build Status Dependency Status

Yale Mirador Extension

This projects embeds Mirador and also contains some modifications and extensions to it.

Definitions

Some clarification of the terms we will be using because it can get quite confusing:

  • IIIF Mirador: the original Mirador project and its code at https://github.com/IIIF/mirador
  • Yale Core: the Yale fork of Mirador with the same structure as "IIIF Mirador" but with the minimal code modifications we had to made to make it work with the embedding environment. (https://github.com/yale-web-technologies/mirador)
  • Yale Extension: this project. It has its own project structure and includes additional JavaScript and styles added on top of "Mirador Core".

Download and Initial Setup

git clone --recursive [email protected]:yale-web-technologies/yale-mirador.git
cd yale-mirador
npm install  # Install node modules for yale-mirador

Bulid

npm run build

It runs webpack for Yale Extension and creates output files in dist/. It also copies the Mirador-y distribution code from node_modules/ to dist/.

Running the Example

npm start

It will open a browser and run the instance there. You can also open http://localhost:3000 manually.

Test

Install karma-cli globally so the karma command becomes available.

npm install -g karma-cli

Run all tests

npm test

Run a single test file

npm test -- -f <test-file>
npm test -- -f test/state-store.test.js  # for example

Deploy

Dependency

See package.json for dependencies โ€“ note the version requirements. Notably you should include

The app also depends on jQuery but it is embedded in "IIIF Mirador", which may complicate the asset management.

JavaScript

"Golden Layout" should be included after "Yale Core" and before "Yale Extension" because it depends on jQuery, because "Yale Core" embeds jQuery in itself, and because "Yale Extension" depends on it.

Parameters

Cookies

  • loggedIn: 'true' or 'false'
  • isEditor: 'true' or 'false'

JavaScript

See index.html and config.js to see an example of initiating the app.

yale-mirador's People

Contributors

gigamorph avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.