Skip to content

Commit

Permalink
first deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyspaulding committed May 31, 2023
1 parent 7a79bd7 commit 4d97190
Show file tree
Hide file tree
Showing 29 changed files with 5,514 additions and 1,176 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/HVACTopgun-Home.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and deploy .NET Core application to Web App HVACTopgun-Home
on:
push:
branches:
- master
env:
AZURE_WEBAPP_NAME: HVACTopgun-Home
AZURE_WEBAPP_PACKAGE_PATH: HVACTopgun_v5\published
CONFIGURATION: Release
DOTNET_CORE_VERSION: 7.0.x
WORKING_DIRECTORY: HVACTopgun_v5
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
- name: Publish
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
deploy:
runs-on: windows-latest
needs: build
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.HVACTopgun_Home_22D0 }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
10 changes: 3 additions & 7 deletions HVACTopgun_v5/Data/ScheduleData.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HVACTopgun_v5.Data
namespace HVACTopgun_v5.Data
{
public class ScheduleData
{
Expand Down Expand Up @@ -621,10 +616,11 @@ public class AppointmentData
public string StartTimezone { get; set; } = string.Empty;
public string EndTimezone { get; set; } = string.Empty;
}

public class ResourceData : AppointmentData
{
public int ProjectId { get; set; }
public int CategoryId { get; set; }
}
}
}
}
23 changes: 13 additions & 10 deletions HVACTopgun_v5/HVACTopgun_v5.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
<ItemGroup>
<PackageReference Include="Blazored.LocalStorage" Version="4.3.0" />
<PackageReference Include="Blazored.SessionStorage" Version="2.3.0" />
<PackageReference Include="Syncfusion.Blazor.Schedule" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Calendars" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Popups" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Cards" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Inputs" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Buttons" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Navigations" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Notifications" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.DropDowns" Version="21.2.5" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="21.2.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.5" />
<PackageReference Include="Syncfusion.Blazor.Schedule" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Calendars" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Popups" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Cards" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Inputs" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Buttons" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Navigations" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Notifications" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.DropDowns" Version="21.2.8" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="21.2.8" />
</ItemGroup>

<Target Name="CheckForNpm" BeforeTargets="BuildCSS">
Expand Down
454 changes: 347 additions & 107 deletions HVACTopgun_v5/Pages/Index.razor

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions HVACTopgun_v5/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
<link rel="icon" type="image/png" href="favicon.png"/>

<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
<link rel="stylesheet" href="_content/Syncfusion.Blazor.Themes/tailwind.css" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="_content/Syncfusion.Blazor.Themes/tailwind.css" />
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
<script src="/js/custom.js"></script>
<!-- AlpineJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.8.1/cdn.min.js" defer></script>

<script src="/js/carousel.js" defer></script>
<link href="https://cdn.flowbite.com/assets/css/flowbite.css" rel="stylesheet" />
<script src="https://cdn.flowbite.com/assets/js/flowbite.js"></script>
<!-- Begin Brevo Form -->
<!-- START - We recommend to place the below code in head tag of your website html -->

<link rel="stylesheet" href="https://sibforms.com/forms/end-form/build/sib-styles.css">
<!-- END - We recommend to place the above code in head tag of your website html -->

</head>
<body class="dark:bg-black">
<body class="bg-black">
<component type="typeof(App)" render-mode="ServerPrerendered" />

<div id="blazor-error-ui">
Expand Down
2 changes: 1 addition & 1 deletion HVACTopgun_v5/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");

app.Run();
app.Run();
2 changes: 1 addition & 1 deletion HVACTopgun_v5/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion HVACTopgun_v5/Shared/DarkModeToggle.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
} else if (theme === 'light') {
document.documentElement.classList.remove('dark');
}
}
}
2 changes: 1 addition & 1 deletion HVACTopgun_v5/Shared/MainLayout.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@
padding-left: 1rem !important;
padding-right: 1.5rem !important;
}
}
}
75 changes: 34 additions & 41 deletions HVACTopgun_v5/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
@using Microsoft.AspNetCore.Components.Web
@inject ILocalStorageService localStorage

