You've already forked AstralRinth
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
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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user