Extract CSS to styles.css
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
<template lang="pug">
|
||||
.download-app
|
||||
.btn-group(style='position: absolute; top: 15px; right: 15px;')
|
||||
a.btn.btn-sm.btn-info(@click='newSession()', title='New Upload')
|
||||
i.fa.fa-fw.fa-cloud-upload
|
||||
span.hidden-xs new upload
|
||||
a.btn.btn-sm.btn-info.btn-new-session(@click='newSession()', title='New Upload')
|
||||
i.fa.fa-fw.fa-cloud-upload
|
||||
span.hidden-xs new upload
|
||||
.alert.alert-danger(v-show="error")
|
||||
strong
|
||||
i.fa.fa-exclamation-triangle
|
||||
| {{ error }}
|
||||
.well(v-if='needsPassword')
|
||||
h3(style='margin-top: 0') Password
|
||||
h3 Password
|
||||
.form-group
|
||||
input.form-control(type='password', v-model='password')
|
||||
p.text-danger(v-show='passwordWrong')
|
||||
@@ -21,31 +20,30 @@
|
||||
.panel.panel-primary(v-if='!needsPassword')
|
||||
.panel-heading
|
||||
strong Files
|
||||
div.pull-right(style="margin-top:-5px;")
|
||||
span.btn-group(v-if="downloadsAvailable")
|
||||
a.btn.btn-sm.btn-default(@click="downloadAll('zip')", title="Archive download is not resumeable!")
|
||||
i.fa.fa-fw.fa-fw.fa-download
|
||||
| zip
|
||||
a.btn.btn-sm.btn-default(@click="downloadAll('tar.gz')", title="Archive download is not resumeable!")
|
||||
i.fa.fa-fw.fa-fw.fa-download
|
||||
| tar.gz
|
||||
div.pull-right.btn-group.btn-download-archive(v-if="downloadsAvailable")
|
||||
a.btn.btn-sm.btn-default(@click="downloadAll('zip')", title="Archive download is not resumeable!")
|
||||
i.fa.fa-fw.fa-fw.fa-download
|
||||
| zip
|
||||
a.btn.btn-sm.btn-default(@click="downloadAll('tar.gz')", title="Archive download is not resumeable!")
|
||||
i.fa.fa-fw.fa-fw.fa-download
|
||||
| tar.gz
|
||||
.panel-body
|
||||
table.table.table-hover.table-striped(style='margin-bottom: 0')
|
||||
table.table.table-hover.table-striped
|
||||
tbody
|
||||
tr(v-for='file in files', style='cursor: pointer', @click='download(file)')
|
||||
td(style='width: 60px')
|
||||
td.file-icon
|
||||
file-icon(:file='file')
|
||||
td
|
||||
div.pull-right
|
||||
i.fa.fa-check.text-success(v-show='file.downloaded')
|
||||
clipboard.btn.btn-sm.btn-default(:value='host + file.url', @change='copied(file, $event)', title='Copy to clipboard', style='margin: 0 5px')
|
||||
div.pull-right.btn-group
|
||||
clipboard.btn.btn-sm.btn-default(:value='host + file.url', @change='copied(file, $event)', title='Copy to clipboard')
|
||||
a
|
||||
i.fa.fa-fw.fa-copy
|
||||
a.btn.btn-sm.btn-default(title="Preview", @click.prevent.stop="preview=file", v-if="file.previewType")
|
||||
i.fa.fa-fw.fa-eye
|
||||
i.pull-right.fa.fa-check.text-success.downloaded(v-show='file.downloaded')
|
||||
p
|
||||
strong {{ file.metadata.name }}
|
||||
small(v-if="Number.isFinite(file.size)", style="margin-left:15px") ({{ humanFileSize(file.size) }})
|
||||
small.file-size(v-if="Number.isFinite(file.size)") ({{ humanFileSize(file.size) }})
|
||||
p {{ file.metadata.comment }}
|
||||
|
||||
preview-modal(:preview="preview", :files="previewFiles", :max-size="config.maxPreviewSize", @close="preview=false")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template lang="pug">
|
||||
modal(v-if="current", @close="current=false", :has-header="true", @next="next", @prev="prev")
|
||||
div(slot="header")
|
||||
modal.preview-modal(v-if="current", @close="current=false", :has-header="true", @next="next", @prev="prev")
|
||||
div.header(slot="header")
|
||||
p
|
||||
strong {{current.metadata.name}}
|
||||
div
|
||||
small {{currentIndex+1}} / {{files.length}}
|
||||
span.btn-group(style="margin-left: 15px")
|
||||
span.btn-group
|
||||
a.btn.btn-sm.btn-default(title="previous", @click="prev", v-show="currentIndex > 0")
|
||||
i.fa.fa-fw.fa-arrow-left
|
||||
a.btn.btn-sm.btn-default(title="next", @click="next", v-show="currentIndex < files.length-1")
|
||||
|
||||
@@ -1,35 +1,34 @@
|
||||
<template lang="pug">
|
||||
.upload-app#uploadApp
|
||||
.btn-group(style='position: absolute; top: 15px; right: 15px;')
|
||||
a.btn.btn-sm.btn-info(@click='newSession()', title='New Upload')
|
||||
i.fa.fa-fw.fa-cloud-upload
|
||||
span.hidden-xs new upload
|
||||
a.btn.btn-sm.btn-info.btn-new-session(@click='newSession()', title='New Upload')
|
||||
i.fa.fa-fw.fa-cloud-upload
|
||||
span.hidden-xs new upload
|
||||
.alert.alert-danger(v-show="error")
|
||||
strong
|
||||
i.fa.fa-exclamation-triangle
|
||||
| {{ error }}
|
||||
.well(v-show="state === 'uploaded'")
|
||||
.pull-right
|
||||
a.btn.btn-primary(style="margin-right: 5px", :href="mailLnk")
|
||||
.pull-right.btn-group
|
||||
a.btn.btn-primary(:href="mailLnk")
|
||||
i.fa.fa-fw.fa-envelope
|
||||
| Mail
|
||||
clipboard.btn.btn-primary(:value='shareUrl')
|
||||
h3.text-success(style='margin-top: 0')
|
||||
h3.text-success
|
||||
i.fa.fa-check
|
||||
| Upload completed
|
||||
div(style='margin-top: 1rem; padding-bottom: 0')
|
||||
strong(style="margin-right: 5px") Download Link:
|
||||
div.share-link
|
||||
span.title Download Link:
|
||||
|
|
||||
a(:href='shareUrl') {{ shareUrl }}
|
||||
.row(style="margin-bottom:10px", v-show="state === 'uploading'")
|
||||
.row.overall-process(v-show="state === 'uploading'")
|
||||
.col-xs-12
|
||||
i.fa.fa-spinner.fa-spin.fa-2x.fa-fw.pull-left
|
||||
.progress(style="height:25px")
|
||||
.progress-bar.progress-bar-success.progress-bar-striped.active(:style="{width: percentUploaded+'%'}", style="line-height:25px")
|
||||
.progress
|
||||
.progress-bar.progress-bar-success.progress-bar-striped.active(:style="{width: percentUploaded+'%'}")
|
||||
span(v-show='percentUploaded>10') {{ percentUploaded }}%
|
||||
.row
|
||||
.col-sm-7
|
||||
files(:value="[]")
|
||||
files
|
||||
.col-sm-5
|
||||
settings
|
||||
.text-right(v-show='files.length && !disabled')
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
div.upload-files
|
||||
.panel.panel-default(:class="{'panel-primary': !disabled}")
|
||||
.panel-heading Files
|
||||
.panel-body
|
||||
.dropHint(:style="{cursor: disabled ? 'default' : 'pointer'}",
|
||||
.empty-files-big-plus(:style="{cursor: disabled ? 'default' : 'pointer'}",
|
||||
onclick="document.getElementById('fileInput').click();",
|
||||
v-show="files.length === 0")
|
||||
i.fa.fa-plus.fa-4x
|
||||
br
|
||||
| Drop your files here
|
||||
a
|
||||
i.fa.fa-plus.fa-4x
|
||||
br
|
||||
| Drop your files here
|
||||
table.table.table-striped
|
||||
tbody
|
||||
tr(v-for="file in files")
|
||||
td(style="width: 60px")
|
||||
td.file-icon
|
||||
file-icon(:file="file._File")
|
||||
td
|
||||
p
|
||||
@@ -23,11 +24,11 @@
|
||||
.alert.alert-danger(v-if="file.error")
|
||||
i.fa.fa-fw.fa-exclamation-triangle
|
||||
| {{ file.error }}
|
||||
.progress(v-show="!file.error && (state === 'uploading' || state === 'uploaded')", style="height:7px")
|
||||
.progress(v-show="!file.error && (state === 'uploading' || state === 'uploaded')")
|
||||
.progress-bar.progress-bar-success.progress-bar-striped(:style="{width: file.progress.percentage+'%'}",:class="{active:!file.uploaded}")
|
||||
td(style="width: 33px;")
|
||||
a.btn.btn-warning.btn-sm(@click="!disabled && $store.commit('upload/REMOVE_FILE', file)", :disabled="disabled")
|
||||
i.fa.fa-trash.pull-right(style="display: inline-block; margin-left: auto; margin-right: auto;")
|
||||
td.btns
|
||||
a(style="cursor:pointer", @click="!disabled && $store.commit('upload/REMOVE_FILE', file)", :disabled="disabled")
|
||||
i.fa.fa-fw.fa-times
|
||||
|
||||
input#fileInput(type="file", @change="$store.dispatch('upload/addFiles', $event.target.files)", multiple="", :disabled="disabled", style="display: none")
|
||||
.text-right
|
||||
@@ -59,16 +60,3 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.dropHint {
|
||||
text-align: center;
|
||||
padding: 19px 0;
|
||||
}
|
||||
.dropHint i {
|
||||
color: #337AB7;
|
||||
}
|
||||
.dropHint:hover i {
|
||||
color: #286090;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template lang="pug">
|
||||
div
|
||||
div.file-icon
|
||||
i.fa.fa-fw.fa-3x(v-if='!isImageBlob', :class='iconClass')
|
||||
|
|
||||
img(v-if='isImageBlob', :src='blobUrl', style='width:54px; height:auto;')
|
||||
img(v-if='isImageBlob', :src='blobUrl')
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
@@ -39,18 +39,3 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.background-darken {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.modal.in {
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.modal-fluid {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -65,8 +65,7 @@ module.exports = {
|
||||
// Proxy requests to BE in DEV mode
|
||||
// https://webpack.github.io/docs/webpack-dev-server.html#proxy
|
||||
{
|
||||
// everything except of js, html, css
|
||||
context: ['/**', '!/**.js', '!/**.html', '!/**.css'],
|
||||
context: ['/**'],
|
||||
target: 'http://localhost:3000/'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user