You've already forked AstralRinth
forked from didirus/AstralRinth
Change embed
This commit is contained in:
@@ -180,7 +180,7 @@
|
|||||||
stroke-linecap="round"
|
stroke-linecap="round"
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
@click="
|
@click="
|
||||||
$colorMode.value =
|
$colorMode.preference =
|
||||||
$colorMode.value === 'dark' ? 'light' : 'dark'
|
$colorMode.value === 'dark' ? 'light' : 'dark'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -195,7 +195,7 @@
|
|||||||
stroke-linecap="round"
|
stroke-linecap="round"
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
@click="
|
@click="
|
||||||
$colorMode.value =
|
$colorMode.preference =
|
||||||
$colorMode.value === 'dark' ? 'light' : 'dark'
|
$colorMode.value === 'dark' ? 'light' : 'dark'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -253,7 +253,7 @@ export default {
|
|||||||
},
|
},
|
||||||
logout() {
|
logout() {
|
||||||
this.$auth.setToken('local', false)
|
this.$auth.setToken('local', false)
|
||||||
this.$router.go()
|
this.$router.go(null)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,13 +34,14 @@ export default {
|
|||||||
},
|
},
|
||||||
{ hid: 'theme-color', name: 'theme-color', content: '#4d9227' },
|
{ 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:title', name: 'og:title', content: 'Modrinth' },
|
||||||
{
|
{
|
||||||
hid: 'og:description',
|
hid: 'og:description',
|
||||||
name: 'og:description',
|
name: 'og:description',
|
||||||
content: 'An open source modding platform',
|
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:url', name: 'og:url', content: 'https://www.modrinth.com' },
|
||||||
{
|
{
|
||||||
hid: 'og:image',
|
hid: 'og:image',
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
auth: false,
|
||||||
async asyncData(data) {
|
async asyncData(data) {
|
||||||
const res = await axios.get(
|
const res = await axios.get(
|
||||||
`https://api.modrinth.com/api/v1/mod/${data.params.id}`
|
`https://api.modrinth.com/api/v1/mod/${data.params.id}`
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
auth: false,
|
||||||
async asyncData(data) {
|
async asyncData(data) {
|
||||||
let res = await axios.get(
|
let res = await axios.get(
|
||||||
`https://api.modrinth.com/api/v1/user/${data.params.id}`
|
`https://api.modrinth.com/api/v1/user/${data.params.id}`
|
||||||
|
|||||||
Reference in New Issue
Block a user