Complete version change

Also put some polish on before initial deployment
This commit is contained in:
Daniel J. Summers 2021-01-08 18:53:12 -05:00
parent 5866194f63
commit 7fc7012b29
8 changed files with 86 additions and 4 deletions

View File

@ -1,8 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<AssemblyVersion>0.7.0.0</AssemblyVersion>
<FileVersion>0.7.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -25,6 +25,9 @@ else
{
<p>You do not have an employment profile established; click &ldquo;Profile&rdquo;* in the menu to get started!</p>
}
@{
/**
This is phase 3 stuff...
<hr>
<p>
There @(ProfileCount == 1 ? "is" : "are") @(ProfileCount == 0 ? "no" : ProfileCount) employment
@ -33,6 +36,57 @@ else
{
<text>Take a look around and see if you can help them find work!</text> <em>(coming soon)</em>
}
</p>
</p> */
}
</ErrorList>
}
<hr>
<h4>Phase 2 &ndash; What Works <small><em>(Last Updated January 8<sup>th</sup>, 2021)</em></small></h4>
<p>
If you&rsquo;ve gotten this far, you&rsquo;ve already passed
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/1" target="_blank">Phase 1</a>, 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.
</p>
<p>
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/2" target="_blank">Phase 2</a> 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:
</p>
<ul>
<li>
The &ldquo;View Your Employment Profile&rdquo; link (which you&rdquo;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
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/3" target="_blank">Phase 3</a> 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&rsquo;s profile; from there, others can communicate further with you using the tools Mastodon
provides.
</li>
<li>
The &ldquo;Professional Biography&rdquo; and &ldquo;Experience&rdquo; sections support Markdown, a plain-text way
to specify formatting quite similar to that provided by word processors. The
<a href="https://daringfireball.net/projects/markdown/" target="_blank">original page</a> for the project is a good
overview of its capabilities, and the pages at <a href="https://www.markdownguide.org/" target="_blank">Markdown
Guide</a> 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 &ldquo;a quote&rdquo;), tables,
super/subscripts, and more.
</li>
<li>
Skills are optional, but they are the place to record skills you have. Along with the skill, there is a
&ldquo;Notes&rdquo; section, which can be used to indicate the time you&rsquo;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.
</li>
<li>
The &ldquo;Experience&rdquo; field is intended to capture a chronological or topical employment history; with this
&ldquo;quick-n-dirty&rdquo; implementation, this Markdown box can be used to capture that information however you
would like it presented to fellow citizens.
</li>
<li>
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/5" target="_blank">Phase 5</a> includes allowing
public access to the continent, region, and skills fields of Gitmo Nation citizens who indicate that they are both
seeking employment <strong>and</strong> want their information disclosed to public users. The &ldquo;Allow my
profile to be searched publicly&rdquo; checkbox, at the bottom of the page where you edit your employment profile,
is how you opt your profile in to this list.
</li>
</ul>

View File

@ -1,4 +1,5 @@
@inherits LayoutComponentBase
@using System.Reflection
@inject IJSRuntime js
@using Blazored.Toast.Configuration
@ -19,6 +20,7 @@
<source src="/audio/pelosi-jobs.mp3">
</audio>
<div class="app-version">Jobs, Jobs, Jobs @Version</div>
</div>
</div>
<BlazoredToasts Position="ToastPosition.BottomRight"
@ -26,4 +28,14 @@
@code {
async void PlayJobs() => 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();
}
}

View File

@ -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;
}

View File

@ -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<IActionResult> GetCitizenById([FromRoute] string id)
{

View File

@ -4,6 +4,8 @@
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<UserSecretsId>553960ef-0c79-47d4-98d8-9ca1708e558f</UserSecretsId>
<AssemblyVersion>0.7.0.0</AssemblyVersion>
<FileVersion>0.7.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -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"]))
};

View File

@ -3,6 +3,8 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<AssemblyVersion>0.7.0.0</AssemblyVersion>
<FileVersion>0.7.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>