Update dependencies
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
.download-app
|
||||
a.btn.btn-sm.btn-info.btn-new-session(@click='login()', title='Refresh', v-if="loggedIn")
|
||||
icon(name="refresh")
|
||||
icon(name="sync-alt")
|
||||
|
||||
.alert.alert-danger(v-show="error")
|
||||
strong
|
||||
@@ -15,7 +15,7 @@
|
||||
strong Access denied!
|
||||
|
|
||||
button.btn.btn-primary(type="submit", :disabled="!password")
|
||||
icon.fa-fw(name="sign-in")
|
||||
icon.fa-fw(name="sign-in-alt")
|
||||
| login
|
||||
|
||||
div(v-if="loggedIn")
|
||||
@@ -63,8 +63,8 @@
|
||||
|
||||
<script>
|
||||
import 'vue-awesome/icons/exclamation-triangle';
|
||||
import 'vue-awesome/icons/refresh';
|
||||
import 'vue-awesome/icons/sign-in';
|
||||
import 'vue-awesome/icons/sync-alt';
|
||||
import 'vue-awesome/icons/sign-in-alt';
|
||||
import 'vue-awesome/icons/key';
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
.download-app
|
||||
a.btn.btn-sm.btn-info.btn-new-session(@click='newSession()', title='New Upload')
|
||||
icon.fa-fw(name="cloud-upload")
|
||||
icon.fa-fw(name="cloud-upload-alt")
|
||||
span.hidden-xs new upload
|
||||
.alert.alert-danger(v-show="error")
|
||||
strong
|
||||
@@ -61,7 +61,7 @@
|
||||
import Clipboard from './common/Clipboard.vue';
|
||||
import PreviewModal from './Download/PreviewModal.vue';
|
||||
|
||||
import 'vue-awesome/icons/cloud-upload';
|
||||
import 'vue-awesome/icons/cloud-upload-alt';
|
||||
import 'vue-awesome/icons/exclamation-triangle';
|
||||
import 'vue-awesome/icons/copy';
|
||||
import 'vue-awesome/icons/check';
|
||||
@@ -123,7 +123,7 @@
|
||||
aEl.style.display = 'none';
|
||||
document.body.appendChild(aEl);
|
||||
aEl.click();
|
||||
aEl.remove();
|
||||
document.body.removeChild(aEl);
|
||||
file.downloaded = true;
|
||||
},
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
a.btn.btn-sm.btn-default(title="next", @click="next", v-show="currentIndex < files.length-1")
|
||||
icon(name="arrow-right")
|
||||
a.btn.btn-sm.btn-default(title="toggle line wrap", @click="lineWrap = !lineWrap", :class="{active:lineWrap}", v-show="current.previewType === 'text'")
|
||||
icon(name="rotate-left", flip="vertical")
|
||||
icon(name="undo-alt", flip="vertical")
|
||||
div(slot="body")
|
||||
div(v-if="current.previewType === 'image'", style="text-align:center")
|
||||
img(:src="current.url", style="max-width: 100%; height:auto")
|
||||
@@ -26,7 +26,7 @@
|
||||
import Modal from '../common/Modal.vue';
|
||||
import 'vue-awesome/icons/arrow-left';
|
||||
import 'vue-awesome/icons/arrow-right';
|
||||
import 'vue-awesome/icons/rotate-left';
|
||||
import 'vue-awesome/icons/undo-alt';
|
||||
|
||||
export default {
|
||||
components: { Modal },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template lang="pug">
|
||||
.upload-app#uploadApp
|
||||
a.btn.btn-sm.btn-info.btn-new-session(@click='newSession()', title='New Upload')
|
||||
icon.fa-fw(name="cloud-upload")
|
||||
icon.fa-fw(name="cloud-upload-alt")
|
||||
span.hidden-xs new upload
|
||||
.alert.alert-danger(v-show="error")
|
||||
strong
|
||||
@@ -43,12 +43,12 @@
|
||||
|
||||
<script type="text/babel">
|
||||
"use strict";
|
||||
import {mapState, mapGetters} from 'vuex';
|
||||
import { mapState, mapGetters } from 'vuex';
|
||||
|
||||
import Settings from './Upload/Settings.vue';
|
||||
import Files from './Upload/Files.vue';
|
||||
import Clipboard from './common/Clipboard.vue'
|
||||
import 'vue-awesome/icons/cloud-upload';
|
||||
import 'vue-awesome/icons/cloud-upload-alt';
|
||||
import 'vue-awesome/icons/upload';
|
||||
import 'vue-awesome/icons/check';
|
||||
import 'vue-awesome/icons/spinner';
|
||||
@@ -68,7 +68,7 @@
|
||||
...mapState(['error', 'disabled', 'state']),
|
||||
...mapState('upload', ['sid', 'files']),
|
||||
...mapGetters('upload', ['percentUploaded', 'shareUrl']),
|
||||
mailLnk: function(){
|
||||
mailLnk: function() {
|
||||
return this.$store.state.config
|
||||
&& this.$store.state.config.mailTemplate
|
||||
&& this.$store.state.config.mailTemplate.replace('%%URL%%', this.shareUrl);
|
||||
@@ -77,9 +77,9 @@
|
||||
|
||||
watch: {
|
||||
state: function(val) {
|
||||
if(val === 'uploaded' || val === 'uploadError') {
|
||||
if (val === 'uploaded' || val === 'uploadError') {
|
||||
const el = document.getElementById('uploadApp');
|
||||
if(!el || !el.scrollIntoView) return;
|
||||
if (!el || !el.scrollIntoView) return;
|
||||
el.scrollIntoView(true);
|
||||
}
|
||||
}
|
||||
@@ -87,14 +87,10 @@
|
||||
|
||||
methods: {
|
||||
newSession() {
|
||||
if(!confirm('Create a new upload session?')) return;
|
||||
if (!confirm('Create a new upload session?')) return;
|
||||
document.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
|
||||
<script type="text/babel">
|
||||
import 'vue-awesome/icons/file-image-o';
|
||||
import 'vue-awesome/icons/file-text-o';
|
||||
import 'vue-awesome/icons/file-video-o';
|
||||
import 'vue-awesome/icons/file-audio-o';
|
||||
import 'vue-awesome/icons/file-archive-o';
|
||||
import 'vue-awesome/icons/file-o';
|
||||
import 'vue-awesome/icons/regular/file-image';
|
||||
import 'vue-awesome/icons/regular/file-alt';
|
||||
import 'vue-awesome/icons/regular/file-video';
|
||||
import 'vue-awesome/icons/regular/file-audio';
|
||||
import 'vue-awesome/icons/regular/file-archive';
|
||||
import 'vue-awesome/icons/regular/file';
|
||||
|
||||
export default {
|
||||
props: ['file'],
|
||||
@@ -20,14 +20,14 @@
|
||||
computed: {
|
||||
iconClass() {
|
||||
const type = this.file.type || this.file.metadata && this.file.metadata.type;
|
||||
if(!type) return 'file-o';
|
||||
if(type.startsWith('image')) return 'file-image-o';
|
||||
if(type.startsWith('text')) return 'file-text-o';
|
||||
if(type.startsWith('video')) return 'file-video-o';
|
||||
if(type.startsWith('audio')) return 'file-audio-o';
|
||||
if(type === 'application/pdf') return 'file-pdf-o';
|
||||
if(type.startsWith('application')) return 'file-archive-o';
|
||||
return 'file-o';
|
||||
if(!type) return 'regular/file';
|
||||
if(type.startsWith('image')) return 'regular/file-image';
|
||||
if(type.startsWith('text')) return 'regular/file-alt';
|
||||
if(type.startsWith('video')) return 'regular/file-video';
|
||||
if(type.startsWith('audio')) return 'regular/file-audio';
|
||||
if(type === 'application/pdf') return 'regular/file-pdf';
|
||||
if(type.startsWith('application')) return 'regular/file-archive';
|
||||
return 'regular/file';
|
||||
},
|
||||
isImageBlob() {
|
||||
if(!URL && !webkitURL) return false;
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
if(!String.prototype.startsWith) {
|
||||
String.prototype.startsWith = function(searchString, position) {
|
||||
position = position || 0;
|
||||
return this.indexOf(searchString, position) === position;
|
||||
};
|
||||
}
|
||||
// import "babel-polyfill";
|
||||
|
||||
// if(!String.prototype.startsWith) {
|
||||
// String.prototype.startsWith = function(searchString, position) {
|
||||
// position = position || 0;
|
||||
// return this.indexOf(searchString, position) === position;
|
||||
// };
|
||||
// }
|
||||
|
||||
import Vue from 'vue';
|
||||
import Upload from './Upload.vue';
|
||||
|
||||
Reference in New Issue
Block a user