mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 00:53:28 +00:00
Merge remote-tracking branch 'origin' into mob-106-cloud-sync-for-mobile
This commit is contained in:
commit
6984d4d7bb
|
@ -2,6 +2,7 @@ import { useNavigation, useRoute } from '@react-navigation/native';
|
|||
import { AppLogo, BloomOne } from '@sd/assets/images';
|
||||
import SdMobIntro from '@sd/assets/videos/SdMobIntro.mp4';
|
||||
import { ResizeMode, Video } from 'expo-av';
|
||||
import * as Haptics from 'expo-haptics';
|
||||
import { Image } from 'expo-image';
|
||||
import { MotiView } from 'moti';
|
||||
import { CaretLeft } from 'phosphor-react-native';
|
||||
|
@ -111,7 +112,13 @@ const GetStartedScreen = ({ navigation }: OnboardingStackScreenProps<'GetStarted
|
|||
</FadeInUpAnimation>
|
||||
{/* Get Started Button */}
|
||||
<FadeInUpAnimation delay={1200} style={tw`mt-8`}>
|
||||
<AnimatedButton variant="accent" onPress={() => navigation.push('NewLibrary')}>
|
||||
<AnimatedButton
|
||||
variant="accent"
|
||||
onPress={() => {
|
||||
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
||||
navigation.push('NewLibrary');
|
||||
}}
|
||||
>
|
||||
<Text style={tw`text-center text-base font-medium text-ink`}>Get Started</Text>
|
||||
</AnimatedButton>
|
||||
</FadeInUpAnimation>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import * as Haptics from 'expo-haptics';
|
||||
import { Controller } from 'react-hook-form';
|
||||
import { Alert, Text, View } from 'react-native';
|
||||
import { useOnboardingContext } from '~/components/context/OnboardingContext';
|
||||
|
@ -12,7 +13,10 @@ import { OnboardingContainer, OnboardingDescription, OnboardingTitle } from './G
|
|||
const NewLibraryScreen = ({ navigation }: OnboardingStackScreenProps<'NewLibrary'>) => {
|
||||
const form = useOnboardingContext().forms.useForm('NewLibrary');
|
||||
|
||||
const handleNewLibrary = form.handleSubmit(() => navigation.navigate('Privacy'));
|
||||
const handleNewLibrary = form.handleSubmit(() => {
|
||||
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
||||
navigation.navigate('Privacy');
|
||||
});
|
||||
|
||||
const handleImport = () => {
|
||||
Alert.alert('TODO');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import * as Haptics from 'expo-haptics';
|
||||
import { ArrowRight } from 'phosphor-react-native';
|
||||
import React from 'react';
|
||||
import { Controller } from 'react-hook-form';
|
||||
|
@ -80,7 +81,15 @@ const PrivacyScreen = () => {
|
|||
)}
|
||||
/>
|
||||
</View>
|
||||
<Button variant="accent" size="sm" onPress={form.handleSubmit(submit)} style={tw`mt-6`}>
|
||||
<Button
|
||||
variant="accent"
|
||||
size="sm"
|
||||
onPress={() => {
|
||||
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
||||
form.handleSubmit(submit)();
|
||||
}}
|
||||
style={tw`mt-6`}
|
||||
>
|
||||
<Text style={tw`text-center text-base font-medium text-ink`}>Continue</Text>
|
||||
</Button>
|
||||
<Pressable
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
This extension must first register an indexer context to prevent the indexer from scanning the photo library
|
||||
|
||||
```rust
|
||||
struct IndexerContext {
|
||||
key: String,
|
||||
is_dir: bool,
|
||||
extension: Option<String>,
|
||||
must_contain: Vec<String>,
|
||||
always_ignored: Option<String>
|
||||
scan: bool,
|
||||
}
|
||||
```
|
||||
|
||||
```rust
|
||||
core.register_context(IndexerContext {
|
||||
key: "apple-photo-library",
|
||||
is_dir: false,
|
||||
extension: ".photoslibrary",
|
||||
must_contain: vec!["database", "originals"],
|
||||
always_ignored: None,
|
||||
scan: false, // apple-photos extension takes care of scan
|
||||
});
|
||||
|
||||
core.register_context(IndexerContext {
|
||||
key: "github-repository",
|
||||
is_dir: true,
|
||||
extension: None,
|
||||
must_contain: vec![".git"],
|
||||
always_ignored: Some("node_modules", "target")
|
||||
scan: true,
|
||||
});
|
||||
```
|
||||
|
||||
For Apple Photos we need:
|
||||
|
||||
- Hidden/Favorite items
|
||||
- Live photo support
|
||||
- Original creation date
|
||||
- Edited photos
|
||||
- Albums
|
|
@ -1 +0,0 @@
|
|||
|
Loading…
Reference in a new issue