-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from notessentialsite/attributions-v1
Hell yeah lets merge this mostly okay PR
- Loading branch information
Showing
8 changed files
with
201 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="flex flex-col flex-wrap gap-6 pb-8"> | ||
<span | ||
class="text-[var(--big-text-color)] italic font-['Geist Mono'] text-[4rem]" | ||
> | ||
<span class="font-[250] tracking wider">{{ title }}</span> | ||
</span> | ||
<span class="text-2xl">{{ subtitle }} </span> | ||
|
||
<div v-for="(info, title) in data" class="text-xl indent-4"> | ||
<span v-if="numbered"> {{ title + 1 }}. </span> | ||
<span v-else class="font-bold select-none"> • </span> | ||
<span v-if="!URLRegex.test(info)"> | ||
{{ info }} | ||
</span> | ||
<span v-else v-html="info.replace(URLRegex, getLinksFromText)" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const URLRegex = new RegExp( | ||
/(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])/, | ||
) | ||
const getLinksFromText = function (text) { | ||
const newText = `<a class="text-[var(--brand-blue)]" href="${text}">${text}</a>` | ||
return newText | ||
} | ||
const props = defineProps({ | ||
data: Object, | ||
title: String, | ||
subtitle: String, | ||
numbered: Boolean, | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,47 @@ | ||
import enUS from "./lang/en-US.json" | ||
//If you take this out of alphabetical order I will eat you | ||
|
||
import arSA from "./lang/ar-SA.json" | ||
import deDE from "./lang/de-DE.json" | ||
import enPT from "./lang/en-PT.json" | ||
import lolUS from "./lang/lol-US.json" | ||
import enUD from "./lang/en-UD.json" | ||
import ruRU from "./lang/ru-RU.json" | ||
import deDE from "./lang/de-DE.json" | ||
import enUS from "./lang/en-US.json" | ||
import esES from "./lang/es-ES.json" | ||
import plPL from "./lang/pl-PL.json" | ||
import huHU from "./lang/hu-HU.json" | ||
import jaJP from "./lang/ja-JP.json" | ||
import lolUS from "./lang/lol-US.json" | ||
import noNO from "./lang/no-NO.json" | ||
import ptPT from "./lang/pt-PT.json" | ||
import plPL from "./lang/pl-PL.json" | ||
import ptBR from "./lang/pt-BR.json" | ||
import ptPT from "./lang/pt-PT.json" | ||
import ruRU from "./lang/ru-RU.json" | ||
import ukUA from "./lang/uk-UA.json" | ||
import huHU from "./lang/hu-HU.json" | ||
import viVN from "./lang/vi-VN.json" | ||
import zhTW from "./lang/zh-TW.json" | ||
import zhCN from "./lang/zh-CN.json" | ||
import zhTW from "./lang/zh-TW.json" | ||
|
||
export default defineI18nConfig(() => ({ | ||
legacy: false, | ||
fallbackLocale: "en-US", | ||
locale: "en-US", | ||
messages: { | ||
"en-US": enUS, | ||
//If you take this out of alphabetical order I will eat you again | ||
"ar-SA": arSA, | ||
"de-DE": deDE, | ||
"en-PT": enPT, | ||
"en-UD": enUD, | ||
"en-LOL": lolUS, | ||
"ru-RU": ruRU, | ||
"de-DE": deDE, | ||
"en-US": enUS, | ||
"es-ES": esES, | ||
"pl-PL": plPL, | ||
"hu-HU": huHU, | ||
"ja-JP": jaJP, | ||
"en-LOL": lolUS, | ||
"no-NO": noNO, | ||
"pt-PT": ptPT, | ||
"pl-PL": plPL, | ||
"pt-BR": ptBR, | ||
"pt-PT": ptPT, | ||
"ru-RU": ruRU, | ||
"uk-UA": ukUA, | ||
"hu-HU": huHU, | ||
"vi-VN": viVN, | ||
"zh-TW": zhTW, | ||
"zh-CN": zhCN, | ||
"zh-TW": zhTW, | ||
}, | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<template> | ||
<div class="flex flex-col gap-8"> | ||
<PageHero | ||
:title="$t('attributions.hero')" | ||
:sub-title="$t('attributions.subtitle')" | ||
/> | ||
<TitledSection | ||
v-if="showAttributions" | ||
v-for="section in sections" | ||
:data="section.data" | ||
:title="section.title" | ||
:subtitle="section.subtitle" | ||
/> | ||
<span class="text-xl flex flex-row gap-2 items-center flex-wrap" | ||
>{{ $t("attributions.end") }} <LucideHeart stroke="var(--brand-red)" /> | ||
</span> | ||
<span class="text-xl flex flex-row gap-2 items-center flex-wrap" | ||
>{{ $t("attributions.help") }} | ||
</span> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
const showAttributions = ref(false) | ||
if (process.client) { | ||
onMounted(() => { | ||
showAttributions.value = true | ||
}) | ||
} | ||
const locale = useI18n().locale.value | ||
const messages = JSON.parse( | ||
JSON.stringify(useI18n().messages.value[locale].attributions), | ||
) | ||
const titles = messages.titles | ||
const descs = messages.subtitles | ||
const sections = { | ||
Translators: { | ||
title: titles.translators, | ||
subtitle: descs.translators, | ||
data: [ | ||
"cutiegin", | ||
"ThinkSeal", | ||
"WaffleIBOT", | ||
"Andre_601", | ||
"Nitrrine", | ||
"X-Cloudy-X", | ||
"Felix14-v2", | ||
"FlyMode", | ||
"notlin4", | ||
"TheClashFruit", | ||
"Lupancham", | ||
"X1l0b3n", | ||
"egorro", | ||
"TheUran", | ||
"KTrain5369", | ||
"Blryface", | ||
], | ||
}, | ||
Information: { | ||
title: titles.information_writers, | ||
subtitle: descs.information_writers, | ||
data: [ | ||
"Microcontrollers' Alternatives - https://alternatives.microcontrollers.dev/", | ||
"Essential's Privacy Policy - https://essential.gg/privacy-policy", | ||
], | ||
}, | ||
"Core Team": { | ||
title: titles.core, | ||
subtitle: descs.core, | ||
data: [ | ||
"Blryface (https://blurry.gay)", | ||
"WorldWidePixel (https://worldwidepixel.ca)", | ||
"KTrain (https://github.com/ktrain5369)", | ||
"Nitrrine (https://github.com/nitrrine)", | ||
], | ||
}, | ||
} | ||
useSeoMeta({ | ||
title: "Attributions", | ||
description: "The people who made Notessential possible.", | ||
ogImage: "/img/icon512.png", | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters