Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Commit #4

Open
wants to merge 33 commits into
base: rel1.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
053ccb0
Initial Commit
jamattey Sep 4, 2022
61c45e7
Initial Commit
jamattey Sep 5, 2022
c37da1a
Update Program.cs
jamattey Sep 5, 2022
b08d180
Initial Commit
jamattey Sep 5, 2022
6b585ca
delete Kanban.cshtml
stsrki Sep 6, 2022
3eddb34
Update _Imports.razor
jamattey Sep 6, 2022
7fbf1eb
Create Kanban.razor
jamattey Sep 6, 2022
0a8c775
Update SimpleKanbanBoard.csproj
jamattey Sep 6, 2022
0cbf24e
Update Program.cs
jamattey Sep 7, 2022
a1b11c3
Update index.html
jamattey Sep 7, 2022
9b8913f
Update SimpleKanbanBoard.csproj
jamattey Sep 7, 2022
fe3c0c0
Initial Commit
jamattey Sep 9, 2022
d95ded8
Update Program.cs
jamattey Sep 9, 2022
b5250ef
Update MainLayout.razor
jamattey Sep 9, 2022
2e91b92
Update index.html
jamattey Sep 9, 2022
b686062
Update _Imports.razor
jamattey Sep 9, 2022
7aaedee
Update Counter.razor
jamattey Sep 9, 2022
28cd6e9
Update index.html
jamattey Sep 9, 2022
3d8e3d5
Update Index.razor
jamattey Sep 9, 2022
a326b7a
Update MainLayout.razor
jamattey Sep 11, 2022
4a30c04
Initial Commit
jamattey Sep 11, 2022
8c75972
Fix errors
stsrki Sep 12, 2022
4fb71a4
Update Index.razor
jamattey Sep 12, 2022
cb4f06c
Update Index.razor
jamattey Sep 12, 2022
091a98e
Merge branch 'KanbanBoard' of https://github.com/Megabit/Blazorise-Sa…
jamattey Sep 12, 2022
8dcd22d
Update Index.razor
jamattey Sep 12, 2022
f3621db
Update Index.razor
jamattey Sep 12, 2022
310dfe6
Update Index.razor
jamattey Sep 12, 2022
c6502b6
Update KanbanBoard.razor
jamattey Sep 12, 2022
66f3db7
Update Index.razor
jamattey Sep 12, 2022
caf70b6
Update KanbanBoard.razor
jamattey Sep 12, 2022
a54e570
Update KanbanBoard.razor
jamattey Sep 12, 2022
908692c
Fix errors
stsrki Sep 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions KanbanBoardDemo/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>

5 changes: 5 additions & 0 deletions KanbanBoardDemo/Components/SideMenu.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h3>SideMenu</h3>

@code {

}
5 changes: 5 additions & 0 deletions KanbanBoardDemo/Components/TopMenu.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h3>TopMenu</h3>

@code {

}
22 changes: 22 additions & 0 deletions KanbanBoardDemo/KanbanBoardDemo.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.8" PrivateAssets="all" />
<PackageReference Include="Blazorise" Version="1.0.6" />
<PackageReference Include="Blazorise.Bootstrap" Version="1.0.6" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.0.6" />
</ItemGroup>

