Added mise tools manager and modrinth news filter
Prepare pnpm cache / prepare (push) Has been cancelled
AstralRinth App build / Build (x86_64-pc-windows-msvc, windows-latest) (push) Has been cancelled
AstralRinth App build / Build (x86_64-unknown-linux-gnu, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-06-17 02:19:16 +03:00
parent a4fad0c1e2
commit 2e28aef1a5
3 changed files with 45 additions and 0 deletions
+35
View File
@@ -117,6 +117,25 @@ const route = useRoute()
const APP_LEFT_NAV_WIDTH = '4rem'
const APP_SIDEBAR_WIDTH = 300
const INTERCOM_BUBBLE_DEFAULT_PADDING = 20
// This code line modified by AstralRinth
const filteredNewsPhrases = [
"LGBT",
"LGBTQ",
"LGBTQ+",
"LGBTQIA+",
"gay",
"lesbian",
"bisexual",
"pansexual",
"asexual",
"aromantic",
"transgender",
"nonbinary",
"intersex",
"homosexual",
"homosexuality",
"pride",
];
const credentials = ref()
const sidebarToggled = ref(true)
const unsubscribeSidebarToggle = themeStore.$subscribe(() => {
@@ -288,6 +307,21 @@ const messages = defineMessages({
},
})
// This code line modified by AstralRinth
function shouldHideNewsArticle(article) {
const haystack = [
article?.title,
article?.summary,
article?.description,
article?.excerpt,
]
.filter(Boolean)
.join(' ')
.toLowerCase()
return filteredNewsPhrases.some((phrase) => haystack.includes(phrase.toLowerCase()))
}
// This code is modified by AstralRinth
async function setupApp() {
// This code line modified by AstralRinth
@@ -396,6 +430,7 @@ async function setupApp() {
.then((res) => {
if (res && res.articles) {
news.value = res.articles
.filter((article) => !shouldHideNewsArticle(article))
.map((article) => ({
...article,
path: article.link,
+7
View File
@@ -68,6 +68,13 @@ export default defineConfig({
},
}),
],
optimizeDeps: {
exclude: [
'vue',
'pinia',
'vue-router',
],
},
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
// prevent vite from obscuring rust errors
+3
View File
@@ -0,0 +1,3 @@
[tools]
node = "24.16.0"
pnpm = "10.33.2"