Merge branch 'main' into message-info
This commit is contained in:
commit
20333046c8
4 changed files with 15 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -13,6 +13,8 @@
|
|||
prime
|
||||
*.env
|
||||
!/public/.env
|
||||
*.env.local_choreo
|
||||
*.env.prod
|
||||
|
||||
# libolm package
|
||||
/assets/js/package
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void main() async {
|
|||
|
||||
// #Pangea
|
||||
try {
|
||||
await dotenv.load(fileName: ".env");
|
||||
await dotenv.load(fileName: ".env.local_choreo");
|
||||
} catch (e) {
|
||||
Logs().e('Failed to load .env file', e);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,14 +16,15 @@ class Lemma {
|
|||
|
||||
/// [morph] ex {} - morphological features of the lemma
|
||||
/// https://universaldependencies.org/u/feat/
|
||||
final Map<String, String> morph;
|
||||
final Map<String, dynamic> morph;
|
||||
|
||||
Lemma(
|
||||
{required this.text,
|
||||
required this.saveVocab,
|
||||
required this.form,
|
||||
this.pos = '',
|
||||
this.morph = const {}});
|
||||
Lemma({
|
||||
required this.text,
|
||||
required this.saveVocab,
|
||||
required this.form,
|
||||
this.pos = '',
|
||||
this.morph = const {},
|
||||
});
|
||||
|
||||
factory Lemma.fromJson(Map<String, dynamic> json) {
|
||||
return Lemma(
|
||||
|
|
@ -31,7 +32,7 @@ class Lemma {
|
|||
saveVocab: json['save_vocab'] ?? json['saveVocab'] ?? false,
|
||||
form: json["form"] ?? json['text'],
|
||||
pos: json['pos'] ?? '',
|
||||
morph: json['morph'] ?? {},
|
||||
morph: json['morph'] ?? '{}',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ class Lemma {
|
|||
'save_vocab': saveVocab,
|
||||
'form': form,
|
||||
'pos': pos,
|
||||
'morph': morph
|
||||
'morph': morph,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,8 @@ flutter:
|
|||
# causes error with github actions
|
||||
# - .env
|
||||
# - assets/.env
|
||||
- .env.local_choreo
|
||||
- assets/.env.local_choreo
|
||||
- assets/pangea/
|
||||
- assets/pangea/bot_faces/
|
||||
# Pangea#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue