🖼 Simple file viewer with slideshow for media
Перейти к файлу
John Molakvoæ 67dbf458ac
Bump stylelint-scss from 3.6.0 to 3.6.1 (#91)
Bump stylelint-scss from 3.6.0 to 3.6.1
2019-05-05 16:35:57 +02:00
.tx Add transifex config 2019-03-06 23:58:22 +01:00
appinfo Update version on master 2019-04-11 14:32:06 +02:00
img Viewer first commit 2019-02-21 21:45:35 +01:00
l10n [tx-robot] updated from transifex 2019-05-02 00:40:40 +00:00
src Expose npm version 2019-05-03 11:57:26 +02:00
.babelrc.js Viewer first commit 2019-02-21 21:45:35 +01:00
.drone.yml Fix drone 2019-04-12 15:19:53 +02:00
.editorconfig Viewer first commit 2019-02-21 21:45:35 +01:00
.eslintrc.js Expose npm version 2019-05-03 11:57:26 +02:00
.gitignore Commit assets 2019-03-18 12:26:35 +01:00
.l10nignore Add .l10nignore 2019-03-07 00:02:31 +01:00
.npmignore Viewer first commit 2019-02-21 21:45:35 +01:00
.stylelintrc.js Viewer first commit 2019-02-21 21:45:35 +01:00
.travis.yml Travis fix (#81) 2019-04-26 09:39:40 +02:00
COPYING Viewer first commit 2019-02-21 21:45:35 +01:00
Makefile Bump nextcloud-vue to 0.9.3 2019-03-20 12:24:28 +01:00
README.md Updated emojis 2019-02-24 21:27:11 +01:00
package-lock.json Bump stylelint-scss from 3.6.0 to 3.6.1 2019-05-05 01:13:39 +00:00
package.json Bump stylelint-scss from 3.6.0 to 3.6.1 2019-05-05 01:13:39 +00:00
webpack.common.js Expose npm version 2019-05-03 11:57:26 +02:00
webpack.dev.js Add drone webpack build check 2019-03-29 22:51:22 +01:00
webpack.prod.js Viewer first commit 2019-02-21 21:45:35 +01:00

README.md

Files viewer for nextcloud

Show your latest holiday photos and videos like in the movies. Show a glimpse of your latest novel directly from your nextcloud. Choose the best GIF of your collection thanks to the direct view of your favorites files!

viewer

📋 Current support

  • Images
  • Videos

🎛 How to setup the development app

  1. ☁ Clone this into your apps folder of your Nextcloud
  2. 👩‍💻 In a terminal, run the command make dev-setup to install the dependencies
  3. 🏗 Then to build the Javascript whenever you make changes, run make build-js
  4. Enable the app through the app management of your Nextcloud
  5. 🎉 Partytime!

🔍 Add you own file view

If you want to make your app compatible with this app, you can use the OCA.Viewer methods

  1. Create a vue component which use the path and mime props (they will be automatically passed by the viewer)
  2. Register your mime viewer with the following:
     import VideoView from 'VideoView.vue'
    
     OCA.Viewer.registerHandler({
         // unique id
         id: 'video',
    
        // optional, it will group every view of this group and
        // use the proper view when building the file list
        // of the slideshow.
        // e.g. you open an image/jpeg that have the `media` group
        // you will be able to see the video/mpeg from the `video` handler
        // files that also have the `media` group set.
        group: 'media',
    
        // the list of mimes your component is able to display
        mimes: [
             'video/mpeg',
             'video/ogg',
             'video/webm',
             'video/mp4'
         ],
    
         // your vue component view
         component: VideoView
     })
    
  3. if you feel like your mime should be integrated on this repo, you can also create a pull request with your object on the models directory and the view on the components directory. Please have a look at what's already here and take example of it. 🙇‍♀️