feat(phase5): actions, repo settings, collaborators, webhooks, protections, orgs, packages, credentials, release management
- API: Actions (workflows/runs/jobs/logs getText), repo create/edit/delete, collaborators, webhooks, branch protections, orgs, packages, user keys/GPG keys/tokens, release create/edit/delete - hooks: features/actions, repositories/settings-queries, features/profile - screens: Actions + run detail (expandable job logs), RepoSettings, Collaborators, Webhooks, Protections, CreateRepo, Organizations, OrgRepos, Packages, Credentials, ReleaseCompose; releases list/detail management - navigation + i18n (en/nl) wired for all new screens
This commit is contained in:
1 parent
5e8c9492b3
commit
fa1ebc9184
30 files changed
+3001
-9
No files matched your search
@@ -2,6 +2,8 @@ import Constants from 'expo-constants';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Alert, Linking, StyleSheet, Switch, View } from 'react-native';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
||||
|
||||
import { Screen } from '@/components/layout/screen';
|
||||
import { AppText } from '@/components/ui/app-text';
|
||||
@@ -29,6 +31,7 @@ const GITEA_HOME_URL = 'https://gitea.com';
|
||||
/** App settings: appearance, language, security, notifications, data, about. */
|
||||
export function SettingsScreen(_props: Props) {
|
||||
const navigation = useRootNavigation();
|
||||
const stackNavigation = useNavigation<NativeStackNavigationProp<SettingsStackParamList>>();
|
||||
const { t } = useTranslation();
|
||||
const { colors } = useTheme();
|
||||
|
||||
@@ -190,6 +193,28 @@ export function SettingsScreen(_props: Props) {
|
||||
</Card>
|
||||
</Section>
|
||||
|
||||
{/* Account data */}
|
||||
<Section title={t('settings.accountData')}>
|
||||
<Card padded={false} variant="flat">
|
||||
<ListItem
|
||||
leadingIcon="people"
|
||||
title={t('organizations.title')}
|
||||
onPress={() => stackNavigation.navigate('Organizations')}
|
||||
/>
|
||||
<ListItem
|
||||
leadingIcon="package"
|
||||
title={t('packages.title')}
|
||||
onPress={() => stackNavigation.navigate('Packages')}
|
||||
/>
|
||||
<ListItem
|
||||
leadingIcon="lock"
|
||||
title={t('credentials.title')}
|
||||
onPress={() => stackNavigation.navigate('Credentials')}
|
||||
divider={false}
|
||||
/>
|
||||
</Card>
|
||||
</Section>
|
||||
|
||||
{/* About */}
|
||||
<Section title={t('settings.about')}>
|
||||
<Card padded={false} variant="flat">
|
||||
|
||||
Reference in new issue
Block a user