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
5 changes: 5 additions & 0 deletions lib/database/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ CREATE TABLE $templatesTable (
${TemplatesFields.timeModified} DATETIME NOT NULL DEFAULT (DATETIME('now'))
)
''');

await TemplatesProvider.instance.createDefaultTemplates();

await db.execute('''
CREATE TABLE $imagesTable (
${EntryImageFields.id} INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
Expand All @@ -234,6 +237,8 @@ CREATE TABLE $templatesTable (
${TemplatesFields.timeModified} DATETIME NOT NULL DEFAULT (DATETIME('now'))
)
''');

await TemplatesProvider.instance.createDefaultTemplates();
}
if (oldVersion <= 2) {
await db.execute('''
Expand Down
42 changes: 42 additions & 0 deletions lib/l10n/generated/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,48 @@ abstract class AppLocalizations {
/// **'No templates created yet…'**
String get noTemplatesDescription;

/// No description provided for @templateVariableTime.
///
/// In en, this message translates to:
/// **'Time'**
String get templateVariableTime;

/// No description provided for @templateDefaultTimestampTitle.
///
/// In en, this message translates to:
/// **'Timestamp'**
String get templateDefaultTimestampTitle;

/// No description provided for @templateDefaultTimestampBody.
///
/// In en, this message translates to:
/// **'{date} - {time}:'**
String templateDefaultTimestampBody(Object date, Object time);

/// No description provided for @templateDefaultSummaryTitle.
///
/// In en, this message translates to:
/// **'Day Summary'**
String get templateDefaultSummaryTitle;

/// No description provided for @templateDefaultSummaryBody.
///
/// In en, this message translates to:
/// **'### Summary\n- \n\n### Quote\n> '**
String get templateDefaultSummaryBody;

/// No description provided for @templateDefaultReflectionTitle.
///
/// In en, this message translates to:
/// **'Reflection'**
String get templateDefaultReflectionTitle;

/// No description provided for @templateDefaultReflectionBody.
///
/// In en, this message translates to:
/// **'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- '**
String get templateDefaultReflectionBody;

/// No description provided for @settingsStorageTitle.
///
/// In en, this message translates to:
Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,30 @@ class AppLocalizationsAr extends AppLocalizations {
@override
String get noTemplatesDescription => 'لم يتم إنشاء أي قوالب بعد…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'التخزين';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_be.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,30 @@ class AppLocalizationsBe extends AppLocalizations {
@override
String get noTemplatesDescription => 'No templates created yet…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Storage';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_bg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,30 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get noTemplatesDescription => 'No templates created yet…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Storage';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_cs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,30 @@ class AppLocalizationsCs extends AppLocalizations {
@override
String get noTemplatesDescription => 'Zatím nebyly vytvořeny žádné šablony…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Uložiště';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_da.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,30 @@ class AppLocalizationsDa extends AppLocalizations {
@override
String get noTemplatesDescription => 'Ingen skabeloner oprettet endnu…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Lager';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,30 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get noTemplatesDescription => 'Noch kein Vorlagen erstellt…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Speicher';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,30 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get noTemplatesDescription => 'No templates created yet…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Storage';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,30 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get noTemplatesDescription => 'Aún no se han creado plantillas…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Almacenamiento';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_fa.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,30 @@ class AppLocalizationsFa extends AppLocalizations {
@override
String get noTemplatesDescription => 'هیچ الگویی هنوز ایجاد نشده است…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'ذخیره سازی';

Expand Down
24 changes: 24 additions & 0 deletions lib/l10n/generated/app_localizations_fi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,30 @@ class AppLocalizationsFi extends AppLocalizations {
@override
String get noTemplatesDescription => 'No templates created yet…';

@override
String get templateVariableTime => 'Time';

@override
String get templateDefaultTimestampTitle => 'Timestamp';

@override
String templateDefaultTimestampBody(Object date, Object time) {
return '$date - $time:';
}

@override
String get templateDefaultSummaryTitle => 'Day Summary';

@override
String get templateDefaultSummaryBody => '### Summary\n- \n\n### Quote\n> ';

@override
String get templateDefaultReflectionTitle => 'Reflection';

@override
String get templateDefaultReflectionBody =>
'### What did you enjoy about today?\n- \n\n### What are you thankful for?\n- \n\n### What are you looking forward to?\n- ';

@override
String get settingsStorageTitle => 'Storage';

Expand Down
Loading