From c6089d14a9d1a756247fe8c839b268676f89f7ea Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Fri, 2 Aug 2024 13:42:05 +0300 Subject: [PATCH 1/5] rem - Deleted IG and Threads --- aptivi.github.io/Shared/ContactBox.razor | 2 -- 1 file changed, 2 deletions(-) diff --git a/aptivi.github.io/Shared/ContactBox.razor b/aptivi.github.io/Shared/ContactBox.razor index a0ec450..f5ee5be 100644 --- a/aptivi.github.io/Shared/ContactBox.razor +++ b/aptivi.github.io/Shared/ContactBox.razor @@ -12,8 +12,6 @@
- - @code { From 1b3c7d92856b7cb2d0ca6576d8bfe0e1304f3b6b Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Fri, 2 Aug 2024 14:24:26 +0300 Subject: [PATCH 2/5] add - Added Mastodon --- aptivi.github.io/Shared/ContactBox.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/aptivi.github.io/Shared/ContactBox.razor b/aptivi.github.io/Shared/ContactBox.razor index f5ee5be..3e2df59 100644 --- a/aptivi.github.io/Shared/ContactBox.razor +++ b/aptivi.github.io/Shared/ContactBox.razor @@ -11,6 +11,7 @@

+ From 6bf8e72ae5b9a400786e7926ad32a48537edc415 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Fri, 2 Aug 2024 15:34:29 +0300 Subject: [PATCH 3/5] Added X and Discord --- aptivi.github.io/Shared/ContactBox.razor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aptivi.github.io/Shared/ContactBox.razor b/aptivi.github.io/Shared/ContactBox.razor index 3e2df59..d6ea614 100644 --- a/aptivi.github.io/Shared/ContactBox.razor +++ b/aptivi.github.io/Shared/ContactBox.razor @@ -11,8 +11,10 @@

- + + + @code { From 7febfa0d8f1fcbea4cae74705f3df56dea7f7245 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Fri, 2 Aug 2024 15:41:06 +0300 Subject: [PATCH 4/5] add - Added BSky --- aptivi.github.io/Shared/ContactBox.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/aptivi.github.io/Shared/ContactBox.razor b/aptivi.github.io/Shared/ContactBox.razor index d6ea614..fdaee36 100644 --- a/aptivi.github.io/Shared/ContactBox.razor +++ b/aptivi.github.io/Shared/ContactBox.razor @@ -15,6 +15,7 @@ + @code { From a0d33b73382cde0d35069f22a2ca1b8b19a5d4a3 Mon Sep 17 00:00:00 2001 From: Aptivi Date: Thu, 15 Aug 2024 14:32:24 +0300 Subject: [PATCH 5/5] imp - Separated demos from main site --- This is to improve page loading performance --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- aptivi.github.io/Client/Program.cs | 2 - aptivi.github.io/Data/NamerFinderSettings.cs | 12 -- aptivi.github.io/Data/NamerService.cs | 55 ------- aptivi.github.io/Data/NamerSettings.cs | 11 -- aptivi.github.io/Data/WordService.cs | 11 -- aptivi.github.io/Data/WordSettings.cs | 8 - aptivi.github.io/Pages/DefineWord.razor | 119 --------------- aptivi.github.io/Pages/Demos.razor | 74 --------- aptivi.github.io/Pages/FindNames.razor | 149 ------------------- aptivi.github.io/Pages/GenerateNames.razor | 100 ------------- aptivi.github.io/Shared/NavMenu.razor | 2 +- aptivi.github.io/aptivi.github.io.csproj | 3 - 12 files changed, 1 insertion(+), 545 deletions(-) delete mode 100644 aptivi.github.io/Data/NamerFinderSettings.cs delete mode 100644 aptivi.github.io/Data/NamerService.cs delete mode 100644 aptivi.github.io/Data/NamerSettings.cs delete mode 100644 aptivi.github.io/Data/WordService.cs delete mode 100644 aptivi.github.io/Data/WordSettings.cs delete mode 100644 aptivi.github.io/Pages/DefineWord.razor delete mode 100644 aptivi.github.io/Pages/Demos.razor delete mode 100644 aptivi.github.io/Pages/FindNames.razor delete mode 100644 aptivi.github.io/Pages/GenerateNames.razor diff --git a/aptivi.github.io/Client/Program.cs b/aptivi.github.io/Client/Program.cs index 39285bc..16c4a7f 100644 --- a/aptivi.github.io/Client/Program.cs +++ b/aptivi.github.io/Client/Program.cs @@ -18,8 +18,6 @@ public static async Task Main(string[] args) // Add necessary services builder.Services.AddSingleton(); - builder.Services.AddSingleton(); - builder.Services.AddSingleton(); await builder.Build().RunAsync(); } diff --git a/aptivi.github.io/Data/NamerFinderSettings.cs b/aptivi.github.io/Data/NamerFinderSettings.cs deleted file mode 100644 index 0fb47c7..0000000 --- a/aptivi.github.io/Data/NamerFinderSettings.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace aptivi.github.io.Data -{ - public class NamerFinderSettings - { - public string NameSearchTerm { get; set; } = ""; - public string NameStartsWith { get; set; } = ""; - public string NameEndsWith { get; set; } = ""; - public string SurnameSearchTerm { get; set; } = ""; - public string SurnameStartsWith { get; set; } = ""; - public string SurnameEndsWith { get; set; } = ""; - } -} diff --git a/aptivi.github.io/Data/NamerService.cs b/aptivi.github.io/Data/NamerService.cs deleted file mode 100644 index dafb830..0000000 --- a/aptivi.github.io/Data/NamerService.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Threading.Tasks; -using Textify.Data.Analysis.NameGen; - -namespace aptivi.github.io.Data -{ - public class NamerService - { - public static async Task GetNames(NamerSettings namerSettings) - { - return await NameGenerator.GenerateNamesAsync( - namerSettings.NameCount, - namerSettings.NameStartsWith, - namerSettings.NameEndsWith, - namerSettings.SurnameStartsWith, - namerSettings.SurnameEndsWith - ); - } - - public static async Task GetFirstNames(NamerSettings namerSettings) - { - return await NameGenerator.GenerateFirstNamesAsync( - namerSettings.NameCount, - namerSettings.NameStartsWith, - namerSettings.NameEndsWith - ); - } - - public static async Task GetLastNames(NamerSettings namerSettings) - { - return await NameGenerator.GenerateLastNamesAsync( - namerSettings.NameCount, - namerSettings.SurnameStartsWith, - namerSettings.SurnameEndsWith - ); - } - - public static async Task FindNames(NamerFinderSettings namerSettings) - { - return await NameGenerator.FindFirstNamesAsync( - namerSettings.NameSearchTerm, - namerSettings.NameStartsWith, - namerSettings.NameEndsWith - ); - } - - public static async Task FindSurnames(NamerFinderSettings namerSettings) - { - return await NameGenerator.FindLastNamesAsync( - namerSettings.SurnameSearchTerm, - namerSettings.SurnameStartsWith, - namerSettings.SurnameEndsWith - ); - } - } -} diff --git a/aptivi.github.io/Data/NamerSettings.cs b/aptivi.github.io/Data/NamerSettings.cs deleted file mode 100644 index d81750d..0000000 --- a/aptivi.github.io/Data/NamerSettings.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace aptivi.github.io.Data -{ - public class NamerSettings - { - public int NameCount { get; set; } = 10; - public string NameStartsWith { get; set; } = ""; - public string NameEndsWith { get; set; } = ""; - public string SurnameStartsWith { get; set; } = ""; - public string SurnameEndsWith { get; set; } = ""; - } -} diff --git a/aptivi.github.io/Data/WordService.cs b/aptivi.github.io/Data/WordService.cs deleted file mode 100644 index 8acb0e6..0000000 --- a/aptivi.github.io/Data/WordService.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Nettify.EnglishDictionary; -using System.Threading.Tasks; - -namespace aptivi.github.io.Data -{ - public class WordService - { - public async Task GetDefinition(WordSettings wordSettings) => - await DictionaryManager.GetWordInfoAsync(wordSettings.SelectedWord); - } -} diff --git a/aptivi.github.io/Data/WordSettings.cs b/aptivi.github.io/Data/WordSettings.cs deleted file mode 100644 index e11f067..0000000 --- a/aptivi.github.io/Data/WordSettings.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace aptivi.github.io.Data -{ - public class WordSettings - { - public string SelectedWord { get; set; } = ""; - public int SelectedPage { get; set; } = 1; - } -} diff --git a/aptivi.github.io/Pages/DefineWord.razor b/aptivi.github.io/Pages/DefineWord.razor deleted file mode 100644 index ff9b556..0000000 --- a/aptivi.github.io/Pages/DefineWord.razor +++ /dev/null @@ -1,119 +0,0 @@ -@page "/define" - -Nettify's Dictionary Demo - Aptivi - -@using System.Threading; -@using System.Net; -@using System.Text; -@using Nettify.EnglishDictionary -@using Textify.Data.Analysis.Words -@using aptivi.github.io.Data -@using System.IO -@using System.Text.Json -@inject WordService Service -@inject NavigationManager NavManager - -

Nettify's Dictionary Demo

-
-

- - You can try the Nettify's Dictionary feature here. Select a word from the dropdown menu to be defined. - The list of words is provided to you by the Nettify library, which is demonstrated here, too! -

- - - @if (words == null) - { -

- Fetching words, please wait... -

- } - else - { -

Page:

- -
-

Word to define:

- - @for (int i = maxItems * (wordSettings.SelectedPage - 1); i < maxItems * wordSettings.SelectedPage && i < words.Length - 1; i++) - { - string word = words[i]; - - } - -
- - } - - @if (errored) - { -

- @errorReason -

- } - else if (wordsToDefine == null) - { -

- Click on the above button to define a selected word. -

- } - else - { - errored = false; - - - - - - - - - @foreach (var word in wordsToDefine) - { - @foreach (var meaning in word.Meanings) - { - @foreach (string meaningElement in @meaning.Definitions.Select((def) => string.IsNullOrWhiteSpace(def.Example) ? $"- {def.Definition}" : $"- {def.Definition} - [{def.Example}]")) - { - - - - - } - } - } - -
Part of speechMeanings
@meaning.PartOfSpeech@meaningElement
- } -
- -

Licensed to you by CC-BY-SA 3.0

- -@code { - private string[] words; - private WordSettings wordSettings = new(); - private DictionaryWord[] wordsToDefine; - private int maxPages = 1; - private int maxItems = 200; - private bool errored = false; - private string errorReason = ""; - - protected override async Task OnInitializedAsync() - { - words = await WordManager.GetWordsAsync(); - maxPages = (int)Math.Truncate((double)words.Length / maxItems); - } - - public async Task PopulateDefinition() - { - try - { - wordsToDefine = await Service.GetDefinition(wordSettings); - errored = false; - } - catch (Exception ex) - { - errored = true; - errorReason = ex.Message; - } - } -} diff --git a/aptivi.github.io/Pages/Demos.razor b/aptivi.github.io/Pages/Demos.razor deleted file mode 100644 index 83071e9..0000000 --- a/aptivi.github.io/Pages/Demos.razor +++ /dev/null @@ -1,74 +0,0 @@ -@page "/demos" - -Project Demos - Aptivi - -@using System.Threading; -@using System.Net; -@using System.Text; -@using aptivi.github.io.Data -@using System.IO -@using System.Text.Json -@inject ProjectService ProjService -@inject NavigationManager NavManager - -

Demos

-
-

- - Here lists all our project demos that you can try out from this website. In order to be able to utilize the - demonstrated library, you must install it to your C# project. Select one of the projects below. -

- - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescription
- Define Word - - This demo application allows you to define a word according to the list of words from The English - Dictionary API. This is based on Nettify. - - -
- Find Names - - This demo application allows you to find names with conditions according to the exer-expanding - list of all the English-pronounced names. This is based on Textify and our words list. - - -
- Generate Names - - This demo application allows you to generate names with conditions according to the exer-expanding - list of all the English-pronounced names. This is based on Textify and our words list. - - -
diff --git a/aptivi.github.io/Pages/FindNames.razor b/aptivi.github.io/Pages/FindNames.razor deleted file mode 100644 index 3694ed7..0000000 --- a/aptivi.github.io/Pages/FindNames.razor +++ /dev/null @@ -1,149 +0,0 @@ -@page "/namefind" - -Name Finder Demo - Aptivi - -@using System.Threading; -@using System.Net; -@using System.Text; -@using Textify.Data -@using aptivi.github.io.Data -@using System.IO -@using System.Text.Json -@inject ProjectService ProjService -@inject NavigationManager NavManager - -

Name Finder Demo

-
-

- - You can try the Textify's Name Generator feature here. Here are all the options that you can specify - while finding names. -

- - - -

First Name Search term

- -
-

Prefix

- -
-

Suffix

- -
- - - @if (firstNames == null) - { -

- Click on the generate button to generate first names. -

- } - else if (errored) - { -

- @errorReason -

- } - else - { - errored = false; - - - - - - - - @for (int i = 0; i < firstNames.Length; i++) - { - - - - } - -
First name
@firstNames[i]
- } - - -

Last Name Search term

- -
-

Prefix

- -
-

Suffix

- -
- - - @if (lastNames == null) - { -

- Click on the generate button to generate last names. -

- } - else if (errored) - { -

- @errorReason -

- } - else - { - errored = false; - - - - - - - - @for (int i = 0; i < lastNames.Length; i++) - { - - - - } - -
Last name
@lastNames[i]
- } -
- -@code{ - public NamerFinderSettings namerSettings = new(); - public static string[] firstNames; - public static string[] lastNames; - public static bool errored = false; - public static string errorReason = ""; - - public async Task PopulateNames() - { - try - { - firstNames = await NamerService.FindNames(namerSettings); - } - catch (Exception ex) - { - errored = true; - errorReason = ex.Message; - } - } - - public async Task PopulateSurnames() - { - try - { - lastNames = await NamerService.FindSurnames(namerSettings); - } - catch (Exception ex) - { - errored = true; - errorReason = ex.Message; - } - } -} diff --git a/aptivi.github.io/Pages/GenerateNames.razor b/aptivi.github.io/Pages/GenerateNames.razor deleted file mode 100644 index 219fa5e..0000000 --- a/aptivi.github.io/Pages/GenerateNames.razor +++ /dev/null @@ -1,100 +0,0 @@ -@page "/namegen" - -Name Generator Demo - Aptivi - -@using System.Threading; -@using System.Net; -@using System.Text; -@using Textify.Data -@using aptivi.github.io.Data -@using System.IO -@using System.Text.Json -@inject ProjectService ProjService -@inject NavigationManager NavManager - -

Name Generator Demo

-
-

- - You can try the Textify's Name Generator library here. Here are all the options that you can specify - while generating names. -

- - -

Name count

- -
-

Name starts with...

- -
-

Name ends with...

- -
-

Surname starts with...

- -
-

Surname ends with...

- -
- - - @if (names == null && firstNames == null && lastNames == null) - { -

- Click on the generate button to generate names. -

- } - else if (errored) - { -

- @errorReason -

- } - else - { - errored = false; - - - - - - - - - - @for (int i = 0; i < names.Length; i++) - { - - - - - - } - -
NameFirst nameLast name
@names[i]@firstNames[i]@lastNames[i]
- } -
- -@code{ - public NamerSettings namerSettings = new(); - public static string[] names; - public static string[] firstNames; - public static string[] lastNames; - public static bool errored = false; - public static string errorReason = ""; - - public async Task PopulateNames() - { - try - { - names = await NamerService.GetNames(namerSettings); - firstNames = await NamerService.GetFirstNames(namerSettings); - lastNames = await NamerService.GetLastNames(namerSettings); - } - catch (Exception ex) - { - errored = true; - errorReason = ex.Message; - } - } -} diff --git a/aptivi.github.io/Shared/NavMenu.razor b/aptivi.github.io/Shared/NavMenu.razor index 4cd7a4c..f014233 100644 --- a/aptivi.github.io/Shared/NavMenu.razor +++ b/aptivi.github.io/Shared/NavMenu.razor @@ -18,7 +18,7 @@ diff --git a/aptivi.github.io/aptivi.github.io.csproj b/aptivi.github.io/aptivi.github.io.csproj index ff0c274..4dc64db 100644 --- a/aptivi.github.io/aptivi.github.io.csproj +++ b/aptivi.github.io/aptivi.github.io.csproj @@ -7,10 +7,7 @@ - - -