From 7fc7012b293aed9f10ed3482bfe5108b73128a79 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Fri, 8 Jan 2021 18:53:12 -0500 Subject: [PATCH] Complete version change Also put some polish on before initial deployment --- .../Client/JobsJobsJobs.Client.csproj | 4 +- .../Client/Pages/Citizen/Dashboard.razor | 56 ++++++++++++++++++- .../Client/Shared/MainLayout.razor | 12 ++++ .../Client/Shared/MainLayout.razor.css | 8 +++ .../Api/Controllers/CitizenController.cs | 2 + .../Server/JobsJobsJobs.Server.csproj | 2 + src/JobsJobsJobs/Server/Startup.cs | 4 +- .../Shared/JobsJobsJobs.Shared.csproj | 2 + 8 files changed, 86 insertions(+), 4 deletions(-) diff --git a/src/JobsJobsJobs/Client/JobsJobsJobs.Client.csproj b/src/JobsJobsJobs/Client/JobsJobsJobs.Client.csproj index cc14c46..6e841de 100644 --- a/src/JobsJobsJobs/Client/JobsJobsJobs.Client.csproj +++ b/src/JobsJobsJobs/Client/JobsJobsJobs.Client.csproj @@ -1,8 +1,10 @@ - + net5.0 enable + 0.7.0.0 + 0.7.0.0 diff --git a/src/JobsJobsJobs/Client/Pages/Citizen/Dashboard.razor b/src/JobsJobsJobs/Client/Pages/Citizen/Dashboard.razor index b687348..5843972 100644 --- a/src/JobsJobsJobs/Client/Pages/Citizen/Dashboard.razor +++ b/src/JobsJobsJobs/Client/Pages/Citizen/Dashboard.razor @@ -25,6 +25,9 @@ else {

You do not have an employment profile established; click “Profile”* in the menu to get started!

} + @{ + /** + This is phase 3 stuff...

There @(ProfileCount == 1 ? "is" : "are") @(ProfileCount == 0 ? "no" : ProfileCount) employment @@ -33,6 +36,57 @@ else { Take a look around and see if you can help them find work! (coming soon) } -

+

*/ + } } +
+

Phase 2 – What Works (Last Updated January 8th, 2021)

+

+ If you’ve gotten this far, you’ve already passed + Phase 1, which enabled users of + No Agenda Social to create accounts here, simply by allowing the application read access to their profiles. Unless + there are requests for tighter integration with that site, this is the only access to your NAS information that this + application will require. +

+

+ Phase 2 allows you to complete + your employment profile. Much of this is straightforward, but there are a few things you might want to know before + you fill it out: +

+
    +
  • + The “View Your Employment Profile” link (which you”ll see on this page, once your profile is + established) shows your profile the way all other validated users will be able to see it (once + Phase 3 is complete). While + this site does not perform communication with others over No Agenda Social, the name on employment profiles is a + link to that user’s profile; from there, others can communicate further with you using the tools Mastodon + provides. +
  • +
  • + The “Professional Biography” and “Experience” sections support Markdown, a plain-text way + to specify formatting quite similar to that provided by word processors. The + original page for the project is a good + overview of its capabilities, and the pages at Markdown + Guide give in-depth lessons to make the most of this language. The version of Markdown employed here supports + many popular extensions, include smart quotes (turning "a quote" into “a quote”), tables, + super/subscripts, and more. +
  • +
  • + Skills are optional, but they are the place to record skills you have. Along with the skill, there is a + “Notes” section, which can be used to indicate the time you’ve practiced a particular skill, the + mastery you have of that skill, etc. It is free-form text, so it is all up to you how you utilize the field. +
  • +
  • + The “Experience” field is intended to capture a chronological or topical employment history; with this + “quick-n-dirty” implementation, this Markdown box can be used to capture that information however you + would like it presented to fellow citizens. +
  • +
  • + Phase 5 includes allowing + public access to the continent, region, and skills fields of Gitmo Nation citizens who indicate that they are both + seeking employment and want their information disclosed to public users. The “Allow my + profile to be searched publicly” checkbox, at the bottom of the page where you edit your employment profile, + is how you opt your profile in to this list. +
  • +
