diff --git a/.gitignore b/.gitignore
index cce9cc5..7d8da62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,363 @@
-# Generated by Cargo
-# will have compiled files and executables
-/target
-.DS_Store
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
-# These are backup files generated by rustfmt
-**/*.rs.bk
-.env
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Oo]ut/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
\ No newline at end of file
diff --git a/AZKi Server/.gitignore b/AZKi Server/.gitignore
new file mode 100644
index 0000000..81fb5e9
--- /dev/null
+++ b/AZKi Server/.gitignore
@@ -0,0 +1 @@
+wwwroot/*
diff --git a/AZKi Server/AZKi Server.csproj b/AZKi Server/AZKi Server.csproj
new file mode 100644
index 0000000..cfff6b1
--- /dev/null
+++ b/AZKi Server/AZKi Server.csproj
@@ -0,0 +1,18 @@
+
+
+
+ net9.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AZKi Server/Models/BsonIdModelBinderProvider.cs b/AZKi Server/Models/BsonIdModelBinderProvider.cs
new file mode 100644
index 0000000..1871c34
--- /dev/null
+++ b/AZKi Server/Models/BsonIdModelBinderProvider.cs
@@ -0,0 +1,32 @@
+using Microsoft.AspNetCore.Mvc.ModelBinding;
+
+using MongoDB.Bson;
+
+namespace AZKiServer.Models;
+
+public class BsonIdModelBinderProvider : IModelBinderProvider
+{
+ public IModelBinder? GetBinder(ModelBinderProviderContext context)
+ {
+ if (context.Metadata.ModelType == typeof(ObjectId))
+ return new BsonIdModelBinder();
+ return default;
+ }
+}
+
+public class BsonIdModelBinder : IModelBinder
+{
+ public Task BindModelAsync(ModelBindingContext bindingContext)
+ {
+ var value = bindingContext.ValueProvider.GetValue(bindingContext.ModelName);
+ if (value == ValueProviderResult.None)
+ return Task.CompletedTask;
+
+ if (ObjectId.TryParse(value.FirstValue, out var id))
+ bindingContext.Result = ModelBindingResult.Success(id);
+ else
+ bindingContext.Result = ModelBindingResult.Failed();
+
+ return Task.CompletedTask;
+ }
+}
diff --git a/AZKi Server/Program.cs b/AZKi Server/Program.cs
new file mode 100644
index 0000000..c759de4
--- /dev/null
+++ b/AZKi Server/Program.cs
@@ -0,0 +1,45 @@
+using AZKiServer.Models;
+using AZKiServer.Services;
+
+using MongoDB.Driver;
+
+var builder = WebApplication.CreateBuilder(args);
+var config = builder.Configuration;
+
+var dbString = config["DB_STRING"];
+var dbClient = new MongoClient(dbString);
+var db = dbClient.GetDatabase("AZKi");
+
+// Add services to the container.
+builder.Services.AddSingleton(dbClient);
+builder.Services.AddSingleton(db);
+builder.Services.AddGrpc();
+builder.Services.AddControllers(opt => opt.ModelBinderProviders.Add(new BsonIdModelBinderProvider()));
+builder.Services.AddHostedService();
+builder.Services.AddTransient();
+
+builder.Services.AddCors(o =>
+{
+ o.AddPolicy("AllowAll", p =>
+ {
+ p.AllowAnyOrigin();
+ p.AllowAnyMethod();
+ p.AllowAnyHeader();
+ });
+ o.AddPolicy("RPC", p =>
+ {
+ p.AllowAnyMethod();
+ p.AllowAnyHeader();
+ p.WithExposedHeaders("Grpc-Status", "Grpc-Message", "Grpc-Encoding", "Grpc-Accept-Encoding");
+ p.AllowAnyOrigin();
+ });
+});
+
+
+var app = builder.Build();
+
+// Configure the HTTP request pipeline.
+//app.MapGrpcService();
+app.MapFallbackToFile("index.html");
+
+app.Run();
diff --git a/AZKi Server/Properties/launchSettings.json b/AZKi Server/Properties/launchSettings.json
new file mode 100644
index 0000000..d62b555
--- /dev/null
+++ b/AZKi Server/Properties/launchSettings.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://json.schemastore.org/launchsettings.json",
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": false,
+ "applicationUrl": "http://localhost:5177",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": false,
+ "applicationUrl": "https://localhost:7231;http://localhost:5177",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/AZKi Server/Protos/greet.proto b/AZKi Server/Protos/greet.proto
new file mode 100644
index 0000000..15eb097
--- /dev/null
+++ b/AZKi Server/Protos/greet.proto
@@ -0,0 +1,21 @@
+syntax = "proto3";
+
+option csharp_namespace = "AZKi_Server";
+
+package greet;
+
+// The greeting service definition.
+service Greeter {
+ // Sends a greeting
+ rpc SayHello (HelloRequest) returns (HelloReply);
+}
+
+// The request message containing the user's name.
+message HelloRequest {
+ string name = 1;
+}
+
+// The response message containing the greetings.
+message HelloReply {
+ string message = 1;
+}
diff --git a/AZKi Server/Services/FileScannerService.cs b/AZKi Server/Services/FileScannerService.cs
new file mode 100644
index 0000000..d278d2f
--- /dev/null
+++ b/AZKi Server/Services/FileScannerService.cs
@@ -0,0 +1,16 @@
+
+namespace AZKiServer.Services;
+
+public class FileScannerService : IHostedService
+{
+ public Task StartAsync(CancellationToken cancellationToken)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task StopAsync(CancellationToken cancellationToken)
+ {
+ throw new NotImplementedException();
+ }
+
+}
diff --git a/AZKi Server/Services/GreeterService.cs b/AZKi Server/Services/GreeterService.cs
new file mode 100644
index 0000000..8a6a70e
--- /dev/null
+++ b/AZKi Server/Services/GreeterService.cs
@@ -0,0 +1,22 @@
+using AZKiServer;
+using Grpc.Core;
+
+namespace AZKiServer.Services
+{
+ public class GreeterService : Greeter.GreeterBase
+ {
+ private readonly ILogger _logger;
+ public GreeterService(ILogger logger)
+ {
+ _logger = logger;
+ }
+
+ public override Task SayHello(HelloRequest request, ServerCallContext context)
+ {
+ return Task.FromResult(new HelloReply
+ {
+ Message = "Hello " + request.Name
+ });
+ }
+ }
+}
diff --git a/AZKi Server/Services/MediaService.cs b/AZKi Server/Services/MediaService.cs
new file mode 100644
index 0000000..a9c7ff8
--- /dev/null
+++ b/AZKi Server/Services/MediaService.cs
@@ -0,0 +1,6 @@
+namespace AZKiServer.Services;
+
+public class MediaService
+{
+
+}
diff --git a/AZKi Server/appsettings.Development.json b/AZKi Server/appsettings.Development.json
new file mode 100644
index 0000000..ff66ba6
--- /dev/null
+++ b/AZKi Server/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/AZKi Server/appsettings.json b/AZKi Server/appsettings.json
new file mode 100644
index 0000000..e559d3a
--- /dev/null
+++ b/AZKi Server/appsettings.json
@@ -0,0 +1,14 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*",
+ "Kestrel": {
+ "EndpointDefaults": {
+ "Protocols": "Http2"
+ }
+ }
+}
diff --git a/azki.sln b/azki.sln
new file mode 100644
index 0000000..903be40
--- /dev/null
+++ b/azki.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.14.36908.2 d17.14
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AZKi Server", "AZKi Server\AZKi Server.csproj", "{15810AAC-9BCB-42AD-90B3-F1AA8E134F82}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {15810AAC-9BCB-42AD-90B3-F1AA8E134F82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {15810AAC-9BCB-42AD-90B3-F1AA8E134F82}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {15810AAC-9BCB-42AD-90B3-F1AA8E134F82}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {15810AAC-9BCB-42AD-90B3-F1AA8E134F82}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {06CC7853-081A-4341-B811-F6D1CA984ED4}
+ EndGlobalSection
+EndGlobal
diff --git a/client/.env b/client/.env
new file mode 100644
index 0000000..abc326e
--- /dev/null
+++ b/client/.env
@@ -0,0 +1 @@
+APP_VERSION=Debug
diff --git a/client/.gitignore b/client/.gitignore
new file mode 100644
index 0000000..ba36dcb
--- /dev/null
+++ b/client/.gitignore
@@ -0,0 +1,7 @@
+# Generated by Cargo
+# will have compiled files and executables
+/target
+.DS_Store
+
+# These are backup files generated by rustfmt
+**/*.rs.bk
diff --git a/Cargo.lock b/client/Cargo.lock
similarity index 100%
rename from Cargo.lock
rename to client/Cargo.lock
diff --git a/Cargo.toml b/client/Cargo.toml
similarity index 100%
rename from Cargo.toml
rename to client/Cargo.toml
diff --git a/Dioxus.toml b/client/Dioxus.toml
similarity index 100%
rename from Dioxus.toml
rename to client/Dioxus.toml
diff --git a/README.md b/client/README.md
similarity index 100%
rename from README.md
rename to client/README.md
diff --git a/assets/favicon.ico b/client/assets/favicon.ico
similarity index 100%
rename from assets/favicon.ico
rename to client/assets/favicon.ico
diff --git a/assets/styling/colors.scss b/client/assets/styling/colors.scss
similarity index 100%
rename from assets/styling/colors.scss
rename to client/assets/styling/colors.scss
diff --git a/assets/styling/main.scss b/client/assets/styling/main.scss
similarity index 100%
rename from assets/styling/main.scss
rename to client/assets/styling/main.scss
diff --git a/assets/styling/mixins.scss b/client/assets/styling/mixins.scss
similarity index 100%
rename from assets/styling/mixins.scss
rename to client/assets/styling/mixins.scss
diff --git a/assets/styling/navbar.scss b/client/assets/styling/navbar.scss
similarity index 100%
rename from assets/styling/navbar.scss
rename to client/assets/styling/navbar.scss
diff --git a/assets/styling/player.scss b/client/assets/styling/player.scss
similarity index 67%
rename from assets/styling/player.scss
rename to client/assets/styling/player.scss
index 673904f..507f2cb 100644
--- a/assets/styling/player.scss
+++ b/client/assets/styling/player.scss
@@ -7,12 +7,16 @@
background-color: $darkBackground;
display: grid;
grid-template-areas: "Head ControlPanel" "ViewPort ControlPanel" "Timeline Timeline";
+ grid-template-rows: auto 1fr 500px;
+ grid-template-columns: 1fr auto;
}
#viewport {
grid-area: ViewPort;
+ border: 1px solid $lightBackground;
}
#timeline {
grid-area: Timeline;
+ border: 1px solid $lightBackground;
}
diff --git a/build.rs b/client/build.rs
similarity index 100%
rename from build.rs
rename to client/build.rs
diff --git a/src/app.rs b/client/src/app.rs
similarity index 100%
rename from src/app.rs
rename to client/src/app.rs
diff --git a/src/components/calendar.rs b/client/src/components/calendar.rs
similarity index 100%
rename from src/components/calendar.rs
rename to client/src/components/calendar.rs
diff --git a/src/components/mod.rs b/client/src/components/mod.rs
similarity index 100%
rename from src/components/mod.rs
rename to client/src/components/mod.rs
diff --git a/src/components/playback/mod.rs b/client/src/components/playback/mod.rs
similarity index 100%
rename from src/components/playback/mod.rs
rename to client/src/components/playback/mod.rs
diff --git a/src/components/playback/player.rs b/client/src/components/playback/player.rs
similarity index 100%
rename from src/components/playback/player.rs
rename to client/src/components/playback/player.rs
diff --git a/src/components/playback/timeline.rs b/client/src/components/playback/timeline.rs
similarity index 100%
rename from src/components/playback/timeline.rs
rename to client/src/components/playback/timeline.rs
diff --git a/src/components/playback/viewport.rs b/client/src/components/playback/viewport.rs
similarity index 100%
rename from src/components/playback/viewport.rs
rename to client/src/components/playback/viewport.rs
diff --git a/src/env.rs b/client/src/env.rs
similarity index 100%
rename from src/env.rs
rename to client/src/env.rs
diff --git a/src/main.rs b/client/src/main.rs
similarity index 100%
rename from src/main.rs
rename to client/src/main.rs
diff --git a/src/route.rs b/client/src/route.rs
similarity index 100%
rename from src/route.rs
rename to client/src/route.rs
diff --git a/src/views/home.rs b/client/src/views/home.rs
similarity index 100%
rename from src/views/home.rs
rename to client/src/views/home.rs
diff --git a/src/views/mod.rs b/client/src/views/mod.rs
similarity index 100%
rename from src/views/mod.rs
rename to client/src/views/mod.rs
diff --git a/src/views/navbar.rs b/client/src/views/navbar.rs
similarity index 100%
rename from src/views/navbar.rs
rename to client/src/views/navbar.rs
diff --git a/src/views/settings.rs b/client/src/views/settings.rs
similarity index 100%
rename from src/views/settings.rs
rename to client/src/views/settings.rs