mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
Merge branch 'develop' into arch/armv7
This commit is contained in:
@@ -28,8 +28,8 @@
|
|||||||
<div class="splash-logo">
|
<div class="splash-logo">
|
||||||
{{template "logo.gohtml" .}}
|
{{template "logo.gohtml" .}}
|
||||||
</div>
|
</div>
|
||||||
<progress id="progress" class="html-progress" max="100"></progress>
|
<progress id="progress" class="html-progress" role="progressbar" max="100"></progress>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="busy-overlay"><div class="splash-center"><progress id="busy-progress" class="html-progress" max="100"></progress></div></div>
|
<div id="busy-overlay"><div class="splash-center"><progress id="busy-progress" class="html-progress" role="progressbar" max="100"></progress></div></div>
|
@@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<teleport to="body">
|
<teleport to="body">
|
||||||
<transition name="fade-transition">
|
<div id="notify">
|
||||||
<div v-if="visible" id="p-notify" tabindex="-1">
|
<transition name="fade-transition">
|
||||||
<div
|
<div
|
||||||
|
v-if="visible"
|
||||||
:class="'p-notify--' + message.color"
|
:class="'p-notify--' + message.color"
|
||||||
class="v-snackbar v-snackbar--bottom v-snackbar--center p-notify"
|
class="p-notify v-snackbar"
|
||||||
role="alert"
|
role="alert"
|
||||||
tabindex="-1"
|
|
||||||
@click.stop.prevent="showNext"
|
@click.stop.prevent="showNext"
|
||||||
>
|
>
|
||||||
<div class="v-snackbar__wrapper v-snackbar--variant-flat">
|
<div class="v-snackbar__wrapper">
|
||||||
<span class="v-snackbar__underlay"></span>
|
<span class="v-snackbar__underlay"></span>
|
||||||
<div tabindex="-1" class="v-snackbar__content">
|
<div class="v-snackbar__content">
|
||||||
<i
|
<i
|
||||||
v-if="message.icon"
|
v-if="message.icon"
|
||||||
:class="['text-' + message.color, 'mdi-' + message.icon]"
|
:class="['text-' + message.color, 'mdi-' + message.icon]"
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</transition>
|
||||||
</transition>
|
</div>
|
||||||
</teleport>
|
</teleport>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
defaultColor: "info",
|
defaultColor: "info",
|
||||||
defaultDelay: 2000,
|
defaultDelay: 2000,
|
||||||
warningDelay: 3000,
|
warningDelay: 3000,
|
||||||
errorDelay: 8000,
|
errorDelay: 6000,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -142,14 +142,6 @@ export default {
|
|||||||
this.showNext();
|
this.showNext();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSnackbar(show) {
|
|
||||||
if (show) {
|
|
||||||
this.snackbar = true;
|
|
||||||
} else {
|
|
||||||
this.snackbar = false;
|
|
||||||
this.showNext();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
showNext() {
|
showNext() {
|
||||||
const message = this.messages.shift();
|
const message = this.messages.shift();
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* Notifications */
|
/* Notifications */
|
||||||
|
|
||||||
#p-notify {
|
#notify {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 2500;
|
z-index: 2500;
|
||||||
top: auto;
|
top: auto;
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar {
|
#notify .v-snackbar {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar .v-snackbar__wrapper {
|
#notify .v-snackbar .v-snackbar__wrapper {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: rgba(var(--v-theme-on-surface), 1);
|
color: rgba(var(--v-theme-on-surface), 1);
|
||||||
background-color: rgba(var(--v-theme-surface), 0.32);
|
background-color: rgba(var(--v-theme-surface), 0.32);
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar__wrapper .v-snackbar__content {
|
#notify .v-snackbar__wrapper .v-snackbar__content {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar__wrapper .v-snackbar__content .p-notify__icon {
|
#notify .v-snackbar__wrapper .v-snackbar__content .p-notify__icon {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
width: 22px;
|
width: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar__wrapper .v-snackbar__content .p-notify__text {
|
#notify .v-snackbar__wrapper .v-snackbar__content .p-notify__text {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 2px 8px;
|
margin: 2px 8px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#p-notify .v-snackbar__wrapper .v-snackbar__content .p-notify__close {
|
#notify .v-snackbar__wrapper .v-snackbar__content .p-notify__close {
|
||||||
opacity: 0.78;
|
opacity: 0.78;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 600px) {
|
@media only screen and (min-width: 600px) {
|
||||||
#p-notify .v-snackbar {
|
#notify .v-snackbar {
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user