Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git

This commit is contained in:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md.
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net5.0/JSPromises.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
+41
View File
@@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/JSPromises.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/JSPromises.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/JSPromises.sln"
],
"problemMatcher": "$msCompile"
}
]
}
@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace JSPromises.Controllers
{
[ApiController]
[Route("decorations")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet("bgcolor/{choice}")]
public string GetBGColor(string choice)
{
Task.Delay(3000).Wait();
if (choice.Equals("a")){
return "blue";
}
else{
return "green";
}
}
[HttpGet("border/{choice}")]
public string GetBorder(string choice)
{
Task.Delay(3000).Wait();
if (choice.Equals("a")){
return "thick dashed red";
}
else{
return "thick dotted orange";
}
}
}
}
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
</Project>
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JSPromises", "JSPromises.csproj", "{2DEDDA6B-12B1-4E84-B7C9-CCC222696F29}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2DEDDA6B-12B1-4E84-B7C9-CCC222696F29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2DEDDA6B-12B1-4E84-B7C9-CCC222696F29}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2DEDDA6B-12B1-4E84-B7C9-CCC222696F29}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2DEDDA6B-12B1-4E84-B7C9-CCC222696F29}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6FEC0697-E814-409F-A4E8-FBDFFA8AEF30}
EndGlobalSection
EndGlobal
+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace JSPromises
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
@@ -0,0 +1,31 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:15949",
"sslPort": 44349
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"JSPromises": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
+60
View File
@@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
namespace JSPromises
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "JSPromises", Version = "v1" });
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "JSPromises v1"));
}
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
@@ -0,0 +1,15 @@
using System;
namespace JSPromises
{
public class WeatherForecast
{
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; }
}
}
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\dolce\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\dolce\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
]
}
}
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "5.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = ".NET 5.0")]
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("JSPromises")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7908113e844d5952096b6c6bcaa4918be06887d2")]
[assembly: System.Reflection.AssemblyProductAttribute("JSPromises")]
[assembly: System.Reflection.AssemblyTitleAttribute("JSPromises")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
d9731828b54c365ce1f8ae44e97691e4d47c727515652e44df5d843d2b3b4f41
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = JSPromises
build_property.ProjectDir = C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
@@ -0,0 +1,16 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
2bee931b06083a046d68da3a0a646605274e8b87924ac02f701b6840334be00e
@@ -0,0 +1 @@
4b698dbbd9a7970690743cf9e43a10f3c2f6b19532e52251d63d3f9da524b634
@@ -0,0 +1,34 @@
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\appsettings.Development.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\appsettings.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.exe
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.deps.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.runtimeconfig.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.runtimeconfig.dev.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\JSPromises.pdb
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\Microsoft.OpenApi.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.csproj.AssemblyReference.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.AssemblyInfoInputs.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.AssemblyInfo.cs
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.csproj.CoreCompileInputs.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.MvcApplicationPartsAssemblyInfo.cs
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.MvcApplicationPartsAssemblyInfo.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.sourcelink.json
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.RazorTargetAssemblyInfo.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\scopedcss\bundle\JSPromises.styles.css
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\JSPromises.StaticWebAssets.Manifest.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\JSPromises.StaticWebAssets.Pack.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\msbuild.JSPromises.Microsoft.AspNetCore.StaticWebAssets.props
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\msbuild.build.JSPromises.props
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\msbuild.buildMultiTargeting.JSPromises.props
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\staticwebassets\msbuild.buildTransitive.JSPromises.props
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.csproj.CopyComplete
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\refint\JSPromises.dll
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.pdb
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\JSPromises.genruntimeconfig.cache
C:\Users\dolce\OneDrive\Documents\Coastal\CSCI\CSCI350\promises\JSPromises\obj\Debug\net5.0\ref\JSPromises.dll
@@ -0,0 +1 @@
c8136efb2fdb47bd9f79261acf3a6d6f627dc3d824735d709caca4921cb02bb8
@@ -0,0 +1 @@
{"documents":{"C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\*":"https://raw.githubusercontent.com/DulcisL/CSCI/49290bf9c7c33bc367e0de64155cf5475280a1aa/*"}}
@@ -0,0 +1 @@
41a4f60e9dfabe2492d897b6a1912410c4149e032a07331d983281543682dc78
@@ -0,0 +1,20 @@
<Project>
<ItemGroup>
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\index.html))">
<SourceType>Package</SourceType>
<SourceId>JSPromises</SourceId>
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
<BasePath>_content/JSPromises</BasePath>
<RelativePath>index.html</RelativePath>
<AssetKind></AssetKind>
<AssetMode></AssetMode>
<AssetRole></AssetRole>
<RelatedAsset></RelatedAsset>
<AssetTraitName></AssetTraitName>
<AssetTraitValue></AssetTraitValue>
<CopyToOutputDirectory></CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\index.html))</OriginalItemSpec>
</StaticWebAsset>
</ItemGroup>
</Project>
@@ -0,0 +1,3 @@
<Project>
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" />
</Project>
@@ -0,0 +1,3 @@
<Project>
<Import Project="..\build\JSPromises.props" />
</Project>
@@ -0,0 +1,3 @@
<Project>
<Import Project="..\buildMultiTargeting\JSPromises.props" />
</Project>
@@ -0,0 +1,76 @@
{
"format": 1,
"restore": {
"C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj": {}
},
"projects": {
"C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj",
"projectName": "JSPromises",
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj",
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\dolce\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\dolce\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\dolce\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.props')" />
<Import Project="$(NuGetPackageRoot)swashbuckle.aspnetcore\5.6.3\build\Swashbuckle.AspNetCore.props" Condition="Exists('$(NuGetPackageRoot)swashbuckle.aspnetcore\5.6.3\build\Swashbuckle.AspNetCore.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_Extensions_ApiDescription_Server Condition=" '$(PkgMicrosoft_Extensions_ApiDescription_Server)' == '' ">C:\Users\dolce\.nuget\packages\microsoft.extensions.apidescription.server\3.0.0</PkgMicrosoft_Extensions_ApiDescription_Server>
</PropertyGroup>
</Project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.apidescription.server\3.0.0\build\Microsoft.Extensions.ApiDescription.Server.targets')" />
</ImportGroup>
</Project>
@@ -0,0 +1,283 @@
{
"version": 3,
"targets": {
"net5.0": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"type": "package",
"build": {
"build/Microsoft.Extensions.ApiDescription.Server.props": {},
"build/Microsoft.Extensions.ApiDescription.Server.targets": {}
},
"buildMultiTargeting": {
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {},
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {}
}
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"compile": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {
"related": ".pdb;.xml"
}
}
},
"Swashbuckle.AspNetCore/5.6.3": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.ApiDescription.Server": "3.0.0",
"Swashbuckle.AspNetCore.Swagger": "5.6.3",
"Swashbuckle.AspNetCore.SwaggerGen": "5.6.3",
"Swashbuckle.AspNetCore.SwaggerUI": "5.6.3"
},
"build": {
"build/Swashbuckle.AspNetCore.props": {}
}
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"type": "package",
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {
"related": ".pdb;.xml"
}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"type": "package",
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "5.6.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {
"related": ".pdb;.xml"
}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
"type": "package",
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {
"related": ".pdb;.xml"
}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
}
}
},
"libraries": {
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {
"sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==",
"type": "package",
"path": "microsoft.extensions.apidescription.server/3.0.0",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Microsoft.Extensions.ApiDescription.Server.props",
"build/Microsoft.Extensions.ApiDescription.Server.targets",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props",
"buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets",
"microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"microsoft.extensions.apidescription.server.nuspec",
"tools/Newtonsoft.Json.dll",
"tools/dotnet-getdocument.deps.json",
"tools/dotnet-getdocument.dll",
"tools/dotnet-getdocument.runtimeconfig.json",
"tools/net461-x86/GetDocument.Insider.exe",
"tools/net461-x86/GetDocument.Insider.exe.config",
"tools/net461/GetDocument.Insider.exe",
"tools/net461/GetDocument.Insider.exe.config",
"tools/netcoreapp2.1/GetDocument.Insider.deps.json",
"tools/netcoreapp2.1/GetDocument.Insider.dll",
"tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json"
]
},
"Microsoft.OpenApi/1.2.3": {
"sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"type": "package",
"path": "microsoft.openapi/1.2.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net46/Microsoft.OpenApi.dll",
"lib/net46/Microsoft.OpenApi.pdb",
"lib/net46/Microsoft.OpenApi.xml",
"lib/netstandard2.0/Microsoft.OpenApi.dll",
"lib/netstandard2.0/Microsoft.OpenApi.pdb",
"lib/netstandard2.0/Microsoft.OpenApi.xml",
"microsoft.openapi.1.2.3.nupkg.sha512",
"microsoft.openapi.nuspec"
]
},
"Swashbuckle.AspNetCore/5.6.3": {
"sha512": "UkL9GU0mfaA+7RwYjEaBFvAzL8qNQhNqAeV5uaWUu/Z+fVgvK9FHkGCpTXBqSQeIHuZaIElzxnLDdIqGzuCnVg==",
"type": "package",
"path": "swashbuckle.aspnetcore/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/Swashbuckle.AspNetCore.props",
"swashbuckle.aspnetcore.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.nuspec"
]
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"sha512": "rn/MmLscjg6WSnTZabojx5DQYle2GjPanSPbCU3Kw8Hy72KyQR3uy8R1Aew5vpNALjfUFm2M/vwUtqdOlzw+GA==",
"type": "package",
"path": "swashbuckle.aspnetcore.swagger/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml",
"swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swagger.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"sha512": "CkhVeod/iLd3ikVTDOwG5sym8BE5xbqGJ15iF3cC7ZPg2kEwDQL4a88xjkzsvC9oOB2ax6B0rK0EgRK+eOBX+w==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggergen/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swaggergen.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerUI/5.6.3": {
"sha512": "BPvcPxQRMsYZ3HnYmGKRWDwX4Wo29WHh14Q6B10BB8Yfbbcza+agOC2UrBFA1EuaZuOsFLbp6E2+mqVNF/Je8A==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggerui/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml",
"swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swaggerui.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net5.0": [
"Swashbuckle.AspNetCore >= 5.6.3"
]
},
"packageFolders": {
"C:\\Users\\dolce\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj",
"projectName": "JSPromises",
"projectPath": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj",
"packagesPath": "C:\\Users\\dolce\\.nuget\\packages\\",
"outputPath": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\dolce\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"Swashbuckle.AspNetCore": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
@@ -0,0 +1,15 @@
{
"version": 2,
"dgSpecHash": "ob89P8Dc0jFNROUz4fOdsHCO8fQ2PVLY2FCRlgwymXQvE7G72kpuu6Rsyi5PhApl5WbJprxqA9t4o8A7oXraGw==",
"success": true,
"projectFilePath": "C:\\Users\\dolce\\OneDrive\\Documents\\Coastal\\CSCI\\CSCI350\\promises\\JSPromises\\JSPromises.csproj",
"expectedPackageFiles": [
"C:\\Users\\dolce\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
"C:\\Users\\dolce\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
"C:\\Users\\dolce\\.nuget\\packages\\swashbuckle.aspnetcore\\5.6.3\\swashbuckle.aspnetcore.5.6.3.nupkg.sha512",
"C:\\Users\\dolce\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\5.6.3\\swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"C:\\Users\\dolce\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\5.6.3\\swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"C:\\Users\\dolce\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\5.6.3\\swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512"
],
"logs": []
}
@@ -0,0 +1,91 @@
<script>
var myFunction = function (username) {
return new Promise(
(resolve, reject) => {
setTimeout(function () { resolve(username + "'s promise is resolved"); }, 3000);
}
);
}
myFunction("Ella")
.then(successMessage => { console.log(successMessage); })
//Pass the function
.then(() => myFunction("Fiona"))
.then(
successMessage => {
console.log(successMessage);
}
)
.then(() => myFunction("Harold"))
.then(
successMessage => {
console.log(successMessage);
}
)
.catch(
errorMessage => {
console.log("Error: " + errorMessage);
}
)
console.log("Hi!");
console.log("How are you?");
myFunction("Gary")
.then(
successMessage => {
console.log(successMessage);
}
)
.catch(
errorMessage => {
console.log("Error: " + errorMessage);
}
)
console.log("How is your day?");
var setBackgroundColor = function () {
console.log("Starting Background color change...");
//call a webservice that will give a color
fetch("https://localhost:5001/decorations/bgcolor/a")
.then(
response => {
return response.text()
}
)
.then(
text => {
document.getElementById("stage").style.backgroundColor = text;
console.log("Completed Background change");
}
)
}
//no need for callbacks with async
async function setBackgroundColorAsync(){
console.log("Starting the background color change");
let response = await fetch("https://localhost:5001/decorations/bgcolor/a");
let text = await response.text();
document.getElementById("stage").style.backgroundColor = text;
console.log("Completed Background change");
}
var setBorder = function () {
console.log("Starting Border change...");
//call a webservice that will give a color
fetch("https://localhost:5001/decorations/border/a")
.then(
response => {
return response.text()
}
)
.then(
text => {
document.getElementById("stage").style.border = text; console.log("Completed Border change");
}
)
}
</script>
<h2 id="stage"> Welcome!</h2>
<p><button onClick="setBackgroundColorAsync()">Click to decorate with background color</button></p>
<p><button onclick="setBorder()">Click to decorate border</button></p>