You've already forked AstralRinth
forked from didirus/AstralRinth
Minor Fixes
This commit is contained in:
@@ -224,7 +224,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
authUrl() {
|
authUrl() {
|
||||||
return `https://api.modrinth.com/api/v1/auth/init?url=http://localhost:3000${this.$route.path}`
|
return `https://api.modrinth.com/api/v1/auth/init?url=http://modrinth.com${this.$route.path}`
|
||||||
},
|
},
|
||||||
userUrl() {
|
userUrl() {
|
||||||
return `/user/${this.$auth.user.id}`
|
return `/user/${this.$auth.user.id}`
|
||||||
|
|||||||
@@ -69,8 +69,8 @@
|
|||||||
Set this to something pretty, so URLs to your mod are more readable
|
Set this to something pretty, so URLs to your mod are more readable
|
||||||
</span>
|
</span>
|
||||||
<input
|
<input
|
||||||
v-model="slug"
|
|
||||||
id="name"
|
id="name"
|
||||||
|
v-model="slug"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Enter the vanity URL's last bit"
|
placeholder="Enter the vanity URL's last bit"
|
||||||
/>
|
/>
|
||||||
@@ -92,11 +92,11 @@
|
|||||||
<li>Acceptable formats are PNG, JPEG and GIF</li>
|
<li>Acceptable formats are PNG, JPEG and GIF</li>
|
||||||
</ul>
|
</ul>
|
||||||
<button
|
<button
|
||||||
|
class="transparent-button"
|
||||||
@click="
|
@click="
|
||||||
icon = null
|
icon = null
|
||||||
previewImage = null
|
previewImage = null
|
||||||
"
|
"
|
||||||
class="transparent-button"
|
|
||||||
>
|
>
|
||||||
Reset icon
|
Reset icon
|
||||||
</button>
|
</button>
|
||||||
@@ -647,7 +647,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
createVersion() {
|
createVersion() {
|
||||||
console.log(this.versions)
|
|
||||||
this.versions.push({
|
this.versions.push({
|
||||||
raw_files: [],
|
raw_files: [],
|
||||||
file_parts: [],
|
file_parts: [],
|
||||||
|
|||||||
@@ -378,6 +378,7 @@ export default {
|
|||||||
],
|
],
|
||||||
sortType: { display: 'Relevance', name: 'relevance' },
|
sortType: { display: 'Relevance', name: 'relevance' },
|
||||||
maxResults: 20,
|
maxResults: 20,
|
||||||
|
firstRun: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -387,7 +388,7 @@ export default {
|
|||||||
'https://api.modrinth.com/api/v1/tag/game_version?type=release'
|
'https://api.modrinth.com/api/v1/tag/game_version?type=release'
|
||||||
|
|
||||||
if (x !== null) {
|
if (x !== null) {
|
||||||
if (!this.showVersions.length > 0) {
|
if (!this.showVersions.length > 0 && !this.firstRun) {
|
||||||
this.showVersions.push('snapshots')
|
this.showVersions.push('snapshots')
|
||||||
|
|
||||||
url = 'https://api.modrinth.com/api/v1/tag/game_version'
|
url = 'https://api.modrinth.com/api/v1/tag/game_version'
|
||||||
@@ -399,6 +400,7 @@ export default {
|
|||||||
const res = await axios.get(url)
|
const res = await axios.get(url)
|
||||||
|
|
||||||
this.versions = res.data
|
this.versions = res.data
|
||||||
|
this.firstRun = false
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
<div class="mods">
|
<div class="mods">
|
||||||
<SearchResult
|
<SearchResult
|
||||||
v-for="result in mods"
|
v-for="result in mods"
|
||||||
:id="result.mod_id"
|
:id="result.id"
|
||||||
:key="result.mod_id"
|
:key="result.id"
|
||||||
:name="result.title"
|
:name="result.title"
|
||||||
:description="result.description"
|
:description="result.description"
|
||||||
:created-at="result.published"
|
:created-at="result.published"
|
||||||
|
|||||||
Reference in New Issue
Block a user