<header class="absolute inset-x-0 top-0 z-50">
<nav class="flex items-center justify-between p-6 lg:px-8" aria-label="Global">
<header class="bg-black/60 fixed w-full z-20 top-0 left-0 border-b border-sky-500 dark:bg-black/80">
<nav class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4" aria-label="Global">
<div class="flex lg:flex-1">
<a href="#" class="-m-1.5 p-1.5">
<span class="sr-only">HVAC TopGun</span>
<img class="h-8 w-auto" src="/images/logo-dark.png" alt="">
<img class="h-11 w-auto" src="/images/logo-dark.png" alt="">
</a>
</div>
<div class="flex lg:hidden">
<button type="button" class="-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-400">
<span class="sr-only">Open main menu</span>
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
</svg>
</button>
</div>

<div class="hidden lg:flex lg:gap-x-12">
<a href="#" class="text-sm font-semibold leading-6 text-white">Product</a>
<a href="#" class="text-sm font-semibold leading-6 text-white">Features</a>
Expand All @@ -26,39 +19,39 @@
<div class="hidden lg:flex lg:flex-1 lg:justify-end">
<a href="#" class="text-sm font-semibold leading-6 text-white">Log in <span aria-hidden="true">&rarr;</span></a>
</div>
</nav>
<!-- Mobile menu, show/hide based on menu open state. -->
<div class="hidden" role="dialog" aria-modal="true">
<!-- Background backdrop, show/hide based on slide-over state. -->
<div class="fixed inset-0 z-50"></div>
<div class="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-gray-900 px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-white/10">
<div class="flex items-center justify-between">
<a href="#" class="-m-1.5 p-1.5">
<span class="sr-only">Your Company</span>
<img class="h-8 w-auto" src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500" alt="">
</a>
<button type="button" class="-m-2.5 rounded-md p-2.5 text-gray-400">
<span class="sr-only">Close menu</span>
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<!-- Hamburger Button -->
<button @ref="btn" @onclick="NavToggle" id="btn"
class="z-30 md:hidden focus:outline-none hamburger @(isMenuOpen ? "open" : "")">
<span class="text-white hamburger-top"></span>
<span class="hamburger-middle"></span>
<span class="hamburger-bottom"></span>
</button>
<!-- Mobile Menu -->
<div @ref="menu" id="menu" class="fixed inset-0 z-20 @(isMenuOpen ? "flex" : "hidden")
flex-col items-center self-end w-full h-full m-h-screen px-6 py-1 pt-24 pb-4 tracking-widest text-white uppercase divide-y divide-gray-500 bg-black">
<div class="w-full py-3 text-center">

<img @ref="logo" src="/images/logo-dark.png" class="mx-auto block" alt="Logo" id="logo" />

</div>
<div class="w-full py-3 text-center">
<a href="#features" class="block hover:text-sky-500">Features</a>
</div>
<div class="w-full py-3 text-center">
<a href="#download" class="block hover:text-sky-500">Download</a>
</div>
<div class="w-full py-3 text-center">
<a href="#faq" class="block hover:text-sky-500">FAQ</a>
</div>
<div class="mt-6 flow-root">
<div class="-my-6 divide-y divide-gray-500/25">
<div class="space-y-2 py-6">
<a href="#" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800">Product</a>
<a href="#" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800">Features</a>
<a href="#" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800">Marketplace</a>
<a href="#" class="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800">Company</a>
</div>
<div class="py-6">
<a href="#" class="-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-white hover:bg-gray-800">Log in</a>
</div>
</div>
<div class="w-full py-3 text-center">
<a href="#" class="block hover:text-sky-500 hover:shadow-xl" @onclick="LoginClicked">Login</a>
</div>
</div>
</div>
</nav>




</header>

@*
Expand Down
4 changes: 1 addition & 3 deletions HVACTopgun_v5/Shared/NavMenu.razor.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.oi {
width: 2rem;
font-size: 1.1rem;
Expand Down Expand Up @@ -36,5 +35,4 @@
.nav-item ::deep a:hover {
background-color: rgba(255,255,255,0.1);
color: white;
}

}
2 changes: 1 addition & 1 deletion HVACTopgun_v5/StaticAssets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions HVACTopgun_v5/StaticAssets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
"dependencies": {
"flowbite": "^1.6.5"
}


}

}
Loading

0 comments on commit 4d97190

Please sign in to comment.