<ItemGroup>
<None Remove="Blazorise" />
<None Remove="Blazorise.Bootstrap" />
<None Remove="Blazorise.Icons.FontAwesome" />
</ItemGroup>
</Project>
25 changes: 25 additions & 0 deletions KanbanBoardDemo/KanbanBoardDemo.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32804.182
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KanbanBoardDemo", "KanbanBoardDemo.csproj", "{121F1601-B233-4EEC-8438-0A32E3207C81}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{121F1601-B233-4EEC-8438-0A32E3207C81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{121F1601-B233-4EEC-8438-0A32E3207C81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{121F1601-B233-4EEC-8438-0A32E3207C81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{121F1601-B233-4EEC-8438-0A32E3207C81}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {183B6796-2DAB-4040-AD3D-C64B92124CF4}
EndGlobalSection
EndGlobal
16 changes: 16 additions & 0 deletions KanbanBoardDemo/Pages/Counter.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@page "/counter"

<Heading Size="HeadingSize.Is1">Counter</Heading>

<Paragraph>Current count: @currentCount</Paragraph>

<Button Color="Color.Primary" Clicked="IncrementCount">Click me</Button>

@code {
int currentCount = 0;

void IncrementCount()
{
currentCount++;
}
}
58 changes: 58 additions & 0 deletions KanbanBoardDemo/Pages/FetchData.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@page "/fetchdata"
@inject HttpClient Http

<PageTitle>Weather forecast</PageTitle>

<h1>Weather forecast</h1>

<p>This component demonstrates fetching data from the server.</p>

@if (forecasts == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
{
<tr>
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
<td>@forecast.Summary</td>
</tr>
}
</tbody>
</table>
}

@code {
private WeatherForecast[]? forecasts;

protected override async Task OnInitializedAsync()
{
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
}

public class WeatherForecast
{
public DateTime Date { get; set; }

public int TemperatureC { get; set; }

public string? Summary { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
}

8 changes: 8 additions & 0 deletions KanbanBoardDemo/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@page "/"

<PageTitle>Index</PageTitle>

<h1>Hello, world!</h1>

Welcome to your Kanban Board.

47 changes: 47 additions & 0 deletions KanbanBoardDemo/Pages/KanbanBoard.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@page "/kanbanboard"
<Heading Size="HeadingSize.Is1">Welcome To your Current Board</Heading>

<Paragraph>What Are We Doing Today?</Paragraph>

<DropContainer TItem="DropItem" Items="@items" ItemsFilter="@((item, dropZone) => item.Group == dropZone)" ItemDropped="@ItemDropped" Flex="Flex.Wrap.Grow.Is1">
<ChildContent>
<DropZone TItem="DropItem" Name="To-Do" Border="Border.Rounded" Background="Background.Light" Padding="Padding.Is3" Margin="Margin.Is3" Flex="Flex.Grow.Is1">
<Heading Size="HeadingSize.Is4" Margin="Margin.Is3.FromBottom">To Do</Heading>
</DropZone>
<DropZone TItem="DropItem" Name="Ongoing" Border="Border.Rounded" Background="Background.Light" Padding="Padding.Is3" Margin="Margin.Is3" Flex="Flex.Grow.Is1">
<Heading Size="HeadingSize.Is4" Margin="Margin.Is3.FromBottom">Ongoing</Heading>
</DropZone>
<DropZone TItem="DropItem" Name="Completed" Border="Border.Rounded" Background="Background.Light" Padding="Padding.Is3" Margin="Margin.Is3" Flex="Flex.Grow.Is1">
<Heading Size="HeadingSize.Is4" Margin="Margin.Is3.FromBottom">Completed</Heading>
</DropZone>
</ChildContent>
<ItemTemplate>
<Card Shadow="Shadow.Default" Margin="Margin.Is3.OnY">
<CardBody>
@context.Name
</CardBody>
</Card>
</ItemTemplate>
</DropContainer>

@code {
public class DropItem
{
public string Name { get; init; }
public string Group { get; set; }
}

private List<DropItem> items = new()
{
new DropItem() {Name = "Contact Form", Group = "To-Do"},
new DropItem() {Name = "Profile Image", Group = "Ongoing"},
new DropItem() {Name = "Login Form", Group = "Completed"},
new DropItem() {Name = "Password Reset", Group = "Ongoing"},
};

private void ItemDropped( DraggableDroppedEventArgs<DropItem> dropItem )
{
dropItem.Item.Group = dropItem.DropZoneName;
}
}

22 changes: 22 additions & 0 deletions KanbanBoardDemo/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using KanbanBoardDemo;
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services
.AddBlazorise(options =>
{
options.Immediate = true;
})
.AddBootstrapProviders()
.AddFontAwesomeIcons();

await builder.Build().RunAsync();

29 changes: 29 additions & 0 deletions KanbanBoardDemo/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:32980",
"sslPort": 44397
}
},
"profiles": {
"KanbanBoardDemo": {
"commandName": "Project",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:7027;http://localhost:5214",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
18 changes: 18 additions & 0 deletions KanbanBoardDemo/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@layout RootLayout
@inherits LayoutComponentBase

<Layout Sider>
<LayoutSider>
<LayoutSiderContent>
<SideMenu />
</LayoutSiderContent>
</LayoutSider>
<Layout>
<LayoutHeader Fixed>
<TopMenu />
</LayoutHeader>
<LayoutContent Padding="Padding.Is4.OnX">
@Body
</LayoutContent>
</Layout>
</Layout>
82 changes: 82 additions & 0 deletions KanbanBoardDemo/Shared/MainLayout.razor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
.page {
position: relative;
display: flex;
flex-direction: column;
}

main {
flex: 1;
}

.sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}

.top-row ::deep a, .top-row ::deep .btn-link {
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
}

.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
text-decoration: underline;
}

.top-row ::deep a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
.top-row:not(.auth) {
display: none;
}

.top-row.auth {
justify-content: space-between;
}

.top-row ::deep a, .top-row ::deep .btn-link {
margin-left: 0;
}
}

@media (min-width: 641px) {
.page {
flex-direction: row;
}

.sidebar {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
}

.top-row {
position: sticky;
top: 0;
z-index: 1;
}

.top-row.auth ::deep a:first-child {
flex: 1;
text-align: right;
width: 0;
}

.top-row, article {
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
}

Loading