projectmirador / mirador-desktop Goto Github PK
View Code? Open in Web Editor NEWA desktop wrapper for Mirador and its environment, allowing use of local images.
A desktop wrapper for Mirador and its environment, allowing use of local images.
npm run build is failing
I'm getting the following error:
app $ npm run build
> [email protected] build /Users/jcwitt/Projects/sandbox/mirador-desktop/app
> npm run lint && npm run mirador:build && ./node_modules/.bin/electron-rebuild
> [email protected] lint /Users/jcwitt/Projects/sandbox/mirador-desktop/app
> eslint app/
> [email protected] mirador:build /Users/jcwitt/Projects/sandbox/mirador-desktop/app
> rm -rf assets/mirador && cd ../mirador && git pull && npm install && ./node_modules/.bin/grunt build && cp -r build/mirador ../app/assets/mirador; cd -
sh: line 0: cd: ../mirador: No such file or directory
sh: line 0: cd: OLDPWD not set
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/jcwitt/.nvm/versions/node/v7.7.4/bin/node" "/Users/jcwitt/.nvm/versions/node/v7.7.4/bin/npm" "run" "mirador:build"
npm ERR! node v7.7.4
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] mirador:build: `rm -rf assets/mirador && cd ../mirador && git pull && npm install && ./node_modules/.bin/grunt build && cp -r build/mirador ../app/assets/mirador; cd -`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] mirador:build script 'rm -rf assets/mirador && cd ../mirador && git pull && npm install && ./node_modules/.bin/grunt build && cp -r build/mirador ../app/assets/mirador; cd -'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mirador-desktop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rm -rf assets/mirador && cd ../mirador && git pull && npm install && ./node_modules/.bin/grunt build && cp -r build/mirador ../app/assets/mirador; cd -
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mirador-desktop
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mirador-desktop
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jcwitt/Projects/sandbox/mirador-desktop/app/npm-debug.log
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/jcwitt/.nvm/versions/node/v7.7.4/bin/node" "/Users/jcwitt/.nvm/versions/node/v7.7.4/bin/npm" "run" "build"
npm ERR! node v7.7.4
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `npm run lint && npm run mirador:build && ./node_modules/.bin/electron-rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run lint && npm run mirador:build && ./node_modules/.bin/electron-rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mirador-desktop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run lint && npm run mirador:build && ./node_modules/.bin/electron-rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mirador-desktop
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mirador-desktop
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jcwitt/Projects/sandbox/mirador-desktop/app/npm-debug.log
It would be amazing to have the Mirador desktop packed and published as a Chrome OS application.
https://chrome.google.com/webstore/category/apps
Everybody having Chromebook can then work with the local images as well as with remote images - it means a practical use in all classrooms.
Chromebook apps have access to authentication (they know who is logged in) so the app can be directly authenticated against a remote storage where the image data can be published too.
It would be great to be able to offer people a chance to publish the image directly into IIIFHosting.com.
We have a free plan with 5 images / 100 MBytes and commercial plans with higher storage.
Are you going to implement POST like at http://iiif.io/api/annex/rest/#post?
People would need to provide login/password - email / secure (copy and paste from https://admin.iiifhosting.com/api/) for doing that - so they would need an interface for providing these credentials (probably together with a link to create an account at IIIF Hosting).
How can we assist with making this happen?
Using the mac binary download from Box, I did not have the problem that Jeff encountered in #4
But when I load a local tiff file, it is added to the list but the thumbnail is broken and the image will not load in the viewer.
Is that deliberate or a mistake?
No blocking issues since the "Publish" feature is not yet developed and Mirador does not complain about what follows... but for the sake of validation:
Per IIIF/api#1147, thumbnail
should be either a URL string or an object with an @id but in the latter case it should also have a @type (manifest.tpl#L26)
The @type of the image resource should be dctypes:Image
(rather than dcterms:Image
) (see Presentation API) (manifest.tpl#L38)
After manually installing the mirador build from the mirador master branch, I got the app working.
I successfully loaded local files.
Clicking on the local file takes me to the gallery view, but then nothing seems to happen when I click on a thumbnail in the gallery view.
I can't seem to view the local image in image view.
I don't have this problem with non-local images.
Using the win32-x64 binary on Windows 10, I get an error when I try to open local images:
Uncaught SyntaxError: Unexpected token U in JSON at position 87
at JSON.parse (<anonymous>)
at Object.parseRecursion [as parse] (C:\Users\me\Downloads\Mirador Desktop-win32-x64\resources\app.asar\…:182)
at EventEmitter.ipc.on (index.js:144)
at emitMany (events.js:127)
at EventEmitter.emit (events.js:201)
This links to VM260:3 in the debugger, which shows a problem with this line in the generated manifest:
"@id": "file:///C:\Users\me\Downloads\Mirador Desktop-win32-x64\Mirador Desktop-win32-x64\resources\app.asar/986c437c-8b67-4a6b-baa0-50ae71d30b30/manifest.json",
...which leads me to think it's because the app is concatenating forward slashes on top of Windows backslashes in the json filepath, which seems to be set at
Line 60 in 59d6c1d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.