mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-23 16:27:51 +01:00
stubbed out tools page and moved sync to settings
This commit is contained in:
parent
f1ef1a0ce0
commit
94f7f715e6
@ -109,6 +109,7 @@
|
|||||||
<Compile Include="Pages\MainPage.cs" />
|
<Compile Include="Pages\MainPage.cs" />
|
||||||
<Compile Include="Pages\SettingsEditFolderPage.cs" />
|
<Compile Include="Pages\SettingsEditFolderPage.cs" />
|
||||||
<Compile Include="Pages\LockFingerprintPage.cs" />
|
<Compile Include="Pages\LockFingerprintPage.cs" />
|
||||||
|
<Compile Include="Pages\ToolsPage.cs" />
|
||||||
<Compile Include="Pages\SyncPage.cs" />
|
<Compile Include="Pages\SyncPage.cs" />
|
||||||
<Compile Include="Pages\SettingsPage.cs" />
|
<Compile Include="Pages\SettingsPage.cs" />
|
||||||
<Compile Include="Pages\SettingsListFoldersPage.cs" />
|
<Compile Include="Pages\SettingsListFoldersPage.cs" />
|
||||||
|
@ -15,7 +15,7 @@ namespace Bit.App.Pages
|
|||||||
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
|
var settingsNavigation = new ExtendedNavigationPage(new SettingsPage());
|
||||||
var favoritesNavigation = new ExtendedNavigationPage(new VaultListSitesPage(true));
|
var favoritesNavigation = new ExtendedNavigationPage(new VaultListSitesPage(true));
|
||||||
var vaultNavigation = new ExtendedNavigationPage(new VaultListSitesPage(false));
|
var vaultNavigation = new ExtendedNavigationPage(new VaultListSitesPage(false));
|
||||||
var syncNavigation = new ExtendedNavigationPage(new SyncPage());
|
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
||||||
|
|
||||||
favoritesNavigation.Title = AppResources.Favorites;
|
favoritesNavigation.Title = AppResources.Favorites;
|
||||||
favoritesNavigation.Icon = "star";
|
favoritesNavigation.Icon = "star";
|
||||||
@ -23,15 +23,15 @@ namespace Bit.App.Pages
|
|||||||
vaultNavigation.Title = AppResources.MyVault;
|
vaultNavigation.Title = AppResources.MyVault;
|
||||||
vaultNavigation.Icon = "fa-lock";
|
vaultNavigation.Icon = "fa-lock";
|
||||||
|
|
||||||
syncNavigation.Title = AppResources.Sync;
|
toolsNavigation.Title = AppResources.Tools;
|
||||||
syncNavigation.Icon = "fa-refresh";
|
toolsNavigation.Icon = "fa-refresh";
|
||||||
|
|
||||||
settingsNavigation.Title = AppResources.Settings;
|
settingsNavigation.Title = AppResources.Settings;
|
||||||
settingsNavigation.Icon = "cogs";
|
settingsNavigation.Icon = "cogs";
|
||||||
|
|
||||||
Children.Add(favoritesNavigation);
|
Children.Add(favoritesNavigation);
|
||||||
Children.Add(vaultNavigation);
|
Children.Add(vaultNavigation);
|
||||||
Children.Add(syncNavigation);
|
Children.Add(toolsNavigation);
|
||||||
Children.Add(settingsNavigation);
|
Children.Add(settingsNavigation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,8 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
var changeMasterPasswordCell = new ExtendedTextCell
|
var changeMasterPasswordCell = new ExtendedTextCell
|
||||||
{
|
{
|
||||||
Text = "Change Master Password"
|
Text = "Change Master Password",
|
||||||
|
ShowDisclousure = true
|
||||||
};
|
};
|
||||||
changeMasterPasswordCell.Tapped += ChangeMasterPasswordCell_Tapped;
|
changeMasterPasswordCell.Tapped += ChangeMasterPasswordCell_Tapped;
|
||||||
|
|
||||||
@ -74,6 +75,13 @@ namespace Bit.App.Pages
|
|||||||
};
|
};
|
||||||
foldersCell.Tapped += FoldersCell_Tapped;
|
foldersCell.Tapped += FoldersCell_Tapped;
|
||||||
|
|
||||||
|
var syncCell = new ExtendedTextCell
|
||||||
|
{
|
||||||
|
Text = "Sync",
|
||||||
|
ShowDisclousure = true
|
||||||
|
};
|
||||||
|
syncCell.Tapped += SyncCell_Tapped;
|
||||||
|
|
||||||
var lockCell = new ExtendedTextCell
|
var lockCell = new ExtendedTextCell
|
||||||
{
|
{
|
||||||
Text = "Lock"
|
Text = "Lock"
|
||||||
@ -100,9 +108,10 @@ namespace Bit.App.Pages
|
|||||||
PinCell,
|
PinCell,
|
||||||
changeMasterPasswordCell
|
changeMasterPasswordCell
|
||||||
},
|
},
|
||||||
new TableSection("Manage Folders")
|
new TableSection("Manage")
|
||||||
{
|
{
|
||||||
foldersCell
|
foldersCell,
|
||||||
|
syncCell
|
||||||
},
|
},
|
||||||
new TableSection("Current Session")
|
new TableSection("Current Session")
|
||||||
{
|
{
|
||||||
@ -164,6 +173,11 @@ namespace Bit.App.Pages
|
|||||||
LockOptionsCell.Detail = selection;
|
LockOptionsCell.Detail = selection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void SyncCell_Tapped(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PushAsync(new SyncPage());
|
||||||
|
}
|
||||||
|
|
||||||
private void LockCell_Tapped(object sender, EventArgs e)
|
private void LockCell_Tapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MessagingCenter.Send(Application.Current, "Lock", true);
|
MessagingCenter.Send(Application.Current, "Lock", true);
|
||||||
|
30
src/App/Pages/ToolsPage.cs
Normal file
30
src/App/Pages/ToolsPage.cs
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Acr.UserDialogs;
|
||||||
|
using Bit.App.Abstractions;
|
||||||
|
using Bit.App.Controls;
|
||||||
|
using Bit.App.Resources;
|
||||||
|
using Plugin.Connectivity.Abstractions;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
using XLabs.Ioc;
|
||||||
|
|
||||||
|
namespace Bit.App.Pages
|
||||||
|
{
|
||||||
|
public class ToolsPage : ExtendedContentPage
|
||||||
|
{
|
||||||
|
private readonly IUserDialogs _userDialogs;
|
||||||
|
|
||||||
|
public ToolsPage()
|
||||||
|
{
|
||||||
|
_userDialogs = Resolver.Resolve<IUserDialogs>();
|
||||||
|
|
||||||
|
Init();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
Title = AppResources.Tools;
|
||||||
|
Icon = "fa-refresh";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
src/App/Resources/AppResources.Designer.cs
generated
9
src/App/Resources/AppResources.Designer.cs
generated
@ -412,6 +412,15 @@ namespace Bit.App.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Tools.
|
||||||
|
/// </summary>
|
||||||
|
internal static string Tools {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Tools", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to URI.
|
/// Looks up a localized string similar to URI.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -271,6 +271,10 @@
|
|||||||
<value>Sync</value>
|
<value>Sync</value>
|
||||||
<comment>The title for the sync page.</comment>
|
<comment>The title for the sync page.</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Tools" xml:space="preserve">
|
||||||
|
<value>Tools</value>
|
||||||
|
<comment>The title for the tools page.</comment>
|
||||||
|
</data>
|
||||||
<data name="URI" xml:space="preserve">
|
<data name="URI" xml:space="preserve">
|
||||||
<value>URI</value>
|
<value>URI</value>
|
||||||
<comment>Label for a uri/url.</comment>
|
<comment>Label for a uri/url.</comment>
|
||||||
|
Loading…
Reference in New Issue
Block a user