-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mediaviewer app #1530
Mediaviewer app #1530
Conversation
💥 Acceptance tests webUIFiles failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4121/3
|
apps/mediaviewer/src/app.js
Outdated
@@ -0,0 +1,28 @@ | |||
import '@babel/polyfill' | |||
// import translationsJson from '../l10n/translations' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to bring this back - I'll take care in follow up PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- rebase
- sqaush to reasonable unit
apps/mediaviewer/src/Mediaviewer.vue
Outdated
} | ||
|
||
// Set initial file | ||
_.filter(this.mediaFiles, (file, index) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont use underscore/lodash - use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
apps/mediaviewer/src/Mediaviewer.vue
Outdated
_.filter(this.mediaFiles, (file, index) => { | ||
if (file.path === this.$store.getters.activeFile.path) { | ||
this.activeIndex = index | ||
console.log(index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove please
apps/mediaviewer/src/Mediaviewer.vue
Outdated
...mapGetters('Files', ['activeFiles']), | ||
mediaFiles () { | ||
return _.filter(this.activeFiles, file => { | ||
return file.extension.toLowerCase().match(/(png|jpg|jpeg)/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no gif? no raw image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added gif, but my OC doesn't support any raw files :-/
package.json
Outdated
@@ -111,5 +111,8 @@ | |||
"eslint --fix", | |||
"git add" | |||
] | |||
}, | |||
"dependencies": { | |||
"query-string": "^6.8.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dev dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and please use the folder name 'media-viewer' THX |
51c54e2
to
954f5db
Compare
💥 Acceptance tests webUILogin failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4164/4
|
💥 Acceptance tests webUISharingInternalUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4163/9
|
💥 Acceptance tests webUISharingInternalUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4167/9
|
Will squash if all is good. |
Whilst working on the media viewer, I found out that data blobs don't get cached, so images may get fetched multiple times. I guess we could use the browsers local storage to do that, so I don't have to pollute the store with big data. What do you think? |
💥 Acceptance tests webUISharingInternalUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4168/9
|
💥 Acceptance tests failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4168/13
|
b1078da
to
8d763dd
Compare
💥 Acceptance tests webUISharingInternalUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4197/9
|
💥 Acceptance tests webUISharingInternalUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4258/9
|
💥 Acceptance tests failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/4258/12
|
c0a0188
to
0271e58
Compare
Squash please. As usual |
apps/mediaviewer/src/app.js
Outdated
extensions: [{ | ||
extension: 'png' | ||
}, { | ||
extension: 'jpg' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jpeg? gif?
} | ||
|
||
// Set initial file | ||
this.mediaFiles.filter((file, index) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really a filter - right? use foreach?
resolve(reader) | ||
} | ||
} else if (returnAs === 'url') { | ||
const source = window.URL.createObjectURL(blob) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is the corresponding delete?
with basic image support
e796884
to
0d3c6bb
Compare
Description
Adding media viewing capabilities. All still work in progress
Screenshots (if appropriate):
Types of changes
Open tasks: