-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
2,811 additions
and
167,151 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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
using Bible.App.Models; | ||
using Bible.Reader.Models; | ||
|
||
namespace Bible.App.Abstractions | ||
{ | ||
public interface IUiDataService | ||
{ | ||
Task<BibleUiModel> LoadFileAsync(string fileName); | ||
Task<BibleUiModel?> GetBibleAsync(string identifier, CancellationToken cancellationToken = default); | ||
IAsyncEnumerable<WebBibleInfoModel> AsyncGetBibleInfo(CancellationToken cancellationToken = default); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
using Bible.App.Pages; | ||
|
||
namespace BibleApp | ||
namespace Bible.App | ||
{ | ||
public sealed partial class AppShell : Shell | ||
{ | ||
public AppShell() | ||
{ | ||
InitializeComponent(); | ||
Register<MainPage>(); | ||
} | ||
|
||
void Register<T>() where T : class | ||
{ | ||
var type = typeof(T); | ||
Routing.RegisterRoute(type.Name, type); | ||
} | ||
} | ||
} |
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
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,11 @@ | ||
namespace Bible.App.Models; | ||
|
||
public sealed class About | ||
{ | ||
public string Title => AppInfo.Name; | ||
public string Version => AppInfo.VersionString; | ||
public string MoreInfoUrl => "https://aka.ms/maui"; | ||
public string Message => "This app is written in XAML and C# with .NET MAUI."; | ||
|
||
public override string ToString() => $"{Title} v{Version}"; | ||
} |
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,18 @@ | ||
namespace Bible.App.Models | ||
{ | ||
public sealed partial class LanguageUiModel : List<TranslationUiModel> | ||
{ | ||
/// <summary> | ||
/// ISO 3 language code | ||
/// </summary> | ||
public string Language { get; set; } | ||
|
||
public LanguageUiModel(string language, List<TranslationUiModel>? translations = null) : base(translations ?? new()) | ||
{ | ||
Language = language; | ||
} | ||
|
||
public override string ToString() => | ||
$"[{Language}] ({this.Count} translations)"; | ||
} | ||
} |
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,18 @@ | ||
namespace Bible.App.Models | ||
{ | ||
public sealed partial class TranslationUiModel | ||
{ | ||
public string Identifier { get; } | ||
|
||
public string Name { get; } | ||
|
||
public TranslationUiModel(string identifier, string name) | ||
{ | ||
Identifier = identifier; | ||
Name = name; | ||
} | ||
|
||
public override string ToString() => | ||
$"[{Identifier}] {Name}"; | ||
} | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
using ObjCRuntime; | ||
using UIKit; | ||
|
||
namespace BibleApp | ||
namespace Bible.App | ||
{ | ||
public sealed class Program | ||
{ | ||
|
Oops, something went wrong.