Change embed

This commit is contained in:
Jai A 2020-10-09 18:57:26 -07:00
parent 5d9eb25e38
commit 9b9782ce94
No known key found for this signature in database
GPG Key ID: E8B7DFB8C62797AC
4 changed files with 7 additions and 4 deletions

View File

@ -180,7 +180,7 @@
stroke-linecap="round"
stroke-linejoin="round"
@click="
$colorMode.value =
$colorMode.preference =
$colorMode.value === 'dark' ? 'light' : 'dark'
"
>
@ -195,7 +195,7 @@
stroke-linecap="round"
stroke-linejoin="round"
@click="
$colorMode.value =
$colorMode.preference =
$colorMode.value === 'dark' ? 'light' : 'dark'
"
>
@ -253,7 +253,7 @@ export default {
},
logout() {
this.$auth.setToken('local', false)
this.$router.go()
this.$router.go(null)
},
},
}

View File

@ -34,13 +34,14 @@ export default {
},
{ hid: 'theme-color', name: 'theme-color', content: '#4d9227' },
{ hid: 'og:site_name', name: 'og:site_name', content: 'Modrinth' },
{ hid: 'og:title', name: 'og:title', content: 'Modrinth' },
{
hid: 'og:description',
name: 'og:description',
content: 'An open source modding platform',
},
{ hid: 'og:type', name: 'og:type', content: 'website' },
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: 'https://www.modrinth.com' },
{
hid: 'og:image',

View File

@ -6,6 +6,7 @@
import axios from 'axios'
export default {
auth: false,
async asyncData(data) {
const res = await axios.get(
`https://api.modrinth.com/api/v1/mod/${data.params.id}`

View File

@ -8,6 +8,7 @@
import axios from 'axios'
export default {
auth: false,
async asyncData(data) {
let res = await axios.get(
`https://api.modrinth.com/api/v1/user/${data.params.id}`