这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/extension/date_time_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extension DateTimeExtension on DateTime {
bool isBetween(DateTime? first, DateTime? second) {
if (first == null || second == null) {
return false;
}
return !isBefore(first) && isBefore(second);
}
}
4 changes: 4 additions & 0 deletions lib/i18n/aria/aria.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ i18nInfo(rich): "Aria is being translated into various languages by volunteers.
importCompleted: "Import completed"
importConfirm: "Are you sure you want to import settings? Existing settings will be overwritten."
invalidListFormat: "List format is invalid"
jumpTo: "Jump to {x}"
keepOpen: "Keep open"
loginWithAccessToken: "Sign in with an access token"
mentionToRemoteWarning: "This note contains mentions to remote users"
Expand All @@ -49,7 +50,9 @@ nFiles:
one: "{n} file"
other: "{n} files"
newFollowRequestReceived: "There are new follow requests"
newNotes: "New notes"
newNotificationReceived: "There are new notifications"
newNotifications: "新しい通知"
noAccounts: "No accounts"
noTabs: "No tabs"
noThemes: "No themes"
Expand Down Expand Up @@ -91,6 +94,7 @@ showSelfRenotes: "Show self-renotes"
showStackTrace: "Show stack trace"
showSubNoteFooter: "Show action buttons in subnotes"
showSubNoteReactionsViewer: "Show reactions viewers in subnotes"
showTimelineLastViewedAt: "Show last viewed date of timelines"
showTimelineTabBarOnBottom: "Show timeline tab bar on bottom"
showTranslateButtonInNoteFooter: "Add \"Translate\" to note action menu"
stackTrace: "Stack trace"
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/aria/aria_ja-JP.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ i18nInfo(rich): "Ariaは有志によって様々な言語に翻訳されてい
importCompleted: "インポートが完了しました"
importConfirm: "設定をインポートしますか?現在の設定は上書きされます。"
invalidListFormat: "リストの形式が正しくありません"
jumpTo: "{x}にジャンプ"
keepOpen: "開いたままにする"
loginWithAccessToken: "アクセストークンでログイン"
mentionToRemoteWarning: "リモートユーザーへのメンションが含まれています"
moved: "移動しました"
muted: "ミュート中"
nFiles: "{n}個のファイル"
newFollowRequestReceived: "新しいフォロー申請があります"
newNotes: "新しいノート"
newNotificationReceived: "新しい通知があります"
newNotifications: "新しい通知"
noAccounts: "アカウントがありません"
noTabs: "タブがありません"
noThemes: "テーマがありません"
Expand Down Expand Up @@ -87,6 +90,7 @@ showSelfRenotes: "セルフリノートを表示する"
showStackTrace: "スタックトレースを表示"
showSubNoteFooter: "サブノートにアクションボタンを表示する"
showSubNoteReactionsViewer: "サブノートにリアクションを表示する"
showTimelineLastViewedAt: "タイムラインを最後に見た日時を表示する"
showTimelineTabBarOnBottom: "タイムラインのタブを下に表示する"
showTranslateButtonInNoteFooter: "ノートのアクションに翻訳を追加"
stackTrace: "スタックトレース"
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/aria/aria_ja-KS.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ i18nInfo(rich): "Ariaは有志がいろんな言語に訳しとるで。{link}
importCompleted: "インポートが終わったで"
importConfirm: "設定をインポートしてええか?今の設定は上書きされてまうで?"
invalidListFormat: "リストの形式が間違ってるみたいや"
jumpTo: "{x}にジャンプ"
keepOpen: "開けたまんまにする"
loginWithAccessToken: "アクセストークンでログイン"
mentionToRemoteWarning: "リモートユーザーへのメンションがあるで"
moved: "移したで"
muted: "ミュート中"
nFiles: "{n}個のファイル"
newFollowRequestReceived: "新しいフォロー申請があるで"
newNotes: "新しいノート"
newNotificationReceived: "新しい通知があるで"
newNotifications: "新しい通知"
noAccounts: "アカウントはあらへん"
noTabs: "タブはあらへん"
noThemes: "テーマはあらへん"
Expand Down Expand Up @@ -87,6 +90,7 @@ showSelfRenotes: "セルフリノートを表示するで"
showStackTrace: "スタックトレース見して"
showSubNoteFooter: "サブノートにアクションボタンを表示するで"
showSubNoteReactionsViewer: "サブノートにツッコミを表示するで"
showTimelineLastViewedAt: "タイムラインを最後に見た日時を表示するで"
showTimelineTabBarOnBottom: "タイムラインのタブを下に表示するで"
showTranslateButtonInNoteFooter: "ノートのアクションに翻訳を追加"
stackTrace: "スタックトレース"
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/strings.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 31
/// Strings: 50704 (1635 per locale)
/// Strings: 50716 (1636 per locale)

// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_en_US.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class _StringsAriaEnUs {
String get importCompleted => 'Import completed';
String get importConfirm => 'Are you sure you want to import settings? Existing settings will be overwritten.';
String get invalidListFormat => 'List format is invalid';
String jumpTo({required Object x}) => 'Jump to ${x}';
String get keepOpen => 'Keep open';
String get loginWithAccessToken => 'Sign in with an access token';
String get mentionToRemoteWarning => 'This note contains mentions to remote users';
Expand All @@ -110,7 +111,9 @@ class _StringsAriaEnUs {
other: '${n} files',
);
String get newFollowRequestReceived => 'There are new follow requests';
String get newNotes => 'New notes';
String get newNotificationReceived => 'There are new notifications';
String get newNotifications => '新しい通知';
String get noAccounts => 'No accounts';
String get noTabs => 'No tabs';
String get noThemes => 'No themes';
Expand Down Expand Up @@ -168,6 +171,7 @@ class _StringsAriaEnUs {
String get showStackTrace => 'Show stack trace';
String get showSubNoteFooter => 'Show action buttons in subnotes';
String get showSubNoteReactionsViewer => 'Show reactions viewers in subnotes';
String get showTimelineLastViewedAt => 'Show last viewed date of timelines';
String get showTimelineTabBarOnBottom => 'Show timeline tab bar on bottom';
String get showTranslateButtonInNoteFooter => 'Add "Translate" to note action menu';
String get stackTrace => 'Stack trace';
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_ja_JP.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,17 @@ class _StringsAriaJaJp extends _StringsAriaEnUs {
@override String get importCompleted => 'インポートが完了しました';
@override String get importConfirm => '設定をインポートしますか?現在の設定は上書きされます。';
@override String get invalidListFormat => 'リストの形式が正しくありません';
@override String jumpTo({required Object x}) => '${x}にジャンプ';
@override String get keepOpen => '開いたままにする';
@override String get loginWithAccessToken => 'アクセストークンでログイン';
@override String get mentionToRemoteWarning => 'リモートユーザーへのメンションが含まれています';
@override String get moved => '移動しました';
@override String get muted => 'ミュート中';
@override String nFiles({required Object n}) => '${n}個のファイル';
@override String get newFollowRequestReceived => '新しいフォロー申請があります';
@override String get newNotes => '新しいノート';
@override String get newNotificationReceived => '新しい通知があります';
@override String get newNotifications => '新しい通知';
@override String get noAccounts => 'アカウントがありません';
@override String get noTabs => 'タブがありません';
@override String get noThemes => 'テーマがありません';
Expand Down Expand Up @@ -156,6 +159,7 @@ class _StringsAriaJaJp extends _StringsAriaEnUs {
@override String get showStackTrace => 'スタックトレースを表示';
@override String get showSubNoteFooter => 'サブノートにアクションボタンを表示する';
@override String get showSubNoteReactionsViewer => 'サブノートにリアクションを表示する';
@override String get showTimelineLastViewedAt => 'タイムラインを最後に見た日時を表示する';
@override String get showTimelineTabBarOnBottom => 'タイムラインのタブを下に表示する';
@override String get showTranslateButtonInNoteFooter => 'ノートのアクションに翻訳を追加';
@override String get stackTrace => 'スタックトレース';
Expand Down
4 changes: 4 additions & 0 deletions lib/i18n/strings_ja_KS.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,17 @@ class _StringsAriaJaKs extends _StringsAriaEnUs {
@override String get importCompleted => 'インポートが終わったで';
@override String get importConfirm => '設定をインポートしてええか?今の設定は上書きされてまうで?';
@override String get invalidListFormat => 'リストの形式が間違ってるみたいや';
@override String jumpTo({required Object x}) => '${x}にジャンプ';
@override String get keepOpen => '開けたまんまにする';
@override String get loginWithAccessToken => 'アクセストークンでログイン';
@override String get mentionToRemoteWarning => 'リモートユーザーへのメンションがあるで';
@override String get moved => '移したで';
@override String get muted => 'ミュート中';
@override String nFiles({required Object n}) => '${n}個のファイル';
@override String get newFollowRequestReceived => '新しいフォロー申請があるで';
@override String get newNotes => '新しいノート';
@override String get newNotificationReceived => '新しい通知があるで';
@override String get newNotifications => '新しい通知';
@override String get noAccounts => 'アカウントはあらへん';
@override String get noTabs => 'タブはあらへん';
@override String get noThemes => 'テーマはあらへん';
Expand Down Expand Up @@ -156,6 +159,7 @@ class _StringsAriaJaKs extends _StringsAriaEnUs {
@override String get showStackTrace => 'スタックトレース見して';
@override String get showSubNoteFooter => 'サブノートにアクションボタンを表示するで';
@override String get showSubNoteReactionsViewer => 'サブノートにツッコミを表示するで';
@override String get showTimelineLastViewedAt => 'タイムラインを最後に見た日時を表示するで';
@override String get showTimelineTabBarOnBottom => 'タイムラインのタブを下に表示するで';
@override String get showTranslateButtonInNoteFooter => 'ノートのアクションに翻訳を追加';
@override String get stackTrace => 'スタックトレース';
Expand Down
1 change: 1 addition & 0 deletions lib/model/general_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class GeneralSettings with _$GeneralSettings {
@Default(false) bool forceShowAds,
@Default(false) bool useGroupedNotifications,
@Default(false) bool showTimelineTabBarOnBottom,
@Default(true) bool showTimelineLastViewedAt,
@Default(false) bool vibrateNote,
@Default(false) bool vibrateNotification,

Expand Down
Loading