|
@@ -12,6 +12,7 @@
|
|
<register-modal v-if="modals.register" />
|
|
<register-modal v-if="modals.register" />
|
|
<create-playlist-modal v-if="modals.createPlaylist" />
|
|
<create-playlist-modal v-if="modals.createPlaylist" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <falling-snow v-if="christmas" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -38,7 +39,10 @@ export default {
|
|
CreatePlaylistModal: defineAsyncComponent(() =>
|
|
CreatePlaylistModal: defineAsyncComponent(() =>
|
|
import("@/components/modals/CreatePlaylist.vue")
|
|
import("@/components/modals/CreatePlaylist.vue")
|
|
),
|
|
),
|
|
- Banned: defineAsyncComponent(() => import("@/pages/Banned.vue"))
|
|
|
|
|
|
+ Banned: defineAsyncComponent(() => import("@/pages/Banned.vue")),
|
|
|
|
+ FallingSnow: defineAsyncComponent(() =>
|
|
|
|
+ import("@/components/FallingSnow.vue")
|
|
|
|
+ )
|
|
},
|
|
},
|
|
replace: false,
|
|
replace: false,
|
|
data() {
|
|
data() {
|
|
@@ -48,7 +52,8 @@ export default {
|
|
keyIsDown: false,
|
|
keyIsDown: false,
|
|
scrollPosition: { y: 0, x: 0 },
|
|
scrollPosition: { y: 0, x: 0 },
|
|
aModalIsOpen2: false,
|
|
aModalIsOpen2: false,
|
|
- broadcastChannel: null
|
|
|
|
|
|
+ broadcastChannel: null,
|
|
|
|
+ christmas: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -227,6 +232,13 @@ export default {
|
|
this.changeNightmode(true);
|
|
this.changeNightmode(true);
|
|
this.enableNightmode();
|
|
this.enableNightmode();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ lofig.get("siteSettings.christmas").then(christmas => {
|
|
|
|
+ if (christmas) {
|
|
|
|
+ this.christmas = true;
|
|
|
|
+ this.enableChristmasMode();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
toggleNightMode() {
|
|
toggleNightMode() {
|
|
@@ -254,6 +266,11 @@ export default {
|
|
.getElementsByTagName("body")[0]
|
|
.getElementsByTagName("body")[0]
|
|
.classList.remove("night-mode");
|
|
.classList.remove("night-mode");
|
|
},
|
|
},
|
|
|
|
+ enableChristmasMode: () => {
|
|
|
|
+ document
|
|
|
|
+ .getElementsByTagName("body")[0]
|
|
|
|
+ .classList.add("christmas-mode");
|
|
|
|
+ },
|
|
...mapActions("modalVisibility", ["closeCurrentModal"]),
|
|
...mapActions("modalVisibility", ["closeCurrentModal"]),
|
|
...mapActions("user/preferences", [
|
|
...mapActions("user/preferences", [
|
|
"changeNightmode",
|
|
"changeNightmode",
|
|
@@ -286,6 +303,7 @@ export default {
|
|
--dark-orange: rgb(250, 50, 0);
|
|
--dark-orange: rgb(250, 50, 0);
|
|
--green: rgb(68, 189, 50);
|
|
--green: rgb(68, 189, 50);
|
|
--red: rgb(231, 77, 60);
|
|
--red: rgb(231, 77, 60);
|
|
|
|
+ --dark-red: rgb(235, 41, 19);
|
|
--white: rgb(255, 255, 255);
|
|
--white: rgb(255, 255, 255);
|
|
--black: rgb(0, 0, 0);
|
|
--black: rgb(0, 0, 0);
|
|
--light-grey: rgb(245, 245, 245);
|
|
--light-grey: rgb(245, 245, 245);
|
|
@@ -365,6 +383,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.christmas-mode {
|
|
|
|
+ --primary-color: var(--red);
|
|
|
|
+}
|
|
|
|
+
|
|
/* nunito-200 - latin */
|
|
/* nunito-200 - latin */
|
|
@font-face {
|
|
@font-face {
|
|
font-family: "Nunito";
|
|
font-family: "Nunito";
|
|
@@ -511,7 +533,7 @@ export default {
|
|
|
|
|
|
code {
|
|
code {
|
|
background-color: var(--light-grey) !important;
|
|
background-color: var(--light-grey) !important;
|
|
- color: var(--red) !important;
|
|
|
|
|
|
+ color: var(--dark-red) !important;
|
|
}
|
|
}
|
|
|
|
|
|
body.night-mode {
|
|
body.night-mode {
|
|
@@ -793,7 +815,7 @@ img {
|
|
.alert {
|
|
.alert {
|
|
padding: 20px;
|
|
padding: 20px;
|
|
color: var(--white);
|
|
color: var(--white);
|
|
- background-color: var(--red);
|
|
|
|
|
|
+ background-color: var(--dark-red);
|
|
position: fixed;
|
|
position: fixed;
|
|
top: 50px;
|
|
top: 50px;
|
|
right: 50px;
|
|
right: 50px;
|
|
@@ -898,7 +920,7 @@ img {
|
|
}
|
|
}
|
|
|
|
|
|
.tippy-box[data-theme~="confirm"] {
|
|
.tippy-box[data-theme~="confirm"] {
|
|
- background-color: var(--red);
|
|
|
|
|
|
+ background-color: var(--dark-red);
|
|
border: 0;
|
|
border: 0;
|
|
|
|
|
|
.tippy-content {
|
|
.tippy-content {
|
|
@@ -966,7 +988,7 @@ img {
|
|
|
|
|
|
.stop-icon,
|
|
.stop-icon,
|
|
.delete-icon {
|
|
.delete-icon {
|
|
- color: var(--red);
|
|
|
|
|
|
+ color: var(--dark-red);
|
|
}
|
|
}
|
|
|
|
|
|
.report-icon {
|
|
.report-icon {
|
|
@@ -982,7 +1004,7 @@ img {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
- border-top-color: var(--red);
|
|
|
|
|
|
+ border-top-color: var(--dark-red);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -995,7 +1017,7 @@ img {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
- border-bottom-color: var(--red);
|
|
|
|
|
|
+ border-bottom-color: var(--dark-red);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1007,7 +1029,7 @@ img {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
- border-left-color: var(--red);
|
|
|
|
|
|
+ border-left-color: var(--dark-red);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1019,7 +1041,7 @@ img {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
&[data-theme~="confirm"] > .tippy-arrow::before {
|
|
- border-right-color: var(--red);
|
|
|
|
|
|
+ border-right-color: var(--dark-red);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1279,7 +1301,7 @@ button.delete:focus {
|
|
}
|
|
}
|
|
|
|
|
|
&.is-danger {
|
|
&.is-danger {
|
|
- background-color: var(--red) !important;
|
|
|
|
|
|
+ background-color: var(--dark-red) !important;
|
|
border-width: 0;
|
|
border-width: 0;
|
|
color: var(--white);
|
|
color: var(--white);
|
|
}
|
|
}
|
|
@@ -1558,7 +1580,7 @@ h4.section-title {
|
|
|
|
|
|
.stop-icon,
|
|
.stop-icon,
|
|
.delete-icon {
|
|
.delete-icon {
|
|
- color: var(--red);
|
|
|
|
|
|
+ color: var(--dark-red);
|
|
}
|
|
}
|
|
|
|
|
|
.report-icon {
|
|
.report-icon {
|