dark theme, logo, tests

broken/ef
Paul Schneider 3 years ago
parent 51a08dec9a
commit cd3629a5a0
9 changed files with 43 additions and 24 deletions

@ -3,10 +3,12 @@
"dotnet-test-explorer.runInParallel": false, "dotnet-test-explorer.runInParallel": false,
"dotnet-test-explorer.showCodeLens": true, "dotnet-test-explorer.showCodeLens": true,
"dotnet-test-explorer.testArguments": "", "dotnet-test-explorer.testArguments": "",
"nxunitExplorer.nunit": "${workspaceFolder}/packages/nunit3-console.1.0.0/lib/net20/nunit3-console.exe",
"nxunitExplorer.xunit": "${workspaceFolder}/packages/xunit.runner.console.2.4.1/tools/net472/xunit.console.exe",
"nxunitExplorer.modules": [ "nxunitExplorer.modules": [
"test/**/bin/**/*.{dll,exe}" "test/i*/bin/Debug/*/*.tests.dll"
], ],
"nxunitExplorer.logpanel": true "nxunitExplorer.skippattern": "",
"dotnetCoreExplorer.runEnvVars": {
"ASPNETCORE_ENVIRONMENT": "Testing"
},
"dotnetCoreExplorer.searchpatterns": "test/**/bin/**/*.tests.{dll,exe}"
} }

11
.vscode/tasks.json vendored

@ -50,13 +50,19 @@
], ],
"problemMatcher": "$msCompile" "problemMatcher": "$msCompile"
}, },
{
"label": "copyTestConfig",
"command": "dotnet",
"type": "process",
"args": [ "build", "/t:CopyTestConfig" ]
},
{ {
"label": "test", "label": "test",
"command": "dotnet", "command": "dotnet",
"type": "process", "type": "process",
"options": { "options": {
"env": { "env": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Testing"
} }
}, },
"args": [ "args": [
@ -64,7 +70,8 @@
"/property:GenerateFullPaths=true", "/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary" "/consoleloggerparameters:NoSummary"
], ],
"problemMatcher": "$msCompile" "problemMatcher": "$msCompile",
"dependsOn": [ "build", "copyTestConfig"]
}, },
{ {
"label": "watch", "label": "watch",

@ -100,15 +100,17 @@ namespace isn
{ {
// une addition // une addition
string ptd = Protector.Protect(apiKey); string ptd = Protector.Protect(apiKey);
var sUri = new Uri(source);
Settings.Sources.Add(source, new SourceSettings { ApiKey = ptd }); Settings.Sources.Add(source, new SourceSettings { ApiKey = ptd });
} }
else return; else return;
FileInfo cfgSettingIf = new FileInfo(_configFileName); FileInfo cfgSettingIf = new FileInfo(_configFileName);
if (!cfgSettingIf.Directory.Exists) cfgSettingIf.Directory.Create(); if (!cfgSettingIf.Directory.Exists) cfgSettingIf.Directory.Create();
File.WriteAllText(cfgSettingIf.FullName, JsonConvert.SerializeObject(Program.Settings)); File.WriteAllText(
cfgSettingIf.FullName,
JsonConvert.SerializeObject(
Settings,
Formatting.Indented
));
} }
public static void LoadConfig() public static void LoadConfig()

@ -20,10 +20,10 @@
else else
{ {
<li class="nav-item"> <li class="nav-item">
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Register">Register</a> <a class="nav-link" asp-area="Identity" asp-page="/Account/Register">Register</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link text-dark" asp-area="Identity" asp-page="/Account/Login">Login</a> <a class="nav-link" asp-area="Identity" asp-page="/Account/Login">Login</a>
</li> </li>
} }
</ul> </ul>

