|
27 | 27 | FontWeight="SemiBold" |
28 | 28 | Text="Package backup" /> |
29 | 29 |
|
30 | | - <widgets:CheckboxCard |
31 | | - x:Name="EnablePackageBackupCheckBox" |
32 | | - CornerRadius="8,8,0,0" |
33 | | - SettingName="EnablePackageBackup" |
34 | | - StateChanged="ShowRestartBanner" |
35 | | - Text="Periodically perform a backup of the installed packages" /> |
36 | | - <Toolkit:SettingsCard BorderThickness="1,0,1,1" CornerRadius="0,0,8,8"> |
| 30 | + <Toolkit:SettingsCard CornerRadius="8"> |
37 | 31 | <Toolkit:SettingsCard.Description> |
38 | 32 | <StackPanel Orientation="Vertical"> |
39 | 33 | <widgets:TranslatedTextBlock Prefix=" ● " Text="The backup will include the complete list of the installed packages and their installation options. Ignored updates and skipped versions will also be saved." /> |
|
44 | 38 | </Toolkit:SettingsCard.Description> |
45 | 39 | </Toolkit:SettingsCard> |
46 | 40 |
|
47 | | - <UserControl Height="16" /> |
48 | 41 |
|
| 42 | + <widgets:TranslatedTextBlock |
| 43 | + Margin="4,32,4,8" |
| 44 | + FontSize="16" |
| 45 | + FontWeight="SemiBold" |
| 46 | + Text="Cloud package backup" /> |
| 47 | + |
| 48 | + <widgets:CheckboxCard |
| 49 | + x:Name="EnablePackageBackupCheckBox_CLOUD" |
| 50 | + BorderThickness="1,1,1,0" |
| 51 | + CornerRadius="8,8,0,0" |
| 52 | + SettingName="EnablePackageBackup_CLOUD" |
| 53 | + StateChanged="ShowRestartBanner" |
| 54 | + Text="Periodically perform a cloud backup of the installed packages"> |
| 55 | + <widgets:CheckboxCard.Description> |
| 56 | + <widgets:TranslatedTextBlock Text="Cloud backup uses a private GitHub Gist to store a list of installed packages" /> |
| 57 | + </widgets:CheckboxCard.Description> |
| 58 | + </widgets:CheckboxCard> |
| 59 | + |
| 60 | + <Toolkit:SettingsCard> |
| 61 | + |
| 62 | + <StackPanel |
| 63 | + VerticalAlignment="Center" |
| 64 | + Orientation="Horizontal" |
| 65 | + Spacing="8"> |
| 66 | + <TextBlock |
| 67 | + x:Name="GitHubUserText" |
| 68 | + VerticalAlignment="Center" |
| 69 | + Text="Not logged in" /> |
| 70 | + <Button |
| 71 | + x:Name="LoginWithGitHubButton" |
| 72 | + Click="LoginWithGitHubButton_Click" |
| 73 | + Content="Login with GitHub" /> |
| 74 | + <Button |
| 75 | + x:Name="LogoutGitHubButton" |
| 76 | + Click="LogoutGitHubButton_Click" |
| 77 | + Content="Logout from GitHub" |
| 78 | + Visibility="Collapsed" /> |
| 79 | + </StackPanel> |
| 80 | + </Toolkit:SettingsCard> |
| 81 | + |
| 82 | + <UserControl Height="16" /> |
49 | 83 |
|
50 | 84 | <widgets:ButtonCard |
51 | | - x:Name="BackupNowButton" |
| 85 | + x:Name="BackupNowButton_Local" |
52 | 86 | ButtonText="Backup" |
53 | | - Click="DoBackup_Click" |
54 | | - CornerRadius="8" |
55 | | - IsEnabled="{x:Bind EnablePackageBackupCheckBox._checkbox.IsOn, Mode=OneWay}" |
56 | | - Text="Perform a backup now" /> |
| 87 | + Click="BackupNowButton_Local_Click" |
| 88 | + CornerRadius="8,8,0,0" |
| 89 | + IsEnabled="{x:Bind EnablePackageBackupCheckBox_CLOUD._checkbox.IsOn, Mode=OneWay}" |
| 90 | + Text="Perform a cloud backup now" /> |
57 | 91 |
|
| 92 | + <widgets:ButtonCard |
| 93 | + x:Name="RestorePackagesFromGitHubButton" |
| 94 | + BorderThickness="1,0,1,1" |
| 95 | + ButtonText="Select backup" |
| 96 | + Click="RestorePackagesFromGitHubButton_Click" |
| 97 | + CornerRadius="0,0,8,8" |
| 98 | + Text="Restore a backup from the cloud"> |
| 99 | + <widgets:ButtonCard.Description> |
| 100 | + <widgets:TranslatedTextBlock Text="Begin the process to select a cloud backup and review which packages to restore" /> |
| 101 | + </widgets:ButtonCard.Description> |
| 102 | + </widgets:ButtonCard> |
58 | 103 |
|
59 | 104 | <widgets:TranslatedTextBlock |
60 | 105 | Margin="4,32,4,8" |
| 106 | + FontSize="16" |
61 | 107 | FontWeight="SemiBold" |
62 | | - Text="Backup location" /> |
| 108 | + Text="Local package backup" /> |
| 109 | + |
| 110 | + <widgets:CheckboxCard |
| 111 | + x:Name="EnablePackageBackupCheckBox_LOCAL" |
| 112 | + BorderThickness="1,1,1,0" |
| 113 | + CornerRadius="8,8,0,0" |
| 114 | + SettingName="EnablePackageBackup_LOCAL" |
| 115 | + StateChanged="ShowRestartBanner" |
| 116 | + Text="Periodically perform a local backup of the installed packages" /> |
| 117 | + |
| 118 | + <widgets:ButtonCard |
| 119 | + x:Name="BackupNowButton_LOCAL" |
| 120 | + ButtonText="Backup" |
| 121 | + Click="BackupNowButton_LOCAL_Click_1" |
| 122 | + CornerRadius="0,0,8,8" |
| 123 | + IsEnabled="{x:Bind EnablePackageBackupCheckBox_LOCAL._checkbox.IsOn, Mode=OneWay}" |
| 124 | + Text="Perform a local backup now" /> |
| 125 | + |
| 126 | + <UserControl Height="16" /> |
| 127 | + |
63 | 128 |
|
64 | 129 | <widgets:ButtonCard |
65 | 130 | x:Name="ChangeBackupDirectory" |
66 | 131 | ButtonText="Select" |
67 | 132 | Click="ChangeBackupDirectory_Click" |
68 | 133 | CornerRadius="8" |
69 | | - IsEnabled="{x:Bind EnablePackageBackupCheckBox._checkbox.IsOn, Mode=OneWay}" |
| 134 | + IsEnabled="{x:Bind EnablePackageBackupCheckBox_LOCAL._checkbox.IsOn, Mode=OneWay}" |
70 | 135 | Text="Change backup output directory"> |
71 | 136 | <Toolkit:SettingsCard.Description> |
72 | 137 | <StackPanel Orientation="Horizontal" Spacing="5"> |
|
80 | 145 | <widgets:TranslatedTextBlock |
81 | 146 | Margin="4,32,4,8" |
82 | 147 | FontWeight="SemiBold" |
83 | | - Text="Advanced options" /> |
| 148 | + Text="Local backup advanced options" /> |
84 | 149 |
|
85 | 150 | <widgets:TextboxCard |
86 | 151 | x:Name="ChangeBackupFileNameTextBox" |
87 | 152 | CornerRadius="8,8,0,0" |
88 | | - IsEnabled="{x:Bind EnablePackageBackupCheckBox._checkbox.IsOn, Mode=OneWay}" |
| 153 | + IsEnabled="{x:Bind EnablePackageBackupCheckBox_LOCAL._checkbox.IsOn, Mode=OneWay}" |
89 | 154 | Placeholder="Leave empty for default" |
90 | 155 | SettingName="ChangeBackupFileName" |
91 | 156 | Text="Set a custom backup file name" /> |
|
94 | 159 | x:Name="EnableBackupTimestampingCheckBox" |
95 | 160 | BorderThickness="1,0,1,1" |
96 | 161 | CornerRadius="0,0,8,8" |
97 | | - IsEnabled="{x:Bind EnablePackageBackupCheckBox._checkbox.IsOn, Mode=OneWay}" |
| 162 | + IsEnabled="{x:Bind EnablePackageBackupCheckBox_LOCAL._checkbox.IsOn, Mode=OneWay}" |
98 | 163 | SettingName="EnableBackupTimestamping" |
99 | 164 | Text="Add a timestamp to the backup file names" /> |
100 | | - |
101 | | - <widgets:TranslatedTextBlock |
102 | | - Margin="4,32,4,8" |
103 | | - FontWeight="SemiBold" |
104 | | - Text="Cloud Backup and Restore" /> |
105 | | - |
106 | | - <StackPanel Orientation="Horizontal" Spacing="8" VerticalAlignment="Center"> |
107 | | - <TextBlock x:Name="GitHubUserText" Text="Not logged in" VerticalAlignment="Center"/> |
108 | | - <Button x:Name="LoginWithGitHubButton" Content="Login with GitHub" Click="LoginWithGitHubButton_Click" /> |
109 | | - <Button x:Name="LogoutGitHubButton" Content="Logout from GitHub" Click="LogoutGitHubButton_Click" Visibility="Collapsed" /> |
110 | | - </StackPanel> |
111 | | - |
112 | | - <widgets:ButtonCard |
113 | | - x:Name="BackupToGitHubButton" |
114 | | - ButtonText="Backup settings and packages" |
115 | | - Click="BackupToGitHubButton_Click" |
116 | | - CornerRadius="8,8,0,0" |
117 | | - IsEnabled="False" |
118 | | - Text="Backup your settings and packages to a private GitHub Gist"> |
119 | | - <widgets:ButtonCard.Description> |
120 | | - <widgets:TranslatedTextBlock Text="Requires you to be logged in with your GitHub account." /> |
121 | | - </widgets:ButtonCard.Description> |
122 | | - </widgets:ButtonCard> |
123 | | - |
124 | | - <!--widgets:ButtonCard |
125 | | - x:Name="RestoreSettingsFromGitHubButton" |
126 | | - ButtonText="Restore settings" |
127 | | - Click="RestoreSettingsFromGitHubButton_Click" |
128 | | - CornerRadius="8" |
129 | | - IsEnabled="False" |
130 | | - Text="Restore your settings from a private GitHub Gist"> |
131 | | - <widgets:ButtonCard.Description> |
132 | | - <widgets:TranslatedTextBlock Text="This will overwrite your current settings. A restart may be required." /> |
133 | | - </widgets:ButtonCard.Description> |
134 | | - </widgets:ButtonCard--> |
135 | | - |
136 | | - <widgets:ButtonCard |
137 | | - x:Name="RestorePackagesFromGitHubButton" |
138 | | - ButtonText="Restore packages" |
139 | | - Click="RestorePackagesFromGitHubButton_Click" |
140 | | - CornerRadius="0,0,8,8" |
141 | | - BorderThickness="1,0,1,1" |
142 | | - IsEnabled="False" |
143 | | - Text="Restore your packages from a private GitHub Gist"> |
144 | | - <widgets:ButtonCard.Description> |
145 | | - <widgets:TranslatedTextBlock Text="This will install the packages from the backup." /> |
146 | | - </widgets:ButtonCard.Description> |
147 | | - </widgets:ButtonCard> |
148 | | - |
149 | 165 | </StackPanel> |
150 | 166 | </ScrollViewer> |
151 | 167 | </Page> |
0 commit comments