Skip to content
/ adno Public
forked from adnodev/adno

adno.app. The ADNO source code. adno.app. Adno is a web application for viewing, editing and sharing narratives and pathways on static images and IIIF images.

License

Notifications You must be signed in to change notification settings

DHBern/adno

 
 

Repository files navigation

ADNO

Adno is a web application for viewing, editing and sharing narratives and pathways on static images and IIIF images.

ADNO has 2 available versions : a Full version including the Editor and Viewer and the Light one including only the Viewer.

Table of Contents

  1. How to start
  2. Host ADNO
  3. IIIF EXAMPLES
  4. QUICKSTART
  5. Developpers section
  6. Keyboard shortcuts
  7. IPFS support

How to start with ADNO ?

First, go to ADNO's repository and download the version you would like to use (FULL or LIGHT) Then, if you want to use it locally you have to use a web server. You can create a light web server using python -m http.server 8080 command to run a web server on the port 8080. Unzip the ADNO package to your web server and start it.

Host ADNO with Github Pages

Download the latest release of Adno with the version of your choice (full-version or light-version) from (https://github.com/adnodev/adno/releases)

Unzip the archive to your folder and push it to your Github repository.

Once you’ve pushed to Github you need to go to Github’s website, select your repository and click on the “settings” tab.

Then, select the tab “Pages” on the left panel.

You’ll have to select the branch you want to deploy the website from and save your choice.

Enjoy using Adno !

IIIF pictures examples

Quickstart with IIIF pictures examples

Licence

LICENCE

For developpers

If you want to contribute to ADNO here are few steps to start

  • clone the project from github (https://github.com/adnodev/adno.git)
  • Start the project with the following command : yarn start
    • Create a .env file and put the version you would like (examples below)
    • run yarn build-full to build full-version and yarn build-light to build the light version.
  • In case of errors try to remove node_modules folder, .parcel-cache and yarn.lock file and reinstall module with yarn install command.

Customize your own ADNO

Create a .env file and insert the following properties as you wish :

# MODE 
ADNO_MODE=FULL

# MATOMO
MATOMO_SITE_ID=YOUR SITE ID HERE
MATOMO_URL=YOUR OWN MATOMO URL

# WEBSITE PROPERTIES
ADNO_TITLE=YOUR OWN TITLE

# FOOTER
ADNO_FOOTER=TRUE
ADNO_FOOTER_TEXT=YOUR FOOTER TEXT HERE

# GRANTED IMAGES EXTENSIONS
GRANTED_IMG_EXTENSIONS=jpg,png,JPG,PNG

Build ADNO

.env.ADNOFULL example :

# MODE 
ADNO_MODE=FULL

# FOOTER
ADNO_FOOTER=TRUE

# GRANTED IMAGES EXTENSIONS
GRANTED_IMG_EXTENSIONS=jpg,png,JPG,PNG

.env.ADNOLIGHT example :

# MODE 
ADNO_MODE=LIGHT

# FOOTER
ADNO_FOOTER=TRUE

# GRANTED IMAGES EXTENSIONS
GRANTED_IMG_EXTENSIONS=jpg,png,JPG,PNG

Build both versions :

Warning : this action requires .env.ADNOFULL and .env.ADNOLIGHT files ! Run yarn build in your terminal, it will run both commands build-full and build-light

ADNO embedded in your website

Available settings for the embed :

  • delay with min = 1 and max = 20 (seconds)
  • navigator value = true or false
  • toolbarsfs value = true or false
  • startfirst value = true or false
  • rotation value = true or false
  • toolbar value = true or false
  • anno_bounds value = true or false

Example : https://w.adno.app/#/embed?url=https://static.emf.fr/adno/annotations.json&delay=1&rotation=false&anno_bounds=true

A little example with an iframe that you can insert in your own projects :

    <iframe src="https://w.adno.app/#/embed?url=https://static.emf.fr/adno/annotations.json&delay=1&rotation=false&anno_bounds=true" height="500" width="1200" allowfullscreen="true"></iframe>

SHORTCUTS FOR THE VIEWER

  • Key 'P' to start the autoplay
  • Key 'E' to toggle FullScreen
  • Key 'S' to toggle annotation bounds
  • Key 'T' to toggle the toolsbar
  • Arrows (left and right) to change the current selected annotation

IPFS SUPPORT

Add the following environment variable to use an IPFS gateway

# IPFS SUPPORT
IPFS_GATEWAY=https://ipfs.io/ipfs/

About

adno.app. The ADNO source code. adno.app. Adno is a web application for viewing, editing and sharing narratives and pathways on static images and IIIF images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.2%
  • CSS 3.7%
  • HTML 0.1%