Files
gitea-native/src/navigation/settings-navigator.tsx
T
JustZoe101 587bf732b5 feat: release asset upload, transfer, Actions secrets/variables/artifacts, admin, teams/projects, file search, reactions, attachments, package version delete
- client: multipart postForm; expo-document-picker + react-native-webview deps
- release assets: upload (DocumentPicker) and delete; run artifacts list
- repository transfer; Actions secrets + variables management screen
- admin (users/orgs/repos) screen gated on is_admin
- org teams, repo projects (read-only); find-file via recursive git tree
- issue reactions toggle and attachments list; package version delete
- endpoint tests (126 total)
2026-10-09 18:40:08 +02:00

72 lines
2.5 KiB
TypeScript

import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useTranslation } from 'react-i18next';
import { CredentialsScreen } from '@/features/profile/screens/credentials-screen';
import { CreateOrgScreen } from '@/features/profile/screens/create-org-screen';
import { AdminScreen } from '@/features/profile/screens/admin-screen';
import { OrgReposScreen } from '@/features/profile/screens/org-repos-screen';
import { OrgTeamsScreen } from '@/features/profile/screens/org-teams-screen';
import { OrganizationsScreen } from '@/features/profile/screens/organizations-screen';
import { PackagesScreen } from '@/features/profile/screens/packages-screen';
import { ProfileScreen } from '@/features/profile/screens/profile-screen';
import { SettingsScreen } from '@/features/settings/screens/settings-screen';
import { useStackScreenOptions } from '@/navigation/header-options';
import type { SettingsStackParamList } from '@/navigation/types';
const Stack = createNativeStackNavigator<SettingsStackParamList>();
export function SettingsNavigator() {
const { t } = useTranslation();
const screenOptions = useStackScreenOptions();
return (
<Stack.Navigator screenOptions={screenOptions}>
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{ title: t('settings.title') }}
/>
<Stack.Screen
name="Organizations"
component={OrganizationsScreen}
options={{ title: t('organizations.title') }}
/>
<Stack.Screen
name="OrgRepos"
component={OrgReposScreen}
options={({ route }) => ({ title: route.params.org })}
/>
<Stack.Screen
name="Packages"
component={PackagesScreen}
options={{ title: t('packages.title') }}
/>
<Stack.Screen
name="Credentials"
component={CredentialsScreen}
options={{ title: t('credentials.title') }}
/>
<Stack.Screen
name="Profile"
component={ProfileScreen}
options={{ title: t('profile.title') }}
/>
<Stack.Screen
name="CreateOrg"
component={CreateOrgScreen}
options={{ title: t('organizations.create') }}
/>
<Stack.Screen
name="OrgTeams"
component={OrgTeamsScreen}
options={{ title: t('organizations.teams') }}
/>
<Stack.Screen
name="Admin"
component={AdminScreen}
options={{ title: t('admin.title') }}
/>
</Stack.Navigator>
);
}