talkspace templates added

This commit is contained in:
Norm Rasmussen
2022-06-17 14:14:24 -04:00
parent f493b37b1e
commit 59aaf84c10
328 changed files with 15105 additions and 27 deletions

View File

@ -0,0 +1,33 @@
@page "/account_tasks"
<h3>AccountTasks</h3>
<body>
<div class="box-wrapper">
<div class="left-column">
<p>Assigned Company Names</p>
<input placeholder="Accounts Added" @bind="newAccount" />
<button @onclick="addAccount">Add Account</button>
<ul>
</ul>
</div>
<div class="middle-column">
<h3>Tasks</h3>
<ul>
</ul>
</div>
<div class="right-column">
<h3>Task Notes</h3>
</div>
</body>
@code {
private Dictionary<string, Dictionary<string, string>> accounts =
new Dictionary<string, Dictionary<string, string>>();
accounts.Add("Hubspot", default);
}

View File

@ -1,8 +1,4 @@
@page "/accounts"
@using SqliteWasmHelper
@using BlazorWasmExample.Data
@using Microsoft.EntityFrameworkCore
@inject ISqliteWasmDbContextFactory<ThingContext> Factory
<PageTitle>Accounts</PageTitle>
@ -18,7 +14,7 @@
@foreach (var account in accounts)
{
<td>
<input type="checkbox" bind="@accountboxvalue" /> @account.AccountName<br />
<input type="checkbox" bind="@accountboxvalue" /> @account[0]<br />
Boolvalue: @accountboxvalue<br />
<button onclick="@toggle">toggle</button>
</td>
@ -36,10 +32,10 @@
<input placeholder="Tasks Added" @bind="newTask" />
<button @onclick="addTask">Add Task</button>
<ul>
@foreach (var task in )
@foreach (var task in tasks)
{
<li>
@task.TaskName
@task[0]
</li>
}
</ul>
@ -51,7 +47,8 @@
//var accounts = new List<string, KeyValuePair<KeyValuePair<string, string>>>
// accounts list
//key: hubspot, value: key: call them, value: call today
public var accounts = new List<KeyValuePair<string, KeyValuePair<string, string>>>();
public Dictionary<string, Dictionary<string, string>> accounts =
new Dictionary<string, Dictionary<string, string>>();
private string? newAccount;
private string? newTask;
private bool accountboxvalue { get; set; }
@ -64,21 +61,22 @@
{
if (!string.IsNullOrWhiteSpace(newAccount))
{
accounts.Add(new KeyValuePair<string, KeyValuePair<string, string>>(newAccount()));
newAccount = new Dictionary<string, Dictionary<string, string>>();
newAccount = string.Empty;
}
}
private void addTask()
{
{
string key = "accountboxvalue";
bool keyExists = KeyValuePair.ContainsKey(key);
if (keyExists)
{
accounts.Add(new KeyValuePair<string,)
tasks.Add(newTask, "");
newTask = string.Empty;
}
}
}
//private void addTask()
//{
// {
// newTask = new Dictionary<string, string>();
// string key = "accountboxvalue";
// if (accounts.TryGetValue(key, out tasks))
// {
// tasks = new Dictionary<string, string>();
// accounts.Add(key(key.ToString), tasks);
// newTask = string.Empty;
// }
// return;
// }
// }
}

View File

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using TodoList.Data;
using SqliteWasmHelper;
//using SqliteWasmHelper;
var builder = WebApplication.CreateBuilder(args);
@ -9,8 +9,8 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSingleton<WeatherForecastService>();
builder.Services.AddSqliteWasmDbContextFactory<ThingContext>(
opts => opts.UseSqlite("Data Source=blazor_todo.sqlite3"));
//builder.Services.AddSqliteWasmDbContextFactory<ThingContext>(
// opts => opts.UseSqlite("Data Source=blazor_todo.sqlite3"));
var app = builder.Build();

View File

@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<WasmBuildNative>true</WasmBuildNative
<WasmBuildNative>true</WasmBuildNative>
</PropertyGroup>
<ItemGroup>

View File

@ -1 +1 @@
24769c0c36c87f4cf51a9e14295aa3d9c353fc76
6cd92fa8a87efed698858e3a0004487f72da5921