forked from shiosyakeyakini-info/miria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'shiosyakeyakini-info:develop' into buildappimage_3
- Loading branch information
Showing
62 changed files
with
3,958 additions
and
1,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ app.*.map.json | |
|
||
# builder | ||
**/node_modules/ | ||
**/build/ | ||
|
||
# Release | ||
/private_keys/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:misskey_dart/misskey_dart.dart'; | ||
|
||
part 'antenna_settings.freezed.dart'; | ||
|
||
@freezed | ||
class AntennaSettings with _$AntennaSettings { | ||
const factory AntennaSettings({ | ||
@Default("") String name, | ||
@Default(AntennaSource.all) AntennaSource src, | ||
String? userListId, | ||
@Default([]) List<List<String>> keywords, | ||
@Default([]) List<List<String>> excludeKeywords, | ||
@Default([]) List<String> users, | ||
@Default(false) bool caseSensitive, | ||
@Default(false) bool withReplies, | ||
@Default(false) bool withFile, | ||
@Default(false) bool notify, | ||
}) = _AntennaSettings; | ||
const AntennaSettings._(); | ||
|
||
factory AntennaSettings.fromAntenna(Antenna antenna) { | ||
return AntennaSettings( | ||
name: antenna.name, | ||
src: antenna.src, | ||
userListId: antenna.userListId, | ||
keywords: antenna.keywords, | ||
excludeKeywords: antenna.excludeKeywords, | ||
users: antenna.users, | ||
caseSensitive: antenna.caseSensitive, | ||
withReplies: antenna.withReplies, | ||
withFile: antenna.withFile, | ||
notify: antenna.notify, | ||
); | ||
} | ||
} |
Oops, something went wrong.