settings(ui): added a link to the codeberg
This commit is contained in:
parent
2f81d3a41f
commit
49221175ef
5 changed files with 10 additions and 1 deletions
BIN
src/assets/icons/codeberg-logo_icon_white.png
Normal file
BIN
src/assets/icons/codeberg-logo_icon_white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB |
|
|
@ -16,6 +16,7 @@
|
|||
"CLEAR_DATA": "Clear data",
|
||||
"CLEAR_DATA_FAILED": "Failed to clear data for {name}",
|
||||
"CLEAR_DATA_SUCCESSFUL": "Cleared data for {name}",
|
||||
"CODEBERG": "Codeberg",
|
||||
"CODENAME": "Codename",
|
||||
"COMMAND_DEBUG_DESC": "Send Kettu debug info.",
|
||||
"COMMAND_DEBUG_OPT_EPHEMERALLY": "Send debug info ephemerally.",
|
||||
|
|
@ -113,7 +114,7 @@
|
|||
"UH_OH": "Uh Oh",
|
||||
"UNINSTALL": "Uninstall",
|
||||
"UNINSTALL_TITLE": "Uninstall {title}",
|
||||
"URL_PLACEHOLDER": "https://github.com/C0C0B01/Kettu",
|
||||
"URL_PLACEHOLDER": "https://codeberg.org/cocobo1/Kettu",
|
||||
"VERSION": "Version",
|
||||
"VERSIONS": "Versions"
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ import { DISCORD_SERVER, GITHUB } from "@lib/utils/constants";
|
|||
import { NavigationNative } from "@metro/common";
|
||||
import { AlertActionButton, AlertActions, AlertModal, Stack, TableRow, TableRowGroup, TableSwitchRow } from "@metro/common/components";
|
||||
import { Linking, ScrollView } from "react-native";
|
||||
import CodebergIcon from "@assets/icons/codeberg-logo_icon_white.png";
|
||||
|
||||
export default function General() {
|
||||
useProxy(settings);
|
||||
|
|
@ -50,6 +51,12 @@ export default function General() {
|
|||
icon={<TableRow.Icon source={findAssetId("Discord")!} />}
|
||||
onPress={() => Linking.openURL(DISCORD_SERVER)}
|
||||
/>
|
||||
<TableRow
|
||||
arrow={true}
|
||||
label={Strings.CODEBERG}
|
||||
icon={<TableRow.Icon source={{ uri: CodebergIcon}} />}
|
||||
onPress={() => Linking.openURL(CODEBERG)}
|
||||
/>
|
||||
<TableRow
|
||||
arrow={true}
|
||||
label={Strings.GITHUB}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
export const DISCORD_SERVER = "https://discord.gg/6cN7wKa8gp";
|
||||
export const CODEBERG = "https://codeberg.org/cocobo1/Kettu";
|
||||
export const GITHUB = "https://github.com/C0C0B01/Kettu";
|
||||
export const HTTP_REGEX = /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/;
|
||||
export const HTTP_REGEX_MULTI = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&//=]*)/g;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue