mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-19 11:37:28 +02:00
Version 3.0.365
This commit is contained in:
parent
0b9196a78d
commit
0eb7362cb8
64 changed files with 1423 additions and 1045 deletions
|
@ -4,7 +4,8 @@
|
|||
x:Class="TINK.View.Settings.SettingsPage"
|
||||
xmlns:conv="clr-namespace:TINK.View.Settings;assembly=TINKLib"
|
||||
xmlns:account="clr-namespace:TINK.Model.User.Account;assembly=TINKLib"
|
||||
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib">
|
||||
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
||||
BackgroundColor="{DynamicResource background-color}">
|
||||
|
||||
<ContentPage.Resources>
|
||||
<conv:BackendPermissionsToVisibleConverter x:Key="Frame_Converter"/>
|
||||
|
@ -19,6 +20,7 @@
|
|||
<conv:PermissionToVisibleConverter x:Key="ShowDiagnostics_Converter" VisibleFlag="{x:Static account:Permissions.ShowDiagnostics}"/>
|
||||
<conv:PermissionToVisibleConverter x:Key="SwitchSiteCaching_Converter" VisibleFlag="{x:Static account:Permissions.SwitchNoSiteCaching}"/>
|
||||
</ContentPage.Resources>
|
||||
|
||||
<Shell.TitleView>
|
||||
<Grid ColumnDefinitions="Auto, 1*">
|
||||
<Image Style="{StaticResource Image-Navbar}"/>
|
||||
|
@ -26,224 +28,269 @@
|
|||
Text="{x:Static resources:AppResources.MarkingSettings}"/>
|
||||
</Grid>
|
||||
</Shell.TitleView>
|
||||
<ContentPage.Content>
|
||||
<ScrollView>
|
||||
<Frame>
|
||||
<StackLayout>
|
||||
<!--
|
||||
<Button Text="Feedback" Clicked="OnFeedbackClickedAsync"/>
|
||||
-->
|
||||
<Frame>
|
||||
<StackLayout>
|
||||
<Label Text="{x:Static resources:AppResources.MarkingCenterMapToCurrentPos}"/>
|
||||
<Switch IsToggled="{Binding CenterMapToCurrentLocation}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<!-- Filter on view TINK/ Konrad -->
|
||||
<Frame IsVisible="{Binding IsGroupFilterVisible}">
|
||||
<StackLayout>
|
||||
<Label Text="{x:Static resources:AppResources.MarkingShowHideBikesOfType}"/>
|
||||
<ListView
|
||||
|
||||
<ContentPage.Content>
|
||||
|
||||
<ScrollView>
|
||||
|
||||
<StackLayout>
|
||||
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,10,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<Label Text="{x:Static resources:AppResources.MarkingCenterMapToCurrentPos}"/>
|
||||
<Switch Grid.Column="1" IsToggled="{Binding CenterMapToCurrentLocation}"/>
|
||||
</Grid>
|
||||
</Frame>
|
||||
|
||||
<!-- Filter on view TINK/ Konrad -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding IsGroupFilterVisible}">
|
||||
|
||||
<StackLayout>
|
||||
<Label Text="{x:Static resources:AppResources.MarkingShowHideBikesOfType}"/>
|
||||
<ListView
|
||||
HasUnevenRows="True"
|
||||
HeightRequest="120"
|
||||
x:Name="Filters">
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ViewCell IsEnabled="{Binding IsEnabled}">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label Text="{Binding Text}"/>
|
||||
<Switch IsToggled="{Binding IsActivated}"/>
|
||||
</StackLayout>
|
||||
</ViewCell>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<!-- Picker to selct startup page -->
|
||||
<Frame IsVisible="False">
|
||||
<StackLayout>
|
||||
<Label Text="{x:Static resources:AppResources.MarkingStartupPage}"/>
|
||||
<Picker
|
||||
ItemsSource="{Binding StartupSettings.ServicesTextList}"
|
||||
SelectedItem="{Binding StartupSettings.ActiveText}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<!-- Themes -->
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchTheme_Converter}}">
|
||||
<StackLayout>
|
||||
<ListView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<ViewCell IsEnabled="{Binding IsEnabled}">
|
||||
<Grid ColumnDefinitions="*,Auto">
|
||||
<Label Text="{Binding Text}"/>
|
||||
<Switch Grid.Column="1" IsToggled="{Binding IsActivated}"/>
|
||||
</Grid>
|
||||
</ViewCell>
|
||||
</DataTemplate>
|
||||
</ListView.ItemTemplate>
|
||||
</ListView>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<Label
|
||||
<!-- Themes -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchTheme_Converter}}">
|
||||
<StackLayout>
|
||||
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchTheme_Converter}}"
|
||||
Text="Theme"/>
|
||||
<Picker
|
||||
<Picker
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchTheme_Converter}}"
|
||||
ItemsSource="{Binding Themes.ServicesTextList}"
|
||||
SelectedItem="{Binding Themes.ActiveText}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource Frame_Converter}}">
|
||||
<!-- COPRI server selection -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- COPRI server selection -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource Frame_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickCopriServer_Converter}}"
|
||||
Text="{Binding CopriServerUriList.CopriServerUriDescription}"/>
|
||||
<Picker
|
||||
<Picker
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickCopriServer_Converter}}"
|
||||
ItemsSource="{Binding CopriServerUriList.ServerTextList}"
|
||||
SelectedItem="{Binding CopriServerUriList.NextActiveServerText}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManagePolling_Converter}}"
|
||||
Text="{Binding Polling.PollingText}"/>
|
||||
<Switch
|
||||
<Switch
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManagePolling_Converter}}"
|
||||
IsToggled="{Binding Polling.IsActivated}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManagePolling_Converter}}"
|
||||
Text="{Binding Polling.PeriodeTotalSecondsText}"/>
|
||||
<Stepper
|
||||
<Stepper
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManagePolling_Converter}}"
|
||||
Minimum="5"
|
||||
Increment="5"
|
||||
Maximum="600"
|
||||
IsEnabled="{Binding Polling.IsActivated}"
|
||||
Value="{Binding Polling.PeriodeTotalSeconds}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManageCopriCacheExpiration_Converter}}"
|
||||
Text="Time after which COPRI-cache expires [s]"/>
|
||||
<Slider
|
||||
<Slider
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManageCopriCacheExpiration_Converter}}"
|
||||
x:Name="expiresAfter"
|
||||
Minimum="0"
|
||||
Maximum="15"
|
||||
Value="{Binding ExpiresAfterTotalSeconds}"/>
|
||||
<Entry
|
||||
<Entry
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ManageCopriCacheExpiration_Converter}}"
|
||||
IsReadOnly="True"
|
||||
Text="{Binding ExpiresAfterTotalSecondsText}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}">
|
||||
<!-- Lock control -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Lock control -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}"
|
||||
Text="{x:Static resources:AppResources.MarkingLockControl}" />
|
||||
<Picker
|
||||
<Picker
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}"
|
||||
ItemsSource="{Binding LocksServices.Services.ServicesTextList}"
|
||||
SelectedItem="{Binding LocksServices.Services.ActiveText}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}"
|
||||
Text="Bluetooth Connect Timeout [sec]"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}"
|
||||
Text="{Binding LocksServices.ConnectTimeoutSecText}"/>
|
||||
<Stepper
|
||||
<Stepper
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLockServiceImplementation_Converter}}"
|
||||
Minimum="0.1"
|
||||
Increment="0.25"
|
||||
Maximum="60"
|
||||
Value="{Binding LocksServices.ConnectTimeoutSec}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLocationServiceImplementation_Converter}}">
|
||||
<!-- Geolocation -->
|
||||
<StackLayout>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<Label
|
||||
<!-- Geolocation -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLocationServiceImplementation_Converter}}">
|
||||
<StackLayout>
|
||||
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLocationServiceImplementation_Converter}}"
|
||||
Text="{x:Static resources:AppResources.MarkingGeolocationControl}" />
|
||||
<Picker
|
||||
<Picker
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLocationServiceImplementation_Converter}}"
|
||||
ItemsSource="{Binding GeolocationServices.ServicesTextList}"
|
||||
SelectedItem="{Binding GeolocationServices.ActiveText}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchSiteCaching_Converter}}">
|
||||
<!-- Web site caching -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Web site caching -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchSiteCaching_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchSiteCaching_Converter}}"
|
||||
Text="{x:Static resources:AppResources.MarkingWebsiteCaching}"/>
|
||||
<Switch
|
||||
<Switch
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource SwitchSiteCaching_Converter}}"
|
||||
IsToggled="{Binding IsSiteCachingOnDisplayValue}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}">
|
||||
<!-- Logging -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Logging -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}"
|
||||
Text="{x:Static resources:AppResources.MarkingLoggingLevel}" />
|
||||
<Picker
|
||||
<Picker
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}"
|
||||
ItemsSource="{Binding LoggingLevels}"
|
||||
SelectedItem="{Binding SelectedLoggingLevel}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}"
|
||||
Text="Logdatei in externen Pfad schreiben"/>
|
||||
<Switch
|
||||
<Switch
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource PickLoggingLevel_Converter}}"
|
||||
IsToggled="{Binding LogToExternalFolderDisplayValue}"
|
||||
IsEnabled="{Binding IsLogToExternalFolderVisible}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ReportLevel_Converter}}">
|
||||
<!-- Logging -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Logging -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ReportLevel_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ReportLevel_Converter}}"
|
||||
Text="{x:Static resources:AppResources.MarkingVerboseErrorMessage}" />
|
||||
<Switch
|
||||
<Switch
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ReportLevel_Converter}}"
|
||||
IsToggled="{Binding IsReportLevelVerbose}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Frame
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}">
|
||||
<!-- Display of parameters -->
|
||||
<StackLayout>
|
||||
<Label
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Display of parameters -->
|
||||
<Frame
|
||||
Padding="10"
|
||||
Margin="0,5,0,5"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}">
|
||||
<StackLayout>
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
Text="Device Identifier" />
|
||||
<Entry
|
||||
<Entry
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
IsEnabled="false"
|
||||
Text="{Binding DeviceIdentifier}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
Text="Copri Sitzungkeks"/>
|
||||
<Entry
|
||||
<Entry
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
IsEnabled="false"
|
||||
Text="{Binding SessionCookie}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
Text="Interner Pfad (Einstell./ ggf. Logging)"/>
|
||||
<Editor
|
||||
<Editor
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
IsEnabled="false"
|
||||
Text="{Binding InternalPath}"/>
|
||||
<Label
|
||||
<Label
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
Text="Externer Pfad (Mock/ ggf. Logging)"/>
|
||||
<Editor
|
||||
<Editor
|
||||
IsVisible="{Binding DebugLevel, Converter={StaticResource ShowDiagnostics_Converter}}"
|
||||
IsEnabled="false"
|
||||
Text="{Binding ExternalPath}"/>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
</ScrollView>
|
||||
</ContentPage.Content>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</ContentPage.Content>
|
||||
|
||||
</ContentPage>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue