mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-19 19:01:24 +08:00
@@ -2,7 +2,7 @@ enum AccountType {
|
||||
main('主账号'),
|
||||
heartbeat('记录观看'),
|
||||
recommend('推荐'),
|
||||
video('视频取流')
|
||||
video('视频取流'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -3,7 +3,7 @@ enum AudioNormalization {
|
||||
// ref https://github.com/KRTirtho/spotube/commit/da10ab2e291d4ba4d3082b9a6ae535639fb8f1b7
|
||||
dynaudnorm('预设 dynaudnorm', 'dynaudnorm=g=5:f=250:r=0.9:p=0.5'),
|
||||
loudnorm('预设 loudnorm', 'loudnorm=I=-16:LRA=11:TP=-1.5'),
|
||||
custom('自定义参数')
|
||||
custom('自定义参数'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -4,7 +4,7 @@ enum BadgeType {
|
||||
none(),
|
||||
vip('大会员'),
|
||||
person('认证个人', Color(0xFFFFCC00)),
|
||||
institution('认证机构', Colors.lightBlueAccent)
|
||||
institution('认证机构', Colors.lightBlueAccent),
|
||||
;
|
||||
|
||||
final String? desc;
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
|
||||
enum BarHideType with EnumWithLabel {
|
||||
instant('即时'),
|
||||
sync('同步')
|
||||
sync('同步'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
enum DmBlockType {
|
||||
keyword('关键词'),
|
||||
regex('正则'),
|
||||
uid('用户')
|
||||
uid('用户'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
enum DynamicBadgeMode {
|
||||
hidden('隐藏'),
|
||||
point('红点'),
|
||||
number('数字')
|
||||
number('数字'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -3,7 +3,7 @@ enum DynamicsTabType {
|
||||
video('投稿'),
|
||||
pgc('番剧'),
|
||||
article('专栏'),
|
||||
up('UP')
|
||||
up('UP'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -3,7 +3,7 @@ enum UpPanelPosition {
|
||||
leftFixed('左侧常驻'),
|
||||
rightFixed('右侧常驻'),
|
||||
leftDrawer('左侧抽屉'),
|
||||
rightDrawer('右侧抽屉')
|
||||
rightDrawer('右侧抽屉'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
enum EpisodeType {
|
||||
part('分P'),
|
||||
season('合集'),
|
||||
pgc('剧集')
|
||||
pgc('剧集'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
enum FavOrderType {
|
||||
mtime('最近收藏'),
|
||||
view('最多播放'),
|
||||
pubtime('最近投稿')
|
||||
pubtime('最近投稿'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -13,7 +13,7 @@ enum FavTabType {
|
||||
article('专栏', FavArticlePage()),
|
||||
note('笔记', FavNotePage()),
|
||||
topic('话题', FavTopicPage()),
|
||||
cheese('课堂', FavCheesePage())
|
||||
cheese('课堂', FavCheesePage()),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
enum FollowOrderType {
|
||||
def('', '最近关注'),
|
||||
attention('attention', '最常访问')
|
||||
attention('attention', '最常访问'),
|
||||
;
|
||||
|
||||
final String type;
|
||||
|
||||
@@ -19,7 +19,7 @@ enum HomeTabType implements EnumWithLabel {
|
||||
hot('热门'),
|
||||
rank('分区'),
|
||||
bangumi('番剧'),
|
||||
cinema('影视')
|
||||
cinema('影视'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||
enum LaterViewType {
|
||||
all(0, '全部'),
|
||||
// toView(1, '未看'),
|
||||
unfinished(2, '未看完')
|
||||
unfinished(2, '未看完'),
|
||||
// viewed(3, '已看完'),
|
||||
;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ enum LiveContributionRankType {
|
||||
online_rank('在线榜', 'contribution_rank'),
|
||||
daily_rank('日榜', 'today_rank'),
|
||||
weekly_rank('周榜', 'current_week_rank'),
|
||||
monthly_rank('月榜', 'current_month_rank')
|
||||
monthly_rank('月榜', 'current_month_rank'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -6,7 +6,7 @@ enum ContributeType {
|
||||
season(Api.spaceSeason),
|
||||
series(Api.spaceSeries),
|
||||
bangumi(Api.spaceBangumi),
|
||||
comic(Api.spaceComic)
|
||||
comic(Api.spaceComic),
|
||||
;
|
||||
|
||||
final String api;
|
||||
|
||||
@@ -8,7 +8,7 @@ enum MemberTabType {
|
||||
favorite('收藏'),
|
||||
bangumi('番剧'),
|
||||
cheese('课堂'),
|
||||
shop('小店')
|
||||
shop('小店'),
|
||||
;
|
||||
|
||||
static bool showMemberShop = Pref.showMemberShop;
|
||||
|
||||
@@ -3,7 +3,7 @@ enum MsgUnReadType {
|
||||
reply('回复我的'),
|
||||
at('@我'),
|
||||
like('收到的赞'),
|
||||
sysMsg('系统通知')
|
||||
sysMsg('系统通知'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:PiliPlus/http/api.dart';
|
||||
|
||||
enum PgcReviewType {
|
||||
long(label: '长评', api: Api.pgcReviewL),
|
||||
short(label: '短评', api: Api.pgcReviewS)
|
||||
short(label: '短评', api: Api.pgcReviewS),
|
||||
;
|
||||
|
||||
final String label;
|
||||
@@ -15,7 +15,7 @@ enum PgcReviewType {
|
||||
|
||||
enum PgcReviewSortType {
|
||||
def('默认', 0),
|
||||
latest('最新', 1)
|
||||
latest('最新', 1),
|
||||
;
|
||||
|
||||
final int sort;
|
||||
|
||||
@@ -19,7 +19,7 @@ enum RankType {
|
||||
documentary('记录', seasonType: 3),
|
||||
movie('电影', seasonType: 2),
|
||||
tv('剧集', seasonType: 5),
|
||||
variety('综艺', seasonType: 7)
|
||||
variety('综艺', seasonType: 7),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
|
||||
enum ReplyOptionType {
|
||||
allow('允许评论'),
|
||||
close('关闭评论'),
|
||||
choose('精选评论')
|
||||
choose('精选评论'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
enum ReplySortType {
|
||||
time('最新评论', '最新'),
|
||||
hot('最热评论', '最热'),
|
||||
select('精选评论', '精选')
|
||||
select('精选评论', '精选'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -3,7 +3,7 @@ enum ArticleOrderType {
|
||||
pubdate('最新发布'),
|
||||
click('最多点击'),
|
||||
attention('最多喜欢'),
|
||||
scores('最多评论')
|
||||
scores('最多评论'),
|
||||
;
|
||||
|
||||
String get order => name;
|
||||
@@ -20,7 +20,7 @@ enum ArticleZoneType {
|
||||
interest('兴趣', 29),
|
||||
novel('轻小说', 16),
|
||||
tech('科技', 17),
|
||||
note('笔记', 41)
|
||||
note('笔记', 41),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -18,7 +18,7 @@ enum SearchType {
|
||||
// 用户:bili_user
|
||||
bili_user('用户'),
|
||||
// 专栏:article
|
||||
article('专栏')
|
||||
article('专栏'),
|
||||
;
|
||||
// 相簿:photo
|
||||
// photo
|
||||
|
||||
@@ -3,7 +3,7 @@ enum UserOrderType {
|
||||
fansDesc('粉丝数由高到低', 0, 'fans'),
|
||||
fansAsc('粉丝数由低到高', 1, 'fans'),
|
||||
levelDesc('Lv等级由高到低', 0, 'level'),
|
||||
levelAsc('Lv等级由低到高', 1, 'level')
|
||||
levelAsc('Lv等级由低到高', 1, 'level'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
@@ -16,7 +16,7 @@ enum UserType {
|
||||
all('全部用户'),
|
||||
up('UP主'),
|
||||
common('普通用户'),
|
||||
verified('认证用户')
|
||||
verified('认证用户'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
|
||||
@@ -2,7 +2,7 @@ enum VideoPubTimeType {
|
||||
all('不限'),
|
||||
day('最近一天'),
|
||||
week('最近一周'),
|
||||
halfYear('最近半年')
|
||||
halfYear('最近半年'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
@@ -14,7 +14,7 @@ enum VideoDurationType {
|
||||
tenMins('0-10分钟'),
|
||||
halfHour('10-30分钟'),
|
||||
hour('30-60分钟'),
|
||||
hourPlus('60分钟+')
|
||||
hourPlus('60分钟+'),
|
||||
;
|
||||
|
||||
final String label;
|
||||
@@ -43,7 +43,7 @@ enum VideoZoneType {
|
||||
cinephile('影视', tids: 181),
|
||||
documentary('记录', tids: 177),
|
||||
movie('电影', tids: 23),
|
||||
tv('电视', tids: 11)
|
||||
tv('电视', tids: 11),
|
||||
;
|
||||
|
||||
final String label;
|
||||
@@ -58,7 +58,7 @@ enum ArchiveFilterType {
|
||||
pubdate('新发布'),
|
||||
dm('弹幕多'),
|
||||
stow('收藏多'),
|
||||
scores('评论多')
|
||||
scores('评论多'),
|
||||
;
|
||||
// 专栏
|
||||
// attention('最多喜欢'),
|
||||
|
||||
@@ -6,7 +6,7 @@ enum SettingType {
|
||||
styleSetting('外观设置'),
|
||||
extraSetting('其它设置'),
|
||||
webdavSetting('WebDAV 设置'),
|
||||
about('关于')
|
||||
about('关于'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -2,7 +2,7 @@ enum ActionType {
|
||||
skip('跳过'),
|
||||
mute('静音'),
|
||||
full('整个视频'),
|
||||
poi('精彩时刻')
|
||||
poi('精彩时刻'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -5,7 +5,7 @@ enum SkipType implements EnumWithLabel {
|
||||
skipOnce('跳过一次'),
|
||||
skipManually('手动跳过'),
|
||||
showOnly('仅显示'),
|
||||
disable('禁用')
|
||||
disable('禁用'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -7,7 +7,7 @@ enum StatType {
|
||||
reply(Icons.comment_outlined, '评论'),
|
||||
follow(Icons.favorite_border, '关注'),
|
||||
play(Icons.play_circle_outlined, '播放'),
|
||||
listen(Icons.headset_outlined, '播放')
|
||||
listen(Icons.headset_outlined, '播放'),
|
||||
;
|
||||
|
||||
final IconData iconData;
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
enum SuperResolutionType with EnumWithLabel {
|
||||
disable('禁用'),
|
||||
efficiency('效率'),
|
||||
quality('画质')
|
||||
quality('画质'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
|
||||
enum ThemeType {
|
||||
light('浅色'),
|
||||
dark('深色'),
|
||||
system('跟随系统')
|
||||
system('跟随系统'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -7,7 +7,7 @@ enum AudioQuality {
|
||||
dolby_30255(30255, '杜比全景声'),
|
||||
k192(30280, '192K'),
|
||||
k132(30232, '132K'),
|
||||
k64(30216, '64K')
|
||||
k64(30216, '64K'),
|
||||
;
|
||||
|
||||
final int code;
|
||||
|
||||
@@ -24,7 +24,7 @@ enum CDNService {
|
||||
aliov('aliov(阿里云海外)', 'upos-sz-mirroraliov.bilivideo.com'),
|
||||
cosov('cosov(腾讯云海外)', 'upos-sz-mirrorcosov.bilivideo.com'),
|
||||
hwov('hwov(华为云海外)', 'upos-sz-mirrorhwov.bilivideo.com'),
|
||||
hk_bcache('hk_bcache(Bilibili海外)', 'cn-hk-eq-bcache-01.bilivideo.com')
|
||||
hk_bcache('hk_bcache(Bilibili海外)', 'cn-hk-eq-bcache-01.bilivideo.com'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -7,7 +7,7 @@ enum LiveQuality {
|
||||
bluRay(400, '蓝光'),
|
||||
superHD(250, '超清'),
|
||||
smooth(150, '高清'),
|
||||
flunt(80, '流畅')
|
||||
flunt(80, '流畅'),
|
||||
;
|
||||
|
||||
final int code;
|
||||
|
||||
@@ -26,7 +26,7 @@ enum SourceType {
|
||||
extraId: 4,
|
||||
playlistSource: PlaylistSource.MEDIA_LIST,
|
||||
),
|
||||
file
|
||||
file,
|
||||
;
|
||||
|
||||
final int? mediaType;
|
||||
|
||||
@@ -2,7 +2,7 @@ enum SubtitlePrefType {
|
||||
off('默认不显示字幕'),
|
||||
on('优先选择非自动生成(ai)字幕'),
|
||||
withoutAi('跳过自动生成(ai)字幕,选择第一个可用字幕'),
|
||||
auto('静音时等同第二项,非静音时等同第三项')
|
||||
auto('静音时等同第二项,非静音时等同第三项'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -4,7 +4,7 @@ enum VideoDecodeFormatType {
|
||||
DVH1(['dvh1']),
|
||||
AV1(['av01']),
|
||||
HEVC(['hev1', 'hvc1']),
|
||||
AVC(['avc1'])
|
||||
AVC(['avc1']),
|
||||
;
|
||||
|
||||
String get description => name;
|
||||
|
||||
@@ -11,7 +11,7 @@ enum VideoQuality {
|
||||
high720(64, '720P 准高清', '720P'),
|
||||
clear480(32, '480P 标清', '480P'),
|
||||
fluent360(16, '360P 流畅', '360P'),
|
||||
speed240(6, '240P 极速', '240P')
|
||||
speed240(6, '240P 极速', '240P'),
|
||||
;
|
||||
|
||||
final int code;
|
||||
|
||||
@@ -13,7 +13,7 @@ enum VideoType {
|
||||
type: 10,
|
||||
replyType: 33,
|
||||
api: Api.pugvUrl,
|
||||
)
|
||||
),
|
||||
;
|
||||
|
||||
final int type;
|
||||
|
||||
@@ -4,7 +4,7 @@ enum WebviewMenuItem {
|
||||
openInBrowser('浏览器中打开'),
|
||||
clearCache('清除缓存'),
|
||||
resetCookie('重新设置Cookie'),
|
||||
goBack('返回')
|
||||
goBack('返回'),
|
||||
;
|
||||
|
||||
final String title;
|
||||
|
||||
@@ -395,7 +395,7 @@ enum DownloadStatus {
|
||||
failDanmaku('获取弹幕失败'),
|
||||
failPlayUrl('获取播放地址失败'),
|
||||
pause('暂停中'),
|
||||
wait('等待中')
|
||||
wait('等待中'),
|
||||
;
|
||||
|
||||
final String message;
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
enum AudioOutput implements EnumWithLabel {
|
||||
opensles('OpenSL ES'),
|
||||
aaudio('AAudio'),
|
||||
audiotrack('AudioTrack')
|
||||
audiotrack('AudioTrack'),
|
||||
;
|
||||
|
||||
static final defaultValue = values.map((e) => e.name).join(',');
|
||||
|
||||
@@ -2,7 +2,7 @@ enum BtmProgressBehavior {
|
||||
alwaysShow('始终展示'),
|
||||
alwaysHide('始终隐藏'),
|
||||
onlyShowFullScreen('仅全屏时展示'),
|
||||
onlyHideFullScreen('仅全屏时隐藏')
|
||||
onlyHideFullScreen('仅全屏时隐藏'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -13,7 +13,7 @@ enum FullScreenMode {
|
||||
// 屏幕长宽比 < kScreenRatio 或为竖屏视频时竖屏,否则横屏
|
||||
ratio('屏幕长宽比<$kScreenRatio或为竖屏视频时竖屏,否则横屏'),
|
||||
// 强制重力转屏(仅安卓)
|
||||
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)')
|
||||
gravity('忽略系统方向锁定,强制按重力转屏(仅安卓)'),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -31,7 +31,7 @@ enum HwDecType {
|
||||
amf('amf', 'AMF (AMD独占)'),
|
||||
amfCopy('amf-copy', 'AMF (AMD独占) (非直通)'),
|
||||
qsv('qsv', 'Quick Sync Video (Intel独占)'),
|
||||
qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)')
|
||||
qsvCopy('qsv-copy', 'Quick Sync Video (Intel独占) (非直通)'),
|
||||
;
|
||||
|
||||
final String hwdec;
|
||||
|
||||
@@ -5,7 +5,7 @@ enum PlayRepeat implements EnumWithLabel {
|
||||
listOrder('顺序播放'),
|
||||
singleCycle('单个循环'),
|
||||
listCycle('列表循环'),
|
||||
autoPlayRelated('自动连播')
|
||||
autoPlayRelated('自动连播'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
@@ -8,7 +8,7 @@ enum PlaySpeed {
|
||||
onePointSevenFive(1.75),
|
||||
|
||||
two(2.0),
|
||||
three(3.0)
|
||||
three(3.0),
|
||||
;
|
||||
|
||||
final double value;
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:get/get.dart';
|
||||
enum PlayerStatus {
|
||||
completed,
|
||||
playing,
|
||||
paused
|
||||
paused,
|
||||
;
|
||||
|
||||
bool get isCompleted => this == PlayerStatus.completed;
|
||||
|
||||
@@ -10,7 +10,7 @@ enum VideoFitType {
|
||||
none('原始', boxFit: BoxFit.none),
|
||||
scaleDown('限制', boxFit: BoxFit.scaleDown),
|
||||
ratio_4x3('4:3', aspectRatio: 4 / 3),
|
||||
ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9)
|
||||
ratio_16x9('16:9', aspectRatio: Style.aspectRatio16x9),
|
||||
;
|
||||
|
||||
final String desc;
|
||||
|
||||
@@ -150,7 +150,7 @@ enum WebpPreset {
|
||||
photo('photo', '照片', '户外摄影,自然光环境'),
|
||||
drawing('drawing', '绘图', '手绘或线稿,高对比度细节'),
|
||||
icon('icon', '图标', '小型彩色图像'),
|
||||
text('text', '文本', '文字类')
|
||||
text('text', '文本', '文字类'),
|
||||
;
|
||||
|
||||
final String flag;
|
||||
|
||||
@@ -13,7 +13,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
|
||||
enum _ShutdownType with EnumWithLabel {
|
||||
pause('暂停视频'),
|
||||
exit('退出APP')
|
||||
exit('退出APP'),
|
||||
;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user