mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: webdav
Closes #432 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -451,6 +451,18 @@ class GStorage {
|
||||
static bool get navSearchStreamDebounce => GStorage.setting
|
||||
.get(SettingBoxKey.navSearchStreamDebounce, defaultValue: false);
|
||||
|
||||
static String get webdavUri =>
|
||||
GStorage.setting.get(SettingBoxKey.webdavUri, defaultValue: '');
|
||||
|
||||
static String get webdavUsername =>
|
||||
GStorage.setting.get(SettingBoxKey.webdavUsername, defaultValue: '');
|
||||
|
||||
static String get webdavPassword =>
|
||||
GStorage.setting.get(SettingBoxKey.webdavPassword, defaultValue: '');
|
||||
|
||||
static String get webdavDirectory =>
|
||||
GStorage.setting.get(SettingBoxKey.webdavDirectory, defaultValue: '/');
|
||||
|
||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||
|
||||
@@ -737,6 +749,12 @@ class SettingBoxKey {
|
||||
recordSearchHistory = 'recordSearchHistory',
|
||||
navSearchStreamDebounce = 'navSearchStreamDebounce',
|
||||
|
||||
// WebDAV
|
||||
webdavUri = 'webdavUri',
|
||||
webdavUsername = 'webdavUsername',
|
||||
webdavPassword = 'webdavPassword',
|
||||
webdavDirectory = 'webdavDirectory',
|
||||
|
||||
// Sponsor Block
|
||||
enableSponsorBlock = 'enableSponsorBlock',
|
||||
blockSettings = 'blockSettings',
|
||||
|
||||
Reference in New Issue
Block a user