Signed-off-by: Jonathan Graham <theflametrooper@gmail.com>
@@ -106,7 +106,6 @@ export default {
},
watch: {
localNightmode(newValue, oldValue) {
- console.log(newValue, oldValue, this.localNightmode);
if (oldValue === null) return;
localStorage.setItem("nightmode", this.localNightmode);
@@ -1,6 +1,6 @@
<template>
<div>
- <metadata title="Login" v-if="isPage" />
+ <page-metadata title="Login" v-if="isPage" />
<div class="modal is-active">
<div class="modal-background" @click="closeLoginModal()" />
<div class="modal-card">
- <metadata title="Register" v-if="isPage" />
+ <page-metadata title="Register" v-if="isPage" />
<div class="modal-background" @click="closeRegisterModal()" />
@@ -35,7 +35,7 @@ app.use(VueTippy, {
app.component("Tippy", Tippy);
-app.component("Metadata", {
+app.component("PageMetadata", {
$attrs: {
// eslint-disable-next-line vue/no-arrow-functions-in-watch
@@ -1,7 +1,7 @@
<div class="wrapper">
- <metadata title="404" />
+ <page-metadata title="404" />
<h3><strong>404</strong> Not Found</h3>
<router-link class="button is-dark" to="/">
<div class="app">
- <metadata title="About" />
+ <page-metadata title="About" />
<main-header />
<div class="container">
<div class="content-wrapper">
- <metadata title="Admin | Hidden songs" />
+ <page-metadata title="Admin | Hidden songs" />
<p>
<span>Sets loaded: {{ setsLoaded }} / {{ maxSets }}</span>
- <metadata title="Admin | News" />
+ <page-metadata title="Admin | News" />
<table class="table is-striped">
<thead>
- <metadata title="Admin | Playlists" />
+ <page-metadata title="Admin | Playlists" />
<button
class="button is-primary"
- <metadata title="Admin | Punishments" />
+ <page-metadata title="Admin | Punishments" />
- <metadata title="Admin | Reports" />
+ <page-metadata title="Admin | Reports" />
- <metadata title="Admin | Stations" />
+ <page-metadata title="Admin | Stations" />
<button class="button is-primary" @click="clearEveryStationQueue()">
Clear every station queue
- <metadata title="Admin | Statistics" />
+ <page-metadata title="Admin | Statistics" />
<div class="columns">
<div
class="
- <metadata title="Admin | Unverified songs" />
+ <page-metadata title="Admin | Unverified songs" />
- <metadata title="Admin | Users" />
+ <page-metadata title="Admin | Users" />
<h2 v-if="dataRequests.length > 0">Data Requests</h2>
- <metadata title="Admin | Songs" />
+ <page-metadata title="Admin | Songs" />
- <metadata title="Banned" />
+ <page-metadata title="Banned" />
<i class="material-icons">not_interested</i>
<h4>
You are banned for
- <metadata title="Home" />
+ <page-metadata title="Home" />
<main-header
:hide-logo="true"
- <metadata title="News" />
+ <page-metadata title="News" />
- <metadata title="Privacy policy" />
+ <page-metadata title="Privacy policy" />
<h1>MUSARE PRIVACY POLICY</h1>
@@ -5,7 +5,7 @@
<view-report v-if="modals.viewReport" />
<edit-song v-if="modals.editSong" song-type="songs" />
- <metadata :title="`Profile | ${user.username}`" />
+ <page-metadata :title="`Profile | ${user.username}`" />
<div class="info-section">
- <metadata
+ <page-metadata
:title="mode === 'reset' ? 'Reset password' : 'Set password'"
/>
- <metadata title="Settings" />
+ <page-metadata title="Settings" />
<h1 id="page-title">Settings</h1>
@@ -1,7 +1,10 @@
- <metadata v-if="exists && !loading" :title="`${station.displayName}`" />
- <metadata v-else-if="!exists && !loading" :title="`Not found`" />
+ v-if="exists && !loading"
+ :title="`${station.displayName}`"
+ />
+ <page-metadata v-else-if="!exists && !loading" :title="`Not found`" />
<div id="page-loader-container" v-if="loading">
<content-loader
- <metadata title="Team" />
+ <page-metadata title="Team" />
- <metadata title="Terms of Service" />
+ <page-metadata title="Terms of Service" />
<h1>MUSARE TERMS OF SERVICE</h1>