\ No newline at end of file diff --git a/src/JobsJobsJobs/Client/Shared/MainLayout.razor b/src/JobsJobsJobs/Client/Shared/MainLayout.razor index 3731c9b..b37c8c1 100644 --- a/src/JobsJobsJobs/Client/Shared/MainLayout.razor +++ b/src/JobsJobsJobs/Client/Shared/MainLayout.razor @@ -1,4 +1,5 @@ @inherits LayoutComponentBase +@using System.Reflection @inject IJSRuntime js @using Blazored.Toast.Configuration @@ -19,6 +20,7 @@ +
Jobs, Jobs, Jobs @Version
await js.InvokeVoidAsync("Audio.play", "pelosijobs"); + + private string Version { get; set; } = ""; + + protected override void OnInitialized() + { + var version = Assembly.GetExecutingAssembly().GetName().Version!; + Version = $"v{version.Major}.{version.Minor}"; + if (version.Revision > 0) Version += $".{version.Revision}"; + base.OnInitialized(); + } } diff --git a/src/JobsJobsJobs/Client/Shared/MainLayout.razor.css b/src/JobsJobsJobs/Client/Shared/MainLayout.razor.css index 30ab16b..2ced383 100644 --- a/src/JobsJobsJobs/Client/Shared/MainLayout.razor.css +++ b/src/JobsJobsJobs/Client/Shared/MainLayout.razor.css @@ -69,3 +69,11 @@ padding-right: 1.5rem !important; } } + +.app-version { + padding-top: 2rem; + text-align: right; + color: rgba(0, 0, 0, .25); + font-style: italic; + font-size: .8rem; +} diff --git a/src/JobsJobsJobs/Server/Areas/Api/Controllers/CitizenController.cs b/src/JobsJobsJobs/Server/Areas/Api/Controllers/CitizenController.cs index 1e2ccf1..2d03103 100644 --- a/src/JobsJobsJobs/Server/Areas/Api/Controllers/CitizenController.cs +++ b/src/JobsJobsJobs/Server/Areas/Api/Controllers/CitizenController.cs @@ -1,6 +1,7 @@ using JobsJobsJobs.Server.Data; using JobsJobsJobs.Shared; using JobsJobsJobs.Shared.Api; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using NodaTime; @@ -79,6 +80,7 @@ namespace JobsJobsJobs.Server.Areas.Api.Controllers return new JsonResult(new LogOnSuccess(jwt, citizen.Id.ToString(), citizen.DisplayName)); } + [Authorize] [HttpGet("get/{id}")] public async Task GetCitizenById([FromRoute] string id) { diff --git a/src/JobsJobsJobs/Server/JobsJobsJobs.Server.csproj b/src/JobsJobsJobs/Server/JobsJobsJobs.Server.csproj index 9a66b15..2f2c7ec 100644 --- a/src/JobsJobsJobs/Server/JobsJobsJobs.Server.csproj +++ b/src/JobsJobsJobs/Server/JobsJobsJobs.Server.csproj @@ -4,6 +4,8 @@ net5.0 enable 553960ef-0c79-47d4-98d8-9ca1708e558f + 0.7.0.0 + 0.7.0.0 diff --git a/src/JobsJobsJobs/Server/Startup.cs b/src/JobsJobsJobs/Server/Startup.cs index ed810c9..df84694 100644 --- a/src/JobsJobsJobs/Server/Startup.cs +++ b/src/JobsJobsJobs/Server/Startup.cs @@ -55,8 +55,8 @@ namespace JobsJobsJobs.Server { ValidateIssuer = true, ValidateAudience = true, - ValidAudience = "https://jobsjobs.jobs", - ValidIssuer = "https://jobsjobs.jobs", + ValidAudience = "https://noagendacareers.com", + ValidIssuer = "https://noagendacareers.com", IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes( Configuration.GetSection("Auth")["ServerSecret"])) }; diff --git a/src/JobsJobsJobs/Shared/JobsJobsJobs.Shared.csproj b/src/JobsJobsJobs/Shared/JobsJobsJobs.Shared.csproj index a27a8db..3dab347 100644 --- a/src/JobsJobsJobs/Shared/JobsJobsJobs.Shared.csproj +++ b/src/JobsJobsJobs/Shared/JobsJobsJobs.Shared.csproj @@ -3,6 +3,8 @@ net5.0 enable + 0.7.0.0 + 0.7.0.0