@ -54,7 +54,7 @@ body {
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.5;
color: white; color: #d6d6d6;
text-align: left; text-align: left;
background-color: #272727; } background-color: #272727; }
@ -1318,7 +1318,7 @@ pre {
.table { .table {
width: 100%; width: 100%;
margin-bottom: 1rem; margin-bottom: 1rem;
color: white; } color: #d6d6d6; }
.table th, .table th,
.table td { .table td {
padding: 0.75rem; padding: 0.75rem;
@ -1353,7 +1353,7 @@ pre {
background-color: rgba(0, 0, 0, 0.05); } background-color: rgba(0, 0, 0, 0.05); }
.table-hover tbody tr:hover { .table-hover tbody tr:hover {
color: white; color: #d6d6d6;
background-color: rgba(0, 0, 0, 0.075); } background-color: rgba(0, 0, 0, 0.075); }
.table-primary, .table-primary,
@ -1630,7 +1630,7 @@ select.form-control:focus::-ms-value {
margin-bottom: 0; margin-bottom: 0;
font-size: 1rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
color: white; color: #d6d6d6;
background-color: transparent; background-color: transparent;
border: solid transparent; border: solid transparent;
border-width: 1px 0; } border-width: 1px 0; }
@ -1899,7 +1899,7 @@ textarea.form-control {
.btn { .btn {
display: inline-block; display: inline-block;
font-weight: 400; font-weight: 400;
color: white; color: #d6d6d6;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -1915,7 +1915,7 @@ textarea.form-control {
.btn { .btn {
transition: none; } } transition: none; } }
.btn:hover { .btn:hover {
color: white; color: #d6d6d6;
text-decoration: none; } text-decoration: none; }
.btn:focus, .btn.focus { .btn:focus, .btn.focus {
outline: 0; outline: 0;
@ -2359,7 +2359,7 @@ input[type="button"].btn-block {
padding: 0.5rem 0; padding: 0.5rem 0;
margin: 0.125rem 0 0; margin: 0.125rem 0 0;
font-size: 1rem; font-size: 1rem;
color: white; color: #d6d6d6;
text-align: left; text-align: left;
list-style: none; list-style: none;
background-color: #fff; background-color: #fff;
@ -3940,7 +3940,7 @@ input[type="button"].btn-block {
text-decoration: none; text-decoration: none;
background-color: #f8f9fa; } background-color: #f8f9fa; }
.list-group-item-action:active { .list-group-item-action:active {
color: white; color: #d6d6d6;
background-color: #e9ecef; } background-color: #e9ecef; }
.list-group-item { .list-group-item {
@ -4562,7 +4562,7 @@ a.close.disabled {
.popover-body { .popover-body {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
color: white; } color: #d6d6d6; }
.carousel { .carousel {
position: relative; } position: relative; }
@ -7666,7 +7666,7 @@ a.text-dark:hover, a.text-dark:focus {
color: #121416 !important; } color: #121416 !important; }
.text-body { .text-body {
color: white !important; } color: #d6d6d6 !important; }
.text-muted { .text-muted {
color: #6c757d !important; } color: #6c757d !important; }

@ -1,6 +1,6 @@
// Your variable overrides // Your variable overrides
$body-bg: rgb(39, 39, 39); $body-bg: rgb(39, 39, 39);
$body-color: rgb(255, 255, 255); $body-color: rgb(214, 214, 214);
@import "../lib/bootstrap/scss/bootstrap"; @import "../lib/bootstrap/scss/bootstrap";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

@ -22,5 +22,13 @@
<ProjectReference Include="..\..\src\isnd\isnd.csproj" /> <ProjectReference Include="..\..\src\isnd\isnd.csproj" />
<ProjectReference Include="..\..\src\isn\isn.csproj" /> <ProjectReference Include="..\..\src\isn\isn.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<MyTestingConfigFiles Include="appsettings.Testing.json"/>
</ItemGroup>
<Target Name="CopyTestConfig">
<Copy
SourceFiles="@(MyTestingConfigFiles)"
DestinationFolder="bin\Debug\netcoreapp2.1"
/>
</Target>
</Project> </Project>

Loading…