combine projects into one

This commit is contained in:
2021-08-11 14:09:03 +08:00
parent 24f39a2e27
commit 521d82829d
34 changed files with 431 additions and 192 deletions

View File

@@ -18,16 +18,14 @@ namespace Gallery
public static Dictionary<string, System.DateTime> RefreshTimes { get; } = new();
public static List<IGallerySource> GallerySources { get; } = new()
{
new Yandere.GallerySource(), // https://yande.re
new Danbooru.GallerySource(), // https://danbooru.donmai.us
new Gelbooru.GallerySource() // https://gelbooru.com
new Sources.Yandere.GallerySource(), // https://yande.re
new Sources.Danbooru.GallerySource(), // https://danbooru.donmai.us
new Sources.Gelbooru.GallerySource() // https://gelbooru.com
};
public App()
{
Preferences.Set(Config.IsProxiedKey, true);
Preferences.Set(Config.ProxyHostKey, "192.168.25.9");
Preferences.Set(Config.ProxyPortKey, 1081);
//Device.SetFlags(new string[0]);
}
private void InitResource()
@@ -44,6 +42,7 @@ namespace Gallery
private void InitPreference()
{
Config.Proxy = null;
Config.DownloadThreads = Preferences.Get(Config.DownloadThreadsKey, 1);
var isProxied = Preferences.Get(Config.IsProxiedKey, false);
if (isProxied)