-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John Molakvoæ <[email protected]>
- Loading branch information
Showing
25 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author Daniel Kesselberg <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
@@ -49,7 +49,7 @@ | |
import Vue from 'vue' | ||
import VuePlyr from '@skjnldsv/vue-plyr' | ||
import '@skjnldsv/vue-plyr/dist/vue-plyr.css' | ||
import logger from '../services/logger' | ||
import logger from '../services/logger.js' | ||
|
||
Vue.use(VuePlyr) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author John Molakvoæ <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author John Molakvoæ <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author John Molakvoæ <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
@@ -55,7 +55,7 @@ | |
import Vue from 'vue' | ||
import VuePlyr from '@skjnldsv/vue-plyr' | ||
import '@skjnldsv/vue-plyr/dist/vue-plyr.css' | ||
import logger from '../services/logger' | ||
import logger from '../services/logger.js' | ||
|
||
const liveExt = ['jpg', 'jpeg', 'png'] | ||
const liveExtRegex = new RegExp(`\\.(${liveExt.join('|')})$`, 'i') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,8 +20,8 @@ | |
* | ||
*/ | ||
import Vue from 'vue' | ||
import ViewerComponent from './views/Viewer' | ||
import ViewerService from './services/Viewer' | ||
import ViewerComponent from './views/Viewer.vue' | ||
import ViewerService from './services/Viewer.js' | ||
import { translate as t } from '@nextcloud/l10n' | ||
|
||
import { generateFilePath } from '@nextcloud/router' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,7 +20,7 @@ | |
* | ||
*/ | ||
import debounce from 'debounce' | ||
import PreviewUrl from '../mixins/PreviewUrl' | ||
import PreviewUrl from '../mixins/PreviewUrl.js' | ||
import parsePath from 'path-parse' | ||
|
||
export default { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -21,8 +21,8 @@ | |
* | ||
*/ | ||
import { generateUrl } from '@nextcloud/router' | ||
import { getToken, isPublic } from '../utils/davUtils' | ||
import { encodeFilePath, getDavPath } from '../utils/fileUtils' | ||
import { getToken, isPublic } from '../utils/davUtils.js' | ||
import { encodeFilePath, getDavPath } from '../utils/fileUtils.js' | ||
|
||
export default { | ||
computed: { | ||
|
@@ -62,7 +62,7 @@ export default { | |
* @param {string} data.fileid the file id | ||
* @param {boolean} data.hasPreview have the file an existing preview ? | ||
* @param {string} data.davPath the absolute dav path | ||
* @param data.filename | ||
* @param {string} data.filename the file name | ||
* @return {string} the absolute url | ||
*/ | ||
getPreviewIfAny({ fileid, filename, hasPreview, davPath }) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author Daniel Kesselberg <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,7 +20,7 @@ | |
* | ||
*/ | ||
|
||
import Audios from '../components/Audios' | ||
import Audios from '../components/Audios.vue' | ||
|
||
export default { | ||
id: 'audios', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -19,12 +19,12 @@ | |
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
import { getDavPath } from '../utils/fileUtils' | ||
import { getDavPath } from '../utils/fileUtils.js' | ||
|
||
/** | ||
* @param fileInfo | ||
* @param mime | ||
* @param component | ||
* @param {object} fileInfo a FileInfo object | ||
* @param {string} mime the file mime type | ||
* @param {object} component the component to render | ||
*/ | ||
export default function(fileInfo, mime, component) { | ||
const data = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -21,8 +21,8 @@ | |
*/ | ||
|
||
import { loadState } from '@nextcloud/initial-state' | ||
import logger from '../services/logger' | ||
import Images from '../components/Images' | ||
import logger from '../services/logger.js' | ||
import Images from '../components/Images.vue' | ||
|
||
const enabledPreviewProviders = loadState(appName, 'enabled_preview_providers', []) | ||
|
||
|
@@ -62,7 +62,7 @@ export default { | |
// Gif and svg images does not rely on previews | ||
'image/gif', | ||
'image/svg+xml', | ||
...enabledMimes | ||
...enabledMimes, | ||
], | ||
component: Images, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,7 +20,7 @@ | |
* | ||
*/ | ||
|
||
import Videos from '../components/Videos' | ||
import Videos from '../components/Videos.vue' | ||
|
||
export default { | ||
id: 'videos', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -23,7 +23,7 @@ | |
import { createClient, getPatcher } from 'webdav' | ||
import axios from '@nextcloud/axios' | ||
|
||
import { getRootPath, getToken, isPublic } from '../utils/davUtils' | ||
import { getRootPath, getToken, isPublic } from '../utils/davUtils.js' | ||
|
||
// Add this so the server knows it is an request from the browserg | ||
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,8 +20,8 @@ | |
* | ||
*/ | ||
|
||
import client from './DavClient' | ||
import { genFileInfo } from '../utils/fileUtils' | ||
import client from './DavClient.js' | ||
import { genFileInfo } from '../utils/fileUtils.js' | ||
/** | ||
* Retrieve the files list | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,8 +20,8 @@ | |
* | ||
*/ | ||
|
||
import client from './DavClient' | ||
import { genFileInfo } from '../utils/fileUtils' | ||
import client from './DavClient.js' | ||
import { genFileInfo } from '../utils/fileUtils.js' | ||
|
||
/** | ||
* Retrieve the files list | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author Azul <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -23,8 +23,8 @@ | |
import { encodePath } from '@nextcloud/paths' | ||
|
||
/** | ||
* @param name | ||
* @param context | ||
* @param {string} name the file name | ||
* @param {object} context the file context | ||
*/ | ||
export default function(name, context) { | ||
// replace potential leading double slashes | ||
|
@@ -41,8 +41,8 @@ export default function(name, context) { | |
} | ||
|
||
/** | ||
* @param root0 | ||
* @param root0.fileid | ||
* @param {object} root destructuring object | ||
* @param {number} root.fileid the opened file ID | ||
*/ | ||
function pushToHistory({ fileid }) { | ||
const params = OC.Util.History.parseUrlQuery() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
@@ -20,9 +20,9 @@ | |
* | ||
*/ | ||
|
||
import Images from '../models/images' | ||
import Videos from '../models/videos' | ||
import Audios from '../models/audios' | ||
import Images from '../models/images.js' | ||
import Videos from '../models/videos.js' | ||
import Audios from '../models/audios.js' | ||
|
||
export default class Viewer { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* @author Marco Ambrosini <[email protected]> | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author John Molakvoæ <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
|
Oops, something went wrong.