diff --git a/Wonky.Client/App.razor b/Wonky.Client/App.razor index d57f60f3..90355fb1 100644 --- a/Wonky.Client/App.razor +++ b/Wonky.Client/App.razor @@ -1,16 +1,16 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ diff --git a/Wonky.Client/Components/ActivityButton.razor b/Wonky.Client/Components/ActivityButton.razor new file mode 100644 index 00000000..9adc816b --- /dev/null +++ b/Wonky.Client/Components/ActivityButton.razor @@ -0,0 +1,13 @@ +@if (Enabled) +{ + Opret Besøg +} +else +{ + Opret Besøg +} + +@code { + [Parameter] public string? CompanyId { get; set; } + [Parameter] public bool Enabled { get; set; } +} \ No newline at end of file diff --git a/Wonky.Client/Components/AppSpinner.razor b/Wonky.Client/Components/AppSpinner.razor index 68b79a19..7fee2462 100644 --- a/Wonky.Client/Components/AppSpinner.razor +++ b/Wonky.Client/Components/AppSpinner.razor @@ -1,16 +1,16 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@
diff --git a/Wonky.Client/Components/AppVersion.razor b/Wonky.Client/Components/AppVersion.razor index 2c8d3c35..a6ad2ae8 100644 --- a/Wonky.Client/Components/AppVersion.razor +++ b/Wonky.Client/Components/AppVersion.razor @@ -1,23 +1,24 @@ +@using Wonky.Entity.Configuration +@using Microsoft.Extensions.Options @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ -@Name @Version@if(IsBeta){-beta} +@Version@if(IsBeta){-beta} @code { - private const string Version = "0.2.48"; - private const string Name = "wwo"; + private const string Version = "0.3"; private const bool IsBeta = true; } diff --git a/Wonky.Client/Components/AuthLinks.razor.css b/Wonky.Client/Components/AuthLinks.razor.css deleted file mode 100644 index 487b7ba3..00000000 --- a/Wonky.Client/Components/AuthLinks.razor.css +++ /dev/null @@ -1,4 +0,0 @@ - -a, a:link, a:hover, a:visited, a:active { - color: #ffaa00; -} \ No newline at end of file diff --git a/Wonky.Client/Components/ColorCoding.razor b/Wonky.Client/Components/ColorCoding.razor new file mode 100644 index 00000000..7d3eecb1 --- /dev/null +++ b/Wonky.Client/Components/ColorCoding.razor @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FarvekodeBetydning
+ state + + Ok +
+ state + + Planlæg besøg +
+ state + + Inteval overskredet +
+ state + + Opdatering nødvendig +
+ state + + Virksomhed ophørt +
diff --git a/Wonky.Client/Components/ColorCoding.razor.css b/Wonky.Client/Components/ColorCoding.razor.css new file mode 100644 index 00000000..002017f5 --- /dev/null +++ b/Wonky.Client/Components/ColorCoding.razor.css @@ -0,0 +1,4 @@ + +.color-code { + max-width: 40px; +} \ No newline at end of file diff --git a/Wonky.Client/Components/CompanyListHeader.razor b/Wonky.Client/Components/CompanyListHeader.razor index bf8e2938..7c975db0 100644 --- a/Wonky.Client/Components/CompanyListHeader.razor +++ b/Wonky.Client/Components/CompanyListHeader.razor @@ -1,16 +1,16 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ diff --git a/Wonky.Client/Components/CompanySearchDropdown.razor b/Wonky.Client/Components/CompanySearchDropdown.razor index 83cb439c..09d6927b 100644 --- a/Wonky.Client/Components/CompanySearchDropdown.razor +++ b/Wonky.Client/Components/CompanySearchDropdown.razor @@ -1,16 +1,16 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ diff --git a/Wonky.Client/Components/CompanySearchDropdown.razor.cs b/Wonky.Client/Components/CompanySearchDropdown.razor.cs index 252ff5dd..5115e89b 100644 --- a/Wonky.Client/Components/CompanySearchDropdown.razor.cs +++ b/Wonky.Client/Components/CompanySearchDropdown.razor.cs @@ -1,16 +1,16 @@ // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // diff --git a/Wonky.Client/Components/CompanySortDropdown.razor b/Wonky.Client/Components/CompanySortDropdown.razor index 4ead8fd4..c8f6af77 100644 --- a/Wonky.Client/Components/CompanySortDropdown.razor +++ b/Wonky.Client/Components/CompanySortDropdown.razor @@ -1,16 +1,16 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ diff --git a/Wonky.Client/Components/CompanySortDropdown.razor.cs b/Wonky.Client/Components/CompanySortDropdown.razor.cs index a91621db..df2623f2 100644 --- a/Wonky.Client/Components/CompanySortDropdown.razor.cs +++ b/Wonky.Client/Components/CompanySortDropdown.razor.cs @@ -1,16 +1,16 @@ // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // diff --git a/Wonky.Client/Components/CompanyTable.razor b/Wonky.Client/Components/CompanyTable.razor index d058fe11..f01295fe 100644 --- a/Wonky.Client/Components/CompanyTable.razor +++ b/Wonky.Client/Components/CompanyTable.razor @@ -1,38 +1,51 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ @using Wonky.Client.Components; @using Wonky.Client.Helpers; + @if (Companies.Any()) { -
- +
- +
diff --git a/Wonky.Client/Pages/CrmActivityCreate.razor.cs b/Wonky.Client/Pages/CrmActivityCreate.razor.cs index d5b66330..3d5b7aaa 100644 --- a/Wonky.Client/Pages/CrmActivityCreate.razor.cs +++ b/Wonky.Client/Pages/CrmActivityCreate.razor.cs @@ -1,15 +1,15 @@ // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // @@ -26,6 +26,7 @@ using Wonky.Client.Services; using Wonky.Client.Shared; using Wonky.Entity.DTO; using Wonky.Entity.Requests; +using Wonky.Entity.Views; namespace Wonky.Client.Pages; @@ -45,8 +46,8 @@ public partial class CrmActivityCreate : IDisposable private List SalesItems { get; set; } = new(); private MetaData MetaData { get; set; } = new(); private Preferences _prefs { get; set; } = new(); - private DtoNgActivity _poDraft { get; set; } = new(); - private DtoNgCompany NgCompany = new(); + private ActivityDto _poDraft { get; set; } = new(); + private CompanyDto NgCompany = new(); private CatalogPagingParams _paging = new(); private EditContext DraftContext { get; set; } private bool _poFormInvalid { get; set; } = true; @@ -131,10 +132,10 @@ public partial class CrmActivityCreate : IDisposable var ln = 0; // post to create activity endpoint - var lines = new List(); + var lines = new List(); foreach (var item in DraftStateProvider.Draft.Items) { - var line = new DtoNgActivityLine{ + var line = new ActivityLineDto{ Price = item.Price, Discount = item.Discount, Qty = item.Quantity, diff --git a/Wonky.Client/Pages/Index.razor b/Wonky.Client/Pages/Index.razor index dd13f3c3..34abf06d 100644 --- a/Wonky.Client/Pages/Index.razor +++ b/Wonky.Client/Pages/Index.razor @@ -1,26 +1,28 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ @page "/" @page "/index" -@inject IWebAssemblyHostEnvironment _hostEnvironment +@page "/home" @using Wonky.Client.Components; @code{ + + } diff --git a/Wonky.Client/Pages/Info.razor b/Wonky.Client/Pages/Info.razor new file mode 100644 index 00000000..fd0495b2 --- /dev/null +++ b/Wonky.Client/Pages/Info.razor @@ -0,0 +1,40 @@ +@* +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// +*@@using Wonky.Client.Components +@page "/info" + + +
+
+ Wonky Logo +
+
+
+
+ +
+
+
+
+
+ App version +
+ +
+
+
+
+ diff --git a/Wonky.Client/Pages/Info.razor.css b/Wonky.Client/Pages/Info.razor.css new file mode 100644 index 00000000..de0c190c --- /dev/null +++ b/Wonky.Client/Pages/Info.razor.css @@ -0,0 +1,4 @@ +.grumpy-coder { + width: 100px; + height: 100px; +} \ No newline at end of file diff --git a/Wonky.Client/Pages/Login.razor b/Wonky.Client/Pages/Login.razor index bdef3527..0d210d73 100644 --- a/Wonky.Client/Pages/Login.razor +++ b/Wonky.Client/Pages/Login.razor @@ -1,58 +1,74 @@ @* // Copyright (C) 2022 FCS Frede's Computer Services. // This program is free software: you can redistribute it and/or modify -// it under the terms of the Affero GNU General Public License as +// it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// Affero GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the Affero GNU General Public License +// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // *@ @using Wonky.Client.Components @page "/login/{returnUrl?}" -

Login

-@if - (ShowAuthError) -{ -