You've already forked AstralRinth
forked from didirus/AstralRinth
Modpack alpha release (#469)
This commit is contained in:
@@ -71,6 +71,9 @@ html {
|
|||||||
--color-badge-yellow-text: #755920;
|
--color-badge-yellow-text: #755920;
|
||||||
--color-badge-yellow-bg: #f7bb43;
|
--color-badge-yellow-bg: #f7bb43;
|
||||||
|
|
||||||
|
--color-warning-text: hsl(358, 57%, 20%);
|
||||||
|
--color-warning-bg: hsl(358, 57%, 80%);
|
||||||
|
|
||||||
--color-block-quote: var(--color-tooltip-bg);
|
--color-block-quote: var(--color-tooltip-bg);
|
||||||
--color-header-underline: var(--color-tooltip-text);
|
--color-header-underline: var(--color-tooltip-text);
|
||||||
--color-hr: var(--color-text);
|
--color-hr: var(--color-text);
|
||||||
@@ -149,6 +152,9 @@ html {
|
|||||||
--color-badge-yellow-text: #dba22d;
|
--color-badge-yellow-text: #dba22d;
|
||||||
--color-badge-yellow-bg: #f7bb43;
|
--color-badge-yellow-bg: #f7bb43;
|
||||||
|
|
||||||
|
--color-warning-text: hsl(358, 57%, 85%);
|
||||||
|
--color-warning-bg: hsl(358, 57%, 25%);
|
||||||
|
|
||||||
--color-block-quote: var(--color-code-bg);
|
--color-block-quote: var(--color-code-bg);
|
||||||
--color-header-underline: var(--color-tooltip-text);
|
--color-header-underline: var(--color-tooltip-text);
|
||||||
--color-hr: var(--color-text);
|
--color-hr: var(--color-text);
|
||||||
|
|||||||
@@ -56,7 +56,11 @@
|
|||||||
<p class="description">
|
<p class="description">
|
||||||
{{ description }}
|
{{ description }}
|
||||||
</p>
|
</p>
|
||||||
<Categories :categories="categories" class="right-categories" />
|
<Categories
|
||||||
|
:categories="categories"
|
||||||
|
:type="type"
|
||||||
|
class="right-categories"
|
||||||
|
/>
|
||||||
<div class="dates">
|
<div class="dates">
|
||||||
<div class="date">
|
<div class="date">
|
||||||
<CalendarIcon aria-hidden="true" />
|
<CalendarIcon aria-hidden="true" />
|
||||||
|
|||||||
@@ -18,12 +18,20 @@ export default {
|
|||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
categoriesFiltered() {
|
categoriesFiltered() {
|
||||||
return this.$tag.categories
|
return this.$tag.categories
|
||||||
.concat(this.$tag.loaders)
|
.concat(this.$tag.loaders)
|
||||||
.filter((x) => this.categories.includes(x.name))
|
.filter(
|
||||||
|
(x) =>
|
||||||
|
this.categories.includes(x.name) &&
|
||||||
|
(!x.project_type || x.project_type === this.type)
|
||||||
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
<NuxtLink to="/mods" class="tab">
|
<NuxtLink to="/mods" class="tab">
|
||||||
<span>Mods</span>
|
<span>Mods</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<!-- <NuxtLink to="/modpacks" class="tab">
|
<NuxtLink to="/modpacks" class="tab tab--alpha">
|
||||||
<span>Modpacks</span>
|
<span>Modpacks</span>
|
||||||
</NuxtLink>-->
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="column-grow user-outer" aria-label="Account links">
|
<section class="column-grow user-outer" aria-label="Account links">
|
||||||
@@ -505,6 +505,18 @@ export default {
|
|||||||
a.tab {
|
a.tab {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
&--alpha::after {
|
||||||
|
content: 'Alpha';
|
||||||
|
background-color: var(--color-warning-bg);
|
||||||
|
color: var(--color-warning-text);
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
margin-left: 0.4rem;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
export default function (context) {
|
export default function (context) {
|
||||||
|
// Temporary disable analytics
|
||||||
|
/*
|
||||||
if (process.client && context.from.path === context.route.path) {
|
if (process.client && context.from.path === context.route.path) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -19,4 +21,5 @@ export default function (context) {
|
|||||||
console.error('An error occurred while registering the visit: ', e)
|
console.error('An error occurred while registering the visit: ', e)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ export default {
|
|||||||
** See https://axios.nuxtjs.org/options
|
** See https://axios.nuxtjs.org/options
|
||||||
*/
|
*/
|
||||||
axios: {
|
axios: {
|
||||||
baseURL: 'https://staging-api.modrinth.com/v2/',
|
baseURL: 'https://api.modrinth.com/v2/',
|
||||||
headers: {
|
headers: {
|
||||||
common: {
|
common: {
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
|
|||||||
1
package-lock.json
generated
1
package-lock.json
generated
@@ -5,6 +5,7 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"name": "knossos",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/axios": "^5.13.1",
|
"@nuxtjs/axios": "^5.13.1",
|
||||||
|
|||||||
@@ -71,7 +71,11 @@
|
|||||||
<p class="description">
|
<p class="description">
|
||||||
{{ project.description }}
|
{{ project.description }}
|
||||||
</p>
|
</p>
|
||||||
<Categories :categories="project.categories" class="categories" />
|
<Categories
|
||||||
|
:categories="project.categories"
|
||||||
|
:type="project.project_type"
|
||||||
|
class="categories"
|
||||||
|
/>
|
||||||
<hr class="card-divider" />
|
<hr class="card-divider" />
|
||||||
<div class="stats">
|
<div class="stats">
|
||||||
<span class="stat">{{ $formatNumber(project.downloads) }}</span>
|
<span class="stat">{{ $formatNumber(project.downloads) }}</span>
|
||||||
|
|||||||
@@ -141,6 +141,28 @@
|
|||||||
</section>
|
</section>
|
||||||
</aside>
|
</aside>
|
||||||
<section class="normal-page__content">
|
<section class="normal-page__content">
|
||||||
|
<div v-if="projectType === 'modpack'" class="card warning">
|
||||||
|
Modpack support is currently in alpha, and you may encounter issues. Our
|
||||||
|
documentation includes instructions on
|
||||||
|
<a
|
||||||
|
href="https://docs.modrinth.com/docs/modpacks/playing_modpacks/"
|
||||||
|
target="_blank"
|
||||||
|
>playing modpacks</a
|
||||||
|
>
|
||||||
|
with
|
||||||
|
<a href="https://atlauncher.com/about" target="_blank">ATLauncher</a>
|
||||||
|
and <a href="https://multimc.org/" target="_blank">MultiMC</a>. Pack
|
||||||
|
creators can reference our documentation on
|
||||||
|
<a
|
||||||
|
href="https://docs.modrinth.com/docs/modpacks/creating_modpacks/"
|
||||||
|
target="_blank"
|
||||||
|
>creating modpacks</a
|
||||||
|
>. Join us on
|
||||||
|
<a href="https://rewrite.modrinth.com/discord" target="_blank"
|
||||||
|
>Discord</a
|
||||||
|
>
|
||||||
|
for support.
|
||||||
|
</div>
|
||||||
<div class="card search-controls">
|
<div class="card search-controls">
|
||||||
<div class="iconified-input">
|
<div class="iconified-input">
|
||||||
<label class="hidden" for="search">Search</label>
|
<label class="hidden" for="search">Search</label>
|
||||||
@@ -602,6 +624,19 @@ export default {
|
|||||||
margin: 1.5rem 0 0.5rem 0;
|
margin: 1.5rem 0 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.warning {
|
||||||
|
padding: 1.5rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
background-color: var(--color-warning-bg);
|
||||||
|
color: var(--color-warning-text);
|
||||||
|
|
||||||
|
a {
|
||||||
|
/* Uses active color to increase contrast */
|
||||||
|
color: var(--color-link-active);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.search-controls {
|
.search-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
Reference in New Issue
Block a user