🖼 Simple file viewer with slideshow for media
Перейти к файлу
John Molakvoæ (skjnldsv) 96757ad222
Detect and switch fullscreen
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-04-17 10:44:28 +02:00
.github Test actions 2019-04-17 10:34:07 +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
js Detect and switch fullscreen 2019-04-17 10:44:28 +02:00
l10n [tx-robot] updated from transifex 2019-04-11 00:41:30 +00:00
src Detect and switch fullscreen 2019-04-17 10:44:28 +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 Use FileInfo model to parse the propFind data 2019-03-02 19:47:29 +01: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 Viewer first commit 2019-02-21 21:45:35 +01: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 Detect and switch fullscreen 2019-04-17 10:44:28 +02:00
package.json Merge pull request #62 from nextcloud/dependabot/npm_and_yarn/@babel/core-7.4.3 2019-04-03 09:08:21 +02:00
webpack.common.js url-loader 2019-02-27 11:01:32 +01: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. 🙇‍♀️