diff --git a/assets/styles/global.scss b/assets/styles/global.scss
index e9ad6a511..763dfb88e 100644
--- a/assets/styles/global.scss
+++ b/assets/styles/global.scss
@@ -71,6 +71,9 @@ html {
--color-badge-yellow-text: #755920;
--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-header-underline: var(--color-tooltip-text);
--color-hr: var(--color-text);
@@ -149,6 +152,9 @@ html {
--color-badge-yellow-text: #dba22d;
--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-header-underline: var(--color-tooltip-text);
--color-hr: var(--color-text);
diff --git a/components/ui/ProjectCard.vue b/components/ui/ProjectCard.vue
index 8ffe88a00..6f5a9a94a 100644
--- a/components/ui/ProjectCard.vue
+++ b/components/ui/ProjectCard.vue
@@ -56,7 +56,11 @@
{{ description }}
-
+
diff --git a/components/ui/search/Categories.vue b/components/ui/search/Categories.vue
index 18fc965a5..961cdeef3 100644
--- a/components/ui/search/Categories.vue
+++ b/components/ui/search/Categories.vue
@@ -18,12 +18,20 @@ export default {
return []
},
},
+ type: {
+ type: String,
+ required: true,
+ },
},
computed: {
categoriesFiltered() {
return this.$tag.categories
.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)
+ )
},
},
}
diff --git a/layouts/default.vue b/layouts/default.vue
index 4e1f31956..e98891fff 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -13,9 +13,9 @@
Mods
-
+
@@ -505,6 +505,18 @@ export default {
a.tab {
padding: 0;
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;
+ }
}
}
}
diff --git a/middleware/analytics.js b/middleware/analytics.js
index e54b72fc1..cb13c4bed 100644
--- a/middleware/analytics.js
+++ b/middleware/analytics.js
@@ -1,4 +1,6 @@
export default function (context) {
+ // Temporary disable analytics
+ /*
if (process.client && context.from.path === context.route.path) {
return
}
@@ -19,4 +21,5 @@ export default function (context) {
console.error('An error occurred while registering the visit: ', e)
})
})
+ */
}
diff --git a/nuxt.config.js b/nuxt.config.js
index e5b172508..a166910d9 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -228,7 +228,7 @@ export default {
** See https://axios.nuxtjs.org/options
*/
axios: {
- baseURL: 'https://staging-api.modrinth.com/v2/',
+ baseURL: 'https://api.modrinth.com/v2/',
headers: {
common: {
Accept: 'application/json',
diff --git a/package-lock.json b/package-lock.json
index 42e3f7302..74a244b53 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
+ "name": "knossos",
"version": "1.0.0",
"dependencies": {
"@nuxtjs/axios": "^5.13.1",
diff --git a/pages/_type/_id.vue b/pages/_type/_id.vue
index 00f0a57f6..1e97f5525 100644
--- a/pages/_type/_id.vue
+++ b/pages/_type/_id.vue
@@ -71,7 +71,11 @@
{{ project.description }}
-
+
{{ $formatNumber(project.downloads) }}
diff --git a/pages/search.vue b/pages/search.vue
index 3deaec34d..de3ad64dc 100644
--- a/pages/search.vue
+++ b/pages/search.vue
@@ -141,6 +141,28 @@
+
Search
@@ -602,6 +624,19 @@ export default {
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 {
display: flex;
flex-direction: row;