Add meta name to pages

This commit is contained in:
Pitu 2021-01-05 01:27:39 +09:00
parent 3934621d25
commit 5e219868b0
9 changed files with 44 additions and 20 deletions

View File

@ -120,9 +120,6 @@ export default {
user: state => state.auth.user
})
},
metaInfo() {
return { title: 'Account' };
},
methods: {
...mapActions({
getUserSetttings: 'auth/fetchCurrentUser'
@ -169,6 +166,11 @@ export default {
const response = await this.$store.dispatch('auth/requestAPIKey');
this.$buefy.toast.open(response.message);
}
},
head() {
return {
title: 'Account'
};
}
};
</script>

View File

@ -141,9 +141,6 @@ export default {
console.error(e);
}
}],
metaInfo() {
return { title: 'Settings' };
},
computed: mapState({
settings: state => state.admin.settings
}),
@ -157,6 +154,11 @@ export default {
restartService() {
this.$handler.executeAction('admin/restartService');
}
},
head() {
return {
title: 'Service settings'
};
}
};
</script>

View File

@ -105,9 +105,6 @@ export default {
users: state => state.admin.users,
config: state => state.config
}),
metaInfo() {
return { title: 'Uploads' };
},
methods: {
async changeEnabledStatus(row) {
if (row.enabled) {
@ -132,6 +129,11 @@ export default {
async purgeFiles(row) {
this.$handler.executeAction('admin/purgeUserFiles', row.id);
}
},
head() {
return {
title: 'Users'
};
}
};
</script>

View File

@ -69,9 +69,6 @@ export default {
};
},
computed: mapState(['config', 'albums']),
metaInfo() {
return { title: 'Uploads' };
},
methods: {
...mapActions({
alert: 'alert/set'
@ -91,6 +88,11 @@ export default {
this.newAlbumName = null;
}
}
},
head() {
return {
title: 'Albums'
};
}
};
</script>

View File

@ -85,9 +85,6 @@ export default {
}),
...mapState(['images'])
},
metaInfo() {
return { title: 'Uploads' };
},
watch: {
current: 'fetchPaginate'
},
@ -123,6 +120,11 @@ export default {
});
}
}
},
head() {
return {
title: 'Dashboard'
};
}
};
</script>

View File

@ -54,8 +54,10 @@ export default {
data() {
return {};
},
metaInfo() {
return { title: 'Faq' };
head() {
return {
title: 'FAQ'
};
}
};
</script>

View File

@ -47,6 +47,11 @@ export default {
computed: {
...mapGetters({ loggedIn: 'auth/isLoggedIn' }),
...mapState(['config'])
},
head() {
return {
title: 'Home'
};
}
};
</script>

View File

@ -151,6 +151,11 @@ export default {
}
this.$router.push('/dashboard');
}
},
head() {
return {
title: 'Login'
};
}
};
</script>

View File

@ -78,9 +78,6 @@ export default {
};
},
computed: mapState(['config', 'auth']),
metaInfo() {
return { title: 'Register' };
},
methods: {
async register() {
if (this.isLoading) return;
@ -110,6 +107,11 @@ export default {
this.isLoading = false;
}
}
},
head() {
return {
title: 'Register'
};
}
};
</script>