Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed May 3, 2022
1 parent 1b2d194 commit 7f0934e
Show file tree
Hide file tree
Showing 25 changed files with 76 additions and 74 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"path-parse": "^1.0.7",
"vue": "^2.6.14",
"vue-async-computed": "^3.9.0",
"vue-material-design-icons": "^5.0.0",
"webdav": "^4.9.0"
},
"browserslist": [
Expand Down
4 changes: 2 additions & 2 deletions src/components/Audios.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/components/Error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/components/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/mixins/Mime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions src/mixins/PreviewUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: {
Expand Down Expand Up @@ -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 }) {
Expand Down
4 changes: 2 additions & 2 deletions src/models/audios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,7 +20,7 @@
*
*/

import Audios from '../components/Audios'
import Audios from '../components/Audios.vue'

export default {
id: 'audios',
Expand Down
10 changes: 5 additions & 5 deletions src/models/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
Expand Down
8 changes: 4 additions & 4 deletions src/models/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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', [])

Expand Down Expand Up @@ -62,7 +62,7 @@ export default {
// Gif and svg images does not rely on previews
'image/gif',
'image/svg+xml',
...enabledMimes
...enabledMimes,
],
component: Images,
}
4 changes: 2 additions & 2 deletions src/models/videos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,7 +20,7 @@
*
*/

import Videos from '../components/Videos'
import Videos from '../components/Videos.vue'

export default {
id: 'videos',
Expand Down
4 changes: 2 additions & 2 deletions src/services/DavClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions src/services/FileInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*
Expand Down
6 changes: 3 additions & 3 deletions src/services/FileList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/services/FilesActionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions src/services/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/services/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/CancelableRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/canDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/davUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 7f0934e

Please sign in to comment.