Titano: time-lapse ecosystem (client, server, uploader) — in progress #1
No files matched your search
@@ -0,0 +1,39 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{csproj,props,targets,slnx,xml,resx,xaml,json,yml,yaml,svg}]
|
||||
indent_size = 2
|
||||
|
||||
[*.{js,css,html}]
|
||||
indent_size = 2
|
||||
|
||||
[*.cs]
|
||||
csharp_style_namespace_declarations = file_scoped:warning
|
||||
csharp_using_directive_placement = outside_namespace
|
||||
dotnet_sort_system_directives_first = true
|
||||
csharp_prefer_braces = when_multiline:suggestion
|
||||
csharp_style_var_for_built_in_types = true:silent
|
||||
csharp_style_var_when_type_is_apparent = true:silent
|
||||
csharp_style_expression_bodied_methods = when_on_single_line:silent
|
||||
csharp_new_line_before_open_brace = all
|
||||
dotnet_style_qualification_for_field = false:suggestion
|
||||
dotnet_naming_rule.private_fields_underscore.symbols = private_fields
|
||||
dotnet_naming_rule.private_fields_underscore.style = underscore_camel
|
||||
dotnet_naming_rule.private_fields_underscore.severity = suggestion
|
||||
dotnet_naming_symbols.private_fields.applicable_kinds = field
|
||||
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
|
||||
dotnet_naming_style.underscore_camel.required_prefix = _
|
||||
dotnet_naming_style.underscore_camel.capitalization = camel_case
|
||||
|
||||
# Interop and codec code legitimately uses these patterns.
|
||||
dotnet_diagnostic.CA1416.severity = warning
|
||||
dotnet_diagnostic.CA2101.severity = none
|
||||
dotnet_diagnostic.SYSLIB1054.severity = none
|
||||
dotnet_diagnostic.CA1401.severity = none
|
||||
@@ -427,3 +427,11 @@ FodyWeavers.xsd
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Titano
|
||||
tests/fixtures/external/
|
||||
/out/
|
||||
/publish/
|
||||
/artifacts/
|
||||
*.junit.xml
|
||||
TestResults/
|
||||
@@ -0,0 +1,19 @@
|
||||
# Titano — working rules
|
||||
Read docs/BRIEF.md when in doubt; it wins over these notes.
|
||||
- Zero <PackageReference>. Anything not in the .NET BCL / Microsoft shared frameworks / OS APIs is written here.
|
||||
- No external processes at runtime (no ffmpeg, exiftool, powershell). Only OS dialogs listed in BRIEF §8.6.
|
||||
- Titano.Core / Data / Protocol / Server target net10.0 and build on Linux; Windows-only code lives in *.Windows or the desktop apps.
|
||||
- English identifiers, comments, commits (Conventional Commits). Prototype in docs/reference is Italian: port algorithms, not language.
|
||||
- Every UI string is a resource (en source, it translation). Labels ≤ 3 words; explanations only in tooltips; every actionable control has a tooltip; no helper paragraphs.
|
||||
- Destructive operations: dry-run plan first, hash verification, explicit user action.
|
||||
- When the brief is silent: choose the simplest safe option, log it in docs/DECISIONS.md, continue. Ask only at phase gates or before irreversible choices.
|
||||
- Definition of Done per phase: green on windows-latest + ubuntu-latest, tests green, no new warnings, DECISIONS + CHANGELOG updated, i18n check green, phase report with "how to try it".
|
||||
- Build: dotnet build -c Release; tests: dotnet run --project tests/<X> -- --junit out.xml; tools: dotnet run --project src/Titano.Tools -- <command>.
|
||||
- Current phase and next steps: see docs/STATUS.md (update at every gate).
|
||||
|
||||
## Repository specifics
|
||||
- Visual target: docs/ui/DESIGN.md (tokens, controls) and docs/ui/mockups/*.html. Looks: mockup wins; behaviour: brief wins.
|
||||
- Code conventions and module ownership: docs/ARCHITECTURE.md.
|
||||
- Localization: keys `Area.Group.Name` in i18n/en/<Area>.resx, Italian in i18n/it/<Area>.it.resx. C# `Loc.L("Key")`, XAML `{l:Loc Key}`.
|
||||
- Checks run in CI: `Titano.Tools package-guard`, `i18n check`, `xaml-lint`.
|
||||
- Linux builds the Windows projects for compile checking (EnableWindowsTargeting); Windows-only tests carry [WindowsOnly].
|
||||
@@ -0,0 +1,40 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
|
||||
<TitanoVersion Condition="'$(TitanoVersion)' == ''">0.1.0</TitanoVersion>
|
||||
<Version>$(TitanoVersion)</Version>
|
||||
<AssemblyVersion>$([System.Text.RegularExpressions.Regex]::Match($(TitanoVersion), '^\d+\.\d+\.\d+').Value).0</AssemblyVersion>
|
||||
<FileVersion>$(AssemblyVersion)</FileVersion>
|
||||
<InformationalVersion>$(TitanoVersion)</InformationalVersion>
|
||||
<Product>Titano</Product>
|
||||
<Company>Titano</Company>
|
||||
<Copyright>© Titano</Copyright>
|
||||
<NeutralLanguage>en</NeutralLanguage>
|
||||
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
|
||||
<AnalysisLevel>latest</AnalysisLevel>
|
||||
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
|
||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||
<Deterministic>true</Deterministic>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<SatelliteResourceLanguages>en;it;de;fr;es;pt-BR;pt-PT;nl;pl;cs;sk;hu;ro;sv;da;nb;fi;ru;uk;tr;el;bg;hr;sl;lt;lv;et;ja;zh-Hans;zh-Hant;ko;ar;he;hi;id;ms;vi;th</SatelliteResourceLanguages>
|
||||
|
||||
<!-- Lets Linux build the Windows projects (compile check); runtime remains Windows-only. -->
|
||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||
<!-- No package feeds are used; restore only fetches SDK targeting/runtime packs. -->
|
||||
<NuGetAudit>false</NuGetAudit>
|
||||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
||||
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
||||
<IsPackable>false</IsPackable>
|
||||
<DebugType>embedded</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||||
<Optimize>true</Optimize>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
<Project>
|
||||
<!-- BRIEF §0.2 rule 1 / §19.2: zero third-party packages, everywhere. -->
|
||||
<Target Name="AssertNoPackageReferences" BeforeTargets="CollectPackageReferences;_GenerateRestoreProjectSpec;BeforeBuild">
|
||||
<Error Condition="'@(PackageReference)' != ''"
|
||||
Code="TITANO001"
|
||||
Text="PackageReference is forbidden in Titano (found: @(PackageReference)). Implement it in-house." />
|
||||
</Target>
|
||||
|
||||
<!-- Localization catalog: i18n/<culture>/<Area>[.<culture>].resx, embedded into Titano.Core. -->
|
||||
<ItemGroup Condition="'$(TitanoEmbedI18n)' == 'true'">
|
||||
<EmbeddedResource Include="$(RepoRoot)i18n\**\*.resx">
|
||||
<Link>i18n\%(Filename)%(Extension)</Link>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Program icons are generated from the brand geometry by Titano.Tools make-icon (BRIEF §17). -->
|
||||
<PropertyGroup>
|
||||
<TitanoIconDir>$(RepoRoot)artifacts/icons/</TitanoIconDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(TitanoIconVariant)' != ''">
|
||||
<ApplicationIcon>$(TitanoIconDir)$(TitanoIconVariant).ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(TitanoIconVariant)' != ''">
|
||||
<ProjectReference Include="$(RepoRoot)src\Titano.Tools\Titano.Tools.csproj"
|
||||
ReferenceOutputAssembly="false"
|
||||
SkipGetTargetFrameworkProperties="true"
|
||||
GlobalPropertiesToRemove="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework"
|
||||
Private="false" />
|
||||
</ItemGroup>
|
||||
<Target Name="TitanoGenerateIcons"
|
||||
Condition="'$(TitanoIconVariant)' != ''"
|
||||
AfterTargets="ResolveProjectReferences"
|
||||
BeforeTargets="MarkupCompilePass1;CoreCompile">
|
||||
<MSBuild Projects="$(RepoRoot)src\Titano.Tools\Titano.Tools.csproj"
|
||||
Targets="GetTargetPath"
|
||||
RemoveProperties="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework">
|
||||
<Output TaskParameter="TargetOutputs" PropertyName="_TitanoToolsPath" />
|
||||
</MSBuild>
|
||||
<Exec Condition="!Exists('$(TitanoIconDir)$(TitanoIconVariant).ico')"
|
||||
Command="dotnet "$(_TitanoToolsPath)" make-icon --out "$(RepoRoot)artifacts/icons"" />
|
||||
</Target>
|
||||
</Project>
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<Solution>
|
||||
<Folder Name="/src/">
|
||||
<Project Path="src/Titano.Core/Titano.Core.csproj" />
|
||||
<Project Path="src/Titano.Core.Windows/Titano.Core.Windows.csproj" />
|
||||
<Project Path="src/Titano.Data/Titano.Data.csproj" />
|
||||
<Project Path="src/Titano.Protocol/Titano.Protocol.csproj" />
|
||||
<Project Path="src/Titano.Server/Titano.Server.csproj" />
|
||||
<Project Path="src/Titano.Ui/Titano.Ui.csproj" />
|
||||
<Project Path="src/Titano.App/Titano.App.csproj" />
|
||||
<Project Path="src/Titano.Uploader/Titano.Uploader.csproj" />
|
||||
<Project Path="src/Titano.Setup/Titano.Setup.csproj" />
|
||||
<Project Path="src/Titano.Tools/Titano.Tools.csproj" />
|
||||
</Folder>
|
||||
<Folder Name="/tests/">
|
||||
<Project Path="tests/Titano.Testing/Titano.Testing.csproj" />
|
||||
<Project Path="tests/Titano.Core.Tests/Titano.Core.Tests.csproj" />
|
||||
<Project Path="tests/Titano.Core.Windows.Tests/Titano.Core.Windows.Tests.csproj" />
|
||||
<Project Path="tests/Titano.Data.Tests/Titano.Data.Tests.csproj" />
|
||||
<Project Path="tests/Titano.Server.Tests/Titano.Server.Tests.csproj" />
|
||||
<Project Path="tests/Titano.App.Tests/Titano.App.Tests.csproj" />
|
||||
</Folder>
|
||||
</Solution>
|
||||
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.14"/>
|
||||
<path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.22"/>
|
||||
<path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.3"/>
|
||||
<path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.37"/>
|
||||
<path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.45"/>
|
||||
<path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.53"/>
|
||||
<path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.61"/>
|
||||
<path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.69"/>
|
||||
<path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.77"/>
|
||||
<path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.84"/>
|
||||
<path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.92"/>
|
||||
<path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="1.0"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#ffffff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,17 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
||||
<rect x="0" y="0" width="256" height="256" rx="56" fill="#1a1a1e"/>
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/>
|
||||
<path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/>
|
||||
<path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/>
|
||||
<path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/>
|
||||
<path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/>
|
||||
<path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/>
|
||||
<path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/>
|
||||
<path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/>
|
||||
<path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/>
|
||||
<path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/>
|
||||
<path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/>
|
||||
<path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1.0"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#f5a524"/>
|
||||
<circle cx="204" cy="204" r="40" fill="#1a1a1e" stroke="#4cc2ff" stroke-width="6"/><rect x="185" y="188" width="38" height="12" rx="4" fill="#4cc2ff"/><rect x="185" y="208" width="38" height="12" rx="4" fill="#4cc2ff"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,17 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
||||
<rect x="0" y="0" width="256" height="256" rx="56" fill="#1a1a1e"/>
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/>
|
||||
<path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/>
|
||||
<path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/>
|
||||
<path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/>
|
||||
<path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/>
|
||||
<path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/>
|
||||
<path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/>
|
||||
<path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/>
|
||||
<path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/>
|
||||
<path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/>
|
||||
<path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/>
|
||||
<path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1.0"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#f5a524"/>
|
||||
<circle cx="204" cy="204" r="40" fill="#1a1a1e" stroke="#f5a524" stroke-width="6"/><path d="M204 226v-40M188 202l16-16 16 16" fill="none" stroke="#f5a524" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,16 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
||||
<rect x="0" y="0" width="256" height="256" rx="56" fill="#1a1a1e"/>
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/>
|
||||
<path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/>
|
||||
<path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/>
|
||||
<path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/>
|
||||
<path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/>
|
||||
<path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/>
|
||||
<path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/>
|
||||
<path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/>
|
||||
<path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/>
|
||||
<path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/>
|
||||
<path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/>
|
||||
<path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1.0"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#f5a524"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,88 @@
|
||||
# Titano — Architecture and code conventions
|
||||
|
||||
Companion to `docs/BRIEF.md` (scope, behaviour) and `docs/ui/DESIGN.md` (looks). This file says
|
||||
*where code goes* and *how it is written*.
|
||||
|
||||
## 1. Projects
|
||||
|
||||
| Project | TFM | Purpose |
|
||||
|---|---|---|
|
||||
| `src/Titano.Core` | net10.0 | Engine shared by every program: metadata, codecs, imaging, analysis, motion, render, video containers, archive model, naming, import planning, localization runtime, brand mark |
|
||||
| `src/Titano.Core.Windows` | net10.0-windows | WIC decoder, Media Foundation encoder, DXGI, device APIs, shell helpers (P/Invoke/COM only) |
|
||||
| `src/Titano.Data` | net10.0 | `IDatabase`, SQLite binding (winsqlite3 on Windows, system libsqlite3 elsewhere for tests/dev), PostgreSQL wire client, migrations, repositories |
|
||||
| `src/Titano.Protocol` | net10.0 | API DTOs, source-generated JSON contexts, upload/sync/event schemas |
|
||||
| `src/Titano.Server` | net10.0 (Web SDK) | ASP.NET Core minimal API, auth, jobs, storage, admin web panel (embedded) |
|
||||
| `src/Titano.Ui` | net10.0-windows (WPF) | Theme (DESIGN tokens), icons, custom controls, `Loc` markup extension, MVVM helpers |
|
||||
| `src/Titano.App` | WPF exe `Titano.exe` | Desktop client |
|
||||
| `src/Titano.Uploader` | WPF exe | Uploader |
|
||||
| `src/Titano.Setup` | WPF exe | Installer/uninstaller |
|
||||
| `src/Titano.Tools` | net10.0 exe | CLI: make-icon, i18n, xaml-lint, package-guard, selftest, diagnose, fixtures, changelog |
|
||||
| `tests/Titano.Testing` | net10.0 | In-house test framework (`[Test]`, `[Theory]`+`[Case]`, `Assert`, `TestContext`) |
|
||||
| `tests/Titano.*.Tests` | exe | One test program per area; `dotnet run --project tests/X -- --junit out.xml` |
|
||||
|
||||
## 2. Namespaces in Titano.Core
|
||||
|
||||
| Folder / namespace | Content |
|
||||
|---|---|
|
||||
| `Imaging` | `ImageBuffer` (planar float, linear light), `ImageFileFormat`, `IImageDecoderProvider`, `ImageDecoder`, colour/geometry helpers, `FrameWindow` |
|
||||
| `Metadata` (+ `Metadata.Tiff`, `Metadata.Bmff`, …) | Signature sniffing, TIFF/IFD (`TiffReader`), Exif/GPS/XMP/MakerNotes, ISO-BMFF, RIFF, RAF, PNG chunks, `MetadataReader`, `ExifWriter` |
|
||||
| `Codecs` (`Codecs.Jpeg`, `Codecs.Png`, `Codecs.Tiff`, `Codecs.Dng`, `Codecs.Gif`, `Codecs.Ico`) | Pure managed image codecs |
|
||||
| `Video` | `Mp4Muxer`, box writer, Annex-B/OBU parsing, MP4 inspector, AVI-MJPEG writer, managed encoder provider, encoder contracts |
|
||||
| `Analysis` | Luminance statistics, deflicker, regions, holy grail, white balance, colour temperature, light/deep analysis |
|
||||
| `Motion` | FFT, phase correlation, pyramids, optical flow, motion blur, stabilisation, virtual camera, interpolation, stacking |
|
||||
| `Math` | Splines (Fritsch–Carlson, Catmull-Rom, Bézier), robust local regression, statistics, solar position |
|
||||
| `Render` | Render plan, pipeline, export presets |
|
||||
| `Advisor` | Recommendation rules with localisable reasons, sequence presets |
|
||||
| `Archive` | Archive layout, sidecars (`sequence.json`, `project.json`), scanner, rebuild, verify, duplicates, orphans, adopt |
|
||||
| `Naming` | Folder/file templates and tokens |
|
||||
| `Import` | Card/folder scan, session detection, import plan, hash-verified copy |
|
||||
| `Model` | Domain entities (§5) shared by Data, Server and clients |
|
||||
| `Localization`, `Diagnostics`, `IO`, `Hashing`, `Branding` | Infrastructure |
|
||||
|
||||
## 3. Conventions
|
||||
|
||||
- File-scoped namespaces, `sealed` by default, nullable on, warnings are errors. No `#pragma warning disable`
|
||||
except narrowly around interop with a reason.
|
||||
- No third-party packages, ever. If the BCL lacks it (CRC-32, Adler, JPEG, PNG decode…), write it.
|
||||
- Parsers never throw on malformed input: they return partial results plus warnings. Every offset is
|
||||
bounds-checked against the stream length; recursion and loops are capped.
|
||||
- Never load a whole RAW to read metadata: windowed reads through `Stream` + `Seek`.
|
||||
- Hot loops: `Span<T>`, `System.Numerics.Vector<T>`/`Vector256` where it measurably pays, no LINQ.
|
||||
Parallelise per row/tile with `Parallel.For` only when work per item is large.
|
||||
- Pixel math in linear light, `float`, Rec.709 primaries. Convert to sRGB/8-bit only at the edges.
|
||||
- Every long operation takes a `CancellationToken` and reports progress through `IProgress<T>`.
|
||||
- Libraries use `ConfigureAwait(false)`. No `async void` except WPF event handlers.
|
||||
- Logging through `Titano.Core.Diagnostics.Log` in Core; `ILogger` on the server.
|
||||
- Public types and non-obvious members get a one-line `///` summary. Comments explain *why*, not *what*.
|
||||
- Disk writes that must survive crashes use `AtomicFile` (temp → fsync → rename).
|
||||
- IDs are UUIDv7 (`Guid.CreateVersion7()`); timestamps UTC; capture times are camera wall-clock with an
|
||||
optional offset.
|
||||
|
||||
## 4. Tests
|
||||
|
||||
- Framework: `Titano.Testing`. Test classes are `public sealed`; constructor may take `TestContext`
|
||||
(temp directories, cancellation, log). Use `[WindowsOnly]` for OS-specific tests and
|
||||
`[RequiresEnvironment("TITANO_TEST_PG")]` for PostgreSQL integration tests.
|
||||
- Put tests under `tests/Titano.<Area>.Tests/<Folder>/<Thing>Tests.cs`, mirroring the source folder.
|
||||
- Fixtures are synthetic and generated in code wherever possible; tiny binary fixtures may go in
|
||||
`tests/fixtures/` (< 50 KB each). Larger CC0 samples are fetched by `Titano.Tools fixtures` into
|
||||
`tests/fixtures/external/` (git-ignored) and tests depending on them skip when absent.
|
||||
- Fuzz tests: truncate and corrupt valid inputs at many offsets; assert no exception escapes.
|
||||
|
||||
## 5. Localization
|
||||
|
||||
- Keys: `Area.Group.Name`; area = file name. Areas: Common, Shell, Library, Editor, Import, Archive,
|
||||
Jobs, Server, Settings, Tooltips, Errors, Advisor, Admin, Uploader, Setup.
|
||||
- `en` is the source (`i18n/en/<Area>.resx`), `it` is mandatory (`i18n/it/<Area>.it.resx`).
|
||||
- Labels ≤ 30 chars, tooltips/errors/advisor reasons ≤ 200 chars (one or two sentences).
|
||||
- Plurals: `Key.one` / `Key.few` / `Key.many` / `Key.other`, resolved by `Loc.Plural("Key", n)`.
|
||||
|
||||
## 6. Build and checks
|
||||
|
||||
```
|
||||
dotnet build Titano.slnx -c Release
|
||||
dotnet run --project tests/Titano.Core.Tests -c Release -- --junit out/core.xml
|
||||
dotnet run --project src/Titano.Tools -- package-guard
|
||||
dotnet run --project src/Titano.Tools -- i18n check
|
||||
dotnet run --project src/Titano.Tools -- xaml-lint
|
||||
```
|
||||
+1346
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes. Format: Keep a Changelog; versions follow SemVer; commits follow Conventional Commits.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Repository foundation: solution, build rules (warnings as errors, zero-package guard), .NET 10 SDK pin.
|
||||
- `Titano.Testing`: in-house test framework and runner with JUnit XML output.
|
||||
- Localization runtime (`Loc`, CLDR plural rules, 38 shipped languages) and `i18n check/export`.
|
||||
- Brand mark geometry, SDF rasteriser, PNG encoder, ICO writer and `make-icon`.
|
||||
- Core contracts: image buffers and decoder providers, video encoder providers, domain model, atomic file writes.
|
||||
@@ -0,0 +1,16 @@
|
||||
# Decisions
|
||||
|
||||
One line per decision: date · decision · alternative · reason.
|
||||
|
||||
| Date | Decision | Alternative | Reason |
|
||||
|---|---|---|---|
|
||||
| 2026-10-02 | The prototype dump `docs/reference/titano-prototype.md` was not supplied; algorithms are implemented from the brief's descriptions and the cited literature, with the §20.4 thresholds as acceptance tests. | Wait for the dump | Not available in the repository or uploads; the brief fully specifies behaviour and gates. |
|
||||
| 2026-10-02 | Custom WPF theme dictionaries (`Titano.Ui/Themes`) implementing DESIGN.md tokens instead of `Application.ThemeMode` Fluent. | Fluent theme + overrides | DESIGN.md fixes exact colours/sizes; Fluent is still flagged experimental (WPF0001) and would need restyling of most controls anyway (§2.1 permits in-house dictionaries). |
|
||||
| 2026-10-02 | Added shared WPF library `src/Titano.Ui` (theme, icons, controls, `Loc` markup extension) used by App, Uploader and Setup. | Duplicate resources per app | One visual system for three programs. |
|
||||
| 2026-10-02 | Added `tests/Titano.Core.Windows.Tests` for WIC / Media Foundation / DXGI tests. | Put them in App.Tests | Keeps engine interop tests independent of the WPF app. |
|
||||
| 2026-10-02 | Localization areas extended with `Common`, `Jobs`, `Uploader`, `Setup`. | Fold into `Shell` | Smaller, owned files; same key scheme. |
|
||||
| 2026-10-02 | Resources live in `i18n/<culture>/<Area>[.<culture>].resx`, embedded into `Titano.Core` (satellite assemblies), base name `Titano.Core.i18n.<Area>`. Keys marked `<comment>invariant</comment>` need no translation. | Raw XML loader | Uses `ResourceManager` as the brief requires; satellites bundle into single-file publishes. |
|
||||
| 2026-10-02 | Program icons (ICO) are generated at build time into `artifacts/icons` by `Titano.Tools make-icon`, invoked from `Directory.Build.targets`. | Commit generated ICO files | Brief forbids committing generated binaries and raster sources. |
|
||||
| 2026-10-02 | In-house CRC-32 (`Titano.Core.Hashing.Crc32`). | System.IO.Hashing | That assembly is a NuGet package, not part of the shared framework. |
|
||||
| 2026-10-02 | Windows projects target `net10.0-windows` (platform version 7.0) without a Windows SDK projection TFM; Windows 10 APIs are reached by P/Invoke/COM. | `net10.0-windows10.0.19041.0` | Avoids the CsWinRT projection; toasts use the in-window toast host plus tray balloon. |
|
||||
| 2026-10-02 | Test projects use an explicit `TestMain` entry point. | Top-level statements | Avoids the `Program` type clash with the server's top-level program. |
|
||||
@@ -0,0 +1,5 @@
|
||||
# Status
|
||||
|
||||
Current phase: **Phase 0 — Bootstrap** (in progress).
|
||||
|
||||
See docs/BRIEF.md §22 for the phase plan.
|
||||
@@ -0,0 +1,119 @@
|
||||
# Titano — Design reference for Claude Code
|
||||
|
||||
Companion to `docs/BRIEF.md` §12 (UI spec). Suggested repo placement:
|
||||
`docs/ui/DESIGN.md` (this file), `docs/ui/mockups/*.html` (open in any browser;
|
||||
each file is one screen at its natural size, links between screens work), `branding/`
|
||||
(icon sources). The mockups are the visual target; where a mockup and the brief disagree
|
||||
on behaviour, the brief wins; where they disagree on looks, the mockup wins.
|
||||
|
||||
## 1. Tokens → WPF resource dictionary (`Titano.App/Themes/Dark.xaml`, `Light.xaml`)
|
||||
|
||||
| Key (SolidColorBrush) | Dark | Light | Use |
|
||||
|---|---|---|---|
|
||||
| `Brush.Bg` | #1F1F23 | #F3F3F3 | window background |
|
||||
| `Brush.Chrome` | #1A1A1E | #FFFFFF | title bar, rail, status bar, web sidebar |
|
||||
| `Brush.Surface` | #26262C | #FFFFFF | panels, toolbars, dialogs |
|
||||
| `Brush.Card` | #2F3038 | #FFFFFF | cards, inputs, buttons, hovered rows |
|
||||
| `Brush.Stroke` | #3E404A | #E5E5E5 | 1 px borders and dividers |
|
||||
| `Brush.Text` | #F2F3F5 | #1A1A1A | primary text |
|
||||
| `Brush.TextMuted` | #A9AEB9 | #616161 | secondary text, labels |
|
||||
| `Brush.TextFaint` | #7B818E | #9E9E9E | hints, column headers, disabled |
|
||||
| `Brush.Accent` | #4CC2FF | #0067C0 | primary button, active rail edge, links, Auto |
|
||||
| `Brush.OnAccent` | #0B1B24 | #FFFFFF | text on accent |
|
||||
| `Brush.AccentSelected` | rgba(76,194,255,.25) | #E8F1FA | selection glow / selected nav |
|
||||
| `Brush.Sun` | #F5A524 | #E08A1E | manual slider track, uploader accent, icon sun |
|
||||
| `Brush.Success` | #35C48F | #0F7B4F | analysed, in sync, done |
|
||||
| `Brush.Warning` | #E8B339 | #9A6700 | warnings, destructive outline |
|
||||
| `Brush.Error` | #F0625D | #C42B1C | errors, failed |
|
||||
| `Brush.Region` | #5AD1C8 | #1A9E95 | sky/landscape region masks only |
|
||||
|
||||
Dark is the client default; Light follows the OS setting; the web admin is Light-only.
|
||||
Never use colour alone to carry state: pair it with a glyph (● ○ ◐ ▲ ✕ ▶) or a word.
|
||||
|
||||
## 2. Type (Segoe UI Variable, fallback Segoe UI; `FontSize` keys)
|
||||
|
||||
`Text.PageTitle` 18/600 · `Text.Title` 16/600 · `Text.Section` 14/600 · `Text.Body` 13/400
|
||||
· `Text.Secondary` 12/400 muted · `Text.Chip` 11/400. Line heights 24/22/20/18/16/14.
|
||||
Numbers in tables use tabular figures (`Typography.NumeralAlignment="Tabular"`).
|
||||
Layout must survive +40 % text width (de, fi): no fixed-width labels, `MinWidth` only.
|
||||
|
||||
## 3. Spacing, radii, sizes
|
||||
|
||||
Spacing scale 4 · 8 · 12 · 16 · 20 (`Thickness` keys `Space.1`…`Space.5`).
|
||||
Radii: 6 controls · 8 cards/panels · 12 pills · 12 modal dialogs.
|
||||
Controls 32 px tall, 44 px minimum width, 12 px horizontal padding; compact row buttons 26–28 px.
|
||||
Rail 128 px (collapses to 48 px icons); title bar 34; job bar 40; toolbar 56; status bar 30;
|
||||
table rows 36–40 (52 in the web admin); side panels 320 px; settings section list 200 px.
|
||||
Label column left of controls: 116 px in panels, 180 px in Settings.
|
||||
|
||||
## 4. Controls and states (see `Components.html`)
|
||||
|
||||
- **Button**: Card fill, Stroke border. Hover +6 % lightness, pressed −6 %, focus = 2 px
|
||||
Accent ring outside. **Primary** (Accent fill, OnAccent text, 600) — one per screen.
|
||||
**Destructive** = Warning outline, transparent fill, never a primary. **Subtle** = no border
|
||||
until hover. **Toggled** = Accent text + Accent border. **Disabled** = 40 % opacity and the
|
||||
tooltip says why. Icon-only buttons carry `AutomationProperties.Name` and a tooltip.
|
||||
- **Inputs**: Card fill, Stroke border, Accent border on focus, Error border when invalid with
|
||||
the message in the tooltip (never a line of text under the field). Enter commits, Esc reverts.
|
||||
- **Slider — Auto/manual** (brief §10.4): Auto state = Accent track, dimmed thumb, an `Auto · 41`
|
||||
pill at the right whose tooltip gives the advisor's reason; touching it turns the track Sun
|
||||
(manual), shows the value, and a `⟲` reset button returns to Auto. Not applicable = greyed
|
||||
value "n/a" with the reason in its tooltip.
|
||||
- **Status glyphs**: `●` green Analysed · `○` faint Not analysed · `●` Proxies · `▶ n` rendered
|
||||
· `●` accent Synced/Remote · `◐` amber Analysing · `▲ n` warnings · `✕ n` errors.
|
||||
- **Chips**: 24 px pills, Card fill, Stroke border; selected/recommended = Accent border and text.
|
||||
- **Progress**: 6 px bar, Accent fill, text to the right; indeterminate = sliding highlight.
|
||||
- **Tooltip**: light on dark (#F2F3F5 on dark, #1A1A1A text), 12 px, one line: action + cost +
|
||||
shortcut ("Read every frame again · about 6 min · Ctrl+Shift+A"); 400 ms delay; ≤ 200 chars.
|
||||
Every interactive element has one. There is no other explanatory text in the UI.
|
||||
- **Dialog**: Surface fill, Stroke border, radius 12, 24 px shadow, two buttons maximum, safe
|
||||
action left and default, destructive on the right with typed confirmation for formatting.
|
||||
- **Toast**: bottom-right, 420 px, Card fill with a 3 px Accent left edge, one action button,
|
||||
8 s, hover pauses. Used for card insertion, render done, server messages.
|
||||
- **Job bar**: 40 px strip under the title bar in every client screen: current job, progress,
|
||||
time left, pause; hidden when idle only in the editor (it shows "Ready" elsewhere).
|
||||
- **Rail item**: 36 px; active = Card fill + 3 px Accent left edge; badge = Accent pill with
|
||||
the count of things needing attention.
|
||||
- **Cards** (Library): 236 px wide, thumbnail 16:9, count badge top-right, checkbox top-left on
|
||||
hover/selection, selected = Accent border + `AccentSelected` glow; hover scrubs the thumbnail.
|
||||
- **Tables**: header 11 px faint, sortable; rows Card fill on hover; numbers right-aligned,
|
||||
tabular; virtualised beyond 200 rows; row actions are 26 px buttons revealed on the row.
|
||||
|
||||
## 5. Icons
|
||||
|
||||
16 px, 1.5 px strokes, round caps and joins, `currentColor`, drawn as `PathGeometry` /
|
||||
`DrawingImage` resources in `Titano.App/Icons/Icons.xaml` (source SVGs in `branding/ui-icons/`
|
||||
if generated by a tool). No icon fonts, no emoji in shipped UI (the mockups use a few glyphs
|
||||
only as placeholders: replace ⟳ ▾ ✕ ■ ❚❚ ≡ with drawn icons). Directional icons mirror in RTL.
|
||||
|
||||
## 6. App icon (`branding/`)
|
||||
|
||||
`titano.svg` is the master: 256 plate radius 56 #1A1A1E, ring r 92, 12 ticks of 12° with 18°
|
||||
gaps, stroke 20 round caps, opacity 0.14 → 1.0 clockwise from 12 o'clock, sun disc at
|
||||
(152,104) r 30 #F5A524. Variants: `titano-server.svg` (rack badge), `titano-uploader.svg`
|
||||
(up-arrow badge), `titano-mono.svg` (white, no plate, for the tray). PNG renders at
|
||||
16/32/48/64/128/256 are reference output; `Titano.Tools make-icon` must regenerate ICO/PNG
|
||||
from the SVG geometry (no raster assets checked in as sources). Badges only at ≥ 48 px.
|
||||
|
||||
## 7. Screen-by-screen notes (mockup → brief section)
|
||||
|
||||
| Mockup | Brief | Notes |
|
||||
|---|---|---|
|
||||
| `Main.html` | §12.2 Library | grid/list, year·camera·status filters, selection panel |
|
||||
| `Editor.html` | §12.3 Sequence editor | Exposure tab, wipe compare, curves, advisor Auto pills |
|
||||
| `Export.html` | §12.3 / §11.4 | preset cards with size/time estimate, Output panel, batch |
|
||||
| `Import.html` | §12.4 / §13 | card profile, sessions, plan, verification, after-import actions |
|
||||
| `Archive.html` | §12.5 | tree, mass operations, stats, verify/rebuild, maintenance |
|
||||
| `Jobs.html` | §12.6 | filters, queue order, expandable log, retry/open/folder |
|
||||
| `Server.html` | §12.7 / §14 | connection with TOFU fingerprint, account and quota, render node, sync table, conflicts |
|
||||
| `Settings.html` | §12.8 | section list, Rendering section, encoder table, self-test |
|
||||
| `Welcome.html` | §12.1 | first run: local archive / adopt folder / connect; consent line; card toast |
|
||||
| `Admin.html` | §14.7 | dashboard |
|
||||
| `AdminUsers.html` | §14.7 | users table, roles, quotas, temporary password, render-node right |
|
||||
| `Uploader.html` | §15 | single window, watch folder, queue, tray |
|
||||
| `Components.html` | §12.1 | the control kit above, with hex values and state rules |
|
||||
| `Icon.html` | §17 | construction, sizes, variants, wordmark |
|
||||
|
||||
Missing on purpose (build from the brief and this kit): About, Login dialog, the other editor
|
||||
tabs (Frames, Motion, Camera, Time, Stack), Import "Show plan", Archive rebuild dialog, the
|
||||
admin Archive/Jobs/Settings/Logs pages. Reuse the shell and the kit; do not invent new colours.
|
||||
@@ -0,0 +1,118 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano Server — Admin dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#f3f3f3;color:#1a1a1a}
|
||||
a{color:#0067c0}a:hover{color:#004c8c}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; background: #f3f3f3; color: #1a1a1a; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<nav style="width: 220px; flex-shrink: 0; background: #ffffff; border-right: 1px solid #e5e5e5; display: flex; flex-direction: column; padding: 16px 12px; gap: 2px; box-sizing: border-box">
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px">
|
||||
<svg width="22" height="22" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#0067c0" stroke-width="2" stroke-dasharray="3 1.6"/><circle cx="8" cy="8" r="2.4" fill="#e08a1e"/></svg>
|
||||
<span style="display: flex; flex-direction: column"><span style="font-weight: 600; font-size: 14px">Titano Server</span><span style="font-size: 11px; color: #616161">Studio NAS · v1.3.0</span></span>
|
||||
</div>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #e8f1fa; color: #0067c0; text-decoration: none; font-weight: 600"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Dashboard</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="5" r="3" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M2.5 14a5.5 5.5 0 0 1 11 0" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Users<span style="margin-left: auto; font-size: 11px; color: #616161">6</span></a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #0067c0; color: #ffffff; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">3</span></a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 1.5h6l3 3v10h-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M5.5 7h5M5.5 9.5h5M5.5 12h3" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>Logs</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid #e5e5e5">
|
||||
<span style="width: 28px; height: 28px; border-radius: 14px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">A</span>
|
||||
<span style="display: flex; flex-direction: column; flex-grow: 1"><span style="font-weight: 600">admin</span><span style="font-size: 11px; color: #616161">Administrator</span></span>
|
||||
<button aria-label="Sign out" title="Sign out" style="width: 30px; height: 30px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">⏻</button>
|
||||
</div>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; min-width: 0; display: flex; flex-direction: column">
|
||||
<div style="height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: #ffffff; border-bottom: 1px solid #e5e5e5; flex-shrink: 0">
|
||||
<span style="font-size: 18px; font-weight: 600">Dashboard</span>
|
||||
<span style="color: #616161">up 12 d 4 h · PostgreSQL 17 · TLS auto · discovery on</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Interface language" style="height: 32px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">English ▾</button>
|
||||
<button aria-label="Switch theme" title="Light / dark" style="width: 32px; height: 32px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M9.5 1.8a6.5 6.5 0 1 0 4.7 9.4A5.5 5.5 0 0 1 9.5 1.8z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg></button>
|
||||
<button title="Open the public archive browser as a viewer would see it" style="height: 32px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">Open archive</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px">
|
||||
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; flex-shrink: 0">
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 12px; color: #616161">Storage</span>
|
||||
<span style="display: flex; align-items: baseline; gap: 6px"><span style="font-size: 26px; font-weight: 600">9.4 TB</span><span style="color: #616161">of 16 TB</span></span>
|
||||
<div style="height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 59%; height: 6px; background: #0067c0"></div></div>
|
||||
<span style="font-size: 12px; color: #616161">6.6 TB free · exports 210 GB · proxies 610 GB</span>
|
||||
</div>
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 12px; color: #616161">Archive</span>
|
||||
<span style="display: flex; align-items: baseline; gap: 6px"><span style="font-size: 26px; font-weight: 600">412</span><span style="color: #616161">sequences</span></span>
|
||||
<span style="font-size: 12px; color: #616161">618,204 photos · 14 cameras · last scan 07:12</span>
|
||||
<span style="font-size: 12px; color: #616161">3 sequences without proxies</span>
|
||||
</div>
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 12px; color: #616161">Jobs</span>
|
||||
<span style="display: flex; align-items: baseline; gap: 6px"><span style="font-size: 26px; font-weight: 600">3</span><span style="color: #616161">running</span></span>
|
||||
<span style="font-size: 12px; color: #616161">12 queued · 41 done today · 0 failed</span>
|
||||
<span style="font-size: 12px; color: #616161">workers 4 of 4 busy</span>
|
||||
</div>
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 12px; color: #616161">Render nodes</span>
|
||||
<span style="display: flex; align-items: baseline; gap: 6px"><span style="font-size: 26px; font-weight: 600">2</span><span style="color: #616161">online</span></span>
|
||||
<span style="font-size: 12px; color: #616161">studio-pc · NVENC HEVC/H.264/AV1 · busy</span>
|
||||
<span style="font-size: 12px; color: #616161">laptop-alb · QSV HEVC/H.264 · idle</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 250px; flex-shrink: 0">
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0">
|
||||
<span style="font-weight: 600">Storage by year</span>
|
||||
<svg viewBox="0 0 400 190" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<line x1="10" y1="160" x2="395" y2="160" stroke="#e5e5e5" stroke-width="1"/>
|
||||
<line x1="10" y1="88" x2="395" y2="88" stroke="#e5e5e5" stroke-width="1" stroke-dasharray="3 3"/><text x="392" y="84" font-size="9" fill="#616161" text-anchor="end" font-family="Segoe UI, system-ui, sans-serif">1 TB</text>
|
||||
<g fill="#0067c0"><rect x="20" y="139" width="30" height="21" rx="2" fill-opacity="0.55"/><rect x="68" y="124" width="30" height="36" rx="2" fill-opacity="0.6"/><rect x="116" y="103" width="30" height="57" rx="2" fill-opacity="0.65"/><rect x="164" y="81" width="30" height="79" rx="2" fill-opacity="0.7"/><rect x="212" y="60" width="30" height="100" rx="2" fill-opacity="0.75"/><rect x="260" y="31" width="30" height="129" rx="2" fill-opacity="0.8"/><rect x="308" y="10" width="30" height="150" rx="2" fill-opacity="0.9"/><rect x="356" y="60" width="30" height="100" rx="2"/></g>
|
||||
<g font-size="10" fill="#1a1a1a" text-anchor="middle" font-family="Segoe UI, system-ui, sans-serif"><text x="35" y="134">0.3</text><text x="83" y="119">0.5</text><text x="131" y="98">0.8</text><text x="179" y="76">1.1</text><text x="227" y="55">1.4</text><text x="275" y="26">1.8</text><text x="323" y="5" dy="4">2.1</text><text x="371" y="55">1.4</text></g>
|
||||
<g font-size="10" fill="#616161" text-anchor="middle" font-family="Segoe UI, system-ui, sans-serif"><text x="35" y="176">2019</text><text x="83" y="176">2020</text><text x="131" y="176">2021</text><text x="179" y="176">2022</text><text x="227" y="176">2023</text><text x="275" y="176">2024</text><text x="323" y="176">2025</text><text x="371" y="176">2026</text></g>
|
||||
</svg>
|
||||
</div>
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Uploads · last 30 days</span><span style="font-size: 12px; color: #616161">frames per day · 96,410 total · peak 12,400</span></div>
|
||||
<svg viewBox="0 0 400 190" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<line x1="5" y1="160" x2="395" y2="160" stroke="#e5e5e5" stroke-width="1"/>
|
||||
<line x1="5" y1="100" x2="395" y2="100" stroke="#e5e5e5" stroke-width="1" stroke-dasharray="3 3"/><text x="392" y="96" font-size="9" fill="#616161" text-anchor="end" font-family="Segoe UI, system-ui, sans-serif">5k</text>
|
||||
<g fill="#e08a1e"><rect x="5" y="122" width="9" height="38" rx="1"/><rect x="18" y="108" width="9" height="52" rx="1"/><rect x="31" y="140" width="9" height="20" rx="1"/><rect x="44" y="158" width="9" height="2" rx="1"/><rect x="57" y="96" width="9" height="64" rx="1"/><rect x="70" y="70" width="9" height="90" rx="1"/><rect x="83" y="86" width="9" height="74" rx="1"/><rect x="96" y="148" width="9" height="12" rx="1"/><rect x="109" y="132" width="9" height="28" rx="1"/><rect x="122" y="10" width="9" height="150" rx="1"/><rect x="135" y="28" width="9" height="132" rx="1"/><rect x="148" y="116" width="9" height="44" rx="1"/><rect x="161" y="142" width="9" height="18" rx="1"/><rect x="174" y="158" width="9" height="2" rx="1"/><rect x="187" y="134" width="9" height="26" rx="1"/><rect x="200" y="102" width="9" height="58" rx="1"/><rect x="213" y="64" width="9" height="96" rx="1"/><rect x="226" y="50" width="9" height="110" rx="1"/><rect x="239" y="120" width="9" height="40" rx="1"/><rect x="252" y="138" width="9" height="22" rx="1"/><rect x="265" y="152" width="9" height="8" rx="1"/><rect x="278" y="90" width="9" height="70" rx="1"/><rect x="291" y="36" width="9" height="124" rx="1"/><rect x="304" y="74" width="9" height="86" rx="1"/><rect x="317" y="130" width="9" height="30" rx="1"/><rect x="330" y="158" width="9" height="2" rx="1"/><rect x="343" y="114" width="9" height="46" rx="1"/><rect x="356" y="58" width="9" height="102" rx="1"/><rect x="369" y="22" width="9" height="138" rx="1"/><rect x="382" y="100" width="9" height="60" rx="1"/></g>
|
||||
<g font-size="10" fill="#616161" font-family="Segoe UI, system-ui, sans-serif"><text x="5" y="176">1 Sep</text><text x="386" y="176" text-anchor="end">30 Sep</text></g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; flex-grow: 1; min-height: 0">
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Recent activity</span><a href="Admin.html" style="font-size: 12px">All logs</a></div>
|
||||
<div style="display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 9px; font-size: 12px">
|
||||
<span style="color: #616161">09:41</span><span>alberto uploaded 1,020 frames to Construction cam · week 38</span>
|
||||
<span style="color: #616161">09:12</span><span>studio-pc rendered Milan skyline dusk · 4K HEVC · 2 min 41 s</span>
|
||||
<span style="color: #616161">08:55</span><span>uploader roof-cam signed in from 192.168.1.44</span>
|
||||
<span style="color: #616161">08:30</span><span>admin set export retention to 180 days</span>
|
||||
<span style="color: #616161">07:12</span><span>scheduled scan finished · 412 sequences · 0 changes</span>
|
||||
<span style="color: #616161">06:00</span><span>database backup · /data/backups/2026-09-30.sql.gz · 190 MB</span>
|
||||
<span style="color: #616161">23:04</span><span>admin created user giulia · Editor · quota 2 TB</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Jobs</span><a href="Admin.html" style="font-size: 12px">Queue and history</a></div>
|
||||
<div style="display: grid; grid-template-columns: 96px 1.5fr 92px 1fr 80px 70px; column-gap: 12px; row-gap: 10px; align-items: center; font-size: 12px">
|
||||
<span style="color: #616161">Kind</span><span style="color: #616161">Target</span><span style="color: #616161">Node</span><span style="color: #616161">Progress</span><span style="color: #616161">State</span><span></span>
|
||||
<span>Render</span><span>Harbour sunset → 4K 10-bit HEVC</span><span>studio-pc</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 62%; height: 6px; background: #0067c0"></div></div><span>62 %</span></div><span style="color: #0067c0">running</span><button title="Cancel this job" style="height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Cancel</button>
|
||||
<span>Deep analysis</span><span>Construction cam · week 38</span><span>server</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 28%; height: 6px; background: #0067c0"></div></div><span>28 %</span></div><span style="color: #0067c0">running</span><button title="Cancel this job" style="height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Cancel</button>
|
||||
<span>Proxies</span><span>Comet over the ridge</span><span>server</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 91%; height: 6px; background: #0067c0"></div></div><span>91 %</span></div><span style="color: #0067c0">running</span><button title="Cancel this job" style="height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Cancel</button>
|
||||
<span>Verify</span><span>Archive · 2024</span><span>server</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px"></div><span style="color: #616161">—</span></div><span style="color: #616161">queued</span><button title="Remove from the queue" style="height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Remove</button>
|
||||
<span>Render</span><span>Aurora, Tromsø → 1080p share H.264</span><span>laptop-alb</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px"></div><span style="color: #616161">—</span></div><span style="color: #616161">queued</span><button title="Remove from the queue" style="height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Remove</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,76 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano Server — Users</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#f3f3f3;color:#1a1a1a}
|
||||
a{color:#0067c0}a:hover{color:#004c8c}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; background: #f3f3f3; color: #1a1a1a; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<nav style="width: 220px; flex-shrink: 0; background: #ffffff; border-right: 1px solid #e5e5e5; display: flex; flex-direction: column; padding: 16px 12px; gap: 2px; box-sizing: border-box">
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px">
|
||||
<svg width="22" height="22" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#0067c0" stroke-width="2" stroke-dasharray="3 1.6"/><circle cx="8" cy="8" r="2.4" fill="#e08a1e"/></svg>
|
||||
<span style="display: flex; flex-direction: column"><span style="font-weight: 600; font-size: 14px">Titano Server</span><span style="font-size: 11px; color: #616161">Studio NAS · v1.3.0</span></span>
|
||||
</div>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Dashboard</a>
|
||||
<a href="AdminUsers.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #e8f1fa; color: #0067c0; text-decoration: none; font-weight: 600"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="5" r="3" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M2.5 14a5.5 5.5 0 0 1 11 0" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Users<span style="margin-left: auto; font-size: 11px; color: #616161">6</span></a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #0067c0; color: #ffffff; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">3</span></a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 1.5h6l3 3v10h-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M5.5 7h5M5.5 9.5h5M5.5 12h3" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>Logs</a>
|
||||
<a href="Admin.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: #1a1a1a; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid #e5e5e5">
|
||||
<span style="width: 28px; height: 28px; border-radius: 14px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">A</span>
|
||||
<span style="display: flex; flex-direction: column; flex-grow: 1"><span style="font-weight: 600">admin</span><span style="font-size: 11px; color: #616161">Administrator</span></span>
|
||||
<button aria-label="Sign out" title="Sign out" style="width: 30px; height: 30px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">⏻</button>
|
||||
</div>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; min-width: 0; display: flex; flex-direction: column">
|
||||
<div style="height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: #ffffff; border-bottom: 1px solid #e5e5e5; flex-shrink: 0">
|
||||
<span style="font-size: 18px; font-weight: 600">Users</span>
|
||||
<span style="color: #616161">6 accounts · 5 active · roles: admin, editor, uploader, viewer</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<label for="uq" style="position: absolute; left: -9999px">Search users</label>
|
||||
<input id="uq" type="search" placeholder="Search" style="width: 220px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit">
|
||||
<button title="Create an account; the user must change the password at first sign-in" style="height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: #0067c0; color: #ffffff; font: inherit; font-weight: 600; cursor: pointer">New user</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; padding: 24px; display: flex; gap: 20px">
|
||||
<div style="flex-grow: 1; min-width: 0; background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 10px 18px; font-size: 11px; color: #616161; border-bottom: 1px solid #e5e5e5"><span>User</span><span>Role</span><span>Quota</span><span>Last seen</span><span>Uploads 30 d</span><span>Status</span><span></span></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">A</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">admin</span><span style="font-size: 11px; color: #616161">Administrator · created at first start</span></span></span><span>Admin</span><span style="color: #616161">—</span><span>now · 192.168.1.10</span><span>0</span><span style="color: #0f7b4f">● Active</span><div style="display: flex; gap: 6px"><button title="Edit" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Edit</button><button title="Send a reset link or set a temporary password" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Reset password</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">A</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">alberto</span><span style="font-size: 11px; color: #616161">Alberto · render node studio-pc</span></span></span><span>Editor</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 42%; height: 6px; background: #0067c0"></div></div><span style="font-size: 12px; white-space: nowrap">2.1 of 5 TB</span></div><span>10:15 · client 1.3.0</span><span>14,208</span><span style="color: #0f7b4f">● Active</span><div style="display: flex; gap: 6px"><button title="Edit" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Edit</button><button title="Send a reset link or set a temporary password" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Reset password</button><button title="Disable: sessions end, files stay" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Disable</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">G</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">giulia</span><span style="font-size: 11px; color: #616161">Giulia · must change password</span></span></span><span>Editor</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 3%; height: 6px; background: #0067c0"></div></div><span style="font-size: 12px; white-space: nowrap">0.1 of 2 TB</span></div><span>09:20 · client 1.3.0</span><span>640</span><span style="color: #0f7b4f">● Active</span><div style="display: flex; gap: 6px"><button title="Edit" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Edit</button><button title="Send a reset link or set a temporary password" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Reset password</button><button title="Disable: sessions end, files stay" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Disable</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #fff4e5; color: #9a6700; font-weight: 600; display: flex; align-items: center; justify-content: center">R</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">roof-cam</span><span style="font-size: 11px; color: #616161">Uploader on the roof PC · watch folder</span></span></span><span>Uploader</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 61%; height: 6px; background: #0067c0"></div></div><span style="font-size: 12px; white-space: nowrap">0.6 of 1 TB</span></div><span>08:55 · uploader 1.3.0</span><span>81,320</span><span style="color: #0f7b4f">● Active</span><div style="display: flex; gap: 6px"><button title="Edit" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Edit</button><button title="Send a reset link or set a temporary password" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Reset password</button><button title="Disable: sessions end, files stay" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Disable</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #e8f1fa; color: #0067c0; font-weight: 600; display: flex; align-items: center; justify-content: center">M</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">marco</span><span style="font-size: 11px; color: #616161">Marco · client</span></span></span><span>Viewer</span><span style="color: #616161">—</span><span>2026-09-14</span><span>0</span><span style="color: #0f7b4f">● Active</span><div style="display: flex; gap: 6px"><button title="Edit" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Edit</button><button title="Send a reset link or set a temporary password" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Reset password</button><button title="Disable: sessions end, files stay" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Disable</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 100px 1.3fr 130px 110px 100px 210px; gap: 12px; padding: 0 18px; height: 52px; align-items: center; border-bottom: 1px solid #e5e5e5; color: #616161"><span style="display: flex; align-items: center; gap: 10px"><span style="width: 30px; height: 30px; border-radius: 15px; background: #eeeeee; color: #616161; font-weight: 600; display: flex; align-items: center; justify-content: center">S</span><span style="display: flex; flex-direction: column"><span style="font-weight: 600">simone</span><span style="font-size: 11px">Simone · disabled 2026-08-30</span></span></span><span>Editor</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden"><div style="width: 20%; height: 6px; background: #9e9e9e"></div></div><span style="font-size: 12px; white-space: nowrap">0.4 of 2 TB</span></div><span>2026-08-29</span><span>0</span><span>○ Disabled</span><div style="display: flex; gap: 6px"><button title="Re-enable the account" style="height: 28px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-size: 12px; cursor: pointer">Enable</button><button title="Delete the account; its sequences are reassigned to admin" style="height: 28px; padding: 0 10px; border: 1px solid #c42b1c; border-radius: 6px; background: #ffffff; color: #c42b1c; font: inherit; font-size: 12px; cursor: pointer">Delete…</button></div></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-top: 1px solid #e5e5e5; font-size: 12px; color: #616161"><span>Passwords: PBKDF2-SHA512, 12 characters minimum · tokens expire after 30 days idle</span><span style="flex-grow: 1"></span><a href="Admin.html" title="Who signed in from where, and when">Sign-in log</a></div>
|
||||
</div>
|
||||
<aside style="width: 340px; flex-shrink: 0; background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px">
|
||||
<span style="font-size: 16px; font-weight: 600">New user</span>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #616161">Username<input type="text" value="lucia" title="Letters, digits, dot and dash; cannot be changed later" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit"></label>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #616161">Display name<input type="text" value="Lucia" title="Shown in the client and in activity" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit"></label>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #616161">Email (optional)<input type="email" placeholder="for password resets" title="Only used for password reset links; the server sends no other mail" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit"></label>
|
||||
<span style="color: #616161">Role</span>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="radio" name="role" title="Browse and download renders only" style="accent-color: #0067c0; margin: 0">Viewer</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="radio" name="role" title="Upload only; cannot open sequences" style="accent-color: #0067c0; margin: 0">Uploader</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="radio" name="role" checked title="Import, edit, render, upload and download" style="accent-color: #0067c0; margin: 0">Editor</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="radio" name="role" title="Everything, including users and settings" style="accent-color: #0067c0; margin: 0">Admin</label>
|
||||
</div>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #616161">Quota<span style="display: flex; align-items: center; gap: 8px"><input type="number" value="2" title="Originals uploaded by this user count against the quota; 0 = unlimited" style="width: 80px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit"><span>TB</span><span style="color: #616161; font-size: 12px">6.6 TB free on the server</span></span></label>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #616161">Temporary password<span style="display: flex; align-items: center; gap: 8px"><input type="text" value="brass-comet-4412" title="Give this to the user; they must replace it at first sign-in" style="flex-grow: 1; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; font-family: Consolas, monospace"><button aria-label="Generate another" title="Generate another" style="width: 32px; height: 32px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">⟳</button></span></label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" checked title="Recommended" style="accent-color: #0067c0; margin: 0">Must change password at first sign-in</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" title="Lets this user's PC take render jobs from the server" style="accent-color: #0067c0; margin: 0">May act as render node</label>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; gap: 8px; justify-content: flex-end"><button title="Discard" style="height: 32px; padding: 0 14px; border: 1px solid #e5e5e5; border-radius: 6px; background: #ffffff; color: #1a1a1a; font: inherit; cursor: pointer">Cancel</button><button title="Create the account" style="height: 32px; padding: 0 16px; border: 0; border-radius: 6px; background: #0067c0; color: #ffffff; font: inherit; font-weight: 600; cursor: pointer">Create</button></div>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,142 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Archive manager</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Archive</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">1</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 71%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; white-space: nowrap">Verify · 6.7 of 9.4 TB · 410 MB/s · 1 h 52 min left · 0 errors</span>
|
||||
<button aria-label="Pause job" title="Pause the verification; it resumes where it stopped" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; cursor: pointer; font: inherit">❚❚</button>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; flex-grow: 1; min-height: 0; padding: 16px 20px; gap: 14px">
|
||||
<div style="display: flex; align-items: center; gap: 8px; flex-shrink: 0">
|
||||
<button title="Choose which archive root to manage; network roots are polled, not watched" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Archive: D:\TitanoArchive ▾</button>
|
||||
<span style="width: 1px; height: 22px; background: #3e404a; margin: 0 4px"></span>
|
||||
<button title="Incremental scan: new, changed and removed files by modification time and size" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Scan</button>
|
||||
<button title="Rebuild the database from the sequence sidecars; falls back to a full metadata scan; never deletes originals" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Rebuild index</button>
|
||||
<button title="Re-hash every original and report bit rot" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Verify</button>
|
||||
<button title="Find identical photos across sequences by hash" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Duplicates</button>
|
||||
<button title="Files without an index row and rows without a file, each with a fix" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Orphans</button>
|
||||
<button title="Index an existing folder tree in place, or copy it into the archive layout" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Adopt folder…</button>
|
||||
<button title="Vacuum, backup and restore the database; purge or rebuild proxies; compact thumbnails; rotate logs; move the archive" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Maintenance ▾</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="color: #a9aeb9">Last scan 2026-09-29 07:12 · 14 min</span>
|
||||
</div>
|
||||
<div style="display: flex; gap: 14px; flex-shrink: 0">
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px"><span style="font-size: 24px; font-weight: 600">618,204</span><span style="font-size: 12px; color: #a9aeb9">photos</span></div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px"><span style="font-size: 24px; font-weight: 600">412</span><span style="font-size: 12px; color: #a9aeb9">sequences · 1,309 loose photos</span></div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px"><span style="font-size: 24px; font-weight: 600">9.4 TB</span><span style="font-size: 12px; color: #a9aeb9">originals · 610 GB proxies · 1.8 GB thumbnails</span></div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px"><span style="font-size: 24px; font-weight: 600">14</span><span style="font-size: 12px; color: #a9aeb9">cameras · 9 formats</span></div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px"><span style="font-size: 24px; font-weight: 600">2019 – 2026</span><span style="font-size: 12px; color: #a9aeb9">316 rendered · 84 never rendered · 12 not analysed</span></div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 14px; height: 330px; flex-shrink: 0">
|
||||
<div style="flex: 1.6; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Photos per month</span><span style="font-size: 11px; color: #a9aeb9">0</span><span style="display: inline-block; width: 60px; height: 8px; margin: 0 6px; border-radius: 2px; background: linear-gradient(90deg, rgba(76,194,255,0.08), #4cc2ff)"></span><span style="font-size: 11px; color: #a9aeb9">21k</span></div>
|
||||
<svg viewBox="0 0 290 178" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<g font-size="9" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="34" y="12">J</text><text x="53" y="12">F</text><text x="72" y="12">M</text><text x="91" y="12">A</text><text x="110" y="12">M</text><text x="129" y="12">J</text><text x="148" y="12">J</text><text x="167" y="12">A</text><text x="186" y="12">S</text><text x="205" y="12">O</text><text x="224" y="12">N</text><text x="243" y="12">D</text></g>
|
||||
<g font-size="9" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="2" y="31">2019</text><text x="2" y="50">2020</text><text x="2" y="69">2021</text><text x="2" y="88">2022</text><text x="2" y="107">2023</text><text x="2" y="126">2024</text><text x="2" y="145">2025</text><text x="2" y="164">2026</text></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,19)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.10"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.08"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.14"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.30"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.34"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.28"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.16"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.10"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.08"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,38)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.08"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.10"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.12"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.06"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.32"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.40"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.38"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.26"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.12"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.10"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,57)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.12"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.10"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.16"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.30"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.42"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.48"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.44"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.32"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.14"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.12"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,76)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.14"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.12"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.26"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.36"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.50"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.58"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.52"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.38"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.26"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.14"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,95)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.16"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.14"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.30"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.42"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.60"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.70"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.64"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.46"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.30"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.16"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,114)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.16"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.26"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.34"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.50"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.72"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.84"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.78"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.56"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.36"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.24"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,133)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.18"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.30"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.40"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.58"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.82"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="0.96"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.90"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.66"/><rect x="171" y="0" width="16" height="16" rx="2" fill-opacity="0.42"/><rect x="190" y="0" width="16" height="16" rx="2" fill-opacity="0.28"/><rect x="209" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/></g>
|
||||
<g fill="#4cc2ff" transform="translate(30,152)"><rect x="0" y="0" width="16" height="16" rx="2" fill-opacity="0.22"/><rect x="19" y="0" width="16" height="16" rx="2" fill-opacity="0.20"/><rect x="38" y="0" width="16" height="16" rx="2" fill-opacity="0.32"/><rect x="57" y="0" width="16" height="16" rx="2" fill-opacity="0.44"/><rect x="76" y="0" width="16" height="16" rx="2" fill-opacity="0.62"/><rect x="95" y="0" width="16" height="16" rx="2" fill-opacity="0.88"/><rect x="114" y="0" width="16" height="16" rx="2" fill-opacity="1"/><rect x="133" y="0" width="16" height="16" rx="2" fill-opacity="0.94"/><rect x="152" y="0" width="16" height="16" rx="2" fill-opacity="0.72"/><rect x="171" y="0" width="16" height="16" rx="2" fill="#2f3038"/><rect x="190" y="0" width="16" height="16" rx="2" fill="#2f3038"/><rect x="209" y="0" width="16" height="16" rx="2" fill="#2f3038"/></g>
|
||||
</svg>
|
||||
</div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<span style="font-weight: 600">Storage by year</span>
|
||||
<svg viewBox="0 0 300 176" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<g font-size="10" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="0" y="14">2019</text><text x="0" y="36">2020</text><text x="0" y="58">2021</text><text x="0" y="80">2022</text><text x="0" y="102">2023</text><text x="0" y="124">2024</text><text x="0" y="146">2025</text><text x="0" y="168">2026</text></g>
|
||||
<g fill="#4cc2ff"><rect x="34" y="4" width="31" height="14" rx="2" fill-opacity="0.55"/><rect x="34" y="26" width="52" height="14" rx="2" fill-opacity="0.6"/><rect x="34" y="48" width="84" height="14" rx="2" fill-opacity="0.65"/><rect x="34" y="70" width="115" height="14" rx="2" fill-opacity="0.7"/><rect x="34" y="92" width="147" height="14" rx="2" fill-opacity="0.75"/><rect x="34" y="114" width="189" height="14" rx="2" fill-opacity="0.8"/><rect x="34" y="136" width="220" height="14" rx="2" fill-opacity="0.9"/><rect x="34" y="158" width="147" height="14" rx="2" fill-opacity="1"/></g>
|
||||
<g font-size="10" fill="#f2f3f5" font-family="Segoe UI, system-ui, sans-serif"><text x="70" y="15">0.3 TB</text><text x="91" y="37">0.5 TB</text><text x="123" y="59">0.8 TB</text><text x="154" y="81">1.1 TB</text><text x="186" y="103">1.4 TB</text><text x="228" y="125">1.8 TB</text><text x="259" y="147">2.1 TB</text><text x="186" y="169">1.4 TB</text></g>
|
||||
</svg>
|
||||
</div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<span style="font-weight: 600">By camera</span>
|
||||
<svg viewBox="0 0 300 176" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<g font-size="10" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="0" y="14">Canon EOS R5</text><text x="0" y="42">Sony A7 IV</text><text x="0" y="70">Nikon Z 8</text><text x="0" y="98">GoPro HERO12</text><text x="0" y="126">iPhone 16 Pro</text><text x="0" y="154">9 others</text></g>
|
||||
<g fill="#f5a524"><rect x="82" y="4" width="200" height="14" rx="2" fill-opacity="1"/><rect x="82" y="32" width="107" height="14" rx="2" fill-opacity="0.85"/><rect x="82" y="60" width="68" height="14" rx="2" fill-opacity="0.75"/><rect x="82" y="88" width="44" height="14" rx="2" fill-opacity="0.65"/><rect x="82" y="116" width="29" height="14" rx="2" fill-opacity="0.55"/><rect x="82" y="144" width="39" height="14" rx="2" fill-opacity="0.45"/></g>
|
||||
<g font-size="10" fill="#f2f3f5" font-family="Segoe UI, system-ui, sans-serif"><text x="286" y="15">41 %</text><text x="194" y="43">22 %</text><text x="155" y="71">14 %</text><text x="131" y="99">9 %</text><text x="116" y="127">6 %</text><text x="126" y="155">8 %</text></g>
|
||||
</svg>
|
||||
</div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<span style="font-weight: 600">By format</span>
|
||||
<svg viewBox="0 0 300 176" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<g font-size="10" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="0" y="14">CR2</text><text x="0" y="38">ARW</text><text x="0" y="62">NEF</text><text x="0" y="86">JPEG</text><text x="0" y="110">DNG</text><text x="0" y="134">HEIC</text><text x="0" y="158">Other</text></g>
|
||||
<g fill="#5ad1c8"><rect x="40" y="4" width="220" height="14" rx="2" fill-opacity="1"/><rect x="40" y="28" width="122" height="14" rx="2" fill-opacity="0.85"/><rect x="40" y="52" width="81" height="14" rx="2" fill-opacity="0.75"/><rect x="40" y="76" width="69" height="14" rx="2" fill-opacity="0.65"/><rect x="40" y="100" width="46" height="14" rx="2" fill-opacity="0.55"/><rect x="40" y="124" width="29" height="14" rx="2" fill-opacity="0.45"/><rect x="40" y="148" width="12" height="14" rx="2" fill-opacity="0.35"/></g>
|
||||
<g font-size="10" fill="#f2f3f5" font-family="Segoe UI, system-ui, sans-serif"><text x="265" y="15">38 %</text><text x="167" y="39">21 %</text><text x="126" y="63">14 %</text><text x="114" y="87">12 %</text><text x="91" y="111">8 %</text><text x="74" y="135">5 %</text><text x="57" y="159">2 %</text></g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 14px; flex-grow: 1; min-height: 0">
|
||||
<div style="flex: 1.3; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<span style="font-weight: 600">Index health</span>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="7" fill="#35c48f"/><path d="M4.5 8.2 7 10.5l4.5-5" fill="none" stroke="#0b1b24" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg><span style="flex-grow: 1">Sidecars 412 / 412 · database matches the disk</span></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.5 15 14H1z" fill="#e8b339"/><path d="M8 6v4.2M8 12.2v.4" stroke="#0b1b24" stroke-width="1.6" stroke-linecap="round"/></svg><span style="flex-grow: 1">3 sequences without proxies</span><button title="Queue proxy generation for these 3 sequences" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Build</button></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.5 15 14H1z" fill="#e8b339"/><path d="M8 6v4.2M8 12.2v.4" stroke="#0b1b24" stroke-width="1.6" stroke-linecap="round"/></svg><span style="flex-grow: 1">1 sequence not verified in 90 days</span><button title="Verify only this sequence" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Verify</button></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="7" fill="#35c48f"/><path d="M4.5 8.2 7 10.5l4.5-5" fill="none" stroke="#0b1b24" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg><span style="flex-grow: 1">Database 214 MB · thumbnail pack 1.8 GB · 0 orphans · 0 duplicates</span></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><svg width="14" height="14" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="7" fill="#35c48f"/><path d="M4.5 8.2 7 10.5l4.5-5" fill="none" stroke="#0b1b24" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg><span style="flex-grow: 1">Network root reachable · SMB · 118 MB/s read</span></div>
|
||||
</div>
|
||||
<div style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Recent maintenance</span><button title="Open the job history filtered on maintenance" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">History</button></div>
|
||||
<div style="display: grid; grid-template-columns: 90px 1fr auto; column-gap: 12px; row-gap: 8px; color: #a9aeb9">
|
||||
<span>2026-09-29</span><span style="color: #f2f3f5">Verify · running</span><span style="color: #4cc2ff">71 %</span>
|
||||
<span>2026-09-20</span><span style="color: #f2f3f5">Verify · 9.4 TB</span><span style="color: #35c48f">0 errors</span>
|
||||
<span>2026-09-01</span><span style="color: #f2f3f5">Vacuum · 231 → 214 MB</span><span style="color: #35c48f">done</span>
|
||||
<span>2026-08-14</span><span style="color: #f2f3f5">Rebuild index · 412 sidecars</span><span style="color: #35c48f">done</span>
|
||||
<span>2026-08-02</span><span style="color: #f2f3f5">Backup · D:\Backups\titano-2026-08-02.db</span><span style="color: #35c48f">done</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; flex-shrink: 0">
|
||||
<span style="color: #a9aeb9">Filtered set</span>
|
||||
<button title="Change the filter: year, camera, status, tag, format" style="height: 30px; padding: 0 12px; border: 1px solid #4cc2ff; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">412 sequences · all ▾</button>
|
||||
<span style="width: 1px; height: 22px; background: #3e404a; margin: 0 4px"></span>
|
||||
<button title="Run the deep analysis on every sequence in the set" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Analyse</button>
|
||||
<button title="Generate or refresh proxies" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Proxies</button>
|
||||
<button title="Generate or refresh thumbnails" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Thumbnails</button>
|
||||
<button title="Re-hash the originals of the set" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Verify</button>
|
||||
<button title="Move the set to another root or folder layout, keeping the index" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Move…</button>
|
||||
<button title="Add or remove tags on the whole set" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Retag…</button>
|
||||
<button title="Export the set as CSV: one row per sequence with metadata and status" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Export CSV</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Delete the originals of the set after a typed confirmation; exports are kept" style="height: 30px; padding: 0 12px; border: 1px solid #e8b339; border-radius: 6px; background: transparent; color: #e8b339; font: inherit; cursor: pointer">Delete…</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0">
|
||||
<span>412 sequences</span><span>618,204 photos</span><span>9.4 TB</span><span style="color: #4cc2ff">Connected to "Studio NAS"</span><span>1 job</span>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,193 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — UI kit</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 190px 230px 1fr; gap: 16px; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; grid-column: span 2">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">COLOURS · CLIENT (DARK, DEFAULT)</span>
|
||||
<div style="display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px">
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #1f1f23; border: 1px solid #3e404a"></div><span style="font-size: 11px">Bg #1F1F23</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #1a1a1e; border: 1px solid #3e404a"></div><span style="font-size: 11px">Chrome #1A1A1E</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #26262c; border: 1px solid #3e404a"></div><span style="font-size: 11px">Surface #26262C</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #2f3038; border: 1px solid #3e404a"></div><span style="font-size: 11px">Card #2F3038</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #3e404a"></div><span style="font-size: 11px">Stroke #3E404A</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #f2f3f5"></div><span style="font-size: 11px">Text #F2F3F5</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #a9aeb9"></div><span style="font-size: 11px">Muted #A9AEB9</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #7b818e"></div><span style="font-size: 11px">Faint #7B818E</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #4cc2ff"></div><span style="font-size: 11px">Accent #4CC2FF</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #0b1b24"></div><span style="font-size: 11px">On accent #0B1B24</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #f5a524"></div><span style="font-size: 11px">Sun #F5A524</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #35c48f"></div><span style="font-size: 11px">Success #35C48F</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #e8b339"></div><span style="font-size: 11px">Warning #E8B339</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 40px; border-radius: 6px; background: #f0625d"></div><span style="font-size: 11px">Error #F0625D</span></div>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e">Region teal #5AD1C8 only for sky/landscape masks · one accent per screen · never colour alone: pair with a shape or a word</span>
|
||||
</div>
|
||||
<div style="background: #f3f3f3; border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; color: #1a1a1a">
|
||||
<span style="font-size: 11px; color: #616161; letter-spacing: 0.4px">COLOURS · LIGHT THEME & WEB ADMIN</span>
|
||||
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px">
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #f3f3f3; border: 1px solid #e5e5e5"></div><span style="font-size: 11px">Bg #F3F3F3</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #ffffff; border: 1px solid #e5e5e5"></div><span style="font-size: 11px">Card #FFFFFF</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #e5e5e5"></div><span style="font-size: 11px">Stroke #E5E5E5</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #1a1a1a"></div><span style="font-size: 11px">Text #1A1A1A</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #616161"></div><span style="font-size: 11px">Muted #616161</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 34px; border-radius: 6px; background: #0067c0"></div><span style="font-size: 11px">Accent #0067C0</span></div>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #616161">Selected nav #E8F1FA · sun #E08A1E · success #0F7B4F · warning #9A6700 · error #C42B1C</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">TYPE · SPACING · RADII</span>
|
||||
<span style="font-size: 18px; font-weight: 600; line-height: 24px">Page title 18 / 600</span>
|
||||
<span style="font-size: 16px; font-weight: 600; line-height: 22px">Sequence title 16 / 600</span>
|
||||
<span style="font-size: 14px; font-weight: 600; line-height: 20px">Section 14 / 600</span>
|
||||
<span style="font-size: 13px; line-height: 18px">Body and controls 13 / 400</span>
|
||||
<span style="font-size: 12px; line-height: 16px; color: #a9aeb9">Secondary 12 / 400 muted</span>
|
||||
<span style="font-size: 11px; line-height: 14px; color: #a9aeb9">Chips and axis labels 11 / 400</span>
|
||||
<div style="display: flex; align-items: flex-end; gap: 10px; margin-top: 4px">
|
||||
<span style="width: 4px; height: 12px; background: #4cc2ff"></span><span style="width: 8px; height: 12px; background: #4cc2ff"></span><span style="width: 12px; height: 12px; background: #4cc2ff"></span><span style="width: 16px; height: 12px; background: #4cc2ff"></span><span style="width: 20px; height: 12px; background: #4cc2ff"></span>
|
||||
<span style="font-size: 11px; color: #a9aeb9">4 · 8 · 12 · 16 · 20 px</span>
|
||||
<span style="width: 22px; height: 22px; border: 1px solid #3e404a; border-radius: 6px"></span><span style="width: 22px; height: 22px; border: 1px solid #3e404a; border-radius: 8px"></span><span style="width: 34px; height: 22px; border: 1px solid #3e404a; border-radius: 12px"></span>
|
||||
<span style="font-size: 11px; color: #a9aeb9">6 control · 8 card · 12 pill</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">BUTTONS · 32 PX · MIN WIDTH 44</span>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap">
|
||||
<button title="Default" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Default</button>
|
||||
<button title="Primary: one per screen" style="height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Primary</button>
|
||||
<button title="Destructive: outline, never filled" style="height: 32px; padding: 0 12px; border: 1px solid #e8b339; border-radius: 6px; background: transparent; color: #e8b339; font: inherit; cursor: pointer">Delete…</button>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap; align-items: center">
|
||||
<button title="Subtle: no border until hover" style="height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Subtle</button>
|
||||
<button aria-pressed="true" title="Toggled on" style="height: 32px; padding: 0 12px; border: 1px solid #4cc2ff; border-radius: 6px; background: #2f3038; color: #4cc2ff; font: inherit; cursor: pointer">Toggled</button>
|
||||
<button disabled title="Disabled: 40 % opacity, tooltip says why" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; opacity: 0.4">Disabled</button>
|
||||
<button aria-label="Refresh" title="Icon-only: aria-label plus tooltip" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">⟳</button>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px; align-items: center">
|
||||
<button title="Split: main action left, menu right" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px 0 0 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Render</button><button aria-label="More render options" title="Choose another preset" style="width: 28px; height: 32px; margin-left: -1px; border: 1px solid #3e404a; border-radius: 0 6px 6px 0; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">▾</button>
|
||||
<button aria-label="Grid view" title="Segmented group" style="width: 32px; height: 32px; border: 1px solid #4cc2ff; border-radius: 6px 0 0 6px; background: #2f3038; color: #4cc2ff; font: inherit; cursor: pointer">⊞</button><button aria-label="List view" title="Segmented group" style="width: 32px; height: 32px; margin-left: -1px; border: 1px solid #3e404a; border-radius: 0 6px 6px 0; background: #2f3038; color: #a9aeb9; font: inherit; cursor: pointer">☰</button>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e">Hover +6 % lightness · pressed −6 % · focus ring 2 px accent outside · every button has a tooltip</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">INPUTS · SELECTION</span>
|
||||
<input type="text" value="Harbour sunset" aria-label="Text" title="Text input · 32 px · label lives in the tooltip or to the left" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<div style="display: flex; gap: 8px">
|
||||
<input type="search" placeholder="Search" aria-label="Search" title="Search: filters as you type" style="flex: 1; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<input type="number" value="45" aria-label="Number" title="Number: spin with arrow keys" style="width: 64px; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<button title="Dropdown: current value shown, list on click" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Balanced ▾</button>
|
||||
</div>
|
||||
<input type="text" value="{date}_{time}_{n:0000" aria-invalid="true" aria-label="Invalid" title="Invalid: unclosed token · red border, message in tooltip, never below the field" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #f0625d; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<div style="display: flex; gap: 16px; align-items: center; flex-wrap: wrap">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Checkbox" style="accent-color: #4cc2ff; margin: 0">Checked</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" title="Checkbox" style="accent-color: #4cc2ff; margin: 0">Unchecked</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="k" checked title="Radio" style="accent-color: #4cc2ff; margin: 0">Radio</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="k" title="Radio" style="accent-color: #4cc2ff; margin: 0">Radio</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px">Switch<span style="width: 36px; height: 20px; border-radius: 10px; background: #4cc2ff; position: relative; display: inline-block"><span style="position: absolute; top: 3px; left: 19px; width: 14px; height: 14px; border-radius: 7px; background: #0b1b24"></span></span></label>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e">Labels left of the control, 116 px column · placeholder never replaces a label · Enter commits, Esc reverts</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">SLIDERS · AUTO / MANUAL</span>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center"><label for="s1" style="flex-grow: 1">Deflicker window</label><button title="Auto: chosen by the advisor · 4× measured flicker period · click to see the reason" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · 41</button></div>
|
||||
<input id="s1" type="range" min="5" max="121" value="41" title="Auto state: track dims until touched" style="width: 100%; accent-color: #4cc2ff">
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center; gap: 8px"><label for="s2" style="flex-grow: 1">Strength</label><span style="color: #f2f3f5">0.80</span><button aria-label="Back to Auto" title="Return to the advisor value (0.65)" style="width: 24px; height: 24px; border: 1px solid #3e404a; border-radius: 12px; background: transparent; color: #a9aeb9; font: inherit; font-size: 11px; cursor: pointer">⟲</button></div>
|
||||
<input id="s2" type="range" min="0" max="100" value="80" title="Manual state: value shown, reset returns to Auto" style="width: 100%; accent-color: #f5a524">
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 8px"><span style="flex-grow: 1">Colour temperature</span><span style="color: #7b818e" title="Not applicable on this sequence: the reason is in this tooltip">n/a</span></div>
|
||||
<span style="font-size: 11px; color: #7b818e">Accent track = Auto · sun track = manual · greyed with reason = not applicable · values edit on double-click</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">STATUS · PROGRESS · TOOLTIP</span>
|
||||
<div style="display: flex; gap: 10px; font-size: 11px; color: #a9aeb9; flex-wrap: wrap">
|
||||
<span style="color: #35c48f">● Analysed</span><span style="color: #7b818e">○ Not analysed</span><span>● Proxies</span><span>▶ 2 rendered</span><span style="color: #4cc2ff">● Synced</span><span style="color: #4cc2ff">● Remote</span><span style="color: #e8b339">◐ Analysing</span><span style="color: #e8b339">▲ 1 warning</span><span style="color: #f0625d">✕ 2 errors</span>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap">
|
||||
<span style="display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: #2f3038; border: 1px solid #3e404a; font-size: 12px">sunset ✕</span>
|
||||
<span style="display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: #2f3038; border: 1px solid #3e404a; font-size: 12px">holy grail ✕</span>
|
||||
<span style="display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: #2f3038; border: 1px solid #4cc2ff; font-size: 12px; color: #4cc2ff">Recommended</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 62%; height: 6px; background: #4cc2ff"></div></div><span style="font-size: 11px; color: #a9aeb9">Determinate 6 px · text to the right, never inside</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 4px"><div style="height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 30%; height: 6px; margin-left: 35%; background: linear-gradient(90deg, rgba(76,194,255,0), #4cc2ff, rgba(76,194,255,0))"></div></div><span style="font-size: 11px; color: #a9aeb9">Indeterminate: sliding highlight</span></div>
|
||||
<div style="display: flex; align-items: flex-start; gap: 10px">
|
||||
<button title="Hover me" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Analyse</button>
|
||||
<div style="max-width: 240px; padding: 6px 10px; border-radius: 6px; background: #f2f3f5; color: #1a1a1a; font-size: 12px; line-height: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.4)">Read every frame again and refresh the analysis · about 6 min · Ctrl+Shift+A</div>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e">Tooltip: one line, action + cost + shortcut · shows after 400 ms · light on dark</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">DIALOG · DESTRUCTIVE CONFIRM</span>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5)">
|
||||
<span style="font-size: 16px; font-weight: 600">Format EOS R5 · card A?</span>
|
||||
<span style="color: #a9aeb9; line-height: 18px">4,812 photos were copied and verified. Formatting removes everything on the card.</span>
|
||||
<label style="display: flex; flex-direction: column; gap: 6px; color: #a9aeb9">Type the card name to confirm<input type="text" placeholder="EOS R5 · card A" style="height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit"></label>
|
||||
<div style="display: flex; gap: 8px; justify-content: flex-end">
|
||||
<button title="Keep the card as it is" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; cursor: pointer">Keep card</button>
|
||||
<button disabled title="Enabled once the name matches" style="height: 32px; padding: 0 14px; border: 1px solid #e8b339; border-radius: 6px; background: transparent; color: #e8b339; font: inherit; opacity: 0.4">Format</button>
|
||||
</div>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e">Two buttons max · safe action left and default · destructive never primary · Esc = safe</span>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">TOAST · JOB BAR · RAIL</span>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #2f3038; border: 1px solid #3e404a; border-left: 3px solid #4cc2ff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.45)">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 1.5h6l2.5 2.5v10.5H4z" fill="none" stroke="#4cc2ff" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 2px; flex-grow: 1"><span style="font-weight: 600">EOS R5 · card A inserted</span><span style="font-size: 12px; color: #a9aeb9">4,812 photos · 96.2 GB · 3 sessions</span></span>
|
||||
<button title="Open Import with this card selected" style="height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Import</button>
|
||||
<button title="Dismiss for this session" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Not now</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: #26262c; border: 1px solid #3e404a; border-radius: 6px">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 34%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; font-size: 12px; white-space: nowrap">Building proxies · 1,240 / 3,600 · 3 min left</span>
|
||||
<button aria-label="Stop" title="Stop" style="width: 26px; height: 26px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">■</button>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px">
|
||||
<div style="width: 128px; background: #1a1a1e; border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 2px">
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff; font-size: 12px">Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-radius: 6px; color: #a9aeb9; text-decoration: none; font-size: 12px">Import</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-radius: 6px; color: #a9aeb9; text-decoration: none; font-size: 12px">Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">2</span></a>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e; line-height: 16px">Rail 128 px, collapses to 48 px icons · active = card fill + 3 px accent edge · badge = count needing attention · toast bottom-right, 8 s, hover pauses</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; grid-column: span 2">
|
||||
<span style="font-size: 11px; color: #a9aeb9; letter-spacing: 0.4px">EMPTY STATE · SEQUENCE CARD · TABLE ROW</span>
|
||||
<div style="display: flex; gap: 14px; flex-grow: 1; min-height: 0">
|
||||
<div style="flex: 1.2; border: 1px dashed #3e404a; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #a9aeb9; padding: 12px">
|
||||
<svg width="40" height="40" viewBox="0 0 256 256" aria-hidden="true"><path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/><path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/><path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/><path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/><path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/><path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/><path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/><path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/><path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/><path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/><path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/><path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1"/><circle cx="152" cy="104" r="30" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 14px; color: #f2f3f5">No sequences yet</span>
|
||||
<div style="display: flex; gap: 8px">
|
||||
<button title="Copy a memory card into the archive" style="height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Import a card</button>
|
||||
<button title="Index photos you already have, in place" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Adopt a folder</button>
|
||||
<button title="Use a shared Titano Server archive" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Connect to a server</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 236px; display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="background: #2f3038; border: 1px solid #4cc2ff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 2px rgba(76,194,255,0.25)">
|
||||
<div style="height: 110px; background: linear-gradient(180deg, #2a2f6b 0%, #b8452f 55%, #f0a04b 78%, #2b2b33 100%); position: relative"><span style="position: absolute; right: 8px; top: 8px; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(20,20,26,0.75)">3,600</span><input type="checkbox" checked aria-label="Selected" title="Selected: checkbox appears on hover" style="position: absolute; left: 8px; top: 8px; accent-color: #4cc2ff; margin: 0"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Harbour sunset</span><span style="color: #a9aeb9; font-size: 12px">Canon EOS R5 · 2 h 00 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span>▶ 2</span></div></div>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #7b818e; line-height: 15px">Selected card: accent border + glow · thumbnail is the first analysed keyframe, hover scrubs</span>
|
||||
</div>
|
||||
<div style="flex: 1; display: flex; flex-direction: column; gap: 0; min-width: 0">
|
||||
<div style="display: grid; grid-template-columns: 1.2fr 1fr 70px 60px 70px; gap: 10px; padding: 6px 10px; font-size: 11px; color: #7b818e; border-bottom: 1px solid #3e404a"><span>Sequence</span><span>Camera</span><span>Frames</span><span>State</span><span></span></div>
|
||||
<div style="display: grid; grid-template-columns: 1.2fr 1fr 70px 60px 70px; gap: 10px; padding: 0 10px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>Harbour sunset</span><span style="color: #a9aeb9">Canon EOS R5</span><span>3,600</span><span style="color: #35c48f">● ok</span><button title="Open in the editor" style="height: 26px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open</button></div>
|
||||
<div style="display: grid; grid-template-columns: 1.2fr 1fr 70px 60px 70px; gap: 10px; padding: 0 10px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a; background: #2f3038"><span>Comet over the ridge</span><span style="color: #a9aeb9">GoPro HERO8</span><span>1,005</span><span style="color: #e8b339">▲ 1</span><button title="Open in the editor" style="height: 26px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open</button></div>
|
||||
<div style="display: grid; grid-template-columns: 1.2fr 1fr 70px 60px 70px; gap: 10px; padding: 0 10px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>Aurora, Tromsø</span><span style="color: #a9aeb9">Nikon Z 8</span><span>1,860</span><span style="color: #4cc2ff">● sync</span><button title="Open in the editor" style="height: 26px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open</button></div>
|
||||
<span style="font-size: 11px; color: #7b818e; margin-top: 8px">Rows 36 px · hover = card fill · numbers right-aligned in real tables · sortable headers · virtualised past 200 rows</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,114 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Sequence editor</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Harbour sunset</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff">Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">1</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 16px 12px">
|
||||
<div style="height: 52px; display: flex; align-items: center; gap: 12px; flex-shrink: 0">
|
||||
<a href="Main.html" aria-label="Back to Library" title="Back to Library" style="text-decoration: none; font-size: 18px; color: #a9aeb9">←</a>
|
||||
<span style="font-size: 16px; font-weight: 600">Harbour sunset</span>
|
||||
<span style="color: #a9aeb9">3,600 frames · Canon EOS R5 · 2 s interval · 2 h 00 m · 3 warnings</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Read every frame again and refresh the analysis (about 6 minutes)" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Analyse</button>
|
||||
<button title="Let the advisor set every section from the analysis and list what changed" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Optimise all</button>
|
||||
<button title="Render with the selected preset · Ctrl+R" style="height: 32px; padding: 0 16px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Render · 4K 10-bit HEVC ▾</button>
|
||||
</div>
|
||||
<div style="display: flex; gap: 16px; flex-grow: 1; min-height: 0">
|
||||
<div style="flex-grow: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0">
|
||||
<div style="position: relative; height: 430px; border-radius: 8px; overflow: hidden; background: #000; display: flex">
|
||||
<div style="width: 52%; height: 100%; background: linear-gradient(180deg, #232a63 0%, #a23f2c 52%, #e2984a 76%, #26262c 100%); filter: brightness(0.86)"></div>
|
||||
<div style="width: 48%; height: 100%; background: linear-gradient(180deg, #2a2f6b 0%, #b8452f 55%, #f0a04b 78%, #2b2b33 100%)"></div>
|
||||
<div style="position: absolute; top: 0; left: 52%; width: 2px; height: 100%; background: #f2f3f5"></div>
|
||||
<div style="position: absolute; top: 12px; left: calc(52% - 40px); width: 80px; text-align: center; font-size: 11px; color: #f2f3f5; background: rgba(20,20,26,0.75); border-radius: 4px; padding: 3px 0">original | corrected</div>
|
||||
<div style="position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px">
|
||||
<button aria-pressed="true" title="Wipe compare: original on the left, corrected on the right" style="height: 30px; padding: 0 10px; border: 1px solid #4cc2ff; border-radius: 6px; background: rgba(20,20,26,0.85); color: #4cc2ff; font: inherit; cursor: pointer">Compare</button>
|
||||
<button title="Overlay the motion field the engine measured" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">Vectors</button>
|
||||
<button title="Show the sky / landscape boundary used by region deflicker" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">Regions</button>
|
||||
<button title="Darken what the output aspect ratio will cut" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">Crop mask</button>
|
||||
<button title="Show pixels at 1:1 without interpolation" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">1:1</button>
|
||||
<button aria-label="Full screen" title="Full screen at native resolution" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">⛶</button>
|
||||
</div>
|
||||
<div style="position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: #f2f3f5; background: rgba(20,20,26,0.85); border-radius: 6px; padding: 6px 10px">0413 / 3,600 · 18:02:11 · 1/8 s · f/8 · ISO 400 · 24 mm</div>
|
||||
</div>
|
||||
<div style="height: 58px; display: flex; flex-direction: column; gap: 3px">
|
||||
<div style="height: 8px; position: relative"><span style="position: absolute; left: 31%; color: #f5a524; font-size: 9px; line-height: 8px" title="Exposure step −1.0 EV">▼</span><span style="position: absolute; left: 47%; color: #f5a524; font-size: 9px; line-height: 8px" title="Exposure step −1.0 EV">▼</span><span style="position: absolute; left: 63%; color: #f5a524; font-size: 9px; line-height: 8px" title="Exposure step −0.7 EV">▼</span><span style="position: absolute; left: 11.4%; color: #4cc2ff; font-size: 9px; line-height: 8px" title="Current frame">▼</span></div>
|
||||
<div style="height: 44px; display: flex; gap: 2px; border-radius: 4px; overflow: hidden">
|
||||
<div style="flex: 1; background: linear-gradient(180deg,#5b8fd6,#9dc3f0)"></div><div style="flex: 1; background: linear-gradient(180deg,#5788cf,#98bfee)"></div><div style="flex: 1; background: linear-gradient(180deg,#5382c8,#93baea)"></div><div style="flex: 1; background: linear-gradient(180deg,#4f7cc0,#8db3e4); outline: 2px solid #4cc2ff; outline-offset: -2px"></div><div style="flex: 1; background: linear-gradient(180deg,#4a74b6,#86abdc)"></div><div style="flex: 1; background: linear-gradient(180deg,#456caa,#7ea3d3)"></div><div style="flex: 1; background: linear-gradient(180deg,#43659d,#7899c8)"></div><div style="flex: 1; background: linear-gradient(180deg,#455e8f,#7a8fb8)"></div><div style="flex: 1; background: linear-gradient(180deg,#4d5a86,#8a86a5)"></div><div style="flex: 1; background: linear-gradient(180deg,#58557c,#a07f8f)"></div><div style="flex: 1; background: linear-gradient(180deg,#664f72,#b8767a)"></div><div style="flex: 1; background: linear-gradient(180deg,#734a68,#cc6f62)"></div><div style="flex: 1; background: linear-gradient(180deg,#7d4560,#d87252)"></div><div style="flex: 1; background: linear-gradient(180deg,#823f57,#e07a48)"></div><div style="flex: 1; background: linear-gradient(180deg,#7f3a4e,#e08745)"></div><div style="flex: 1; background: linear-gradient(180deg,#733546,#d38a4a)"></div><div style="flex: 1; background: linear-gradient(180deg,#62303f,#b87c4c)"></div><div style="flex: 1; background: linear-gradient(180deg,#4f2b3a,#96673f)"></div><div style="flex: 1; background: linear-gradient(180deg,#3d2735,#6f4f37)"></div><div style="flex: 1; background: linear-gradient(180deg,#2e2330,#4d3b30)"></div><div style="flex: 1; background: linear-gradient(180deg,#231f2b,#35302c)"></div><div style="flex: 1; background: linear-gradient(180deg,#1c1b26,#282729)"></div><div style="flex: 1; background: linear-gradient(180deg,#171823,#202024)"></div><div style="flex: 1; background: linear-gradient(180deg,#14151f,#1b1b1f)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 4px; border-bottom: 1px solid #3e404a">
|
||||
<button title="Frame table, warnings, exclusions" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Frames</button>
|
||||
<button aria-pressed="true" title="Deflicker, regions, day-night transitions, white balance" style="height: 34px; padding: 0 14px; border: 0; border-bottom: 2px solid #4cc2ff; background: transparent; color: #f2f3f5; font: inherit; cursor: pointer">Exposure</button>
|
||||
<button title="Motion blur, optical flow, stabilization" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Motion</button>
|
||||
<button title="Crop, aspect, virtual camera moves" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Camera</button>
|
||||
<button title="Frame rate, timing mode, speed curve" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Time</button>
|
||||
<button title="Median and star-trail stacking" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Stack</button>
|
||||
<button title="Presets, output, batch, history" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Export</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 10px; min-height: 0; display: flex; flex-direction: column">
|
||||
<div style="display: flex; gap: 16px; font-size: 11px; color: #a9aeb9"><span style="color: #f5a524">— measured luminance</span><span style="color: #4cc2ff">— target curve</span><span style="color: #5ad1c8">- - sky region</span><span style="color: #f5a524">▼ exposure steps as received</span><span style="margin-left: auto">flicker −67 % · max step 0.21 EV</span></div>
|
||||
<svg viewBox="0 0 900 150" preserveAspectRatio="none" style="width: 100%; flex-grow: 1" aria-hidden="true">
|
||||
<line x1="0" y1="112" x2="900" y2="112" stroke="#3e404a" stroke-width="1"/><line x1="0" y1="72" x2="900" y2="72" stroke="#3e404a" stroke-width="1"/><line x1="0" y1="32" x2="900" y2="32" stroke="#3e404a" stroke-width="1"/>
|
||||
<line x1="279" y1="8" x2="279" y2="145" stroke="#f5a524" stroke-width="1" stroke-dasharray="3 3"/><line x1="423" y1="8" x2="423" y2="145" stroke="#f5a524" stroke-width="1" stroke-dasharray="3 3"/><line x1="567" y1="8" x2="567" y2="145" stroke="#f5a524" stroke-width="1" stroke-dasharray="3 3"/>
|
||||
<polyline fill="none" stroke="#f5a524" stroke-width="1.4" points="0,60 20,64 40,58 60,66 80,59 100,67 120,61 140,70 160,63 180,72 200,66 220,74 240,68 260,77 279,70 281,84 300,79 320,88 340,82 360,90 380,85 400,93 423,88 425,104 440,98 460,106 480,101 500,110 520,104 540,112 567,108 569,120 590,115 610,122 630,118 650,126 670,121 690,128 710,124 730,131 750,127 770,134 790,130 810,137 830,133 850,139 870,136 900,141"/>
|
||||
<path fill="none" stroke="#4cc2ff" stroke-width="2.2" d="M0,62 C150,66 250,74 350,86 S600,112 750,128 S860,138 900,141"/>
|
||||
<path fill="none" stroke="#5ad1c8" stroke-width="1.4" stroke-dasharray="5 4" d="M0,40 C180,44 300,56 420,72 S650,104 900,120"/>
|
||||
<line x1="103" y1="8" x2="103" y2="145" stroke="#4cc2ff" stroke-width="1"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<aside style="width: 320px; flex-shrink: 0; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 14px">
|
||||
<div style="font-size: 14px; font-weight: 600">Exposure</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center"><label for="deflicker" style="flex-grow: 1">Deflicker window</label><button title="Auto: four flicker periods measured on the autocorrelation (41 frames). Touch the slider to take over." style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · 41</button></div>
|
||||
<input id="deflicker" type="range" min="5" max="121" value="41" title="Frames used to estimate the flicker-free curve; too short leaves flicker, too long flattens real light changes" style="width: 100%; accent-color: #4cc2ff">
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center"><label for="strength" style="flex-grow: 1">Strength</label><span style="color: #a9aeb9">0.80</span></div>
|
||||
<input id="strength" type="range" min="0" max="100" value="80" title="How much of the measured flicker is removed; 1.0 removes it all" style="width: 100%; accent-color: #4cc2ff">
|
||||
</div>
|
||||
<div style="display: flex; align-items: center"><label for="regions" style="flex-grow: 1">Regions</label><button id="regions" title="Auto: horizon found with 1.9 EV separation; sky and landscape get their own curve" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · horizon</button></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center"><label for="transitions" style="flex-grow: 1">Transitions</label><button title="Auto: half the typical distance between exposure steps (18 frames); 3 of 3 steps redistributed" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · 18</button></div>
|
||||
<input id="transitions" type="range" min="0" max="120" value="18" title="Frames over which each ISO/shutter/aperture step is spread; 0 keeps the steps" style="width: 100%; accent-color: #4cc2ff">
|
||||
</div>
|
||||
<div style="display: flex; align-items: center"><label for="wb" style="flex-grow: 1">White balance smoothing</label><input id="wb" type="checkbox" checked title="Smooth the channel ratios so auto white balance stops flickering while the sunset drift stays" style="width: 36px; height: 20px; accent-color: #4cc2ff"></div>
|
||||
<div style="display: flex; align-items: center"><label for="ct" style="flex-grow: 1">Colour temperature</label><span style="color: #7b818e" title="Not applicable on this sequence: the night frames sit off the Planckian locus">n/a</span></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; gap: 8px">
|
||||
<button title="Apply the advisor's heavier choices for this section and list what changed" style="flex-grow: 1; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Optimise section</button>
|
||||
<button title="Return every control of this section to Auto" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Reset</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,102 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Sequence editor · Export</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Harbour sunset</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff">Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">1</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none">About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 16px 12px">
|
||||
<div style="height: 52px; display: flex; align-items: center; gap: 12px; flex-shrink: 0">
|
||||
<a href="Main.html" aria-label="Back to Library" title="Back to Library" style="text-decoration: none; font-size: 18px; color: #a9aeb9">←</a>
|
||||
<span style="font-size: 16px; font-weight: 600">Harbour sunset</span>
|
||||
<span style="color: #a9aeb9">3,600 frames · 24 fps · 2 min 30 s · 3840×2160 source 8192×5464</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Read every frame again and refresh the analysis (about 6 minutes)" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Analyse</button>
|
||||
<button title="Let the advisor set every section from the analysis and list what changed" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Optimise all</button>
|
||||
<button title="Render with the selected preset · Ctrl+R" style="height: 32px; padding: 0 16px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Render · 4K 10-bit HEVC ▾</button>
|
||||
</div>
|
||||
<div style="display: flex; gap: 16px; flex-grow: 1; min-height: 0">
|
||||
<div style="flex-grow: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0">
|
||||
<div style="position: relative; height: 300px; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #2a2f6b 0%, #b8452f 55%, #f0a04b 78%, #2b2b33 100%)">
|
||||
<div style="position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0 6.25%, transparent 6.25% 93.75%, rgba(0,0,0,0.55) 93.75%)" title="Crop mask: what the 16:9 output keeps of the 3:2 source"></div>
|
||||
<div style="position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px">
|
||||
<button title="Wipe compare original and corrected" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">Compare</button>
|
||||
<button aria-pressed="true" title="Darken what the output aspect ratio will cut" style="height: 30px; padding: 0 10px; border: 1px solid #4cc2ff; border-radius: 6px; background: rgba(20,20,26,0.85); color: #4cc2ff; font: inherit; cursor: pointer">Crop mask</button>
|
||||
<button title="Play a 10-second preview of the render at the preset settings" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: rgba(20,20,26,0.85); color: #f2f3f5; font: inherit; cursor: pointer">▶ Preview 10 s</button>
|
||||
</div>
|
||||
<div style="position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: #f2f3f5; background: rgba(20,20,26,0.85); border-radius: 6px; padding: 6px 10px">0413 / 3,600 · 00:17.2 of 02:30 · output 3840×2160</div>
|
||||
</div>
|
||||
<div style="height: 44px; display: flex; gap: 2px; border-radius: 4px; overflow: hidden; flex-shrink: 0">
|
||||
<div style="flex: 1; background: linear-gradient(180deg,#5b8fd6,#9dc3f0)"></div><div style="flex: 1; background: linear-gradient(180deg,#5788cf,#98bfee)"></div><div style="flex: 1; background: linear-gradient(180deg,#5382c8,#93baea)"></div><div style="flex: 1; background: linear-gradient(180deg,#4f7cc0,#8db3e4); outline: 2px solid #4cc2ff; outline-offset: -2px"></div><div style="flex: 1; background: linear-gradient(180deg,#4a74b6,#86abdc)"></div><div style="flex: 1; background: linear-gradient(180deg,#456caa,#7ea3d3)"></div><div style="flex: 1; background: linear-gradient(180deg,#43659d,#7899c8)"></div><div style="flex: 1; background: linear-gradient(180deg,#455e8f,#7a8fb8)"></div><div style="flex: 1; background: linear-gradient(180deg,#4d5a86,#8a86a5)"></div><div style="flex: 1; background: linear-gradient(180deg,#58557c,#a07f8f)"></div><div style="flex: 1; background: linear-gradient(180deg,#664f72,#b8767a)"></div><div style="flex: 1; background: linear-gradient(180deg,#734a68,#cc6f62)"></div><div style="flex: 1; background: linear-gradient(180deg,#7d4560,#d87252)"></div><div style="flex: 1; background: linear-gradient(180deg,#823f57,#e07a48)"></div><div style="flex: 1; background: linear-gradient(180deg,#7f3a4e,#e08745)"></div><div style="flex: 1; background: linear-gradient(180deg,#733546,#d38a4a)"></div><div style="flex: 1; background: linear-gradient(180deg,#62303f,#b87c4c)"></div><div style="flex: 1; background: linear-gradient(180deg,#4f2b3a,#96673f)"></div><div style="flex: 1; background: linear-gradient(180deg,#3d2735,#6f4f37)"></div><div style="flex: 1; background: linear-gradient(180deg,#2e2330,#4d3b30)"></div><div style="flex: 1; background: linear-gradient(180deg,#231f2b,#35302c)"></div><div style="flex: 1; background: linear-gradient(180deg,#1c1b26,#282729)"></div><div style="flex: 1; background: linear-gradient(180deg,#171823,#202024)"></div><div style="flex: 1; background: linear-gradient(180deg,#14151f,#1b1b1f)"></div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 4px; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<button title="Frame table, warnings, exclusions" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Frames</button>
|
||||
<button title="Deflicker, regions, day-night transitions, white balance" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Exposure</button>
|
||||
<button title="Motion blur, optical flow, stabilization" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Motion</button>
|
||||
<button title="Crop, aspect, virtual camera moves" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Camera</button>
|
||||
<button title="Frame rate, timing mode, speed curve" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Time</button>
|
||||
<button title="Median and star-trail stacking" style="height: 34px; padding: 0 14px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Stack</button>
|
||||
<button aria-pressed="true" title="Presets, output, batch, history" style="height: 34px; padding: 0 14px; border: 0; border-bottom: 2px solid #4cc2ff; background: transparent; color: #f2f3f5; font: inherit; cursor: pointer">Export</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 118px; gap: 10px; overflow: hidden">
|
||||
<button aria-pressed="true" title="Advisor pick for this sequence: sunset range needs 10-bit; 120 Mb/s keeps the sky gradient clean" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #4cc2ff; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer; box-shadow: 0 0 0 2px rgba(76,194,255,0.25)"><span style="display: flex; align-items: center; gap: 8px"><span style="font-weight: 600">4K archive</span><span style="font-size: 11px; color: #4cc2ff; border: 1px solid #4cc2ff; border-radius: 10px; padding: 0 6px">Recommended</span></span><span style="font-size: 12px; color: #a9aeb9">MP4 · HEVC Main10 · 3840×2160 · 24 fps</span><span style="font-size: 12px; color: #a9aeb9">120 Mb/s · 0.07 bpp · NVENC</span><span style="font-size: 12px; margin-top: auto">2.2 GB · about 5 min</span></button>
|
||||
<button title="Widest compatibility at 4K; 8-bit" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">4K H.264</span><span style="font-size: 12px; color: #a9aeb9">MP4 · H.264 High · 3840×2160 · 24 fps</span><span style="font-size: 12px; color: #a9aeb9">160 Mb/s · 0.10 bpp · NVENC</span><span style="font-size: 12px; margin-top: auto">3.0 GB · about 4 min</span></button>
|
||||
<button title="2.39:1 crop from the centre; virtual camera keeps the sun in frame" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">Cinema 21:9</span><span style="font-size: 12px; color: #a9aeb9">MP4 · HEVC Main10 · 4096×1716 · 24 fps</span><span style="font-size: 12px; color: #a9aeb9">100 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">1.9 GB · about 5 min</span></button>
|
||||
<button title="Quarter-size master for monitors" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">1440p</span><span style="font-size: 12px; color: #a9aeb9">MP4 · HEVC · 2560×1440 · 30 fps</span><span style="font-size: 12px; color: #a9aeb9">45 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">0.8 GB · about 3 min</span></button>
|
||||
<button title="Upload-ready H.264 for YouTube and messaging" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">1080p share</span><span style="font-size: 12px; color: #a9aeb9">MP4 · H.264 High · 1920×1080 · 30 fps</span><span style="font-size: 12px; color: #a9aeb9">20 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">0.4 GB · about 2 min</span></button>
|
||||
<button title="9:16 crop with a slow vertical pan; 60 fps loops well on phones" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">Vertical social</span><span style="font-size: 12px; color: #a9aeb9">MP4 · H.264 · 1080×1920 · 60 fps</span><span style="font-size: 12px; color: #a9aeb9">16 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">0.3 GB · about 2 min</span></button>
|
||||
<button title="1:1 crop, 30 fps" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">Square</span><span style="font-size: 12px; color: #a9aeb9">MP4 · H.264 · 1080×1080 · 30 fps</span><span style="font-size: 12px; color: #a9aeb9">12 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">0.2 GB · about 2 min</span></button>
|
||||
<button title="Fast check of timing and deflicker before a long render" style="text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><span style="font-weight: 600">720p preview</span><span style="font-size: 12px; color: #a9aeb9">MP4 · H.264 · 1280×720 · 30 fps · from proxies</span><span style="font-size: 12px; color: #a9aeb9">6 Mb/s · NVENC</span><span style="font-size: 12px; margin-top: auto">0.1 GB · about 40 s</span></button>
|
||||
</div>
|
||||
</div>
|
||||
<aside style="width: 320px; flex-shrink: 0; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 12px">
|
||||
<div style="display: flex; align-items: center"><span style="font-size: 14px; font-weight: 600; flex-grow: 1">Output · 4K archive</span><button title="Duplicate this preset as a custom one you can edit freely" style="height: 24px; padding: 0 8px; border: 1px solid #3e404a; border-radius: 12px; background: transparent; color: #a9aeb9; font: inherit; font-size: 11px; cursor: pointer">Customise</button></div>
|
||||
<div style="display: grid; grid-template-columns: 96px 1fr; row-gap: 10px; column-gap: 10px; align-items: center">
|
||||
<span style="color: #a9aeb9">Container</span><button title="MP4 · MOV · MJPEG AVI · GIF · APNG · image sequence" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">MP4 ▾</button>
|
||||
<span style="color: #a9aeb9">Codec</span><button title="HEVC Main10 · HEVC Main · H.264 High · AV1" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">HEVC Main10 ▾</button>
|
||||
<span style="color: #a9aeb9">Resolution</span><div style="display: flex; align-items: center; gap: 6px"><input type="number" value="3840" aria-label="Width" title="Width" style="width: 70px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"><span style="color: #7b818e">×</span><input type="number" value="2160" aria-label="Height" title="Height" style="width: 70px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"><span style="color: #7b818e; font-size: 12px">16:9</span></div>
|
||||
<span style="color: #a9aeb9">Frame rate</span><div style="display: flex; align-items: center; gap: 6px"><button title="24 · 25 · 30 · 50 · 60" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">24 ▾</button><button title="Auto: from the Time section (24 fps, 2 min 30 s)" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto</button></div>
|
||||
<label for="q" style="color: #a9aeb9">Quality</label><div style="display: flex; align-items: center; gap: 8px"><input id="q" type="range" min="1" max="20" value="7" title="Bits per pixel per frame: 0.07 for HEVC archives, 0.10 for H.264" style="flex-grow: 1; accent-color: #4cc2ff"><span style="width: 74px; text-align: right">120 Mb/s</span></div>
|
||||
<span style="color: #a9aeb9">Encoder</span><div style="display: flex; align-items: center; gap: 6px"><button title="NVIDIA NVENC · Microsoft software (H.264 only)" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">NVENC ▾</button><span style="font-size: 12px; color: #35c48f">hardware</span></div>
|
||||
<span style="color: #a9aeb9">Colour</span><button title="Rec.709 · sRGB tagged; HDR is not offered in this version" style="height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">Rec.709 10-bit ▾</button>
|
||||
<span style="color: #a9aeb9">File name</span><input type="text" value="{date} {title} - {preset}" aria-label="File name template" title="Tokens: {date} {title} {preset} {codec} {res} {fps} {n}" style="height: 30px; box-sizing: border-box; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<span style="color: #a9aeb9">Save to</span><div style="display: flex; align-items: center; gap: 6px"><button title="exports/ inside the sequence · a folder you choose · the server" style="flex-grow: 1; height: 30px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">Sequence exports/ ▾</button><label style="display: flex; align-items: center; gap: 6px; font-size: 12px"><input type="checkbox" checked title="Also register the export on the server when connected" style="accent-color: #4cc2ff; margin: 0">Sync</label></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px"><span style="display: flex"><span style="color: #a9aeb9; flex-grow: 1">Estimated size</span><span>2.2 GB</span></span><span style="display: flex"><span style="color: #a9aeb9; flex-grow: 1">Estimated time</span><span>about 5 min · NVENC</span></span><span style="display: flex"><span style="color: #a9aeb9; flex-grow: 1">Result</span><span>2026-09-28 Harbour sunset - 4K archive.mp4</span></span></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="display: flex; gap: 8px"><button title="Add this render to the queue and keep editing" style="flex-grow: 1; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Add to queue</button><button title="Queue every preset ticked in the list" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Batch…</button></div>
|
||||
<button title="Start now; progress in the job bar · Ctrl+R" style="height: 36px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Render now</button>
|
||||
<span style="font-size: 11px; color: #7b818e">Previous renders of this sequence: 2 · last 2026-09-21 · <a href="Jobs.html" title="Open Jobs filtered on this sequence">history</a></span>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,80 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Icon</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 600px; box-sizing: border-box; padding: 20px; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px; display: flex">
|
||||
<svg viewBox="0 0 1400 560" style="width: 1400px; height: 560px" aria-label="Titano icon: construction, sizes, variants and wordmark">
|
||||
<defs>
|
||||
<symbol id="plate" viewBox="0 0 256 256"><rect x="0" y="0" width="256" height="256" rx="56" fill="#1a1a1e"/></symbol>
|
||||
<symbol id="mark" viewBox="0 0 256 256">
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/><path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/><path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/><path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/><path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/><path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/><path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/><path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/><path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/><path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/><path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/><path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#f5a524"/>
|
||||
</symbol>
|
||||
<symbol id="mono" viewBox="0 0 256 256">
|
||||
<path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.14"/><path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.22"/><path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.3"/><path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.37"/><path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.45"/><path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.53"/><path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.61"/><path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.69"/><path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.77"/><path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.84"/><path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="0.92"/><path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#ffffff" stroke-width="20" stroke-linecap="round" opacity="1"/>
|
||||
<circle cx="152" cy="104" r="30" fill="#ffffff"/>
|
||||
</symbol>
|
||||
<symbol id="badge-server" viewBox="0 0 256 256"><circle cx="204" cy="204" r="40" fill="#1a1a1e" stroke="#4cc2ff" stroke-width="6"/><rect x="185" y="188" width="38" height="12" rx="4" fill="#4cc2ff"/><rect x="185" y="208" width="38" height="12" rx="4" fill="#4cc2ff"/></symbol>
|
||||
<symbol id="badge-uploader" viewBox="0 0 256 256"><circle cx="204" cy="204" r="40" fill="#1a1a1e" stroke="#f5a524" stroke-width="6"/><path d="M204 226v-40M188 202l16-16 16 16" fill="none" stroke="#f5a524" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
||||
</defs>
|
||||
|
||||
<use href="#plate" x="20" y="20" width="320" height="320"/><use href="#mark" x="20" y="20" width="320" height="320"/>
|
||||
<g fill="none" stroke="#5ad1c8" stroke-width="1" stroke-dasharray="4 4" opacity="0.7">
|
||||
<circle cx="180" cy="180" r="115"/><circle cx="180" cy="180" r="102.5"/><circle cx="180" cy="180" r="127.5"/>
|
||||
<line x1="180" y1="20" x2="180" y2="340"/><line x1="20" y1="180" x2="340" y2="180"/>
|
||||
<circle cx="210" cy="150" r="37.5"/>
|
||||
</g>
|
||||
<g font-size="11" fill="#5ad1c8" font-family="Segoe UI, system-ui, sans-serif"><text x="24" y="356">plate 256 · radius 56 · ring r 92 · stroke 20 · sun (152,104) r 30</text></g>
|
||||
<g font-size="12" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif">
|
||||
<text x="24" y="382">12 ticks of 12°, 18° gaps, round caps — a clock face and an intervalometer at once.</text>
|
||||
<text x="24" y="400">Opacity 0.14 → 1.0 clockwise from 12 o'clock: time accumulating, exposure ramping.</text>
|
||||
<text x="24" y="418">The sun sits off-centre, north-east, the way it does in every sunset shot.</text>
|
||||
<text x="24" y="436">Two colours only: accent #4CC2FF on plate #1A1A1E, sun #F5A524. No gradients, no text.</text>
|
||||
<text x="24" y="454">Generated by `Titano.Tools make-icon` into ICO (16–256), PNG, and the WPF DrawingImage.</text>
|
||||
</g>
|
||||
|
||||
<g font-size="11" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="400" y="36">ON DARK</text></g>
|
||||
<use href="#plate" x="400" y="60" width="128" height="128"/><use href="#mark" x="400" y="60" width="128" height="128"/>
|
||||
<use href="#plate" x="560" y="92" width="64" height="64"/><use href="#mark" x="560" y="92" width="64" height="64"/>
|
||||
<use href="#plate" x="656" y="100" width="48" height="48"/><use href="#mark" x="656" y="100" width="48" height="48"/>
|
||||
<use href="#plate" x="736" y="108" width="32" height="32"/><use href="#mark" x="736" y="108" width="32" height="32"/>
|
||||
<use href="#plate" x="800" y="116" width="16" height="16"/><use href="#mark" x="800" y="116" width="16" height="16"/>
|
||||
<g font-size="11" fill="#7b818e" font-family="Segoe UI, system-ui, sans-serif" text-anchor="middle"><text x="464" y="206">128</text><text x="592" y="206">64</text><text x="680" y="206">48</text><text x="752" y="206">32</text><text x="808" y="206">16</text></g>
|
||||
|
||||
<rect x="400" y="236" width="420" height="150" rx="8" fill="#f3f3f3"/>
|
||||
<g font-size="11" fill="#616161" font-family="Segoe UI, system-ui, sans-serif"><text x="416" y="256">ON LIGHT</text></g>
|
||||
<use href="#plate" x="416" y="268" width="104" height="104"/><use href="#mark" x="416" y="268" width="104" height="104"/>
|
||||
<use href="#plate" x="548" y="288" width="64" height="64"/><use href="#mark" x="548" y="288" width="64" height="64"/>
|
||||
<use href="#plate" x="640" y="296" width="48" height="48"/><use href="#mark" x="640" y="296" width="48" height="48"/>
|
||||
<use href="#plate" x="716" y="304" width="32" height="32"/><use href="#mark" x="716" y="304" width="32" height="32"/>
|
||||
<use href="#plate" x="776" y="312" width="16" height="16"/><use href="#mark" x="776" y="312" width="16" height="16"/>
|
||||
|
||||
<g font-size="11" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="880" y="36">VARIANTS</text></g>
|
||||
<use href="#plate" x="880" y="60" width="150" height="150"/><use href="#mark" x="880" y="60" width="150" height="150"/><use href="#badge-server" x="880" y="60" width="150" height="150"/>
|
||||
<use href="#plate" x="1056" y="60" width="150" height="150"/><use href="#mark" x="1056" y="60" width="150" height="150"/><use href="#badge-uploader" x="1056" y="60" width="150" height="150"/>
|
||||
<rect x="1232" y="60" width="150" height="150" rx="8" fill="#2f3038"/><use href="#mono" x="1232" y="60" width="150" height="150"/>
|
||||
<g font-size="11" fill="#7b818e" font-family="Segoe UI, system-ui, sans-serif" text-anchor="middle"><text x="955" y="228">Titano Server</text><text x="1131" y="228">Titano Uploader</text><text x="1307" y="228">Tray · monochrome · no plate</text></g>
|
||||
|
||||
<g font-size="11" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif"><text x="880" y="270">WORDMARK · Segoe UI Variable Display Semibold, tracking −1 %, cap height aligned to the ring</text></g>
|
||||
<use href="#plate" x="880" y="290" width="72" height="72"/><use href="#mark" x="880" y="290" width="72" height="72"/>
|
||||
<text x="968" y="343" font-size="48" font-weight="600" fill="#f2f3f5" font-family="Segoe UI Variable Display, Segoe UI, system-ui, sans-serif" letter-spacing="-0.5">Titano</text>
|
||||
<use href="#plate" x="880" y="386" width="40" height="40"/><use href="#mark" x="880" y="386" width="40" height="40"/><use href="#badge-server" x="880" y="386" width="40" height="40"/>
|
||||
<text x="932" y="415" font-size="24" font-weight="600" fill="#f2f3f5" font-family="Segoe UI Variable Display, Segoe UI, system-ui, sans-serif">Titano <tspan fill="#4cc2ff">Server</tspan></text>
|
||||
<use href="#plate" x="1100" y="386" width="40" height="40"/><use href="#mark" x="1100" y="386" width="40" height="40"/><use href="#badge-uploader" x="1100" y="386" width="40" height="40"/>
|
||||
<text x="1152" y="415" font-size="24" font-weight="600" fill="#f2f3f5" font-family="Segoe UI Variable Display, Segoe UI, system-ui, sans-serif">Titano <tspan fill="#f5a524">Uploader</tspan></text>
|
||||
<g font-size="12" fill="#a9aeb9" font-family="Segoe UI, system-ui, sans-serif">
|
||||
<text x="880" y="466">Clear space around the mark: one tick length (40/256) on every side. Never rotate, recolour or add a drop shadow.</text>
|
||||
<text x="880" y="486">Badges only at 48 px and above; below that the Server and Uploader use the plain mark and their window title.</text>
|
||||
<text x="880" y="506">Installer, Store listing, GitHub social preview and the Unraid template icon all use the 256 px PNG.</text>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,154 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Import</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Import</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs</a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 0%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; white-space: nowrap">Ready · 0 jobs queued</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0; padding: 16px 20px; gap: 16px">
|
||||
<aside style="width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="display: flex; align-items: center; height: 32px">
|
||||
<span style="font-size: 14px; font-weight: 600; flex-grow: 1">Devices</span>
|
||||
<button aria-label="Refresh devices" title="Look again for cards and folders with a DCIM tree" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">⟳</button>
|
||||
</div>
|
||||
<button aria-pressed="true" title="Known card: profile EOS R5 · card A" style="display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; border: 1px solid #4cc2ff; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 1.5h6l2.5 2.5v10.5H4z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M6.5 4v2M8.5 4v2M10.5 4v2" stroke="currentColor" stroke-width="1.2"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 2px; flex-grow: 1"><span style="font-weight: 600">EOS R5 · card A</span><span style="font-size: 12px; color: #a9aeb9">SD 128 GB · 96.2 GB used · 4,812 photos</span></span>
|
||||
<span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f" title="Known card"></span>
|
||||
</button>
|
||||
<button title="Known card: profile GoPro 12" style="display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 1.5h6l2.5 2.5v10.5H4z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M6.5 4v2M8.5 4v2M10.5 4v2" stroke="currentColor" stroke-width="1.2"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 2px; flex-grow: 1"><span style="font-weight: 600">GoPro 12</span><span style="font-size: 12px; color: #a9aeb9">microSD 64 GB · 11.4 GB used · 1,005 photos</span></span>
|
||||
<span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f" title="Known card"></span>
|
||||
</button>
|
||||
<button title="Removable volume without a DCIM folder; pick it to import a plain folder tree" style="display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #a9aeb9; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="4.5" width="13" height="7" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="11.5" cy="8" r="1" fill="currentColor"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 2px; flex-grow: 1"><span style="font-weight: 600">E:\ USB drive</span><span style="font-size: 12px">no DCIM · 1.8 TB free</span></span>
|
||||
<span style="width: 8px; height: 8px; border-radius: 4px; border: 1px solid #7b818e" title="Not a known card"></span>
|
||||
</button>
|
||||
<button title="Import from any folder on this PC or on the network" style="display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px dashed #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M1.5 4.5a1 1 0 0 1 1-1H6l1.5 1.5h6a1 1 0 0 1 1 1v6.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span>Folder…</span>
|
||||
</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<label style="display: flex; align-items: flex-start; gap: 8px; color: #a9aeb9; line-height: 18px"><input type="checkbox" checked title="Start the import with the card profile as soon as a known card is inserted; a toast lets you cancel" style="accent-color: #4cc2ff; margin: 2px 0 0">Import automatically when a known card is inserted</label>
|
||||
</aside>
|
||||
<section style="flex-grow: 1; min-width: 0; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div style="display: flex; align-items: center; gap: 12px">
|
||||
<span style="font-size: 16px; font-weight: 600">EOS R5 · card A</span>
|
||||
<span style="color: #a9aeb9">SD 128 GB · serial 3F2A-9C11 · Canon EOS R5 #0431 · last import 2026-09-21</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Rename this profile, change its card identity or delete it" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Edit ▾</button>
|
||||
<button title="Create a profile for a card that is not yet known" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">New</button>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 116px 1fr; row-gap: 14px; column-gap: 12px; align-items: center">
|
||||
<span style="color: #a9aeb9">Destination</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px; flex-wrap: wrap">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="dest" checked title="Copy into the archive root using the naming templates below" style="accent-color: #4cc2ff; margin: 0">Archive</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="dest" title="Copy into a folder of your choice; not indexed unless you adopt it later" style="accent-color: #4cc2ff; margin: 0">Folder</label>
|
||||
<input type="text" value="D:\Shoots" aria-label="Folder path" title="Folder used when Destination is Folder" style="width: 200px; height: 30px; box-sizing: border-box; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #7b818e; font: inherit">
|
||||
<button aria-label="Choose folder" title="Choose folder" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">…</button>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="dest" title="Stream the frames to the connected server; the server stores and indexes them" style="accent-color: #4cc2ff; margin: 0">Server</label>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Studio NAS</span>
|
||||
</div>
|
||||
<span style="color: #a9aeb9">Scan</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px; flex-wrap: wrap">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Look inside every subfolder of DCIM" style="accent-color: #4cc2ff; margin: 0">Subfolders</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Split the card into sessions when the gap between two photos exceeds the limit" style="accent-color: #4cc2ff; margin: 0">Sessions</label>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #a9aeb9">gap <input type="number" value="45" aria-label="Session gap in minutes" title="Minutes without photos that start a new session" style="width: 56px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"> min</span>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #a9aeb9">min <input type="number" value="8" aria-label="Minimum frames per session" title="Groups smaller than this become loose photos, not a sequence" style="width: 56px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"> frames</span>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Hash while copying and read the destination back before the source is touched" style="accent-color: #4cc2ff; margin: 0">Verify hashes</label>
|
||||
</div>
|
||||
<span style="color: #a9aeb9">Names</span>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<input type="text" value="{year}/{date} {camera}" aria-label="Folder template" title="Folder template · tokens: {year} {date} {time} {camera} {card} {session} {title}" style="width: 260px; height: 30px; box-sizing: border-box; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<span style="color: #7b818e">/</span>
|
||||
<input type="text" value="{date}_{time}_{n:0000}" aria-label="File template" title="File template · tokens: {date} {time} {n:0000} {orig} {camera} · extension is kept" style="width: 260px; height: 30px; box-sizing: border-box; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<button aria-label="Template tokens" title="Insert a token" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">{ }</button>
|
||||
</div>
|
||||
<span style="font-size: 12px; color: #7b818e">→ 2026/2026-09-28 Canon EOS R5/2026-09-28_18-02-11_0001.CR2</span>
|
||||
</div>
|
||||
<span style="color: #a9aeb9">On existing</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="exist" checked title="Leave files that already exist with the same hash" style="accent-color: #4cc2ff; margin: 0">Skip</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="exist" title="Keep both, adding a numeric suffix to the new file" style="accent-color: #4cc2ff; margin: 0">Rename</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="exist" title="Replace the archive copy with the card copy" style="accent-color: #4cc2ff; margin: 0">Overwrite</label>
|
||||
</div>
|
||||
<span style="color: #a9aeb9">Convert</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="conv" checked title="Byte-for-byte copy of the original" style="accent-color: #4cc2ff; margin: 0">Copy</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="conv" title="Decode and store as 16-bit TIFF next to the original metadata" style="accent-color: #4cc2ff; margin: 0">TIFF-16</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="conv" title="Store a demosaiced linear DNG" style="accent-color: #4cc2ff; margin: 0">Linear DNG</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="conv" title="Store a full-size JPEG; smaller archive, no RAW latitude" style="accent-color: #4cc2ff; margin: 0">JPEG</label>
|
||||
</div>
|
||||
<span style="color: #a9aeb9">After import</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px; flex-wrap: wrap">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="after" checked title="Leave the card untouched" style="accent-color: #4cc2ff; margin: 0">Keep card</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="after" title="Delete only the files whose copy was verified" style="accent-color: #4cc2ff; margin: 0">Delete imported</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="after" title="Format the card with the Windows dialog once every copy is verified" style="accent-color: #4cc2ff; margin: 0">Format card</label>
|
||||
<span style="width: 1px; height: 20px; background: #3e404a"></span>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Safely eject the card when done" style="accent-color: #4cc2ff; margin: 0">Eject</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Queue the deep analysis of every imported sequence (runs in the background)" style="accent-color: #4cc2ff; margin: 0">Deep analysis</label>
|
||||
</div>
|
||||
</div>
|
||||
<div style="flex-grow: 1; background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0">
|
||||
<div style="display: flex; align-items: center; gap: 12px">
|
||||
<span style="font-size: 14px; font-weight: 600">Plan</span>
|
||||
<span style="color: #a9aeb9">3 sessions · 4,812 photos · 96.2 GB · about 12 min</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="color: #35c48f" title="No photo on this card is already in the archive">0 duplicates</span>
|
||||
<span style="color: #a9aeb9" title="Free space on the destination drive after the import">2.1 TB free after import</span>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 1.4fr 1fr 0.7fr 0.6fr 2fr; column-gap: 12px; row-gap: 8px; align-items: center; font-size: 12px">
|
||||
<span style="color: #7b818e">Session</span><span style="color: #7b818e">Frames · interval</span><span style="color: #7b818e">Size</span><span style="color: #7b818e">Camera</span><span style="color: #7b818e">Sequence</span>
|
||||
<span>2026-09-28 · 18:02 → 20:04</span><span>3,600 · 2 s</span><span>72.4 GB</span><span>EOS R5</span><span style="color: #4cc2ff">new · 2026-09-28 Canon EOS R5</span>
|
||||
<span>2026-09-27 · 05:41 → 06:57</span><span>1,140 · 4 s</span><span>22.6 GB</span><span>EOS R5</span><span style="color: #4cc2ff">new · 2026-09-27 Canon EOS R5</span>
|
||||
<span>2026-09-26 · 21:10 → 23:34</span><span>72 · 120 s</span><span>1.2 GB</span><span>EOS R5</span><span style="color: #a9aeb9" title="Below the minimum frames for a sequence; kept as loose photos">loose photos</span>
|
||||
</div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<button title="Show every folder that will be created and the first three file names of each session" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; cursor: pointer">Show plan</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Copy with verification; the card is only touched after every hash matches · Ctrl+Enter" style="height: 36px; padding: 0 22px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Import 4,812 photos</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0">
|
||||
<span>412 sequences</span><span>618,204 photos</span><span>9.4 TB</span><span style="color: #4cc2ff">Connected to "Studio NAS"</span><span>0 jobs</span>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,80 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Jobs</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Jobs</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">4</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 62%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; white-space: nowrap">Render · Harbour sunset · 2,232 / 3,600 · 11.3 fps · 2 min left</span>
|
||||
<button aria-label="Pause job" title="Pause" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; cursor: pointer; font: inherit">❚❚</button>
|
||||
</div>
|
||||
<div style="height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 20px; flex-shrink: 0">
|
||||
<button aria-pressed="true" title="Everything" style="height: 30px; padding: 0 12px; border: 1px solid #4cc2ff; border-radius: 15px; background: #2f3038; color: #4cc2ff; font: inherit; cursor: pointer">All · 10</button>
|
||||
<button title="Jobs working right now" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 15px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Running · 4</button>
|
||||
<button title="Waiting for a worker" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 15px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Queued · 2</button>
|
||||
<button title="Finished today" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 15px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Done · 3</button>
|
||||
<button title="Stopped with errors" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 15px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Failed · 1</button>
|
||||
<span style="width: 1px; height: 22px; background: #3e404a; margin: 0 6px"></span>
|
||||
<label for="jq" style="position: absolute; left: -9999px">Search jobs</label>
|
||||
<input id="jq" type="search" placeholder="Search target or kind" style="width: 240px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="color: #a9aeb9" title="Worker threads busy on this PC">Workers 4 / 4 · GPU NVENC busy</span>
|
||||
<button title="Pause every running job; the queue keeps its order" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Pause all</button>
|
||||
<button title="Remove finished jobs from the list; logs stay in the history" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Clear done</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; margin: 0 20px 12px; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 8px 14px; font-size: 11px; color: #7b818e; border-bottom: 1px solid #3e404a"><span></span><span>Kind</span><span>Target</span><span>Progress</span><span>Speed</span><span>Left</span><span>Where</span><span>State</span><span></span></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; background: #2f3038; border-bottom: 1px solid #3e404a"><button aria-label="Collapse log" title="Hide the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▾</button><span>Render</span><span>Harbour sunset → 4K 10-bit HEVC · 24 fps</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 62%; height: 6px; background: #4cc2ff"></div></div><span style="width: 36px; text-align: right">62 %</span></div><span>11.3 fps</span><span>2 min</span><span title="Hardware encoder on this PC">this PC · NVENC</span><span style="color: #4cc2ff">running</span><div style="display: flex; gap: 6px"><button title="Pause" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Pause</button><button title="Cancel; partial output is deleted" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Cancel</button></div></div>
|
||||
<div style="padding: 10px 14px 12px 52px; background: #1f1f23; border-bottom: 1px solid #3e404a; font-family: Consolas, 'Cascadia Mono', monospace; font-size: 12px; color: #a9aeb9; line-height: 18px">
|
||||
<div>10:14:02 window 41 · deflicker −67 % · 3 exposure steps redistributed over 18 frames</div>
|
||||
<div>10:14:03 stabilisation on · mean shake 0.42 px · crop 1.8 %</div>
|
||||
<div>10:14:03 encoder NVENC HEVC Main10 · 3840×2160 · 120 Mb/s · 24 fps · GOP 48</div>
|
||||
<div>10:15:41 frame 2232 / 3600 · 11.3 fps · spill 0 · memory 6.1 GB of 8 GB budget</div>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Deep analysis</span><span>Construction cam · week 38</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 28%; height: 6px; background: #4cc2ff"></div></div><span style="width: 36px; text-align: right">28 %</span></div><span>41 fps</span><span>6 min</span><span>this PC</span><span style="color: #4cc2ff">running</span><div style="display: flex; gap: 6px"><button title="Pause" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Pause</button><button title="Cancel" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Cancel</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Upload</span><span>Comet over the ridge → Studio NAS</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 46%; height: 6px; background: #4cc2ff"></div></div><span style="width: 36px; text-align: right">46 %</span></div><span>38 MB/s</span><span>4 min</span><span>network</span><span style="color: #4cc2ff">running</span><div style="display: flex; gap: 6px"><button title="Pause" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Pause</button><button title="Cancel" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Cancel</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Proxies</span><span>Comet over the ridge</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 91%; height: 6px; background: #4cc2ff"></div></div><span style="width: 36px; text-align: right">91 %</span></div><span>118 fps</span><span>8 s</span><span>this PC</span><span style="color: #4cc2ff">running</span><div style="display: flex; gap: 6px"><button title="Pause" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Pause</button><button title="Cancel" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Cancel</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a; color: #a9aeb9"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Render</span><span style="color: #f2f3f5">Aurora, Tromsø → 1080p share H.264</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px"></div><span style="width: 36px; text-align: right">—</span></div><span>—</span><span>after 1</span><span>this PC</span><span>queued</span><div style="display: flex; gap: 6px"><button title="Run this job next" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Move up</button><button title="Remove from the queue" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Remove</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a; color: #a9aeb9"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Verify</span><span style="color: #f2f3f5">Archive · 2024</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px"></div><span style="width: 36px; text-align: right">—</span></div><span>—</span><span>after 2</span><span>this PC</span><span>queued</span><div style="display: flex; gap: 6px"><button title="Run this job next" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Move up</button><button title="Remove from the queue" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Remove</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Verify</span><span>Star trails, Colle del Nivolet</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 100%; height: 6px; background: #f0625d"></div></div><span style="width: 36px; text-align: right">100 %</span></div><span>—</span><span>09:58</span><span>this PC</span><span style="color: #f0625d" title="2 files whose hash no longer matches the sidecar">failed · 2</span><div style="display: flex; gap: 6px"><button title="Run again" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Retry</button><button title="Open the two files in the Archive manager" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Show</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a; color: #a9aeb9"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Render</span><span style="color: #f2f3f5">Milan skyline dusk → 4K HEVC</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 100%; height: 6px; background: #35c48f"></div></div><span style="width: 36px; text-align: right">100 %</span></div><span>14.8 fps</span><span>09:12</span><span>studio-pc</span><span style="color: #35c48f">done · 2:41</span><div style="display: flex; gap: 6px"><button title="Play the video" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open</button><button title="Show in Explorer" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Folder</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; border-bottom: 1px solid #3e404a; color: #a9aeb9"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Import</span><span style="color: #f2f3f5">EOS R5 · card A → Archive · 4,812 photos</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 100%; height: 6px; background: #35c48f"></div></div><span style="width: 36px; text-align: right">100 %</span></div><span>410 MB/s</span><span>08:41</span><span>this PC</span><span style="color: #35c48f">done · 11:52</span><div style="display: flex; gap: 6px"><button title="Open the three sequences in Library" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Show</button><button title="Save the full log as text" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Log</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 28px 120px 1.6fr 200px 90px 80px 110px 90px 150px; gap: 10px; padding: 0 14px; height: 38px; align-items: center; color: #a9aeb9"><button aria-label="Expand log" title="Show the log" style="width: 22px; height: 22px; border: 0; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">▸</button><span>Thumbnails</span><span style="color: #f2f3f5">2026-09-27 Sony ILCE-7M4</span><div style="display: flex; align-items: center; gap: 8px"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 100%; height: 6px; background: #35c48f"></div></div><span style="width: 36px; text-align: right">100 %</span></div><span>2,300 fps</span><span>08:42</span><span>this PC</span><span style="color: #35c48f">done · 0:01</span><div style="display: flex; gap: 6px"><button title="Save the full log as text" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Log</button></div></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 16px; padding: 8px 14px; border-top: 1px solid #3e404a; font-size: 12px; color: #a9aeb9"><span>History keeps 90 days · 1,412 jobs</span><span>Failed jobs retry automatically 3× with backoff, then wait for you</span><span style="flex-grow: 1"></span><a href="Settings.html" title="Parallelism, GPU preference, memory budget">Rendering settings</a></div>
|
||||
</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0">
|
||||
<span>412 sequences</span><span>618,204 photos</span><span>9.4 TB</span><span style="color: #4cc2ff">Connected to "Studio NAS"</span><span>4 jobs</span>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,101 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Library</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">2</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 34%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; white-space: nowrap">Building proxies · Harbour sunset · 1,240 / 3,600 · 12 fps · 3 min left</span>
|
||||
<button aria-label="Stop job" title="Stop the current job" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; cursor: pointer; font: inherit">■</button>
|
||||
</div>
|
||||
<div style="height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 20px; flex-shrink: 0">
|
||||
<label for="q" style="position: absolute; left: -9999px">Search</label>
|
||||
<input id="q" type="search" placeholder="Search title, camera, tag" style="width: 260px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<button title="Filter by year" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Year ▾</button>
|
||||
<button title="Filter by camera" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Camera ▾</button>
|
||||
<button title="Filter by status: analysed, proxies, rendered, synced" style="height: 32px; padding: 0 12px; border: 1px solid #4cc2ff; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Status: not rendered ✕</button>
|
||||
<button title="Filter by tag" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Tags ▾</button>
|
||||
<button title="Sort order" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Newest first ▾</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button aria-label="Grid view" title="Grid" style="width: 32px; height: 32px; border: 1px solid #4cc2ff; border-radius: 6px 0 0 6px; background: #2f3038; color: #4cc2ff; font: inherit; cursor: pointer">⊞</button>
|
||||
<button aria-label="List view" title="List" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-left: 0; background: #2f3038; color: #a9aeb9; font: inherit; cursor: pointer; margin-left: -10px">☰</button>
|
||||
<button aria-label="Timeline view" title="Timeline" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-left: 0; border-radius: 0 6px 6px 0; background: #2f3038; color: #a9aeb9; font: inherit; cursor: pointer; margin-left: -10px">▦</button>
|
||||
<button aria-label="Rescan archive" title="Rescan the archive for changes" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">⟳</button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; padding: 4px 20px 12px; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 236px; gap: 16px; overflow: hidden">
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #2a2f6b 0%, #b8452f 55%, #f0a04b 78%, #2b2b33 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Harbour sunset</span><span style="color: #a9aeb9; font-size: 12px">3,600 · Canon EOS R5 · 2 h 00 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span>▶ 2</span><span style="color: #4cc2ff">● Synced</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #050914 0%, #0f1d3a 60%, #1e3a2f 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Comet over the ridge</span><span style="color: #a9aeb9; font-size: 12px">1,005 · GoPro HERO8 · 5 h 34 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span style="color: #e8b339">▲ 1</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #4a7fb5 0%, #a9c9e6 50%, #6f7d6a 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">2026-09-27 Sony ILCE-7M4</span><span style="color: #a9aeb9; font-size: 12px">2,140 · Sony A7 IV · 1 h 11 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span style="color: #7b818e">○ Proxies</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #0c2a3a 0%, #1aa08c 45%, #0b1a26 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Aurora, Tromsø</span><span style="color: #a9aeb9; font-size: 12px">1,860 · Nikon Z 8 · 4 h 08 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span style="color: #4cc2ff">● Synced</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #7c8aa0 0%, #c9cfd6 55%, #4c5058 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Construction cam · week 38</span><span style="color: #a9aeb9; font-size: 12px">8,920 · Brinno · 7 d</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #e8b339">◐ Analysing</span><span style="color: #4cc2ff">● Remote</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #1b2b4a 0%, #d67a4e 60%, #3a2a2a 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Milan skyline dusk</span><span style="color: #a9aeb9; font-size: 12px">2,400 · iPhone 16 Pro · 1 h 20 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span>▶ 1</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #3b6fa6 0%, #e6eef5 55%, #5c7a52 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Clouds over the Langhe</span><span style="color: #a9aeb9; font-size: 12px">1,320 · Canon EOS R5 · 44 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #7b818e">○ Analysed</span><span style="color: #7b818e">○ Proxies</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #08101c 0%, #142a4a 70%, #0d0f14 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Star trails, Colle del Nivolet</span><span style="color: #a9aeb9; font-size: 12px">640 · Sony A7 IV · 5 h 20 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span>▶ 3</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #6a8fb0 0%, #f2e6d0 50%, #7a6a55 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Fog lifting, Asti</span><span style="color: #a9aeb9; font-size: 12px">980 · DJI Osmo Action 5 · 1 h 38 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span style="color: #7b818e">○ Proxies</span></div></div>
|
||||
</div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column">
|
||||
<div style="height: 150px; background: linear-gradient(180deg, #2c1f4d 0%, #c2455a 55%, #f5a524 80%, #26262c 100%)"></div>
|
||||
<div style="padding: 8px 10px; display: flex; flex-direction: column; gap: 4px"><span style="font-weight: 600">Holy grail · Monviso</span><span style="color: #a9aeb9; font-size: 12px">1,720 · Nikon Z 8 · 3 h 02 m</span><div style="display: flex; gap: 6px; font-size: 11px; color: #a9aeb9"><span style="color: #35c48f">● Analysed</span><span>● Proxies</span><span>▶ 1</span><span style="color: #4cc2ff">● Synced</span></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0">
|
||||
<span>412 sequences</span><span>618,204 photos</span><span>9.4 TB</span><span style="color: #4cc2ff">Connected to "Studio NAS"</span><span>3 jobs</span>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,112 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Server</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Server</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs<span style="margin-left: auto; background: #4cc2ff; color: #0b1b24; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px">2</span></a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 46%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<span style="color: #a9aeb9; white-space: nowrap">Upload · Comet over the ridge · 46 % · 38 MB/s · 4 min left</span>
|
||||
<button aria-label="Pause job" title="Pause" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; cursor: pointer; font: inherit">❚❚</button>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; flex-grow: 1; min-height: 0; padding: 16px 20px; gap: 14px">
|
||||
<div style="display: flex; gap: 14px; flex-shrink: 0">
|
||||
<section style="flex: 1.6; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px">
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<label for="url" style="width: 60px; color: #a9aeb9">Server</label>
|
||||
<input id="url" type="url" value="https://nas.local:8443" title="Address of the Titano Server; LAN servers appear in the list when discovery is on" style="flex-grow: 1; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<button title="Servers found on this network" style="height: 32px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">▾</button>
|
||||
<button title="Close the session and work with the local archive only" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Disconnect</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; flex-wrap: wrap">
|
||||
<span style="width: 60px; color: #a9aeb9">Status</span>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #35c48f"><span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f"></span>Connected</span>
|
||||
<span style="color: #7b818e">·</span><span>Studio NAS · v1.3.0 · 14 ms</span>
|
||||
<span style="color: #7b818e">·</span><span title="Certificate fingerprint trusted on first use on 2026-09-01; a change would block the connection and ask you again">TLS 9A:3C:71:E0:… trusted 2026-09-01</span>
|
||||
<button title="Show the full fingerprint and forget the trust" style="height: 24px; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; font-size: 12px; cursor: pointer">Certificate</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<span style="width: 60px; color: #a9aeb9">Account</span>
|
||||
<span style="width: 28px; height: 28px; border-radius: 14px; background: #2f3038; border: 1px solid #3e404a; display: flex; align-items: center; justify-content: center; font-weight: 600">A</span>
|
||||
<span>alberto</span><span style="color: #7b818e">·</span><span title="Editors can import, edit and render; only admins manage users">Editor</span><span style="color: #7b818e">·</span>
|
||||
<div style="width: 160px; height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 42%; height: 6px; background: #4cc2ff"></div></div><span style="color: #a9aeb9">2.1 TB of 5 TB</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Change password on the server" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Password</button>
|
||||
<button title="Sign out; the token is removed from this PC" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Sign out</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid #3e404a">
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" checked title="Let the server send render jobs to this PC when it is idle; uses your GPU encoders" style="accent-color: #4cc2ff; margin: 0">Offer this PC as render node</label>
|
||||
<span style="color: #a9aeb9" title="Encoders the server can use on this PC">NVENC HEVC · H.264 · AV1</span>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" checked title="Keep JPEG proxies of every synced sequence so you can edit without the originals" style="accent-color: #4cc2ff; margin: 0">Keep proxies offline</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" checked title="Push project settings to the server as you edit; conflicts are shown below" style="accent-color: #4cc2ff; margin: 0">Sync projects automatically</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px"><input type="checkbox" title="Only when connected to a metered network" style="accent-color: #4cc2ff; margin: 0">Pause uploads on metered networks</label>
|
||||
</div>
|
||||
</section>
|
||||
<section style="flex: 1; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px">
|
||||
<div style="display: flex; align-items: center"><span style="font-weight: 600; flex-grow: 1">Render node</span><span style="display: flex; align-items: center; gap: 6px; color: #e8b339"><span style="width: 8px; height: 8px; border-radius: 4px; background: #e8b339"></span>Busy</span></div>
|
||||
<span style="color: #a9aeb9">Rendering <span style="color: #f2f3f5">Harbour sunset → 4K 10-bit HEVC</span> for the server · 62 % · 11.3 fps</span>
|
||||
<div style="height: 6px; background: #3e404a; border-radius: 3px; overflow: hidden"><div style="width: 62%; height: 6px; background: #4cc2ff"></div></div>
|
||||
<div style="display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; color: #a9aeb9"><span>Today</span><span style="color: #f2f3f5">3 jobs · 41 min GPU time</span><span>Queue</span><span style="color: #f2f3f5">1 waiting on the server</span><span>Availability</span><span style="color: #f2f3f5">when idle for 2 min · never on battery</span></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; gap: 8px"><button title="Finish the current frame and hand the job back to the server" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Release job</button><a href="Settings.html" title="Idle delay, battery rule, allowed hours" style="display: flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none">Node settings</a></div>
|
||||
</section>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #3e404a">
|
||||
<span style="font-weight: 600">Sequences</span>
|
||||
<button aria-pressed="true" title="All sequences on this PC and on the server" style="height: 28px; padding: 0 10px; border: 1px solid #4cc2ff; border-radius: 14px; background: #2f3038; color: #4cc2ff; font: inherit; font-size: 12px; cursor: pointer">All · 418</button>
|
||||
<button title="Only on this PC" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 14px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Local only · 6</button>
|
||||
<button title="Only on the server" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 14px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Remote · 214</button>
|
||||
<button title="Settings differ between this PC and the server" style="height: 28px; padding: 0 10px; border: 1px solid #e8b339; border-radius: 14px; background: #2f3038; color: #e8b339; font: inherit; font-size: 12px; cursor: pointer">Conflicts · 1</button>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<label for="sq" style="position: absolute; left: -9999px">Search</label>
|
||||
<input id="sq" type="search" placeholder="Search" style="width: 200px; height: 30px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<button title="Send every local-only sequence to the server" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Upload all local</button>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 8px 14px; font-size: 11px; color: #7b818e; border-bottom: 1px solid #3e404a"><span>Sequence</span><span>This PC</span><span>Server</span><span>State</span><span></span></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a; background: #2f3038"><span>Holy grail · Monviso</span><span>originals · proxies</span><span>originals · proxies</span><span style="color: #e8b339" title="Deflicker window 41 here, 33 on the server (changed by giulia 09:20)">▲ settings differ</span><div style="display: flex; gap: 6px"><button title="Overwrite the server copy with this PC's settings" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Keep mine</button><button title="Replace this PC's settings with the server copy" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Take server</button><button title="Keep both as two versions of the project" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #26262c; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Save both</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Harbour sunset</span><span>originals · proxies</span><span>originals · proxies</span><span style="color: #35c48f">● in sync</span><div style="display: flex; gap: 6px"><span style="color: #7b818e; font-size: 12px">rendering on this PC as a node</span></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Comet over the ridge</span><span>originals · proxies</span><span style="color: #a9aeb9">46 % received</span><span style="color: #4cc2ff">● uploading</span><div style="display: flex; gap: 6px"><button title="Pause this upload" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Pause</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Clouds over the Langhe</span><span>originals</span><span style="color: #7b818e">—</span><span style="color: #a9aeb9">local only</span><div style="display: flex; gap: 6px"><button title="Copy originals and settings to the server" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Upload</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Construction cam · week 38</span><span>proxies</span><span>originals · proxies</span><span style="color: #4cc2ff">● remote</span><div style="display: flex; gap: 6px"><button title="Open the editor on the proxies; the render runs on the server" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open with proxies</button><button title="Fetch the originals to this PC (61 GB)" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Download originals</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Aurora, Tromsø</span><span>originals · proxies</span><span>originals · proxies</span><span style="color: #35c48f">● in sync</span><div style="display: flex; gap: 6px"><button title="Remove the originals from this PC, keep proxies (14 GB freed)" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Free local space</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Star trails, Colle del Nivolet</span><span>originals · proxies</span><span>originals · proxies · 3 exports</span><span style="color: #35c48f">● in sync</span><div style="display: flex; gap: 6px"><button title="Copy the three server renders to this PC" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Get exports</button></div></div>
|
||||
<div style="display: grid; grid-template-columns: 1.6fr 150px 150px 150px 1.4fr; gap: 10px; padding: 0 14px; height: 40px; align-items: center; border-bottom: 1px solid #3e404a"><span>Milan skyline dusk</span><span style="color: #7b818e">—</span><span>originals · proxies · 1 export</span><span style="color: #4cc2ff">● remote</span><div style="display: flex; gap: 6px"><button title="Open the editor on the proxies" style="height: 26px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Open with proxies</button></div></div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 16px; padding: 8px 14px; border-top: 1px solid #3e404a; font-size: 12px; color: #a9aeb9"><span>Last sync 10:15 · manifest diff 0.4 s</span><span>Server archive 9.4 TB · 412 sequences · 6 users</span><span style="flex-grow: 1"></span><a href="Admin.html" title="Opens the web admin in your browser (admins only)">Open admin panel</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0">
|
||||
<span>418 sequences</span><span>640,118 photos</span><span>9.4 TB</span><span style="color: #4cc2ff">Connected to "Studio NAS"</span><span>2 jobs</span>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,83 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — Settings</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano — Settings</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit; cursor: pointer">≡</button>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><rect x="1.5" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="1.5" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="1.5" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/><rect x="9" y="9" width="5.5" height="5.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/></svg>Library</a>
|
||||
<a href="Import.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2v8M4.5 6.5 8 10l3.5-3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Import</a>
|
||||
<a href="Editor.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 12.5 11.5 3l1.5 1.5L3.5 14H2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Sequence</a>
|
||||
<a href="Archive.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Archive</a>
|
||||
<a href="Jobs.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M3 4h10M3 12h6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Jobs</a>
|
||||
<a href="Server.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>Server</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<a href="Settings.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>Settings</a>
|
||||
<a href="Main.html" style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9; text-decoration: none"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 7v4M8 4.8v.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>About</a>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; min-width: 0; padding: 16px 20px; gap: 16px">
|
||||
<div style="width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px">
|
||||
<label for="setq" style="position: absolute; left: -9999px">Search settings</label>
|
||||
<input id="setq" type="search" placeholder="Search settings" style="height: 32px; box-sizing: border-box; padding: 0 12px; margin-bottom: 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit">
|
||||
<a href="Settings.html" title="Language, theme, startup, notifications" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">General</a>
|
||||
<a href="Settings.html" title="Root folders, naming templates, proxy policy, thumbnail size, network polling" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Archive</a>
|
||||
<a href="Settings.html" title="Card defaults, session rules, verification, after-import actions" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Import</a>
|
||||
<a href="Settings.html" title="Analysis widths, thresholds, deep analysis auto-run" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Analysis</a>
|
||||
<a href="Settings.html" aria-current="page" title="Quality profile, memory budget, spill folder, parallelism, encoders" style="display: flex; align-items: center; height: 34px; padding: 0 9px; border-radius: 6px; background: #2f3038; color: #f2f3f5; text-decoration: none; border-left: 3px solid #4cc2ff">Rendering</a>
|
||||
<a href="Settings.html" title="Which decoder handles each format on this PC, codec install links" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Formats</a>
|
||||
<a href="Settings.html" title="Known servers, trusted certificates, render node rules" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Server</a>
|
||||
<a href="Settings.html" title="Update channel and check on start" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Updates</a>
|
||||
<a href="Settings.html" title="Licence key and ad preferences" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Licence</a>
|
||||
<a href="Settings.html" title="Portable mode, logs, database backup and restore, reset" style="display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; color: #a9aeb9; text-decoration: none">Advanced</a>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Save every setting as JSON" style="height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Export…</button>
|
||||
<button title="Load settings from a JSON file" style="height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Import…</button>
|
||||
</div>
|
||||
<section style="flex-grow: 1; min-width: 0; background: #26262c; border: 1px solid #3e404a; border-radius: 8px; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div style="display: flex; align-items: center"><span style="font-size: 18px; font-weight: 600; flex-grow: 1">Rendering</span><span style="color: #a9aeb9">Changes apply to the next job</span></div>
|
||||
<div style="display: grid; grid-template-columns: 180px 1fr; row-gap: 14px; column-gap: 14px; align-items: center">
|
||||
<span style="color: #a9aeb9">Quality profile</span>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><button title="Balanced: full-resolution flow at half sampling; Best doubles sampling and disables spill; Fast previews only" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Balanced ▾</button><span style="color: #7b818e">Best · Balanced · Fast</span></div>
|
||||
<label for="mem" style="color: #a9aeb9">Memory budget</label>
|
||||
<div style="display: flex; align-items: center; gap: 12px"><input id="mem" type="range" min="2" max="28" value="8" title="Frames stay in memory up to this budget, then spill to the cache folder" style="width: 320px; accent-color: #4cc2ff"><span>8 GB</span><span style="color: #7b818e">of 32 GB installed</span><button title="Auto: a quarter of installed memory" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · 8</button></div>
|
||||
<span style="color: #a9aeb9">Cache folder</span>
|
||||
<div style="display: flex; align-items: center; gap: 10px"><input type="text" value="D:\TitanoCache" aria-label="Cache folder" title="Where frames spill and proxies are built; a fast SSD helps" style="width: 360px; height: 32px; box-sizing: border-box; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"><button aria-label="Choose folder" title="Choose folder" style="width: 32px; height: 32px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">…</button><span style="color: #7b818e">1.4 GB used · SSD · 612 GB free</span><button title="Delete spilled frames and stale proxies" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; font-size: 12px; cursor: pointer">Clear</button></div>
|
||||
<span style="color: #a9aeb9">Parallelism</span>
|
||||
<div style="display: flex; align-items: center; gap: 12px"><input type="number" value="12" aria-label="Worker threads" title="Worker threads for decoding and processing" style="width: 64px; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"><span style="color: #7b818e">of 16 logical cores</span><button title="Auto: cores minus 4 so the UI stays responsive" style="height: 24px; padding: 0 8px; border: 1px solid #4cc2ff; border-radius: 12px; background: transparent; color: #4cc2ff; font: inherit; font-size: 11px; cursor: pointer">Auto · 12</button><label style="display: flex; align-items: center; gap: 8px; margin-left: 12px"><input type="checkbox" checked title="Lower the process priority while the UI is in front" style="accent-color: #4cc2ff; margin: 0">Background priority while editing</label></div>
|
||||
<span style="color: #a9aeb9">Hardware encoding</span>
|
||||
<div style="display: flex; align-items: center; gap: 18px"><label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="hw" checked title="Use a hardware encoder when one supports the preset; fall back to software otherwise" style="accent-color: #4cc2ff; margin: 0">Prefer hardware</label><label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="hw" title="Always the Microsoft software H.264 encoder; slower, identical everywhere" style="accent-color: #4cc2ff; margin: 0">Software only</label><label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="hw" title="Hardware for previews, software for archive presets" style="accent-color: #4cc2ff; margin: 0">Hardware for previews only</label></div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-height: 0">
|
||||
<div style="display: flex; align-items: center; gap: 10px"><span style="font-weight: 600">Encoders on this PC</span><span style="color: #7b818e">NVIDIA GeForce RTX 4070 · driver 560.94 · Media Foundation 10.0.26100</span><span style="flex-grow: 1"></span><button title="Enumerate the encoders again" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Re-detect</button><button title="Encode a 10-second test clip with every encoder and compare the results (about 1 minute)" style="height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; font-size: 12px; cursor: pointer">Run self-test</button></div>
|
||||
<div style="background: #2f3038; border: 1px solid #3e404a; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 8px 14px; font-size: 11px; color: #7b818e; border-bottom: 1px solid #3e404a"><span>Codec</span><span>Encoder</span><span>10-bit</span><span>Max</span><span>Self-test</span><span>Used for</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>HEVC</span><span>NVIDIA NVENC (hardware)</span><span style="color: #35c48f">Main10</span><span>8192×8192</span><span style="color: #35c48f">✓ 142 fps · ok</span><span style="color: #a9aeb9">4K archive · 4K HEVC · 1440p · cinema</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>H.264</span><span>NVIDIA NVENC (hardware)</span><span style="color: #7b818e">—</span><span>4096×4096</span><span style="color: #35c48f">✓ 188 fps · ok</span><span style="color: #a9aeb9">1080p share · social · square · 720p</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>AV1</span><span>NVIDIA NVENC (hardware)</span><span style="color: #35c48f">10-bit</span><span>8192×8192</span><span style="color: #35c48f">✓ 96 fps · ok</span><span style="color: #a9aeb9">not in any preset · available in Custom</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>H.264</span><span>Microsoft (software)</span><span style="color: #7b818e">—</span><span>4096×2304</span><span style="color: #35c48f">✓ 21 fps · ok</span><span style="color: #a9aeb9">fallback for every H.264 preset</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center; border-bottom: 1px solid #3e404a"><span>MJPEG · AVI</span><span>Titano (built in)</span><span style="color: #7b818e">—</span><span>no limit</span><span style="color: #35c48f">✓ 64 fps · ok</span><span style="color: #a9aeb9">lossless-ish intermediate</span></div>
|
||||
<div style="display: grid; grid-template-columns: 110px 1.4fr 90px 120px 130px 1fr; gap: 10px; padding: 0 14px; height: 36px; align-items: center"><span>GIF · APNG</span><span>Titano (built in)</span><span style="color: #7b818e">—</span><span>1080p</span><span style="color: #35c48f">✓ ok</span><span style="color: #a9aeb9">previews, social loops</span></div>
|
||||
</div>
|
||||
<span style="font-size: 12px; color: #7b818e">Intel QSV and AMD AMF appear here on PCs that have them. HEVC and AV1 exist only as hardware encoders: without one, those presets fall back to H.264 and say so in the preset list.</span>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #3e404a"><span style="flex-grow: 1"></span><button title="Return every control of this section to its default" style="height: 32px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">Reset section</button></div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,70 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano Uploader</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 720px; height: 520px; box-sizing: border-box; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/><path d="M11.5 15.5 14.5 12.5 11.5 9.5" fill="none" stroke="#f2f3f5" stroke-width="0"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano Uploader</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="#4cc2ff" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span>https://nas.local:8443</span>
|
||||
<span style="color: #7b818e">·</span>
|
||||
<span>alberto</span>
|
||||
<span style="color: #7b818e">·</span>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #35c48f"><span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f"></span>Connected</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="font-size: 12px; color: #a9aeb9" title="Space left in your quota on the server">1.9 TB free of 5 TB</span>
|
||||
<button aria-label="Settings" title="Server, sign in, bandwidth, startup, tray" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.2" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2M3.4 3.4l1.4 1.4M11.2 11.2l1.4 1.4M3.4 12.6l1.4-1.4M11.2 4.8l1.4-1.4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; min-height: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px">
|
||||
<div style="height: 150px; border: 2px dashed #3e404a; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #a9aeb9; flex-shrink: 0">
|
||||
<svg width="28" height="28" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11V3M4.5 6.5 8 3l3.5 3.5M2.5 13.5h11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
<span style="font-size: 14px">Drop photos, folders or a card here</span>
|
||||
<button title="Pick files, a folder or a card" style="height: 30px; padding: 0 14px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">Browse…</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 16px; height: 30px; flex-shrink: 0">
|
||||
<span style="width: 92px; color: #a9aeb9">Target</span>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="target" checked title="The server splits the files into sessions and creates the sequences" style="accent-color: #4cc2ff; margin: 0">Group into sessions</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="target" title="Add every file to one existing sequence" style="accent-color: #4cc2ff; margin: 0">Sequence</label>
|
||||
<button title="Choose the sequence" style="height: 30px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #7b818e; font: inherit; cursor: pointer">Harbour sunset ▾</button>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="radio" name="target" title="Create one new sequence with a title you type" style="accent-color: #4cc2ff; margin: 0">New</label>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 30px; flex-shrink: 0">
|
||||
<span style="width: 92px; color: #a9aeb9">Queue</span>
|
||||
<span>4,812 files · 96.2 GB · 38 MB/s · 41 min left</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button aria-label="Pause" title="Pause; the queue survives a restart" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">❚❚</button>
|
||||
<button aria-label="Stop" title="Stop and clear the queue; uploaded files stay on the server" style="width: 30px; height: 30px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">■</button>
|
||||
<span style="display: flex; align-items: center; gap: 6px; color: #a9aeb9">Limit <input type="number" value="50" aria-label="Bandwidth limit in megabytes per second" title="Bandwidth limit; 0 means no limit" style="width: 58px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit"> MB/s</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 5px; flex-shrink: 0">
|
||||
<div style="height: 8px; background: #3e404a; border-radius: 4px; overflow: hidden"><div style="width: 46%; height: 8px; background: #4cc2ff"></div></div>
|
||||
<div style="display: flex; font-size: 12px; color: #a9aeb9"><span>2026-09-28_18-02-11_0413.CR2</span><span style="flex-grow: 1"></span><span>2,214 of 4,812 sent · 2,201 verified by the server · 0 retries</span></div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 30px; flex-shrink: 0">
|
||||
<span style="width: 92px; color: #a9aeb9">Watch folders</span>
|
||||
<span style="display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 14px; background: #2f3038" title="Checked every 60 s; a file is uploaded once it has stopped growing"><span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f"></span>D:\Cam\Roof · every 60 s</span>
|
||||
<span style="display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid #3e404a; border-radius: 14px; background: #2f3038" title="Network share; polled because change notifications are unreliable on SMB"><span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f"></span>\\garage-pi\cam · every 5 min</span>
|
||||
<button aria-label="Add watch folder" title="Add a folder to watch" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 14px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">+</button>
|
||||
</div>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<div style="display: flex; align-items: center; gap: 22px; height: 30px; flex-shrink: 0">
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" title="Delete the local file only after the server has confirmed its hash; asks once per session" style="accent-color: #4cc2ff; margin: 0">Delete source after verified upload</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Run when you sign in to Windows" style="accent-color: #4cc2ff; margin: 0">Start with Windows</label>
|
||||
<label style="display: flex; align-items: center; gap: 6px"><input type="checkbox" checked title="Closing the window keeps the uploader running in the tray" style="accent-color: #4cc2ff; margin: 0">Minimise to tray</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Titano — First run</title>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;background:#1f1f23;color:#f2f3f5}
|
||||
a{color:#4cc2ff}a:hover{color:#8ad8ff}
|
||||
</style>
|
||||
<div style="width: 1440px; height: 900px; box-sizing: border-box; position: relative; display: flex; flex-direction: column; background: #1f1f23; color: #f2f3f5; font-size: 13px; overflow: hidden; border-radius: 8px">
|
||||
<div style="height: 34px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #1a1a1e; flex-shrink: 0">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="#4cc2ff" stroke-width="2" stroke-dasharray="3 1.6" opacity="0.9"/><circle cx="8" cy="8" r="2.4" fill="#f5a524"/></svg>
|
||||
<span style="font-size: 12px; color: #a9aeb9">Titano</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="width: 46px; text-align: center; color: #a9aeb9">—</span><span style="width: 46px; text-align: center; color: #a9aeb9">▢</span><span style="width: 46px; text-align: center; color: #a9aeb9">✕</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0; opacity: 0.45">
|
||||
<nav style="width: 128px; background: #1a1a1e; display: flex; flex-direction: column; padding: 8px; gap: 2px; flex-shrink: 0">
|
||||
<button aria-label="Collapse navigation" tabindex="-1" style="height: 32px; border: 0; background: transparent; color: #a9aeb9; text-align: left; padding: 0 8px; border-radius: 6px; font: inherit">≡</button>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; background: #2f3038; color: #f2f3f5; border-left: 3px solid #4cc2ff">Library</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Import</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Sequence</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Archive</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Jobs</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Server</span>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">Settings</span>
|
||||
<span style="display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 13px; border-radius: 6px; color: #a9aeb9">About</span>
|
||||
</nav>
|
||||
<main style="flex-grow: 1; display: flex; flex-direction: column; min-width: 0">
|
||||
<div style="height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #26262c; border-bottom: 1px solid #3e404a; flex-shrink: 0"><div style="flex-grow: 1; height: 6px; background: #3e404a; border-radius: 3px"></div><span style="color: #a9aeb9">Ready</span></div>
|
||||
<div style="height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 20px; flex-shrink: 0">
|
||||
<span style="width: 260px; height: 32px; box-sizing: border-box; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038"></span>
|
||||
<span style="height: 32px; padding: 0 12px; display: flex; align-items: center; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5">Year ▾</span>
|
||||
<span style="height: 32px; padding: 0 12px; display: flex; align-items: center; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5">Camera ▾</span>
|
||||
<span style="height: 32px; padding: 0 12px; display: flex; align-items: center; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5">Status ▾</span>
|
||||
</div>
|
||||
<div style="flex-grow: 1; display: flex; align-items: center; justify-content: center; color: #7b818e">No sequences yet</div>
|
||||
<div style="height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #1a1a1e; color: #a9aeb9; font-size: 12px; flex-shrink: 0"><span>0 sequences</span><span>0 photos</span><span>No archive</span><span>Not connected</span></div>
|
||||
</main>
|
||||
</div>
|
||||
<div style="position: absolute; left: 0; top: 34px; right: 0; bottom: 0; background: rgba(15,15,18,0.55)"></div>
|
||||
<div role="dialog" aria-labelledby="wt" style="position: absolute; left: 400px; top: 148px; width: 640px; background: #26262c; border: 1px solid #3e404a; border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 80px rgba(0,0,0,0.6)">
|
||||
<div style="display: flex; align-items: center; gap: 16px">
|
||||
<svg width="56" height="56" viewBox="0 0 256 256" aria-hidden="true"><rect x="0" y="0" width="256" height="256" rx="56" fill="#1a1a1e"/><path d="M142.4 37.1 A92 92 0 0 1 161.0 42.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.14"/><path d="M185.9 56.5 A92 92 0 0 1 199.5 70.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.22"/><path d="M213.9 95.0 A92 92 0 0 1 218.9 113.6" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.3"/><path d="M218.9 142.4 A92 92 0 0 1 213.9 161.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.37"/><path d="M199.5 185.9 A92 92 0 0 1 185.9 199.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.45"/><path d="M161.0 213.9 A92 92 0 0 1 142.4 218.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.53"/><path d="M113.6 218.9 A92 92 0 0 1 95.0 213.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.61"/><path d="M70.1 199.5 A92 92 0 0 1 56.5 185.9" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.69"/><path d="M42.1 161.0 A92 92 0 0 1 37.1 142.4" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.77"/><path d="M37.1 113.6 A92 92 0 0 1 42.1 95.0" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.84"/><path d="M56.5 70.1 A92 92 0 0 1 70.1 56.5" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="0.92"/><path d="M95.0 42.1 A92 92 0 0 1 113.6 37.1" fill="none" stroke="#4cc2ff" stroke-width="20" stroke-linecap="round" opacity="1"/><circle cx="152" cy="104" r="30" fill="#f5a524"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px; flex-grow: 1"><span id="wt" style="font-size: 20px; font-weight: 600">Welcome to Titano</span><span style="color: #a9aeb9">Where should your time-lapses live?</span></span>
|
||||
<button title="Interface language; can be changed later in Settings" style="height: 32px; padding: 0 12px; border: 1px solid #3e404a; border-radius: 6px; background: #2f3038; color: #f2f3f5; font: inherit; cursor: pointer">English ▾</button>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 10px">
|
||||
<button title="Creates the folder layout and the index here; you can move it later" style="display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 16px; border: 1px solid #4cc2ff; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 0 2px rgba(76,194,255,0.25)">
|
||||
<svg width="24" height="24" viewBox="0 0 16 16" aria-hidden="true"><path d="M1.5 4.5a1 1 0 0 1 1-1H6l1.5 1.5h6a1 1 0 0 1 1 1v6.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1z" fill="none" stroke="#4cc2ff" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 3px; flex-grow: 1"><span style="font-size: 14px; font-weight: 600">Create a local archive</span><span style="font-size: 12px; color: #a9aeb9">D:\TitanoArchive · 1.8 TB free</span></span>
|
||||
<span style="color: #a9aeb9">Change…</span>
|
||||
</button>
|
||||
<button title="Index photos you already have, without moving them" style="display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 16px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="24" height="24" viewBox="0 0 16 16" aria-hidden="true"><path d="M2 4.5h12v9H2zM2 2h12v2.5H2zM6 8h4" fill="none" stroke="#a9aeb9" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 3px; flex-grow: 1"><span style="font-size: 14px; font-weight: 600">Adopt an existing folder</span><span style="font-size: 12px; color: #a9aeb9">Scans a folder tree in place, or a previous Titano archive</span></span>
|
||||
</button>
|
||||
<button title="Sign in to a Titano Server on your network or on the internet" style="display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 16px; border: 1px solid #3e404a; border-radius: 8px; background: #2f3038; color: #f2f3f5; font: inherit; text-align: left; cursor: pointer">
|
||||
<svg width="24" height="24" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 12.5a3 3 0 0 1-.3-6 4 4 0 0 1 7.7-1 3.5 3.5 0 0 1 .3 7z" fill="none" stroke="#a9aeb9" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 3px; flex-grow: 1"><span style="font-size: 14px; font-weight: 600">Connect to a server</span><span style="font-size: 12px; color: #a9aeb9">Studio NAS found on this network · https://nas.local:8443</span></span>
|
||||
<span style="width: 8px; height: 8px; border-radius: 4px; background: #35c48f" title="Discovered a moment ago"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px">
|
||||
<label style="display: flex; align-items: center; gap: 8px; color: #a9aeb9"><input type="checkbox" title="Send a daily anonymous count of versions and languages in use; nothing else, off by default" style="accent-color: #4cc2ff; margin: 0">Help improve Titano with anonymous usage counts</label>
|
||||
<span style="flex-grow: 1"></span>
|
||||
<button title="Start with the highlighted choice · Enter" style="height: 36px; padding: 0 22px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="status" style="position: absolute; right: 20px; bottom: 44px; width: 420px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #2f3038; border: 1px solid #3e404a; border-left: 3px solid #4cc2ff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5)">
|
||||
<svg width="18" height="18" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 1.5h6l2.5 2.5v10.5H4z" fill="none" stroke="#4cc2ff" stroke-width="1.5" stroke-linejoin="round"/><path d="M6.5 4v2M8.5 4v2M10.5 4v2" stroke="#4cc2ff" stroke-width="1.2"/></svg>
|
||||
<span style="display: flex; flex-direction: column; gap: 2px; flex-grow: 1"><span style="font-weight: 600">New card inserted · SD 128 GB</span><span style="font-size: 12px; color: #a9aeb9">Canon EOS R5 · 4,812 photos · not yet known to Titano</span></span>
|
||||
<button title="Open Import and give this card a name" style="height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: #4cc2ff; color: #0b1b24; font: inherit; font-weight: 600; cursor: pointer">Import</button>
|
||||
<button aria-label="Dismiss" title="Not now" style="width: 28px; height: 28px; border: 1px solid #3e404a; border-radius: 6px; background: transparent; color: #a9aeb9; font: inherit; cursor: pointer">✕</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "10.0.100",
|
||||
"rollForward": "latestFeature",
|
||||
"allowPrerelease": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
|
||||
<resheader name="version"><value>2.0</value></resheader>
|
||||
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<data name="Shell.AppName" xml:space="preserve"><value>Titano</value></data>
|
||||
<data name="Shell.Photos.Count.one" xml:space="preserve"><value>{0:N0} photo</value></data>
|
||||
<data name="Shell.Photos.Count.other" xml:space="preserve"><value>{0:N0} photos</value></data>
|
||||
</root>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader>
|
||||
<resheader name="version"><value>2.0</value></resheader>
|
||||
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<data name="Shell.Photos.Count.one" xml:space="preserve"><value>{0:N0} foto</value></data>
|
||||
<data name="Shell.Photos.Count.other" xml:space="preserve"><value>{0:N0} foto</value></data>
|
||||
</root>
|
||||
@@ -0,0 +1,4 @@
|
||||
<Application x:Class="Titano.App.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
</Application>
|
||||
@@ -0,0 +1,7 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Titano.App;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<RootNamespace>Titano.App</RootNamespace>
|
||||
<AssemblyName>Titano</AssemblyName>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<TitanoIconVariant>titano</TitanoIconVariant>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Core.Windows\Titano.Core.Windows.csproj" />
|
||||
<ProjectReference Include="..\Titano.Data\Titano.Data.csproj" />
|
||||
<ProjectReference Include="..\Titano.Protocol\Titano.Protocol.csproj" />
|
||||
<ProjectReference Include="..\Titano.Ui\Titano.Ui.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="Titano.App.Tests" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="Titano.App" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<RootNamespace>Titano.Core.Windows</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Data\Titano.Data.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="Titano.Core.Windows.Tests" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Titano.Core.Windows;
|
||||
|
||||
/// <summary>Windows-only providers (WIC, Media Foundation, DXGI, devices).</summary>
|
||||
public static class WindowsPlatform
|
||||
{
|
||||
public static bool IsSupported => OperatingSystem.IsWindowsVersionAtLeast(10, 0, 17763);
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
namespace Titano.Core.Branding;
|
||||
|
||||
public enum BrandVariant
|
||||
{
|
||||
/// <summary>Titano desktop client: plate, ring, sun.</summary>
|
||||
App,
|
||||
|
||||
/// <summary>Titano Server: App mark plus the three-bar rack badge (≥ 48 px).</summary>
|
||||
Server,
|
||||
|
||||
/// <summary>Titano Uploader: App mark plus the up-arrow badge (≥ 48 px).</summary>
|
||||
Uploader,
|
||||
|
||||
/// <summary>White mark without plate, for the tray.</summary>
|
||||
Mono,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The time-lapse aperture-clock mark (BRIEF §17, DESIGN §6), defined as geometry on a 256-unit canvas
|
||||
/// and rasterised with analytic anti-aliasing from signed distance fields. Single source of truth for
|
||||
/// the ICO/PNG sets, the admin favicon and the WPF DrawingImage.
|
||||
/// </summary>
|
||||
public static class BrandMark
|
||||
{
|
||||
public const double Canvas = 256;
|
||||
public const double PlateRadius = 56;
|
||||
public const double RingRadius = 92;
|
||||
public const double StrokeWidth = 20;
|
||||
public const int TickCount = 12;
|
||||
public const double TickSweepDegrees = 12;
|
||||
public const double TickPitchDegrees = 30;
|
||||
public const double FirstTickStartDegrees = 9;
|
||||
public const double SunX = 152, SunY = 104, SunRadius = 30;
|
||||
|
||||
public static readonly Rgb Plate = new(0x1A, 0x1A, 0x1E);
|
||||
public static readonly Rgb Accent = new(0x4C, 0xC2, 0xFF);
|
||||
public static readonly Rgb Sun = new(0xF5, 0xA5, 0x24);
|
||||
public static readonly Rgb White = new(0xFF, 0xFF, 0xFF);
|
||||
|
||||
/// <summary>Opacity of tick <paramref name="i"/> (0 = first clockwise from 12 o'clock).</summary>
|
||||
public static double TickOpacity(int i) => Math.Round(0.14 + (1.0 - 0.14) * i / (TickCount - 1), 2);
|
||||
|
||||
/// <summary>Start and end angle of tick <paramref name="i"/> in degrees, clockwise from 12 o'clock.</summary>
|
||||
public static (double Start, double End) TickAngles(int i)
|
||||
{
|
||||
var start = FirstTickStartDegrees + i * TickPitchDegrees;
|
||||
return (start, start + TickSweepDegrees);
|
||||
}
|
||||
|
||||
/// <summary>Renders the mark as straight-alpha RGBA8 (row-major, top-down).</summary>
|
||||
public static byte[] Render(BrandVariant variant, int size)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfLessThan(size, 8);
|
||||
var scale = size / Canvas;
|
||||
// Below 32 px the stroke would vanish; keep it at least ~1.3 px wide.
|
||||
var stroke = Math.Max(StrokeWidth, 1.3 / scale);
|
||||
var badge = size >= 48 && variant is BrandVariant.Server or BrandVariant.Uploader;
|
||||
var ringColor = variant == BrandVariant.Mono ? White : Accent;
|
||||
var sunColor = variant == BrandVariant.Mono ? White : Sun;
|
||||
|
||||
var pixels = new byte[size * size * 4];
|
||||
var px = 1.0 / scale; // one pixel in canvas units
|
||||
for (var y = 0; y < size; y++)
|
||||
{
|
||||
for (var x = 0; x < size; x++)
|
||||
{
|
||||
var cx = (x + 0.5) * px;
|
||||
var cy = (y + 0.5) * px;
|
||||
var c = new Rgba(0, 0, 0, 0);
|
||||
|
||||
if (variant != BrandVariant.Mono)
|
||||
c = Over(c, Plate, Coverage(RoundedBox(cx, cy, 0, 0, Canvas, Canvas, PlateRadius), px));
|
||||
|
||||
for (var i = 0; i < TickCount; i++)
|
||||
{
|
||||
var (a0, a1) = TickAngles(i);
|
||||
var d = ArcStroke(cx, cy, 128, 128, RingRadius, a0, a1, stroke);
|
||||
if (d < px) c = Over(c, ringColor, Coverage(d, px) * TickOpacity(i));
|
||||
}
|
||||
|
||||
c = Over(c, sunColor, Coverage(Circle(cx, cy, SunX, SunY, SunRadius), px));
|
||||
|
||||
if (badge)
|
||||
{
|
||||
var badgeColor = variant == BrandVariant.Server ? Accent : Sun;
|
||||
// Badge disc in plate colour with a 6-unit outline.
|
||||
c = Over(c, Plate, Coverage(Circle(cx, cy, 204, 204, 43), px));
|
||||
c = Over(c, badgeColor, Coverage(Math.Abs(Circle(cx, cy, 204, 204, 40)) - 3, px));
|
||||
if (variant == BrandVariant.Server)
|
||||
{
|
||||
c = Over(c, badgeColor, Coverage(RoundedBox(cx, cy, 185, 188, 38, 12, 4), px));
|
||||
c = Over(c, badgeColor, Coverage(RoundedBox(cx, cy, 185, 208, 38, 12, 4), px));
|
||||
}
|
||||
else
|
||||
{
|
||||
var arrow = Math.Min(
|
||||
Segment(cx, cy, 204, 226, 204, 186),
|
||||
Math.Min(Segment(cx, cy, 188, 202, 204, 186), Segment(cx, cy, 204, 186, 220, 202))) - 4;
|
||||
c = Over(c, badgeColor, Coverage(arrow, px));
|
||||
}
|
||||
}
|
||||
|
||||
var o = (y * size + x) * 4;
|
||||
pixels[o] = ToByte(c.R);
|
||||
pixels[o + 1] = ToByte(c.G);
|
||||
pixels[o + 2] = ToByte(c.B);
|
||||
pixels[o + 3] = ToByte(c.A);
|
||||
}
|
||||
}
|
||||
return pixels;
|
||||
}
|
||||
|
||||
/// <summary>The master SVG for a variant (identical geometry to <see cref="Render"/>).</summary>
|
||||
public static string ToSvg(BrandVariant variant)
|
||||
{
|
||||
var inv = System.Globalization.CultureInfo.InvariantCulture;
|
||||
var sb = new System.Text.StringBuilder();
|
||||
sb.Append("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\" width=\"256\" height=\"256\">\n");
|
||||
var ring = variant == BrandVariant.Mono ? "#ffffff" : Accent.Hex;
|
||||
if (variant != BrandVariant.Mono) sb.Append("<rect x=\"0\" y=\"0\" width=\"256\" height=\"256\" rx=\"56\" fill=\"").Append(Plate.Hex).Append("\"/>\n");
|
||||
for (var i = 0; i < TickCount; i++)
|
||||
{
|
||||
var (a0, a1) = TickAngles(i);
|
||||
var (x0, y0) = Polar(a0);
|
||||
var (x1, y1) = Polar(a1);
|
||||
sb.Append(inv, $"<path d=\"M{x0:0.0} {y0:0.0} A92 92 0 0 1 {x1:0.0} {y1:0.0}\" fill=\"none\" stroke=\"{ring}\" stroke-width=\"20\" stroke-linecap=\"round\" opacity=\"{TickOpacity(i):0.0#}\"/>\n");
|
||||
}
|
||||
sb.Append("<circle cx=\"152\" cy=\"104\" r=\"30\" fill=\"").Append(variant == BrandVariant.Mono ? "#ffffff" : Sun.Hex).Append("\"/>\n");
|
||||
if (variant == BrandVariant.Server)
|
||||
sb.Append("<circle cx=\"204\" cy=\"204\" r=\"40\" fill=\"#1a1a1e\" stroke=\"#4cc2ff\" stroke-width=\"6\"/><rect x=\"185\" y=\"188\" width=\"38\" height=\"12\" rx=\"4\" fill=\"#4cc2ff\"/><rect x=\"185\" y=\"208\" width=\"38\" height=\"12\" rx=\"4\" fill=\"#4cc2ff\"/>\n");
|
||||
if (variant == BrandVariant.Uploader)
|
||||
sb.Append("<circle cx=\"204\" cy=\"204\" r=\"40\" fill=\"#1a1a1e\" stroke=\"#f5a524\" stroke-width=\"6\"/><path d=\"M204 226v-40M188 202l16-16 16 16\" fill=\"none\" stroke=\"#f5a524\" stroke-width=\"8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n");
|
||||
sb.Append("</svg>\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>Point on the ring at <paramref name="degrees"/> clockwise from 12 o'clock.</summary>
|
||||
public static (double X, double Y) Polar(double degrees, double radius = RingRadius)
|
||||
{
|
||||
var a = degrees * Math.PI / 180;
|
||||
return (128 + radius * Math.Sin(a), 128 - radius * Math.Cos(a));
|
||||
}
|
||||
|
||||
private static double Coverage(double signedDistance, double pixel) => Math.Clamp(0.5 - signedDistance / pixel, 0, 1);
|
||||
|
||||
private static double Circle(double x, double y, double cx, double cy, double r) => Math.Sqrt((x - cx) * (x - cx) + (y - cy) * (y - cy)) - r;
|
||||
|
||||
private static double RoundedBox(double x, double y, double left, double top, double w, double h, double r)
|
||||
{
|
||||
var hx = w / 2 - r;
|
||||
var hy = h / 2 - r;
|
||||
var qx = Math.Abs(x - (left + w / 2)) - hx;
|
||||
var qy = Math.Abs(y - (top + h / 2)) - hy;
|
||||
var outside = Math.Sqrt(Math.Max(qx, 0) * Math.Max(qx, 0) + Math.Max(qy, 0) * Math.Max(qy, 0));
|
||||
return outside + Math.Min(Math.Max(qx, qy), 0) - r;
|
||||
}
|
||||
|
||||
private static double Segment(double x, double y, double ax, double ay, double bx, double by)
|
||||
{
|
||||
double px = x - ax, py = y - ay, dx = bx - ax, dy = by - ay;
|
||||
var t = Math.Clamp((px * dx + py * dy) / (dx * dx + dy * dy), 0, 1);
|
||||
var ex = px - dx * t;
|
||||
var ey = py - dy * t;
|
||||
return Math.Sqrt(ex * ex + ey * ey);
|
||||
}
|
||||
|
||||
private static double ArcStroke(double x, double y, double cx, double cy, double r, double startDeg, double endDeg, double width)
|
||||
{
|
||||
var dx = x - cx;
|
||||
var dy = y - cy;
|
||||
var angle = Math.Atan2(dx, -dy) * 180 / Math.PI;
|
||||
if (angle < 0) angle += 360;
|
||||
double d;
|
||||
if (angle >= startDeg && angle <= endDeg)
|
||||
{
|
||||
d = Math.Abs(Math.Sqrt(dx * dx + dy * dy) - r);
|
||||
}
|
||||
else
|
||||
{
|
||||
var (sx, sy) = Polar(startDeg, r);
|
||||
var (ex, ey) = Polar(endDeg, r);
|
||||
d = Math.Min(Math.Sqrt((x - sx) * (x - sx) + (y - sy) * (y - sy)), Math.Sqrt((x - ex) * (x - ex) + (y - ey) * (y - ey)));
|
||||
}
|
||||
return d - width / 2;
|
||||
}
|
||||
|
||||
private static Rgba Over(Rgba dst, Rgb src, double alpha)
|
||||
{
|
||||
if (alpha <= 0) return dst;
|
||||
var a = alpha + dst.A * (1 - alpha);
|
||||
if (a <= 0) return new Rgba(0, 0, 0, 0);
|
||||
double Mix(double s, double d) => (s * alpha + d * dst.A * (1 - alpha)) / a;
|
||||
return new Rgba(Mix(src.R / 255.0, dst.R), Mix(src.G / 255.0, dst.G), Mix(src.B / 255.0, dst.B), a);
|
||||
}
|
||||
|
||||
private static byte ToByte(double v) => (byte)Math.Clamp((int)Math.Round(v * 255), 0, 255);
|
||||
|
||||
private readonly record struct Rgba(double R, double G, double B, double A);
|
||||
|
||||
public readonly record struct Rgb(byte R, byte G, byte B)
|
||||
{
|
||||
public string Hex => $"#{R:x2}{G:x2}{B:x2}";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
using System.Buffers.Binary;
|
||||
using Titano.Core.Codecs.Png;
|
||||
|
||||
namespace Titano.Core.Codecs.Ico;
|
||||
|
||||
/// <summary>
|
||||
/// Writes Windows ICO files. Sizes ≥ 64 px are stored as PNG; smaller sizes as 32-bit DIBs with an AND
|
||||
/// mask, which every shell version renders crisply.
|
||||
/// </summary>
|
||||
public static class IcoWriter
|
||||
{
|
||||
/// <param name="images">Straight-alpha RGBA8 square images keyed by size.</param>
|
||||
public static byte[] Write(IReadOnlyList<(int Size, byte[] Rgba)> images)
|
||||
{
|
||||
var payloads = images.Select(i => i.Size >= 64
|
||||
? PngEncoder.Encode(i.Rgba, i.Size, i.Size, PngColorType.Rgba)
|
||||
: Dib(i.Rgba, i.Size)).ToList();
|
||||
|
||||
using var ms = new MemoryStream();
|
||||
Span<byte> header = stackalloc byte[6];
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(header, 0);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(header[2..], 1);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(header[4..], (ushort)images.Count);
|
||||
ms.Write(header);
|
||||
|
||||
var offset = 6 + 16 * images.Count;
|
||||
Span<byte> entry = stackalloc byte[16];
|
||||
for (var i = 0; i < images.Count; i++)
|
||||
{
|
||||
var size = images[i].Size;
|
||||
entry.Clear();
|
||||
entry[0] = (byte)(size >= 256 ? 0 : size);
|
||||
entry[1] = (byte)(size >= 256 ? 0 : size);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(entry[4..], 1);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(entry[6..], 32);
|
||||
BinaryPrimitives.WriteInt32LittleEndian(entry[8..], payloads[i].Length);
|
||||
BinaryPrimitives.WriteInt32LittleEndian(entry[12..], offset);
|
||||
ms.Write(entry);
|
||||
offset += payloads[i].Length;
|
||||
}
|
||||
foreach (var p in payloads) ms.Write(p);
|
||||
return ms.ToArray();
|
||||
}
|
||||
|
||||
private static byte[] Dib(byte[] rgba, int size)
|
||||
{
|
||||
var maskStride = ((size + 31) / 32) * 4;
|
||||
var data = new byte[40 + size * size * 4 + maskStride * size];
|
||||
var span = data.AsSpan();
|
||||
BinaryPrimitives.WriteInt32LittleEndian(span, 40);
|
||||
BinaryPrimitives.WriteInt32LittleEndian(span[4..], size);
|
||||
BinaryPrimitives.WriteInt32LittleEndian(span[8..], size * 2); // XOR + AND masks
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(span[12..], 1);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(span[14..], 32);
|
||||
BinaryPrimitives.WriteInt32LittleEndian(span[20..], size * size * 4);
|
||||
var o = 40;
|
||||
for (var y = size - 1; y >= 0; y--)
|
||||
{
|
||||
for (var x = 0; x < size; x++)
|
||||
{
|
||||
var s = (y * size + x) * 4;
|
||||
data[o++] = rgba[s + 2];
|
||||
data[o++] = rgba[s + 1];
|
||||
data[o++] = rgba[s];
|
||||
data[o++] = rgba[s + 3];
|
||||
}
|
||||
}
|
||||
for (var y = size - 1; y >= 0; y--)
|
||||
{
|
||||
for (var x = 0; x < size; x++)
|
||||
{
|
||||
if (rgba[(y * size + x) * 4 + 3] == 0) data[o + (x >> 3)] |= (byte)(0x80 >> (x & 7));
|
||||
}
|
||||
o += maskStride;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
using System.Buffers.Binary;
|
||||
using System.IO.Compression;
|
||||
using Titano.Core.Hashing;
|
||||
|
||||
namespace Titano.Core.Codecs.Png;
|
||||
|
||||
/// <summary>PNG colour types written by <see cref="PngEncoder"/>.</summary>
|
||||
public enum PngColorType : byte
|
||||
{
|
||||
Gray = 0,
|
||||
Rgb = 2,
|
||||
GrayAlpha = 4,
|
||||
Rgba = 6,
|
||||
}
|
||||
|
||||
/// <summary>PNG encoder (8/16-bit, gray/RGB with or without alpha), adaptive filtering, zlib via the BCL.</summary>
|
||||
public static class PngEncoder
|
||||
{
|
||||
private static ReadOnlySpan<byte> Signature => [0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A];
|
||||
|
||||
/// <summary>Encodes interleaved pixels. 16-bit samples are big-endian in <paramref name="pixels"/>.</summary>
|
||||
public static byte[] Encode(ReadOnlySpan<byte> pixels, int width, int height, PngColorType colorType, int bitDepth = 8, CompressionLevel level = CompressionLevel.SmallestSize)
|
||||
{
|
||||
using var ms = new MemoryStream();
|
||||
Encode(ms, pixels, width, height, colorType, bitDepth, level);
|
||||
return ms.ToArray();
|
||||
}
|
||||
|
||||
public static void Encode(Stream output, ReadOnlySpan<byte> pixels, int width, int height, PngColorType colorType, int bitDepth = 8, CompressionLevel level = CompressionLevel.SmallestSize, IEnumerable<(string Type, byte[] Data)>? extraChunks = null)
|
||||
{
|
||||
if (bitDepth is not (8 or 16)) throw new ArgumentOutOfRangeException(nameof(bitDepth));
|
||||
var channels = colorType switch
|
||||
{
|
||||
PngColorType.Gray => 1,
|
||||
PngColorType.GrayAlpha => 2,
|
||||
PngColorType.Rgb => 3,
|
||||
_ => 4,
|
||||
};
|
||||
var bpp = channels * bitDepth / 8;
|
||||
var stride = width * bpp;
|
||||
if (pixels.Length < stride * height) throw new ArgumentException("Pixel buffer too small", nameof(pixels));
|
||||
|
||||
output.Write(Signature);
|
||||
Span<byte> ihdr = stackalloc byte[13];
|
||||
BinaryPrimitives.WriteInt32BigEndian(ihdr, width);
|
||||
BinaryPrimitives.WriteInt32BigEndian(ihdr[4..], height);
|
||||
ihdr[8] = (byte)bitDepth;
|
||||
ihdr[9] = (byte)colorType;
|
||||
ihdr[10] = 0;
|
||||
ihdr[11] = 0;
|
||||
ihdr[12] = 0;
|
||||
WriteChunk(output, "IHDR", ihdr);
|
||||
|
||||
if (extraChunks is not null)
|
||||
{
|
||||
foreach (var (type, data) in extraChunks) WriteChunk(output, type, data);
|
||||
}
|
||||
|
||||
WriteChunk(output, "IDAT", Compress(pixels, height, stride, bpp, level));
|
||||
WriteChunk(output, "IEND", []);
|
||||
}
|
||||
|
||||
/// <summary>Filters every row (adaptive, minimum sum of absolute differences) and deflates the result.</summary>
|
||||
public static byte[] Compress(ReadOnlySpan<byte> pixels, int height, int stride, int bpp, CompressionLevel level)
|
||||
{
|
||||
using var ms = new MemoryStream();
|
||||
using (var z = new ZLibStream(ms, level, leaveOpen: true))
|
||||
{
|
||||
var filtered = new byte[stride + 1];
|
||||
var best = new byte[stride + 1];
|
||||
for (var y = 0; y < height; y++)
|
||||
{
|
||||
var row = pixels.Slice(y * stride, stride);
|
||||
var prev = y > 0 ? pixels.Slice((y - 1) * stride, stride) : default;
|
||||
var bestScore = long.MaxValue;
|
||||
for (byte f = 0; f <= 4; f++)
|
||||
{
|
||||
filtered[0] = f;
|
||||
long score = 0;
|
||||
for (var i = 0; i < stride; i++)
|
||||
{
|
||||
int a = i >= bpp ? row[i - bpp] : 0;
|
||||
int b = y > 0 ? prev[i] : 0;
|
||||
int c = i >= bpp && y > 0 ? prev[i - bpp] : 0;
|
||||
var v = f switch
|
||||
{
|
||||
0 => row[i],
|
||||
1 => row[i] - a,
|
||||
2 => row[i] - b,
|
||||
3 => row[i] - ((a + b) >> 1),
|
||||
_ => row[i] - Paeth(a, b, c),
|
||||
};
|
||||
var bv = (byte)v;
|
||||
filtered[i + 1] = bv;
|
||||
score += bv < 128 ? bv : 256 - bv;
|
||||
}
|
||||
if (score < bestScore)
|
||||
{
|
||||
bestScore = score;
|
||||
filtered.CopyTo(best, 0);
|
||||
}
|
||||
}
|
||||
z.Write(best);
|
||||
}
|
||||
}
|
||||
return ms.ToArray();
|
||||
}
|
||||
|
||||
public static void WriteChunk(Stream output, string type, ReadOnlySpan<byte> data)
|
||||
{
|
||||
Span<byte> header = stackalloc byte[8];
|
||||
BinaryPrimitives.WriteInt32BigEndian(header, data.Length);
|
||||
for (var i = 0; i < 4; i++) header[4 + i] = (byte)type[i];
|
||||
output.Write(header);
|
||||
output.Write(data);
|
||||
var crc = new Crc32();
|
||||
crc.Append(header[4..]);
|
||||
crc.Append(data);
|
||||
Span<byte> trailer = stackalloc byte[4];
|
||||
BinaryPrimitives.WriteUInt32BigEndian(trailer, crc.GetCurrentHashAsUInt32());
|
||||
output.Write(trailer);
|
||||
}
|
||||
|
||||
internal static int Paeth(int a, int b, int c)
|
||||
{
|
||||
var p = a + b - c;
|
||||
var pa = Math.Abs(p - a);
|
||||
var pb = Math.Abs(p - b);
|
||||
var pc = Math.Abs(p - c);
|
||||
if (pa <= pb && pa <= pc) return a;
|
||||
return pb <= pc ? b : c;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace Titano.Core.Diagnostics;
|
||||
|
||||
public enum LogLevel
|
||||
{
|
||||
Trace,
|
||||
Debug,
|
||||
Info,
|
||||
Warning,
|
||||
Error,
|
||||
}
|
||||
|
||||
/// <summary>Destination for engine log events (file logger on desktop, ILogger bridge on the server).</summary>
|
||||
public interface ILogSink
|
||||
{
|
||||
void Write(LogLevel level, string category, string message, Exception? exception);
|
||||
}
|
||||
|
||||
/// <summary>Tiny engine-wide logger. Core code logs through it; hosts plug in a sink.</summary>
|
||||
public static class Log
|
||||
{
|
||||
private static ILogSink _sink = new ConsoleSink();
|
||||
|
||||
public static LogLevel MinimumLevel { get; set; } = LogLevel.Info;
|
||||
|
||||
public static void SetSink(ILogSink sink) => _sink = sink ?? throw new ArgumentNullException(nameof(sink));
|
||||
|
||||
public static void Debug(string category, string message) => Write(LogLevel.Debug, category, message, null);
|
||||
public static void Info(string category, string message) => Write(LogLevel.Info, category, message, null);
|
||||
public static void Warning(string category, string message, Exception? ex = null) => Write(LogLevel.Warning, category, message, ex);
|
||||
public static void Error(string category, string message, Exception? ex = null) => Write(LogLevel.Error, category, message, ex);
|
||||
|
||||
public static void Write(LogLevel level, string category, string message, Exception? exception)
|
||||
{
|
||||
if (level < MinimumLevel) return;
|
||||
try
|
||||
{
|
||||
_sink.Write(level, category, message, exception);
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
// Logging must never take the process down.
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class ConsoleSink : ILogSink
|
||||
{
|
||||
public void Write(LogLevel level, string category, string message, Exception? exception)
|
||||
{
|
||||
var line = string.Create(CultureInfo.InvariantCulture, $"{DateTime.UtcNow:O} {level,-7} {category}: {message}");
|
||||
if (exception is not null) line += Environment.NewLine + exception;
|
||||
Console.Error.WriteLine(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Appends log lines to rotating files (one per day, kept for <c>retainDays</c>).</summary>
|
||||
public sealed class FileLogSink : ILogSink, IDisposable
|
||||
{
|
||||
private readonly string _directory;
|
||||
private readonly string _prefix;
|
||||
private readonly int _retainDays;
|
||||
private readonly Lock _gate = new();
|
||||
private StreamWriter? _writer;
|
||||
private DateOnly _day;
|
||||
|
||||
public FileLogSink(string directory, string prefix, int retainDays = 14)
|
||||
{
|
||||
_directory = directory;
|
||||
_prefix = prefix;
|
||||
_retainDays = retainDays;
|
||||
Directory.CreateDirectory(directory);
|
||||
}
|
||||
|
||||
public string CurrentPath => Path.Combine(_directory, $"{_prefix}-{_day:yyyyMMdd}.log");
|
||||
|
||||
public void Write(LogLevel level, string category, string message, Exception? exception)
|
||||
{
|
||||
lock (_gate)
|
||||
{
|
||||
var today = DateOnly.FromDateTime(DateTime.UtcNow);
|
||||
if (_writer is null || today != _day)
|
||||
{
|
||||
_writer?.Dispose();
|
||||
_day = today;
|
||||
_writer = new StreamWriter(new FileStream(CurrentPath, FileMode.Append, FileAccess.Write, FileShare.ReadWrite)) { AutoFlush = true };
|
||||
Prune();
|
||||
}
|
||||
_writer.WriteLine(string.Create(CultureInfo.InvariantCulture, $"{DateTime.UtcNow:O} {level,-7} {category}: {message}"));
|
||||
if (exception is not null) _writer.WriteLine(exception.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
private void Prune()
|
||||
{
|
||||
foreach (var file in Directory.EnumerateFiles(_directory, _prefix + "-*.log"))
|
||||
{
|
||||
if (File.GetLastWriteTimeUtc(file) < DateTime.UtcNow.AddDays(-_retainDays))
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(file);
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
lock (_gate) _writer?.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
namespace Titano.Core.Hashing;
|
||||
|
||||
/// <summary>CRC-32 (IEEE 802.3, reflected 0xEDB88320) as used by PNG, ZIP and gzip. Slicing-by-8.</summary>
|
||||
public sealed class Crc32
|
||||
{
|
||||
private static readonly uint[] Table = BuildTable();
|
||||
private uint _crc = 0xFFFFFFFFu;
|
||||
|
||||
public void Append(ReadOnlySpan<byte> data) => _crc = Update(_crc, data);
|
||||
|
||||
public uint GetCurrentHashAsUInt32() => ~_crc;
|
||||
|
||||
public void Reset() => _crc = 0xFFFFFFFFu;
|
||||
|
||||
public static uint Compute(ReadOnlySpan<byte> data) => ~Update(0xFFFFFFFFu, data);
|
||||
|
||||
private static uint Update(uint crc, ReadOnlySpan<byte> data)
|
||||
{
|
||||
var t = Table;
|
||||
var i = 0;
|
||||
for (; i + 8 <= data.Length; i += 8)
|
||||
{
|
||||
var one = (uint)(data[i] | data[i + 1] << 8 | data[i + 2] << 16 | data[i + 3] << 24) ^ crc;
|
||||
var two = (uint)(data[i + 4] | data[i + 5] << 8 | data[i + 6] << 16 | data[i + 7] << 24);
|
||||
crc = t[7 * 256 + (one & 0xFF)] ^ t[6 * 256 + ((one >> 8) & 0xFF)] ^ t[5 * 256 + ((one >> 16) & 0xFF)] ^ t[4 * 256 + (one >> 24)]
|
||||
^ t[3 * 256 + (two & 0xFF)] ^ t[2 * 256 + ((two >> 8) & 0xFF)] ^ t[256 + ((two >> 16) & 0xFF)] ^ t[two >> 24];
|
||||
}
|
||||
for (; i < data.Length; i++) crc = t[(crc ^ data[i]) & 0xFF] ^ (crc >> 8);
|
||||
return crc;
|
||||
}
|
||||
|
||||
private static uint[] BuildTable()
|
||||
{
|
||||
var t = new uint[8 * 256];
|
||||
for (uint n = 0; n < 256; n++)
|
||||
{
|
||||
var c = n;
|
||||
for (var k = 0; k < 8; k++) c = (c & 1) != 0 ? 0xEDB88320u ^ (c >> 1) : c >> 1;
|
||||
t[n] = c;
|
||||
}
|
||||
for (var s = 1; s < 8; s++)
|
||||
{
|
||||
for (var n = 0; n < 256; n++) t[s * 256 + n] = t[(s - 1) * 256 + n] >> 8 ^ t[t[(s - 1) * 256 + n] & 0xFF];
|
||||
}
|
||||
return t;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System.Text;
|
||||
|
||||
namespace Titano.Core.IO;
|
||||
|
||||
/// <summary>
|
||||
/// Crash-safe writes: content goes to a temporary sibling, is flushed to disk, then renamed over the
|
||||
/// target (BRIEF §7 "temp → fsync → rename").
|
||||
/// </summary>
|
||||
public static class AtomicFile
|
||||
{
|
||||
public static void WriteAllBytes(string path, ReadOnlySpan<byte> content)
|
||||
{
|
||||
var temp = TempPathFor(path);
|
||||
try
|
||||
{
|
||||
using (var fs = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None, 1 << 16, FileOptions.WriteThrough))
|
||||
{
|
||||
fs.Write(content);
|
||||
fs.Flush(flushToDisk: true);
|
||||
}
|
||||
File.Move(temp, path, overwrite: true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
TryDelete(temp);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public static void WriteAllText(string path, string content) => WriteAllBytes(path, new UTF8Encoding(false).GetBytes(content));
|
||||
|
||||
/// <summary>Streams content produced by <paramref name="write"/> and commits it atomically.</summary>
|
||||
public static async Task WriteAsync(string path, Func<Stream, CancellationToken, Task> write, CancellationToken cancellationToken = default)
|
||||
{
|
||||
var temp = TempPathFor(path);
|
||||
try
|
||||
{
|
||||
await using (var fs = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None, 1 << 16, FileOptions.Asynchronous))
|
||||
{
|
||||
await write(fs, cancellationToken).ConfigureAwait(false);
|
||||
await fs.FlushAsync(cancellationToken).ConfigureAwait(false);
|
||||
fs.Flush(flushToDisk: true);
|
||||
}
|
||||
File.Move(temp, path, overwrite: true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
TryDelete(temp);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Commits an already-written temporary file over <paramref name="path"/> after flushing it.</summary>
|
||||
public static void Commit(string tempPath, string path)
|
||||
{
|
||||
using (var fs = new FileStream(tempPath, FileMode.Open, FileAccess.ReadWrite, FileShare.None))
|
||||
fs.Flush(flushToDisk: true);
|
||||
File.Move(tempPath, path, overwrite: true);
|
||||
}
|
||||
|
||||
public static string TempPathFor(string path)
|
||||
{
|
||||
var dir = Path.GetDirectoryName(Path.GetFullPath(path)) ?? ".";
|
||||
Directory.CreateDirectory(dir);
|
||||
return Path.Combine(dir, "." + Path.GetFileName(path) + "." + Guid.NewGuid().ToString("N")[..8] + ".tmp");
|
||||
}
|
||||
|
||||
private static void TryDelete(string path)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (File.Exists(path)) File.Delete(path);
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
namespace Titano.Core.IO;
|
||||
|
||||
/// <summary>Helpers for UNC and long paths on Windows network archives (BRIEF §7).</summary>
|
||||
public static class LongPath
|
||||
{
|
||||
/// <summary>Adds the <c>\\?\</c> prefix on Windows when a path exceeds MAX_PATH.</summary>
|
||||
public static string Normalize(string path)
|
||||
{
|
||||
if (!OperatingSystem.IsWindows()) return path;
|
||||
var full = Path.GetFullPath(path);
|
||||
if (full.Length < 248 || full.StartsWith(@"\\?\", StringComparison.Ordinal)) return full;
|
||||
return full.StartsWith(@"\\", StringComparison.Ordinal)
|
||||
? @"\\?\UNC\" + full[2..]
|
||||
: @"\\?\" + full;
|
||||
}
|
||||
|
||||
/// <summary>Relative path with forward slashes, as stored in sidecars and the database.</summary>
|
||||
public static string ToPortableRelative(string root, string path) =>
|
||||
Path.GetRelativePath(root, path).Replace('\\', '/');
|
||||
|
||||
public static string FromPortableRelative(string root, string relative) =>
|
||||
Path.Combine(root, relative.Replace('/', Path.DirectorySeparatorChar));
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
namespace Titano.Core.Imaging;
|
||||
|
||||
/// <summary>How a frame's pixels were obtained (BRIEF §8.2). Logged per frame.</summary>
|
||||
public enum DecodeTier
|
||||
{
|
||||
/// <summary>Full-resolution decode of the main image (in-house or WIC).</summary>
|
||||
Native = 1,
|
||||
|
||||
/// <summary>Largest embedded JPEG preview; output resolution is capped to its size.</summary>
|
||||
EmbeddedPreview = 2,
|
||||
|
||||
/// <summary>No decoder could produce pixels; the frame is excluded from renders.</summary>
|
||||
Unavailable = 3,
|
||||
}
|
||||
|
||||
public enum DecodePurpose
|
||||
{
|
||||
Thumbnail,
|
||||
Analysis,
|
||||
Proxy,
|
||||
Render,
|
||||
}
|
||||
|
||||
/// <summary>A request to decode one file.</summary>
|
||||
/// <param name="Path">Absolute path of the source file.</param>
|
||||
/// <param name="MaxLongEdge">Maximum long edge of the result in pixels; 0 = native size.</param>
|
||||
/// <param name="Purpose">Lets providers trade quality for speed (e.g. bilinear demosaic for thumbnails).</param>
|
||||
/// <param name="ApplyOrientation">Rotate/flip according to the Exif orientation.</param>
|
||||
/// <param name="AllowPreview">Accept the embedded-preview tier when native decode is impossible.</param>
|
||||
/// <param name="ForcePreview">Use the embedded preview even when native decode is possible (fast paths).</param>
|
||||
public sealed record DecodeRequest(
|
||||
string Path,
|
||||
int MaxLongEdge = 0,
|
||||
DecodePurpose Purpose = DecodePurpose.Render,
|
||||
bool ApplyOrientation = true,
|
||||
bool AllowPreview = true,
|
||||
bool ForcePreview = false);
|
||||
|
||||
/// <summary>Decoded pixels plus how they were produced. Dispose to return the buffer to the pool.</summary>
|
||||
public sealed class DecodedImage(ImageBuffer pixels, DecodeTier tier, string decoder, int sourceWidth, int sourceHeight) : IDisposable
|
||||
{
|
||||
public ImageBuffer Pixels { get; } = pixels;
|
||||
public DecodeTier Tier { get; } = tier;
|
||||
|
||||
/// <summary>Short provider/decoder name for logs ("wic", "managed-jpeg", "managed-dng").</summary>
|
||||
public string Decoder { get; } = decoder;
|
||||
|
||||
/// <summary>Dimensions of the full-resolution source (before scaling), oriented.</summary>
|
||||
public int SourceWidth { get; } = sourceWidth;
|
||||
|
||||
public int SourceHeight { get; } = sourceHeight;
|
||||
|
||||
public void Dispose() => Pixels.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>A platform image decoder (WIC on Windows, managed codecs everywhere).</summary>
|
||||
public interface IImageDecoderProvider
|
||||
{
|
||||
/// <summary>Short name for logs and the Settings › Formats table.</summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>The best tier this provider can deliver for the format on this machine, or null.</summary>
|
||||
DecodeTier? TierFor(ImageFileFormat format);
|
||||
|
||||
bool CanDecode(ImageFormatInfo format) => TierFor(format.Format) is not null;
|
||||
|
||||
/// <summary>Decodes or returns null when this provider cannot handle the specific file.</summary>
|
||||
DecodedImage? Decode(DecodeRequest request, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
||||
/// <summary>Tries providers in priority order and applies the tier rules of BRIEF §8.2.</summary>
|
||||
public sealed class ImageDecoder(IReadOnlyList<IImageDecoderProvider> providers)
|
||||
{
|
||||
public IReadOnlyList<IImageDecoderProvider> Providers { get; } = providers;
|
||||
|
||||
/// <summary>Best tier available for <paramref name="format"/> across all providers.</summary>
|
||||
public DecodeTier TierFor(ImageFileFormat format)
|
||||
{
|
||||
var best = DecodeTier.Unavailable;
|
||||
foreach (var p in Providers)
|
||||
{
|
||||
if (p.TierFor(format) is { } t && t < best) best = t;
|
||||
}
|
||||
return best;
|
||||
}
|
||||
|
||||
/// <summary>Decodes with the first provider that succeeds; null means <see cref="DecodeTier.Unavailable"/>.</summary>
|
||||
public DecodedImage? Decode(DecodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
var format = ImageFormatInfo.FromPath(request.Path);
|
||||
List<Exception>? errors = null;
|
||||
foreach (var provider in Providers.OrderBy(p => p.TierFor(format.Format) ?? DecodeTier.Unavailable))
|
||||
{
|
||||
if (provider.TierFor(format.Format) is null) continue;
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
try
|
||||
{
|
||||
var result = provider.Decode(request, cancellationToken);
|
||||
if (result is not null) return result;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception ex) when (ex is IOException or InvalidDataException or NotSupportedException or FormatException or InvalidOperationException or System.Runtime.InteropServices.COMException)
|
||||
{
|
||||
(errors ??= []).Add(ex);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using System.Buffers;
|
||||
|
||||
namespace Titano.Core.Imaging;
|
||||
|
||||
/// <summary>
|
||||
/// Planar 32-bit float image in linear light (Rec.709/sRGB primaries). Channel 0..2 = R, G, B
|
||||
/// (or a single luminance channel). Nominal range 0..1; highlights may exceed 1.
|
||||
/// Storage is rented from <see cref="ArrayPool{T}"/> and returned on <see cref="Dispose"/>.
|
||||
/// </summary>
|
||||
public sealed class ImageBuffer : IDisposable
|
||||
{
|
||||
private float[]? _data;
|
||||
|
||||
public ImageBuffer(int width, int height, int channels = 3, bool clear = true)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(width);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(height);
|
||||
if (channels is not (1 or 3 or 4)) throw new ArgumentOutOfRangeException(nameof(channels), "1, 3 or 4 channels");
|
||||
Width = width;
|
||||
Height = height;
|
||||
Channels = channels;
|
||||
var length = checked(width * height * channels);
|
||||
_data = ArrayPool<float>.Shared.Rent(length);
|
||||
if (clear) Array.Clear(_data, 0, length);
|
||||
}
|
||||
|
||||
public int Width { get; }
|
||||
public int Height { get; }
|
||||
public int Channels { get; }
|
||||
public int PlaneLength => Width * Height;
|
||||
|
||||
/// <summary>All planes, channel-major: plane c starts at <c>c * Width * Height</c>.</summary>
|
||||
public Span<float> Data => Storage.AsSpan(0, PlaneLength * Channels);
|
||||
|
||||
public Span<float> Plane(int channel)
|
||||
{
|
||||
if ((uint)channel >= (uint)Channels) throw new ArgumentOutOfRangeException(nameof(channel));
|
||||
return Storage.AsSpan(channel * PlaneLength, PlaneLength);
|
||||
}
|
||||
|
||||
public Span<float> Row(int channel, int y) => Plane(channel).Slice(y * Width, Width);
|
||||
|
||||
public float this[int channel, int x, int y]
|
||||
{
|
||||
get => Storage[channel * PlaneLength + y * Width + x];
|
||||
set => Storage[channel * PlaneLength + y * Width + x] = value;
|
||||
}
|
||||
|
||||
/// <summary>Underlying array (may be longer than the image). Exposed for SIMD kernels.</summary>
|
||||
public float[] Storage => _data ?? throw new ObjectDisposedException(nameof(ImageBuffer));
|
||||
|
||||
public ImageBuffer Clone()
|
||||
{
|
||||
var copy = new ImageBuffer(Width, Height, Channels, clear: false);
|
||||
Data.CopyTo(copy.Data);
|
||||
return copy;
|
||||
}
|
||||
|
||||
public void CopyTo(ImageBuffer target)
|
||||
{
|
||||
if (target.Width != Width || target.Height != Height || target.Channels != Channels)
|
||||
throw new ArgumentException("Dimensions differ", nameof(target));
|
||||
Data.CopyTo(target.Data);
|
||||
}
|
||||
|
||||
/// <summary>Approximate managed memory held by the buffer, in bytes.</summary>
|
||||
public long ByteSize => (long)PlaneLength * Channels * sizeof(float);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
var data = Interlocked.Exchange(ref _data, null);
|
||||
if (data is not null) ArrayPool<float>.Shared.Return(data);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
namespace Titano.Core.Imaging;
|
||||
|
||||
/// <summary>Container/file formats recognised by signature and extension (BRIEF §8.1).</summary>
|
||||
public enum ImageFileFormat
|
||||
{
|
||||
Unknown = 0,
|
||||
Jpeg,
|
||||
Png,
|
||||
Tiff,
|
||||
Dng,
|
||||
Cr2,
|
||||
Cr3,
|
||||
Crw,
|
||||
Nef,
|
||||
Nrw,
|
||||
Arw,
|
||||
Srf,
|
||||
Sr2,
|
||||
Raf,
|
||||
Orf,
|
||||
Rw2,
|
||||
Raw,
|
||||
Pef,
|
||||
Srw,
|
||||
ThreeFr,
|
||||
Fff,
|
||||
Iiq,
|
||||
Rwl,
|
||||
Gpr,
|
||||
Heif,
|
||||
Avif,
|
||||
WebP,
|
||||
JpegXl,
|
||||
JpegXr,
|
||||
Bmp,
|
||||
Gif,
|
||||
}
|
||||
|
||||
public enum ImageFamily
|
||||
{
|
||||
Unknown,
|
||||
Jpeg,
|
||||
Png,
|
||||
Tiff,
|
||||
Dng,
|
||||
CameraRaw,
|
||||
Heif,
|
||||
WebP,
|
||||
Other,
|
||||
}
|
||||
|
||||
/// <summary>Static facts about a format: family, extensions, whether it is a camera RAW.</summary>
|
||||
public sealed record ImageFormatInfo(ImageFileFormat Format, ImageFamily Family, IReadOnlyList<string> Extensions)
|
||||
{
|
||||
public bool IsRaw => Family is ImageFamily.CameraRaw or ImageFamily.Dng;
|
||||
|
||||
private static readonly ImageFormatInfo[] All =
|
||||
[
|
||||
new(ImageFileFormat.Jpeg, ImageFamily.Jpeg, ["jpg", "jpeg", "jpe", "jfif"]),
|
||||
new(ImageFileFormat.Png, ImageFamily.Png, ["png"]),
|
||||
new(ImageFileFormat.Tiff, ImageFamily.Tiff, ["tif", "tiff"]),
|
||||
new(ImageFileFormat.Dng, ImageFamily.Dng, ["dng"]),
|
||||
new(ImageFileFormat.Cr2, ImageFamily.CameraRaw, ["cr2"]),
|
||||
new(ImageFileFormat.Cr3, ImageFamily.CameraRaw, ["cr3"]),
|
||||
new(ImageFileFormat.Crw, ImageFamily.CameraRaw, ["crw"]),
|
||||
new(ImageFileFormat.Nef, ImageFamily.CameraRaw, ["nef"]),
|
||||
new(ImageFileFormat.Nrw, ImageFamily.CameraRaw, ["nrw"]),
|
||||
new(ImageFileFormat.Arw, ImageFamily.CameraRaw, ["arw"]),
|
||||
new(ImageFileFormat.Srf, ImageFamily.CameraRaw, ["srf"]),
|
||||
new(ImageFileFormat.Sr2, ImageFamily.CameraRaw, ["sr2"]),
|
||||
new(ImageFileFormat.Raf, ImageFamily.CameraRaw, ["raf"]),
|
||||
new(ImageFileFormat.Orf, ImageFamily.CameraRaw, ["orf"]),
|
||||
new(ImageFileFormat.Rw2, ImageFamily.CameraRaw, ["rw2"]),
|
||||
new(ImageFileFormat.Raw, ImageFamily.CameraRaw, ["raw"]),
|
||||
new(ImageFileFormat.Pef, ImageFamily.CameraRaw, ["pef"]),
|
||||
new(ImageFileFormat.Srw, ImageFamily.CameraRaw, ["srw"]),
|
||||
new(ImageFileFormat.ThreeFr, ImageFamily.CameraRaw, ["3fr"]),
|
||||
new(ImageFileFormat.Fff, ImageFamily.CameraRaw, ["fff"]),
|
||||
new(ImageFileFormat.Iiq, ImageFamily.CameraRaw, ["iiq"]),
|
||||
new(ImageFileFormat.Rwl, ImageFamily.CameraRaw, ["rwl"]),
|
||||
new(ImageFileFormat.Gpr, ImageFamily.CameraRaw, ["gpr"]),
|
||||
new(ImageFileFormat.Heif, ImageFamily.Heif, ["heic", "heif", "hif"]),
|
||||
new(ImageFileFormat.Avif, ImageFamily.Heif, ["avif"]),
|
||||
new(ImageFileFormat.WebP, ImageFamily.WebP, ["webp"]),
|
||||
new(ImageFileFormat.JpegXl, ImageFamily.Other, ["jxl"]),
|
||||
new(ImageFileFormat.JpegXr, ImageFamily.Other, ["jxr", "wdp", "hdp"]),
|
||||
new(ImageFileFormat.Bmp, ImageFamily.Other, ["bmp"]),
|
||||
new(ImageFileFormat.Gif, ImageFamily.Other, ["gif"]),
|
||||
];
|
||||
|
||||
private static readonly Dictionary<string, ImageFormatInfo> ByExtension =
|
||||
All.SelectMany(i => i.Extensions.Select(e => (e, i))).ToDictionary(p => p.e, p => p.i, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public static IReadOnlyList<ImageFormatInfo> Known => All;
|
||||
|
||||
public static ImageFormatInfo Unknown { get; } = new(ImageFileFormat.Unknown, ImageFamily.Unknown, []);
|
||||
|
||||
public static ImageFormatInfo Of(ImageFileFormat format) => All.FirstOrDefault(i => i.Format == format) ?? Unknown;
|
||||
|
||||
/// <summary>Format implied by a file name's extension (signature sniffing lives in Metadata).</summary>
|
||||
public static ImageFormatInfo FromPath(string path)
|
||||
{
|
||||
var ext = Path.GetExtension(path).TrimStart('.');
|
||||
return ByExtension.TryGetValue(ext, out var info) ? info : Unknown;
|
||||
}
|
||||
|
||||
/// <summary>True when the extension is one Titano imports as a photo.</summary>
|
||||
public static bool IsSupportedExtension(string path) => FromPath(path).Format != ImageFileFormat.Unknown;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace Titano.Core.Localization;
|
||||
|
||||
/// <summary>Languages shipped with Titano (BRIEF §16). English is the source.</summary>
|
||||
public static class Languages
|
||||
{
|
||||
public static readonly IReadOnlyList<string> Shipped =
|
||||
[
|
||||
"en", "it", "de", "fr", "es", "pt-BR", "pt-PT", "nl", "pl", "cs", "sk", "hu", "ro", "sv", "da", "nb",
|
||||
"fi", "ru", "uk", "tr", "el", "bg", "hr", "sl", "lt", "lv", "et", "ja", "zh-Hans", "zh-Hant", "ko",
|
||||
"ar", "he", "hi", "id", "ms", "vi", "th",
|
||||
];
|
||||
|
||||
/// <summary>Languages whose UI layout is mirrored.</summary>
|
||||
public static readonly IReadOnlySet<string> RightToLeft = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "ar", "he", "fa", "ur" };
|
||||
|
||||
/// <summary>The shipped language that best matches <paramref name="culture"/>, falling back to English.</summary>
|
||||
public static CultureInfo BestMatch(CultureInfo culture)
|
||||
{
|
||||
for (var c = culture; !Equals(c, CultureInfo.InvariantCulture); c = c.Parent)
|
||||
{
|
||||
var hit = Shipped.FirstOrDefault(s => s.Equals(c.Name, StringComparison.OrdinalIgnoreCase));
|
||||
if (hit is not null) return CultureInfo.GetCultureInfo(hit);
|
||||
}
|
||||
if (culture.TwoLetterISOLanguageName == "pt") return CultureInfo.GetCultureInfo("pt-PT");
|
||||
if (culture.TwoLetterISOLanguageName == "zh") return CultureInfo.GetCultureInfo("zh-Hans");
|
||||
if (culture.TwoLetterISOLanguageName is "no" or "nn") return CultureInfo.GetCultureInfo("nb");
|
||||
return CultureInfo.GetCultureInfo("en");
|
||||
}
|
||||
|
||||
/// <summary>Native display name ("Italiano", "日本語").</summary>
|
||||
public static string NativeName(string code)
|
||||
{
|
||||
var c = CultureInfo.GetCultureInfo(code);
|
||||
var name = c.NativeName;
|
||||
return name.Length > 0 ? char.ToUpper(name[0], c) + name[1..] : code;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
|
||||
namespace Titano.Core.Localization;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime string catalog. Keys are stable identifiers of the form <c>Area.Group.Name</c>; the first
|
||||
/// segment selects the resource file <c>i18n/<culture>/<Area>.resx</c>. English is the source.
|
||||
/// </summary>
|
||||
public static class Loc
|
||||
{
|
||||
private const string BaseNamePrefix = "Titano.Core.i18n.";
|
||||
private static readonly ConcurrentDictionary<string, ResourceManager> Managers = new(StringComparer.Ordinal);
|
||||
private static CultureInfo _culture = CultureInfo.CurrentUICulture;
|
||||
|
||||
/// <summary>Raised after <see cref="SetCulture"/> so bound UI can refresh without restart.</summary>
|
||||
public static event EventHandler? CultureChanged;
|
||||
|
||||
/// <summary>Raised once per missing key (used by tests and diagnostics).</summary>
|
||||
public static event Action<string>? MissingKey;
|
||||
|
||||
public static CultureInfo Culture => _culture;
|
||||
|
||||
/// <summary>Text direction of the current culture.</summary>
|
||||
public static bool IsRightToLeft => _culture.TextInfo.IsRightToLeft;
|
||||
|
||||
public static void SetCulture(CultureInfo culture)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(culture);
|
||||
if (Equals(culture, _culture)) return;
|
||||
_culture = culture;
|
||||
CultureChanged?.Invoke(null, EventArgs.Empty);
|
||||
}
|
||||
|
||||
/// <summary>Returns the localized string for <paramref name="key"/> in the current culture.</summary>
|
||||
public static string L(string key) => Get(key, _culture) ?? Missing(key);
|
||||
|
||||
/// <summary>Returns the localized composite format for <paramref name="key"/> filled with <paramref name="args"/>.</summary>
|
||||
public static string L(string key, params object?[] args)
|
||||
{
|
||||
var format = Get(key, _culture);
|
||||
if (format is null) return Missing(key);
|
||||
return args.Length == 0 ? format : string.Format(_culture, format, args);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Plural-aware lookup: resolves <c>key.one</c>, <c>key.few</c>, <c>key.many</c> or <c>key.other</c>
|
||||
/// using CLDR rules of the current language; <c>{0}</c> receives the count.
|
||||
/// </summary>
|
||||
public static string Plural(string key, long count, params object?[] args)
|
||||
{
|
||||
var category = PluralRules.Select(_culture, count);
|
||||
var format = Get(key + "." + PluralRules.Suffix(category), _culture) ?? Get(key + ".other", _culture);
|
||||
if (format is null) return Missing(key);
|
||||
var all = new object?[args.Length + 1];
|
||||
all[0] = count;
|
||||
Array.Copy(args, 0, all, 1, args.Length);
|
||||
return string.Format(_culture, format, all);
|
||||
}
|
||||
|
||||
/// <summary>Looks a key up in a specific culture (falls back to parents and English); null when absent.</summary>
|
||||
public static string? Get(string key, CultureInfo culture)
|
||||
{
|
||||
var dot = key.IndexOf('.', StringComparison.Ordinal);
|
||||
if (dot <= 0) return null;
|
||||
var area = key[..dot];
|
||||
var manager = Managers.GetOrAdd(area, static a => new ResourceManager(BaseNamePrefix + a, typeof(Loc).Assembly));
|
||||
try
|
||||
{
|
||||
return manager.GetString(key, culture);
|
||||
}
|
||||
catch (MissingManifestResourceException)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Every key and English value of an area, for tooling and the web admin export.</summary>
|
||||
public static IReadOnlyDictionary<string, string> GetArea(string area, CultureInfo culture)
|
||||
{
|
||||
var manager = Managers.GetOrAdd(area, static a => new ResourceManager(BaseNamePrefix + a, typeof(Loc).Assembly));
|
||||
var result = new Dictionary<string, string>(StringComparer.Ordinal);
|
||||
// Walk from invariant to specific so the most specific value wins.
|
||||
var chain = new List<CultureInfo>();
|
||||
for (var c = culture; !Equals(c, CultureInfo.InvariantCulture); c = c.Parent) chain.Add(c);
|
||||
chain.Add(CultureInfo.InvariantCulture);
|
||||
chain.Reverse();
|
||||
foreach (var c in chain)
|
||||
{
|
||||
ResourceSet? set;
|
||||
try
|
||||
{
|
||||
set = manager.GetResourceSet(c, createIfNotExists: true, tryParents: false);
|
||||
}
|
||||
catch (MissingManifestResourceException)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (set is null) continue;
|
||||
foreach (System.Collections.DictionaryEntry entry in set)
|
||||
{
|
||||
if (entry.Key is string k && entry.Value is string v) result[k] = v;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private static string Missing(string key)
|
||||
{
|
||||
MissingKey?.Invoke(key);
|
||||
return "⟦" + key + "⟧";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace Titano.Core.Localization;
|
||||
|
||||
public enum PluralCategory
|
||||
{
|
||||
One,
|
||||
Few,
|
||||
Many,
|
||||
Other,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Minimal CLDR cardinal plural rules for the shipped languages (integers only, which is all the UI needs).
|
||||
/// </summary>
|
||||
public static class PluralRules
|
||||
{
|
||||
public static string Suffix(PluralCategory c) => c switch
|
||||
{
|
||||
PluralCategory.One => "one",
|
||||
PluralCategory.Few => "few",
|
||||
PluralCategory.Many => "many",
|
||||
_ => "other",
|
||||
};
|
||||
|
||||
public static PluralCategory Select(CultureInfo culture, long count)
|
||||
{
|
||||
var n = Math.Abs(count);
|
||||
var lang = culture.TwoLetterISOLanguageName;
|
||||
long mod10 = n % 10, mod100 = n % 100;
|
||||
switch (lang)
|
||||
{
|
||||
// No plural distinction.
|
||||
case "ja" or "zh" or "ko" or "vi" or "th" or "id" or "ms":
|
||||
return PluralCategory.Other;
|
||||
|
||||
// one: 0 and 1.
|
||||
case "fr" or "hi":
|
||||
return n is 0 or 1 ? PluralCategory.One : PluralCategory.Other;
|
||||
|
||||
case "pt" when culture.Name.Equals("pt-BR", StringComparison.OrdinalIgnoreCase):
|
||||
return n is 0 or 1 ? PluralCategory.One : PluralCategory.Other;
|
||||
|
||||
// East Slavic.
|
||||
case "ru" or "uk":
|
||||
if (mod10 == 1 && mod100 != 11) return PluralCategory.One;
|
||||
if (mod10 is >= 2 and <= 4 && mod100 is < 12 or > 14) return PluralCategory.Few;
|
||||
return PluralCategory.Many;
|
||||
|
||||
case "pl":
|
||||
if (n == 1) return PluralCategory.One;
|
||||
if (mod10 is >= 2 and <= 4 && mod100 is < 12 or > 14) return PluralCategory.Few;
|
||||
return PluralCategory.Many;
|
||||
|
||||
case "cs" or "sk":
|
||||
if (n == 1) return PluralCategory.One;
|
||||
if (n is >= 2 and <= 4) return PluralCategory.Few;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "hr" or "sr" or "bs":
|
||||
if (mod10 == 1 && mod100 != 11) return PluralCategory.One;
|
||||
if (mod10 is >= 2 and <= 4 && mod100 is < 12 or > 14) return PluralCategory.Few;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "sl":
|
||||
if (mod100 == 1) return PluralCategory.One;
|
||||
if (mod100 == 2) return PluralCategory.Few; // CLDR "two", folded into few
|
||||
if (mod100 is 3 or 4) return PluralCategory.Few;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "lt":
|
||||
if (mod10 == 1 && mod100 is < 11 or > 19) return PluralCategory.One;
|
||||
if (mod10 is >= 2 and <= 9 && mod100 is < 11 or > 19) return PluralCategory.Few;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "lv":
|
||||
if (mod10 == 0 || mod100 is >= 11 and <= 19) return PluralCategory.Many; // CLDR "zero"
|
||||
if (mod10 == 1 && mod100 != 11) return PluralCategory.One;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "ro":
|
||||
if (n == 1) return PluralCategory.One;
|
||||
if (n == 0 || mod100 is >= 2 and <= 19) return PluralCategory.Few;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "ar":
|
||||
if (n == 1) return PluralCategory.One;
|
||||
if (n == 2) return PluralCategory.Few; // CLDR "two", folded
|
||||
if (mod100 is >= 3 and <= 10) return PluralCategory.Few;
|
||||
if (mod100 is >= 11 and <= 99) return PluralCategory.Many;
|
||||
return PluralCategory.Other;
|
||||
|
||||
case "he":
|
||||
if (n == 1) return PluralCategory.One;
|
||||
if (n == 2) return PluralCategory.Few; // CLDR "two", folded
|
||||
return PluralCategory.Other;
|
||||
|
||||
// Default Germanic/Romance rule: one for exactly 1.
|
||||
default:
|
||||
return n == 1 ? PluralCategory.One : PluralCategory.Other;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using Titano.Core.Imaging;
|
||||
using Titano.Core.Model;
|
||||
|
||||
namespace Titano.Core.Metadata;
|
||||
|
||||
public enum PreviewKind
|
||||
{
|
||||
Thumbnail,
|
||||
Preview,
|
||||
FullSize,
|
||||
}
|
||||
|
||||
/// <summary>An embedded JPEG inside a RAW/TIFF/HEIF/JPEG(MPF) container.</summary>
|
||||
public sealed record EmbeddedPreview(long Offset, long Length, int Width, int Height, PreviewKind Kind);
|
||||
|
||||
public sealed record GpsPosition(double Latitude, double Longitude, double? Altitude, DateTime? UtcTimestamp);
|
||||
|
||||
/// <summary>Everything Titano reads from one photo's metadata (BRIEF §9). Never throws while parsing:
|
||||
/// malformed input yields partial data plus <see cref="Warnings"/>.</summary>
|
||||
public sealed record FrameMetadata
|
||||
{
|
||||
public ImageFileFormat Format { get; init; }
|
||||
public string? Make { get; init; }
|
||||
public string? Model { get; init; }
|
||||
public string? BodySerial { get; init; }
|
||||
public string? LensModel { get; init; }
|
||||
public string? Software { get; init; }
|
||||
public string? Artist { get; init; }
|
||||
public string? Copyright { get; init; }
|
||||
|
||||
/// <summary>Camera wall-clock time including sub-seconds (DateTimeKind.Unspecified).</summary>
|
||||
public DateTime? CapturedAt { get; init; }
|
||||
|
||||
public int? UtcOffsetMinutes { get; init; }
|
||||
public TimestampSource TimestampSource { get; init; }
|
||||
public double? ExposureTime { get; init; }
|
||||
public double? FNumber { get; init; }
|
||||
public int? Iso { get; init; }
|
||||
public double? FocalLength { get; init; }
|
||||
public double? FocalLength35 { get; init; }
|
||||
public double? ExposureBias { get; init; }
|
||||
public int? ExposureProgram { get; init; }
|
||||
public int? MeteringMode { get; init; }
|
||||
public int? WhiteBalanceMode { get; init; }
|
||||
public int? ColorTemperature { get; init; }
|
||||
public int? Flash { get; init; }
|
||||
|
||||
/// <summary>Exif orientation 1–8.</summary>
|
||||
public int Orientation { get; init; } = 1;
|
||||
|
||||
/// <summary>Dimensions of the main (largest) image as stored, before orientation.</summary>
|
||||
public int Width { get; init; }
|
||||
|
||||
public int Height { get; init; }
|
||||
public int? BitsPerSample { get; init; }
|
||||
public GpsPosition? Gps { get; init; }
|
||||
public int? Rating { get; init; }
|
||||
public string? Label { get; init; }
|
||||
public long? ShutterCount { get; init; }
|
||||
public bool? ImageStabilization { get; init; }
|
||||
|
||||
/// <summary>Embedded JPEGs, largest first.</summary>
|
||||
public IReadOnlyList<EmbeddedPreview> Previews { get; init; } = [];
|
||||
|
||||
public IReadOnlyList<string> Warnings { get; init; } = [];
|
||||
|
||||
/// <summary>Width/height after applying orientation 5–8 (90° rotations).</summary>
|
||||
public (int Width, int Height) OrientedSize => Orientation is >= 5 and <= 8 ? (Height, Width) : (Width, Height);
|
||||
|
||||
public EmbeddedPreview? LargestPreview => Previews.Count > 0 ? Previews[0] : null;
|
||||
}
|
||||
@@ -0,0 +1,251 @@
|
||||
using System.Buffers.Binary;
|
||||
using System.Text;
|
||||
|
||||
namespace Titano.Core.Metadata.Tiff;
|
||||
|
||||
/// <summary>One IFD entry. Small values (≤ 4 bytes) are inline; larger ones live at <see cref="ValueOffset"/>.</summary>
|
||||
public readonly record struct IfdEntry(ushort Tag, TiffType Type, uint Count, uint ValueOffset, long EntryPosition)
|
||||
{
|
||||
public long ByteLength => (long)Count * TiffTypeInfo.Size(Type);
|
||||
public bool IsInline => ByteLength <= 4;
|
||||
|
||||
/// <summary>Absolute file position of the value bytes (inline values sit inside the entry).</summary>
|
||||
public long ValuePosition(long tiffBase) => IsInline ? EntryPosition + 8 : tiffBase + ValueOffset;
|
||||
}
|
||||
|
||||
/// <summary>An image file directory: its entries and the offset of the next IFD (0 = none).</summary>
|
||||
public sealed class Ifd(long position, IReadOnlyDictionary<ushort, IfdEntry> entries, uint nextOffset)
|
||||
{
|
||||
public long Position { get; } = position;
|
||||
public IReadOnlyDictionary<ushort, IfdEntry> Entries { get; } = entries;
|
||||
public uint NextOffset { get; } = nextOffset;
|
||||
public bool Has(ushort tag) => Entries.ContainsKey(tag);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fuzz-safe TIFF structure reader over a seekable stream. Reads only the bytes it needs (never the whole
|
||||
/// file), validates every offset against the stream length, caps entry counts and detects IFD loops.
|
||||
/// Also used for TIFF structures embedded at a base offset (Exif APP1, RAF, CR3 CMT boxes, MakerNotes).
|
||||
/// </summary>
|
||||
public sealed class TiffReader
|
||||
{
|
||||
public const int MaxEntriesPerIfd = 4096;
|
||||
public const int MaxIfdChain = 64;
|
||||
public const long MaxValueBytes = 64L * 1024 * 1024;
|
||||
|
||||
private readonly Stream _stream;
|
||||
private readonly List<string> _warnings = [];
|
||||
|
||||
private TiffReader(Stream stream, long tiffBase, bool littleEndian, uint firstIfdOffset)
|
||||
{
|
||||
_stream = stream;
|
||||
Base = tiffBase;
|
||||
LittleEndian = littleEndian;
|
||||
FirstIfdOffset = firstIfdOffset;
|
||||
}
|
||||
|
||||
/// <summary>Absolute position of the TIFF header ("II*\0"/"MM\0*"); IFD offsets are relative to it.</summary>
|
||||
public long Base { get; }
|
||||
|
||||
public bool LittleEndian { get; }
|
||||
public uint FirstIfdOffset { get; }
|
||||
public IReadOnlyList<string> Warnings => _warnings;
|
||||
public long StreamLength => _stream.Length;
|
||||
|
||||
/// <summary>Opens a TIFF header at <paramref name="tiffBase"/>; null when the bytes are not a TIFF header.
|
||||
/// Accepts the ORF ("IIRO"/"IIRS") and RW2 ("IIU\0") header variants.</summary>
|
||||
public static TiffReader? Open(Stream stream, long tiffBase = 0)
|
||||
{
|
||||
if (!stream.CanSeek || tiffBase < 0 || tiffBase + 8 > stream.Length) return null;
|
||||
Span<byte> h = stackalloc byte[8];
|
||||
stream.Position = tiffBase;
|
||||
if (stream.ReadAtLeast(h, 8, throwOnEndOfStream: false) < 8) return null;
|
||||
bool le;
|
||||
if (h[0] == 'I' && h[1] == 'I') le = true;
|
||||
else if (h[0] == 'M' && h[1] == 'M') le = false;
|
||||
else return null;
|
||||
var magic = le ? BinaryPrimitives.ReadUInt16LittleEndian(h[2..]) : BinaryPrimitives.ReadUInt16BigEndian(h[2..]);
|
||||
if (magic is not (42 or 0x4F52 or 0x5352 or 0x0055)) return null;
|
||||
var first = le ? BinaryPrimitives.ReadUInt32LittleEndian(h[4..]) : BinaryPrimitives.ReadUInt32BigEndian(h[4..]);
|
||||
return new TiffReader(stream, tiffBase, le, first);
|
||||
}
|
||||
|
||||
/// <summary>Creates a reader for an IFD structure without a header (e.g. maker notes) with a known byte order.</summary>
|
||||
public static TiffReader ForEmbedded(Stream stream, long tiffBase, bool littleEndian) => new(stream, tiffBase, littleEndian, 0);
|
||||
|
||||
/// <summary>Reads the chain of top-level IFDs (IFD0, IFD1, …).</summary>
|
||||
public IReadOnlyList<Ifd> ReadChain()
|
||||
{
|
||||
var list = new List<Ifd>();
|
||||
var seen = new HashSet<long>();
|
||||
var offset = FirstIfdOffset;
|
||||
while (offset != 0 && list.Count < MaxIfdChain)
|
||||
{
|
||||
var ifd = ReadIfd(offset, seen);
|
||||
if (ifd is null) break;
|
||||
list.Add(ifd);
|
||||
offset = ifd.NextOffset;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>Reads one IFD at a base-relative offset; null if out of bounds or already visited.</summary>
|
||||
public Ifd? ReadIfd(uint offset, HashSet<long>? visited = null)
|
||||
{
|
||||
var pos = Base + offset;
|
||||
if (pos + 2 > _stream.Length || pos < 0)
|
||||
{
|
||||
Warn($"IFD offset {offset} beyond end of file");
|
||||
return null;
|
||||
}
|
||||
if (visited is not null && !visited.Add(pos))
|
||||
{
|
||||
Warn($"IFD loop at {offset}");
|
||||
return null;
|
||||
}
|
||||
Span<byte> two = stackalloc byte[2];
|
||||
if (!ReadAt(pos, two)) return null;
|
||||
var count = U16(two);
|
||||
if (count == 0 || count > MaxEntriesPerIfd)
|
||||
{
|
||||
Warn($"IFD at {offset} has {count} entries");
|
||||
return null;
|
||||
}
|
||||
var bytes = new byte[count * 12 + 4];
|
||||
var available = (int)Math.Min(bytes.Length, _stream.Length - (pos + 2));
|
||||
if (!ReadAt(pos + 2, bytes.AsSpan(0, available))) return null;
|
||||
var entries = new Dictionary<ushort, IfdEntry>(count);
|
||||
var complete = available / 12;
|
||||
for (var i = 0; i < Math.Min(count, complete); i++)
|
||||
{
|
||||
var e = bytes.AsSpan(i * 12, 12);
|
||||
var tag = U16(e);
|
||||
var type = (TiffType)U16(e[2..]);
|
||||
var n = U32(e[4..]);
|
||||
var value = U32(e[8..]);
|
||||
if (TiffTypeInfo.Size(type) == 0) continue;
|
||||
entries.TryAdd(tag, new IfdEntry(tag, type, n, value, pos + 2 + i * 12));
|
||||
}
|
||||
if (complete < count) Warn($"IFD at {offset} truncated");
|
||||
var next = available >= count * 12 + 4 ? U32(bytes.AsSpan(count * 12)) : 0u;
|
||||
return new Ifd(pos, entries, next);
|
||||
}
|
||||
|
||||
/// <summary>Raw value bytes of an entry (bounded by <see cref="MaxValueBytes"/>); null when invalid.</summary>
|
||||
public byte[]? ReadBytes(IfdEntry e, long maxBytes = MaxValueBytes)
|
||||
{
|
||||
var length = e.ByteLength;
|
||||
if (length <= 0 || length > maxBytes) return null;
|
||||
var pos = e.ValuePosition(Base);
|
||||
if (pos < 0 || pos + length > _stream.Length)
|
||||
{
|
||||
Warn($"Tag 0x{e.Tag:X4} value outside file");
|
||||
return null;
|
||||
}
|
||||
var buffer = new byte[length];
|
||||
return ReadAt(pos, buffer) ? buffer : null;
|
||||
}
|
||||
|
||||
public uint? GetUInt(Ifd ifd, ushort tag) => ifd.Entries.TryGetValue(tag, out var e) ? GetUInts(e) is { Length: > 0 } v ? v[0] : null : null;
|
||||
|
||||
public uint[]? GetUInts(Ifd ifd, ushort tag) => ifd.Entries.TryGetValue(tag, out var e) ? GetUInts(e) : null;
|
||||
|
||||
/// <summary>Integer values of BYTE/SHORT/LONG/IFD (and signed variants) entries.</summary>
|
||||
public uint[]? GetUInts(IfdEntry e)
|
||||
{
|
||||
var raw = ReadBytes(e);
|
||||
if (raw is null) return null;
|
||||
var size = TiffTypeInfo.Size(e.Type);
|
||||
var result = new uint[e.Count];
|
||||
for (var i = 0; i < e.Count; i++)
|
||||
{
|
||||
var s = raw.AsSpan(i * size);
|
||||
result[i] = e.Type switch
|
||||
{
|
||||
TiffType.Byte or TiffType.Undefined or TiffType.Ascii => s[0],
|
||||
TiffType.SByte => (uint)(sbyte)s[0],
|
||||
TiffType.Short => U16(s),
|
||||
TiffType.SShort => (uint)(short)U16(s),
|
||||
TiffType.Long or TiffType.Ifd or TiffType.SLong => U32(s),
|
||||
_ => 0,
|
||||
};
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public double? GetDouble(Ifd ifd, ushort tag) => GetDoubles(ifd, tag) is { Length: > 0 } v ? v[0] : null;
|
||||
|
||||
public double[]? GetDoubles(Ifd ifd, ushort tag) => ifd.Entries.TryGetValue(tag, out var e) ? GetDoubles(e) : null;
|
||||
|
||||
/// <summary>Numeric values of any numeric type as doubles (rationals divided; 0-denominator → NaN skipped as 0).</summary>
|
||||
public double[]? GetDoubles(IfdEntry e)
|
||||
{
|
||||
var raw = ReadBytes(e);
|
||||
if (raw is null) return null;
|
||||
var size = TiffTypeInfo.Size(e.Type);
|
||||
var result = new double[e.Count];
|
||||
for (var i = 0; i < e.Count; i++)
|
||||
{
|
||||
var s = raw.AsSpan(i * size);
|
||||
result[i] = e.Type switch
|
||||
{
|
||||
TiffType.Rational => U32(s[4..]) == 0 ? 0 : (double)U32(s) / U32(s[4..]),
|
||||
TiffType.SRational => (int)U32(s[4..]) == 0 ? 0 : (double)(int)U32(s) / (int)U32(s[4..]),
|
||||
TiffType.Float => BitConverter.Int32BitsToSingle((int)U32(s)),
|
||||
TiffType.Double => BitConverter.Int64BitsToDouble((long)U64(s)),
|
||||
TiffType.Byte or TiffType.Undefined => s[0],
|
||||
TiffType.SByte => (sbyte)s[0],
|
||||
TiffType.Short => U16(s),
|
||||
TiffType.SShort => (short)U16(s),
|
||||
TiffType.Long or TiffType.Ifd => U32(s),
|
||||
TiffType.SLong => (int)U32(s),
|
||||
_ => 0,
|
||||
};
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>ASCII/UTF-8 string value with trailing NULs and spaces trimmed; null when empty.</summary>
|
||||
public string? GetString(Ifd ifd, ushort tag)
|
||||
{
|
||||
if (!ifd.Entries.TryGetValue(tag, out var e)) return null;
|
||||
var raw = ReadBytes(e, 1 << 20);
|
||||
if (raw is null) return null;
|
||||
var end = Array.IndexOf(raw, (byte)0);
|
||||
var s = Encoding.UTF8.GetString(raw, 0, end < 0 ? raw.Length : end).Trim();
|
||||
return s.Length == 0 ? null : s;
|
||||
}
|
||||
|
||||
/// <summary>Reads arbitrary bytes at a base-relative offset (bounds-checked).</summary>
|
||||
public byte[]? ReadRelative(long offset, int length)
|
||||
{
|
||||
if (length <= 0 || length > MaxValueBytes) return null;
|
||||
var pos = Base + offset;
|
||||
if (pos < 0 || pos + length > _stream.Length) return null;
|
||||
var buffer = new byte[length];
|
||||
return ReadAt(pos, buffer) ? buffer : null;
|
||||
}
|
||||
|
||||
public ushort U16(ReadOnlySpan<byte> s) => LittleEndian ? BinaryPrimitives.ReadUInt16LittleEndian(s) : BinaryPrimitives.ReadUInt16BigEndian(s);
|
||||
public uint U32(ReadOnlySpan<byte> s) => LittleEndian ? BinaryPrimitives.ReadUInt32LittleEndian(s) : BinaryPrimitives.ReadUInt32BigEndian(s);
|
||||
public ulong U64(ReadOnlySpan<byte> s) => LittleEndian ? BinaryPrimitives.ReadUInt64LittleEndian(s) : BinaryPrimitives.ReadUInt64BigEndian(s);
|
||||
|
||||
public void Warn(string message)
|
||||
{
|
||||
if (_warnings.Count < 32) _warnings.Add(message);
|
||||
}
|
||||
|
||||
private bool ReadAt(long position, Span<byte> buffer)
|
||||
{
|
||||
try
|
||||
{
|
||||
_stream.Position = position;
|
||||
return _stream.ReadAtLeast(buffer, buffer.Length, throwOnEndOfStream: false) == buffer.Length;
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
Warn("I/O error: " + ex.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
namespace Titano.Core.Metadata.Tiff;
|
||||
|
||||
/// <summary>Tag numbers used across TIFF, Exif, GPS and DNG.</summary>
|
||||
public static class TiffTags
|
||||
{
|
||||
// Baseline TIFF
|
||||
public const ushort NewSubfileType = 0x00FE;
|
||||
public const ushort ImageWidth = 0x0100;
|
||||
public const ushort ImageLength = 0x0101;
|
||||
public const ushort BitsPerSample = 0x0102;
|
||||
public const ushort Compression = 0x0103;
|
||||
public const ushort PhotometricInterpretation = 0x0106;
|
||||
public const ushort ImageDescription = 0x010E;
|
||||
public const ushort Make = 0x010F;
|
||||
public const ushort Model = 0x0110;
|
||||
public const ushort StripOffsets = 0x0111;
|
||||
public const ushort Orientation = 0x0112;
|
||||
public const ushort SamplesPerPixel = 0x0115;
|
||||
public const ushort RowsPerStrip = 0x0116;
|
||||
public const ushort StripByteCounts = 0x0117;
|
||||
public const ushort XResolution = 0x011A;
|
||||
public const ushort YResolution = 0x011B;
|
||||
public const ushort PlanarConfiguration = 0x011C;
|
||||
public const ushort ResolutionUnit = 0x0128;
|
||||
public const ushort Software = 0x0131;
|
||||
public const ushort DateTime = 0x0132;
|
||||
public const ushort Artist = 0x013B;
|
||||
public const ushort Predictor = 0x013D;
|
||||
public const ushort TileWidth = 0x0142;
|
||||
public const ushort TileLength = 0x0143;
|
||||
public const ushort TileOffsets = 0x0144;
|
||||
public const ushort TileByteCounts = 0x0145;
|
||||
public const ushort SubIfds = 0x014A;
|
||||
public const ushort ExtraSamples = 0x0152;
|
||||
public const ushort SampleFormat = 0x0153;
|
||||
public const ushort JpegTables = 0x015B;
|
||||
public const ushort JpegInterchangeFormat = 0x0201;
|
||||
public const ushort JpegInterchangeFormatLength = 0x0202;
|
||||
public const ushort YCbCrSubSampling = 0x0212;
|
||||
public const ushort Rating = 0x4746;
|
||||
public const ushort Xmp = 0x02BC;
|
||||
public const ushort Copyright = 0x8298;
|
||||
public const ushort ExifIfd = 0x8769;
|
||||
public const ushort GpsIfd = 0x8825;
|
||||
public const ushort InteropIfd = 0xA005;
|
||||
|
||||
// Exif
|
||||
public const ushort ExposureTime = 0x829A;
|
||||
public const ushort FNumber = 0x829D;
|
||||
public const ushort ExposureProgram = 0x8822;
|
||||
public const ushort IsoSpeedRatings = 0x8827;
|
||||
public const ushort SensitivityType = 0x8830;
|
||||
public const ushort RecommendedExposureIndex = 0x8832;
|
||||
public const ushort ExifVersion = 0x9000;
|
||||
public const ushort DateTimeOriginal = 0x9003;
|
||||
public const ushort DateTimeDigitized = 0x9004;
|
||||
public const ushort OffsetTime = 0x9010;
|
||||
public const ushort OffsetTimeOriginal = 0x9011;
|
||||
public const ushort OffsetTimeDigitized = 0x9012;
|
||||
public const ushort ShutterSpeedValue = 0x9201;
|
||||
public const ushort ApertureValue = 0x9202;
|
||||
public const ushort ExposureBiasValue = 0x9204;
|
||||
public const ushort MeteringMode = 0x9207;
|
||||
public const ushort Flash = 0x9209;
|
||||
public const ushort FocalLength = 0x920A;
|
||||
public const ushort MakerNote = 0x927C;
|
||||
public const ushort SubSecTime = 0x9290;
|
||||
public const ushort SubSecTimeOriginal = 0x9291;
|
||||
public const ushort SubSecTimeDigitized = 0x9292;
|
||||
public const ushort ColorSpace = 0xA001;
|
||||
public const ushort PixelXDimension = 0xA002;
|
||||
public const ushort PixelYDimension = 0xA003;
|
||||
public const ushort WhiteBalance = 0xA403;
|
||||
public const ushort FocalLengthIn35mmFilm = 0xA405;
|
||||
public const ushort BodySerialNumber = 0xA431;
|
||||
public const ushort LensSpecification = 0xA432;
|
||||
public const ushort LensMake = 0xA433;
|
||||
public const ushort LensModel = 0xA434;
|
||||
|
||||
// GPS
|
||||
public const ushort GpsLatitudeRef = 0x0001;
|
||||
public const ushort GpsLatitude = 0x0002;
|
||||
public const ushort GpsLongitudeRef = 0x0003;
|
||||
public const ushort GpsLongitude = 0x0004;
|
||||
public const ushort GpsAltitudeRef = 0x0005;
|
||||
public const ushort GpsAltitude = 0x0006;
|
||||
public const ushort GpsTimeStamp = 0x0007;
|
||||
public const ushort GpsDateStamp = 0x001D;
|
||||
|
||||
// DNG
|
||||
public const ushort CfaRepeatPatternDim = 0x828D;
|
||||
public const ushort CfaPattern = 0x828E;
|
||||
public const ushort DngVersion = 0xC612;
|
||||
public const ushort DngBackwardVersion = 0xC613;
|
||||
public const ushort UniqueCameraModel = 0xC614;
|
||||
public const ushort CfaPlaneColor = 0xC616;
|
||||
public const ushort CfaLayout = 0xC617;
|
||||
public const ushort LinearizationTable = 0xC618;
|
||||
public const ushort BlackLevelRepeatDim = 0xC619;
|
||||
public const ushort BlackLevel = 0xC61A;
|
||||
public const ushort BlackLevelDeltaH = 0xC61B;
|
||||
public const ushort BlackLevelDeltaV = 0xC61C;
|
||||
public const ushort WhiteLevel = 0xC61D;
|
||||
public const ushort DefaultScale = 0xC61E;
|
||||
public const ushort DefaultCropOrigin = 0xC61F;
|
||||
public const ushort DefaultCropSize = 0xC620;
|
||||
public const ushort ColorMatrix1 = 0xC621;
|
||||
public const ushort ColorMatrix2 = 0xC622;
|
||||
public const ushort CameraCalibration1 = 0xC623;
|
||||
public const ushort CameraCalibration2 = 0xC624;
|
||||
public const ushort AnalogBalance = 0xC627;
|
||||
public const ushort AsShotNeutral = 0xC628;
|
||||
public const ushort AsShotWhiteXy = 0xC629;
|
||||
public const ushort BaselineExposure = 0xC62A;
|
||||
public const ushort CameraSerialNumber = 0xC62F;
|
||||
public const ushort LensInfo = 0xC630;
|
||||
public const ushort ActiveArea = 0xC68D;
|
||||
public const ushort CalibrationIlluminant1 = 0xC65A;
|
||||
public const ushort CalibrationIlluminant2 = 0xC65B;
|
||||
public const ushort OpcodeList1 = 0xC740;
|
||||
public const ushort OpcodeList2 = 0xC741;
|
||||
public const ushort OpcodeList3 = 0xC74E;
|
||||
public const ushort ForwardMatrix1 = 0xC714;
|
||||
public const ushort ForwardMatrix2 = 0xC715;
|
||||
public const ushort NewRawImageDigest = 0xC7A7;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
namespace Titano.Core.Metadata.Tiff;
|
||||
|
||||
/// <summary>TIFF 6.0 field types (plus IFD = 13).</summary>
|
||||
public enum TiffType : ushort
|
||||
{
|
||||
Byte = 1,
|
||||
Ascii = 2,
|
||||
Short = 3,
|
||||
Long = 4,
|
||||
Rational = 5,
|
||||
SByte = 6,
|
||||
Undefined = 7,
|
||||
SShort = 8,
|
||||
SLong = 9,
|
||||
SRational = 10,
|
||||
Float = 11,
|
||||
Double = 12,
|
||||
Ifd = 13,
|
||||
}
|
||||
|
||||
public static class TiffTypeInfo
|
||||
{
|
||||
/// <summary>Size in bytes of one value; 0 for unknown types.</summary>
|
||||
public static int Size(TiffType type) => type switch
|
||||
{
|
||||
TiffType.Byte or TiffType.Ascii or TiffType.SByte or TiffType.Undefined => 1,
|
||||
TiffType.Short or TiffType.SShort => 2,
|
||||
TiffType.Long or TiffType.SLong or TiffType.Float or TiffType.Ifd => 4,
|
||||
TiffType.Rational or TiffType.SRational or TiffType.Double => 8,
|
||||
_ => 0,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
using Titano.Core.Imaging;
|
||||
|
||||
namespace Titano.Core.Model;
|
||||
|
||||
/// <summary>A rooted folder tree that holds originals, sidecars, proxies and exports (BRIEF §7).</summary>
|
||||
public sealed record Archive
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required string Name { get; init; }
|
||||
public required string RootPath { get; init; }
|
||||
public string FolderTemplate { get; init; } = Naming.TemplateDefaults.Folder;
|
||||
public string FileTemplate { get; init; } = Naming.TemplateDefaults.File;
|
||||
public int SchemaVersion { get; init; } = 1;
|
||||
public DateTimeOffset Created { get; init; }
|
||||
|
||||
/// <summary>Proxy long edge in pixels; 0 = full size, -1 = proxies disabled.</summary>
|
||||
public int ProxyLongEdge { get; init; } = 1920;
|
||||
}
|
||||
|
||||
/// <summary>One shoot: a folder of frames that becomes one project (BRIEF §5).</summary>
|
||||
public sealed record Sequence
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required Guid ArchiveId { get; init; }
|
||||
public string? Title { get; init; }
|
||||
|
||||
/// <summary>Folder relative to the archive root, forward slashes.</summary>
|
||||
public required string Folder { get; init; }
|
||||
|
||||
public string? CameraMake { get; init; }
|
||||
public string? CameraModel { get; init; }
|
||||
public string? CameraSerial { get; init; }
|
||||
public string? Lens { get; init; }
|
||||
public DateTime? FirstCapture { get; init; }
|
||||
public DateTime? LastCapture { get; init; }
|
||||
public int FrameCount { get; init; }
|
||||
|
||||
/// <summary>Median capture interval in seconds.</summary>
|
||||
public double? MedianInterval { get; init; }
|
||||
|
||||
public long TotalBytes { get; init; }
|
||||
public SequenceStatus Status { get; init; }
|
||||
public int RenderedCount { get; init; }
|
||||
public DateTimeOffset? VerifiedAt { get; init; }
|
||||
public Guid? HeroFrameId { get; init; }
|
||||
public IReadOnlyList<string> Tags { get; init; } = [];
|
||||
public int Rating { get; init; }
|
||||
public string? Notes { get; init; }
|
||||
|
||||
/// <summary>Render settings ("project") as JSON.</summary>
|
||||
public string? SettingsJson { get; init; }
|
||||
|
||||
/// <summary>Compact analysis summary as JSON; the full report lives in <c>.titano/analysis.json</c>.</summary>
|
||||
public string? AnalysisJson { get; init; }
|
||||
|
||||
public SequenceOrigin Origin { get; init; }
|
||||
public SyncState SyncState { get; init; }
|
||||
public int SettingsVersion { get; init; }
|
||||
public int FramesVersion { get; init; }
|
||||
public Guid? OwnerUserId { get; init; }
|
||||
public int WarningCount { get; init; }
|
||||
public DateTimeOffset UpdatedAt { get; init; }
|
||||
|
||||
/// <summary>User title or "{date} {camera}".</summary>
|
||||
public string DisplayTitle => !string.IsNullOrWhiteSpace(Title)
|
||||
? Title!
|
||||
: $"{FirstCapture:yyyy-MM-dd} {CameraModel}".Trim();
|
||||
}
|
||||
|
||||
/// <summary>One photo of a sequence.</summary>
|
||||
public sealed record Frame
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required Guid SequenceId { get; init; }
|
||||
public required int Index { get; init; }
|
||||
|
||||
/// <summary>Path relative to the archive root, forward slashes.</summary>
|
||||
public required string RelativePath { get; init; }
|
||||
|
||||
public required string FileName { get; init; }
|
||||
public string? OriginalFileName { get; init; }
|
||||
public long Size { get; init; }
|
||||
|
||||
/// <summary>Lower-case hex SHA-256 of the original file.</summary>
|
||||
public string? Sha256 { get; init; }
|
||||
|
||||
/// <summary>Camera wall-clock time including sub-seconds (unspecified kind).</summary>
|
||||
public DateTime? CapturedAt { get; init; }
|
||||
|
||||
/// <summary>UTC offset of <see cref="CapturedAt"/> when known, in minutes.</summary>
|
||||
public int? UtcOffsetMinutes { get; init; }
|
||||
|
||||
public TimestampSource TimestampSource { get; init; }
|
||||
public double? ExposureTime { get; init; }
|
||||
public double? FNumber { get; init; }
|
||||
public int? Iso { get; init; }
|
||||
public double? FocalLength { get; init; }
|
||||
public double? ExposureBias { get; init; }
|
||||
public int? WhiteBalance { get; init; }
|
||||
public int Orientation { get; init; } = 1;
|
||||
public int Width { get; init; }
|
||||
public int Height { get; init; }
|
||||
public ImageFileFormat Format { get; init; }
|
||||
public long? PreviewOffset { get; init; }
|
||||
public long? PreviewLength { get; init; }
|
||||
|
||||
/// <summary>Mean log2 luminance once analysed.</summary>
|
||||
public double? MeanLogLuminance { get; init; }
|
||||
|
||||
public double? ClipLow { get; init; }
|
||||
public double? ClipHigh { get; init; }
|
||||
public FrameFlags Flags { get; init; }
|
||||
|
||||
/// <summary>Exposure value at ISO 100: log2(N²/t) − log2(ISO/100).</summary>
|
||||
public double? ExposureValue => ExposureTime is > 0 && FNumber is > 0
|
||||
? Math.Log2(FNumber.Value * FNumber.Value / ExposureTime.Value) - Math.Log2((Iso ?? 100) / 100.0)
|
||||
: null;
|
||||
}
|
||||
|
||||
/// <summary>An exported video or image sequence.</summary>
|
||||
public sealed record Render
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required Guid SequenceId { get; init; }
|
||||
public required string PresetName { get; init; }
|
||||
public string? SettingsJson { get; init; }
|
||||
public required string OutputPath { get; init; }
|
||||
public string? Codec { get; init; }
|
||||
public int Width { get; init; }
|
||||
public int Height { get; init; }
|
||||
public double Fps { get; init; }
|
||||
public double DurationSeconds { get; init; }
|
||||
public long Bytes { get; init; }
|
||||
public DateTimeOffset Created { get; init; }
|
||||
public string? ProducedBy { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>Any long operation: resumable, cancellable, logged (BRIEF §5, §14.6).</summary>
|
||||
public sealed record Job
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required JobKind Kind { get; init; }
|
||||
public IReadOnlyList<Guid> TargetIds { get; init; } = [];
|
||||
|
||||
/// <summary>Human-readable target ("Harbour sunset", "Archive · 2024").</summary>
|
||||
public string? TargetLabel { get; init; }
|
||||
|
||||
public string? ParametersJson { get; init; }
|
||||
public JobState State { get; init; }
|
||||
public JobPriority Priority { get; init; } = JobPriority.Normal;
|
||||
public long ProgressDone { get; init; }
|
||||
public long ProgressTotal { get; init; }
|
||||
public double? ItemsPerSecond { get; init; }
|
||||
public TimeSpan? Eta { get; init; }
|
||||
|
||||
/// <summary>Opaque resume cursor written at checkpoints.</summary>
|
||||
public string? Checkpoint { get; init; }
|
||||
|
||||
public string? LogTail { get; init; }
|
||||
public Guid? CreatedBy { get; init; }
|
||||
public string? NodeId { get; init; }
|
||||
public int Attempts { get; init; }
|
||||
public string? Error { get; init; }
|
||||
public DateTimeOffset Created { get; init; }
|
||||
public DateTimeOffset? Started { get; init; }
|
||||
public DateTimeOffset? Finished { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>A memory card known to this client (BRIEF §13).</summary>
|
||||
public sealed record MediaCard
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
|
||||
/// <summary><c>{volumeSerial}-{label}-{capacity}</c>.</summary>
|
||||
public required string Identity { get; init; }
|
||||
|
||||
public uint VolumeSerial { get; init; }
|
||||
public string? Label { get; init; }
|
||||
public long Capacity { get; init; }
|
||||
public string? Nickname { get; init; }
|
||||
public string? CameraMake { get; init; }
|
||||
public string? CameraModel { get; init; }
|
||||
public string? CameraSerial { get; init; }
|
||||
public string? ProfileJson { get; init; }
|
||||
public bool AutoImport { get; init; }
|
||||
public DateTimeOffset FirstSeen { get; init; }
|
||||
public DateTimeOffset LastSeen { get; init; }
|
||||
}
|
||||
|
||||
public sealed record User
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required string Username { get; init; }
|
||||
public string? DisplayName { get; init; }
|
||||
public required string PasswordHash { get; init; }
|
||||
public UserRole Role { get; init; }
|
||||
public Permissions Permissions { get; init; }
|
||||
public long QuotaBytes { get; init; }
|
||||
public long UsedBytes { get; init; }
|
||||
public bool Disabled { get; init; }
|
||||
public bool MustChangePassword { get; init; }
|
||||
public DateTimeOffset Created { get; init; }
|
||||
public DateTimeOffset? LastLogin { get; init; }
|
||||
}
|
||||
|
||||
public sealed record SessionToken
|
||||
{
|
||||
public required string TokenHash { get; init; }
|
||||
public required Guid UserId { get; init; }
|
||||
public string? ClientName { get; init; }
|
||||
public DateTimeOffset Created { get; init; }
|
||||
public DateTimeOffset Expires { get; init; }
|
||||
public DateTimeOffset LastUsed { get; init; }
|
||||
public bool Revoked { get; init; }
|
||||
}
|
||||
|
||||
public sealed record RenderNode
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required Guid UserId { get; init; }
|
||||
public required string ClientName { get; init; }
|
||||
public string? CapabilitiesJson { get; init; }
|
||||
public DateTimeOffset LastHeartbeat { get; init; }
|
||||
public string State { get; init; } = "idle";
|
||||
}
|
||||
|
||||
public sealed record AuditEntry
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public DateTimeOffset At { get; init; }
|
||||
public Guid? UserId { get; init; }
|
||||
public string? Username { get; init; }
|
||||
public required string Action { get; init; }
|
||||
public string? TargetKind { get; init; }
|
||||
public string? TargetId { get; init; }
|
||||
public string? Details { get; init; }
|
||||
public string? RemoteAddress { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
namespace Titano.Core.Model;
|
||||
|
||||
/// <summary>Where a capture timestamp came from.</summary>
|
||||
public enum TimestampSource
|
||||
{
|
||||
Unknown = 0,
|
||||
ExifOriginal,
|
||||
ExifCreate,
|
||||
Xmp,
|
||||
QuickTime,
|
||||
Gps,
|
||||
FileSystem,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum FrameFlags
|
||||
{
|
||||
None = 0,
|
||||
Missing = 1,
|
||||
Corrupt = 2,
|
||||
Duplicate = 4,
|
||||
Excluded = 8,
|
||||
PreviewOnly = 16,
|
||||
Undecodable = 32,
|
||||
Black = 64,
|
||||
White = 128,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum SequenceStatus
|
||||
{
|
||||
None = 0,
|
||||
AnalyzedLight = 1,
|
||||
AnalyzedDeep = 2,
|
||||
ProxiesBuilt = 4,
|
||||
ThumbsBuilt = 8,
|
||||
Verified = 16,
|
||||
HasWarnings = 32,
|
||||
HasErrors = 64,
|
||||
}
|
||||
|
||||
public enum SequenceOrigin
|
||||
{
|
||||
Local,
|
||||
Server,
|
||||
}
|
||||
|
||||
public enum SyncState
|
||||
{
|
||||
LocalOnly,
|
||||
InSync,
|
||||
LocalAhead,
|
||||
ServerAhead,
|
||||
Conflict,
|
||||
RemoteOnly,
|
||||
}
|
||||
|
||||
public enum JobKind
|
||||
{
|
||||
Scan,
|
||||
Rebuild,
|
||||
Verify,
|
||||
LightAnalyse,
|
||||
DeepAnalyse,
|
||||
Proxies,
|
||||
Thumbs,
|
||||
Render,
|
||||
Import,
|
||||
UploadCommit,
|
||||
Maintenance,
|
||||
Duplicates,
|
||||
Orphans,
|
||||
Adopt,
|
||||
Move,
|
||||
}
|
||||
|
||||
public enum JobState
|
||||
{
|
||||
Queued,
|
||||
Running,
|
||||
Paused,
|
||||
Done,
|
||||
Failed,
|
||||
Cancelled,
|
||||
}
|
||||
|
||||
public enum JobPriority
|
||||
{
|
||||
Background = 0,
|
||||
Normal = 1,
|
||||
User = 2,
|
||||
}
|
||||
|
||||
public enum UserRole
|
||||
{
|
||||
Viewer,
|
||||
Uploader,
|
||||
Editor,
|
||||
Admin,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum Permissions : long
|
||||
{
|
||||
None = 0,
|
||||
Read = 1,
|
||||
Upload = 2,
|
||||
Edit = 4,
|
||||
Delete = 8,
|
||||
Render = 16,
|
||||
RenderNode = 32,
|
||||
ManageArchive = 64,
|
||||
ManageUsers = 128,
|
||||
All = Read | Upload | Edit | Delete | Render | RenderNode | ManageArchive | ManageUsers,
|
||||
}
|
||||
|
||||
public static class RolePermissions
|
||||
{
|
||||
public static Permissions Default(UserRole role) => role switch
|
||||
{
|
||||
UserRole.Admin => Permissions.All,
|
||||
UserRole.Editor => Permissions.Read | Permissions.Upload | Permissions.Edit | Permissions.Delete | Permissions.Render | Permissions.RenderNode,
|
||||
UserRole.Uploader => Permissions.Read | Permissions.Upload,
|
||||
_ => Permissions.Read,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Titano.Core.Naming;
|
||||
|
||||
/// <summary>Default naming templates (BRIEF §7.1).</summary>
|
||||
public static class TemplateDefaults
|
||||
{
|
||||
public const string Folder = "{year}/{date} {camera}";
|
||||
public const string File = "{date}_{time}_{n:0000}";
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Core</RootNamespace>
|
||||
<TitanoEmbedI18n>true</TitanoEmbedI18n>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Include="Titano.Core.Tests" />
|
||||
<InternalsVisibleTo Include="Titano.Tools" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,134 @@
|
||||
using Titano.Core.Imaging;
|
||||
|
||||
namespace Titano.Core.Video;
|
||||
|
||||
public enum VideoCodec
|
||||
{
|
||||
H264,
|
||||
Hevc,
|
||||
Av1,
|
||||
Mjpeg,
|
||||
JpegSequence,
|
||||
PngSequence,
|
||||
Tiff16Sequence,
|
||||
LinearDngSequence,
|
||||
Gif,
|
||||
Apng,
|
||||
}
|
||||
|
||||
public enum ContainerFormat
|
||||
{
|
||||
Mp4,
|
||||
Avi,
|
||||
ImageSequence,
|
||||
Gif,
|
||||
Apng,
|
||||
}
|
||||
|
||||
public enum RateControl
|
||||
{
|
||||
Vbr,
|
||||
Cbr,
|
||||
Quality,
|
||||
}
|
||||
|
||||
public enum CodecProfile
|
||||
{
|
||||
Auto,
|
||||
H264Baseline,
|
||||
H264Main,
|
||||
H264High,
|
||||
HevcMain,
|
||||
HevcMain10,
|
||||
Av1Main,
|
||||
}
|
||||
|
||||
public static class VideoCodecInfo
|
||||
{
|
||||
public static ContainerFormat DefaultContainer(VideoCodec codec) => codec switch
|
||||
{
|
||||
VideoCodec.H264 or VideoCodec.Hevc or VideoCodec.Av1 => ContainerFormat.Mp4,
|
||||
VideoCodec.Mjpeg => ContainerFormat.Avi,
|
||||
VideoCodec.Gif => ContainerFormat.Gif,
|
||||
VideoCodec.Apng => ContainerFormat.Apng,
|
||||
_ => ContainerFormat.ImageSequence,
|
||||
};
|
||||
|
||||
/// <summary>True for codecs every platform can produce without an OS encoder.</summary>
|
||||
public static bool IsManaged(VideoCodec codec) => codec is not (VideoCodec.H264 or VideoCodec.Hevc or VideoCodec.Av1);
|
||||
|
||||
public static string FileExtension(VideoCodec codec) => codec switch
|
||||
{
|
||||
VideoCodec.H264 or VideoCodec.Hevc or VideoCodec.Av1 => ".mp4",
|
||||
VideoCodec.Mjpeg => ".avi",
|
||||
VideoCodec.Gif => ".gif",
|
||||
VideoCodec.Apng => ".png",
|
||||
VideoCodec.JpegSequence => ".jpg",
|
||||
VideoCodec.PngSequence => ".png",
|
||||
VideoCodec.Tiff16Sequence => ".tif",
|
||||
VideoCodec.LinearDngSequence => ".dng",
|
||||
_ => ".bin",
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>What an encoder on this machine can do (shown in Settings › Rendering).</summary>
|
||||
public sealed record EncoderCapability(
|
||||
VideoCodec Codec,
|
||||
string Name,
|
||||
bool Hardware,
|
||||
int MaxWidth,
|
||||
int MaxHeight,
|
||||
bool SupportsTenBit,
|
||||
string? Vendor = null);
|
||||
|
||||
/// <summary>Complete parameters of one encode.</summary>
|
||||
public sealed record EncodeSettings
|
||||
{
|
||||
public required string OutputPath { get; init; }
|
||||
public required VideoCodec Codec { get; init; }
|
||||
public required int Width { get; init; }
|
||||
public required int Height { get; init; }
|
||||
public required Rational FrameRate { get; init; }
|
||||
public CodecProfile Profile { get; init; } = CodecProfile.Auto;
|
||||
public int BitDepth { get; init; } = 8;
|
||||
public RateControl RateControl { get; init; } = RateControl.Vbr;
|
||||
|
||||
/// <summary>Average bit rate in bits per second (VBR/CBR).</summary>
|
||||
public long BitRate { get; init; }
|
||||
|
||||
/// <summary>0–100 quality for <see cref="RateControl.Quality"/>, JPEG/MJPEG and GIF.</summary>
|
||||
public int Quality { get; init; } = 90;
|
||||
|
||||
/// <summary>Distance between key frames in frames; 0 = encoder default (≈ 1 s).</summary>
|
||||
public int GopLength { get; init; }
|
||||
|
||||
public int BFrames { get; init; } = 2;
|
||||
public bool PreferHardware { get; init; } = true;
|
||||
|
||||
/// <summary>Optional specific encoder name from <see cref="EncoderCapability.Name"/>.</summary>
|
||||
public string? EncoderName { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>One open encode. Frames are linear-light buffers at the output size.</summary>
|
||||
public interface IVideoEncoderSession : IDisposable
|
||||
{
|
||||
/// <summary>Encoder actually used ("NVIDIA NVENC H.264", "Managed MJPEG").</summary>
|
||||
string EncoderName { get; }
|
||||
|
||||
bool IsHardware { get; }
|
||||
|
||||
/// <summary>Appends a frame shown for <paramref name="duration90k"/> ticks of a 90 kHz clock.</summary>
|
||||
void WriteFrame(ImageBuffer frame, long duration90k);
|
||||
|
||||
/// <summary>Flushes and closes the output. Without it, <see cref="IDisposable.Dispose"/> deletes the partial file.</summary>
|
||||
void Complete();
|
||||
}
|
||||
|
||||
/// <summary>A family of encoders (Media Foundation on Windows, managed everywhere).</summary>
|
||||
public interface IVideoEncoderProvider
|
||||
{
|
||||
string Name { get; }
|
||||
IReadOnlyList<EncoderCapability> Capabilities { get; }
|
||||
bool CanEncode(EncodeSettings settings);
|
||||
IVideoEncoderSession Open(EncodeSettings settings);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace Titano.Core.Video;
|
||||
|
||||
/// <summary>An exact frame rate such as 24000/1001.</summary>
|
||||
public readonly record struct Rational(int Numerator, int Denominator)
|
||||
{
|
||||
public double Value => (double)Numerator / Denominator;
|
||||
|
||||
public static Rational Fps23976 { get; } = new(24000, 1001);
|
||||
public static Rational Fps2997 { get; } = new(30000, 1001);
|
||||
public static Rational Fps5994 { get; } = new(60000, 1001);
|
||||
|
||||
public static Rational FromFps(double fps)
|
||||
{
|
||||
if (Math.Abs(fps - 23.976) < 0.01) return Fps23976;
|
||||
if (Math.Abs(fps - 29.97) < 0.01) return Fps2997;
|
||||
if (Math.Abs(fps - 59.94) < 0.01) return Fps5994;
|
||||
if (Math.Abs(fps - Math.Round(fps)) < 1e-6) return new((int)Math.Round(fps), 1);
|
||||
return new((int)Math.Round(fps * 1000), 1000);
|
||||
}
|
||||
|
||||
/// <summary>Duration of one frame in 90 kHz ticks (MP4 timescale used by Titano).</summary>
|
||||
public long FrameTicks90k => (long)Math.Round(90000.0 * Denominator / Numerator);
|
||||
|
||||
public override string ToString() => Denominator == 1
|
||||
? Numerator.ToString(CultureInfo.InvariantCulture)
|
||||
: Value.ToString("0.###", CultureInfo.InvariantCulture);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Titano.Data;
|
||||
|
||||
/// <summary>SQL dialect of an <c>IDatabase</c>.</summary>
|
||||
public enum Dialect
|
||||
{
|
||||
Sqlite,
|
||||
Postgres,
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Data</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Migrations\**\*.sql" LogicalName="Titano.Data.Migrations.%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<InternalsVisibleTo Include="Titano.Data.Tests" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Titano.Protocol;
|
||||
|
||||
/// <summary>API version negotiated through the <c>X-Titano-Api</c> header.</summary>
|
||||
public static class ApiVersion
|
||||
{
|
||||
public const int Current = 1;
|
||||
public const string Header = "X-Titano-Api";
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Protocol</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1 @@
|
||||
<!doctype html><title>Titano</title>
|
||||
@@ -0,0 +1,4 @@
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
var app = builder.Build();
|
||||
app.MapGet("/health", () => Results.Ok(new { status = "ok" }));
|
||||
app.Run();
|
||||
@@ -0,0 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Server</RootNamespace>
|
||||
<AssemblyName>Titano.Server</AssemblyName>
|
||||
<ApplicationIcon Condition="Exists('$(TitanoIconDir)titano-server.ico')">$(TitanoIconDir)titano-server.ico</ApplicationIcon>
|
||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<UserSecretsId />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Data\Titano.Data.csproj" />
|
||||
<ProjectReference Include="..\Titano.Protocol\Titano.Protocol.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- Admin panel: vanilla HTML/CSS/JS served from embedded resources (no build step). -->
|
||||
<EmbeddedResource Include="Admin\web\**\*" LogicalName="admin/%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<Content Remove="Admin\web\**\*" />
|
||||
<None Remove="Admin\web\**\*" />
|
||||
<InternalsVisibleTo Include="Titano.Server.Tests" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
<Application x:Class="Titano.Setup.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
</Application>
|
||||
@@ -0,0 +1,7 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Titano.Setup;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<RootNamespace>Titano.Setup</RootNamespace>
|
||||
<AssemblyName>Titano.Setup</AssemblyName>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<TitanoIconVariant>titano</TitanoIconVariant>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Ui\Titano.Ui.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="Titano.Setup" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
@@ -0,0 +1,203 @@
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Linq;
|
||||
using Titano.Core.Localization;
|
||||
|
||||
namespace Titano.Tools.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// <c>i18n check</c>: completeness of <c>en</c> and <c>it</c>, placeholder parity, length budgets and that
|
||||
/// every key used in code/XAML/admin JS exists (BRIEF §16).
|
||||
/// <c>i18n export --out dir</c>: one JSON per culture for the web admin.
|
||||
/// </summary>
|
||||
internal sealed partial class I18nCommand : ICommand
|
||||
{
|
||||
private static readonly string[] RequiredCultures = ["en", "it"];
|
||||
private static readonly HashSet<string> SentenceAreas = new(StringComparer.Ordinal) { "Tooltips", "Errors", "Advisor" };
|
||||
|
||||
public string Name => "i18n";
|
||||
public string Summary => "check | export --out <dir> (resource completeness and web export)";
|
||||
|
||||
public Task<int> RunAsync(string[] args)
|
||||
{
|
||||
var a = new Args(args);
|
||||
var sub = a.Positional.FirstOrDefault() ?? "check";
|
||||
var root = Args.RepoRoot();
|
||||
var catalog = Catalog.Load(Path.Combine(root, "i18n"));
|
||||
return Task.FromResult(sub switch
|
||||
{
|
||||
"check" => Check(root, catalog),
|
||||
"export" => Export(catalog, a.Get("out") ?? throw new ToolException("--out <dir> required")),
|
||||
"missing" => Missing(catalog, a.Get("culture") ?? throw new ToolException("--culture <code> required")),
|
||||
_ => throw new ToolException($"Unknown i18n subcommand '{sub}'"),
|
||||
});
|
||||
}
|
||||
|
||||
private static int Check(string root, Catalog catalog)
|
||||
{
|
||||
var errors = new List<string>();
|
||||
var warnings = new List<string>();
|
||||
if (!catalog.Cultures.TryGetValue("en", out var en)) throw new ToolException("i18n/en missing");
|
||||
|
||||
foreach (var (key, entry) in en)
|
||||
{
|
||||
var area = key.Split('.')[0];
|
||||
if (!entry.File.Equals(area, StringComparison.Ordinal))
|
||||
errors.Add($"en: key {key} lives in {entry.File}.resx but its area is {area}");
|
||||
var limit = Limit(key, area, entry.Comment);
|
||||
if (entry.Value.Length > limit)
|
||||
errors.Add($"en: {key} is {entry.Value.Length} chars (budget {limit})");
|
||||
if (string.IsNullOrWhiteSpace(entry.Value))
|
||||
errors.Add($"en: {key} is empty");
|
||||
}
|
||||
|
||||
foreach (var (culture, strings) in catalog.Cultures)
|
||||
{
|
||||
if (culture == "en") continue;
|
||||
var required = RequiredCultures.Contains(culture);
|
||||
var missing = 0;
|
||||
foreach (var (key, entry) in en)
|
||||
{
|
||||
if (entry.Comment is not null && entry.Comment.Contains("invariant", StringComparison.OrdinalIgnoreCase)) continue;
|
||||
if (!strings.TryGetValue(key, out var translated))
|
||||
{
|
||||
if (required) errors.Add($"{culture}: missing {key}");
|
||||
else missing++;
|
||||
continue;
|
||||
}
|
||||
var p1 = Placeholders(entry.Value);
|
||||
var p2 = Placeholders(translated.Value);
|
||||
if (!p1.SetEquals(p2))
|
||||
errors.Add($"{culture}: {key} placeholders {{{string.Join(",", p2)}}} differ from en {{{string.Join(",", p1)}}}");
|
||||
var area = key.Split('.')[0];
|
||||
var limit = (int)(Limit(key, area, entry.Comment) * 1.6);
|
||||
if (translated.Value.Length > limit)
|
||||
warnings.Add($"{culture}: {key} is {translated.Value.Length} chars (soft budget {limit})");
|
||||
}
|
||||
if (missing > 0) warnings.Add($"{culture}: {missing} key(s) not translated yet");
|
||||
foreach (var key in strings.Keys.Where(k => !en.ContainsKey(k)))
|
||||
errors.Add($"{culture}: orphan key {key}");
|
||||
}
|
||||
|
||||
foreach (var (file, key) in UsedKeys(root))
|
||||
{
|
||||
if (en.ContainsKey(key)) continue;
|
||||
// Plural lookups reference the stem; any suffix satisfies them.
|
||||
if (en.Keys.Any(k => k.StartsWith(key + ".", StringComparison.Ordinal) && PluralSuffix().IsMatch(k[(key.Length + 1)..]))) continue;
|
||||
errors.Add($"{Path.GetRelativePath(root, file)}: unknown key {key}");
|
||||
}
|
||||
|
||||
foreach (var w in warnings.Take(50)) Console.WriteLine("warning: " + w);
|
||||
if (warnings.Count > 50) Console.WriteLine($"warning: … {warnings.Count - 50} more");
|
||||
foreach (var e in errors) Console.Error.WriteLine("error: " + e);
|
||||
Console.WriteLine($"i18n: {en.Count} keys, {catalog.Cultures.Count} cultures, {errors.Count} error(s), {warnings.Count} warning(s)");
|
||||
return errors.Count == 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
private static int Missing(Catalog catalog, string culture)
|
||||
{
|
||||
var en = catalog.Cultures["en"];
|
||||
catalog.Cultures.TryGetValue(culture, out var target);
|
||||
foreach (var (key, entry) in en.OrderBy(k => k.Key, StringComparer.Ordinal))
|
||||
{
|
||||
if (target is null || !target.ContainsKey(key)) Console.WriteLine($"{key}\t{entry.Value}");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static int Limit(string key, string area, string? comment)
|
||||
{
|
||||
if (comment is not null && comment.Contains("long", StringComparison.OrdinalIgnoreCase)) return 200;
|
||||
if (SentenceAreas.Contains(area) || key.EndsWith(".Tip", StringComparison.Ordinal)) return 200;
|
||||
return 30;
|
||||
}
|
||||
|
||||
private static int Export(Catalog catalog, string outDir)
|
||||
{
|
||||
Directory.CreateDirectory(outDir);
|
||||
var en = catalog.Cultures["en"];
|
||||
foreach (var (culture, strings) in catalog.Cultures)
|
||||
{
|
||||
var merged = new SortedDictionary<string, string>(StringComparer.Ordinal);
|
||||
foreach (var (k, v) in en) merged[k] = strings.TryGetValue(k, out var t) ? t.Value : v.Value;
|
||||
var json = JsonSerializer.Serialize(merged, new JsonSerializerOptions { WriteIndented = true, Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping });
|
||||
File.WriteAllText(Path.Combine(outDir, culture + ".json"), json, new UTF8Encoding(false));
|
||||
}
|
||||
Console.WriteLine($"Exported {catalog.Cultures.Count} cultures to {outDir}");
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static HashSet<string> Placeholders(string s) =>
|
||||
[.. PlaceholderRegex().Matches(s).Select(m => m.Groups[1].Value)];
|
||||
|
||||
/// <summary>Keys referenced from C# (<c>L("…")</c>, <c>Plural("…")</c>, <c>Loc.Get("…")</c>), XAML (<c>{l:Loc …}</c>) and admin JS (<c>t("…")</c>).</summary>
|
||||
private static IEnumerable<(string File, string Key)> UsedKeys(string root)
|
||||
{
|
||||
var src = Path.Combine(root, "src");
|
||||
foreach (var file in Directory.EnumerateFiles(src, "*.*", SearchOption.AllDirectories))
|
||||
{
|
||||
if (file.Contains($"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||
|| file.Contains($"{Path.DirectorySeparatorChar}bin{Path.DirectorySeparatorChar}", StringComparison.Ordinal)) continue;
|
||||
var ext = Path.GetExtension(file);
|
||||
Regex? regex = ext switch
|
||||
{
|
||||
".cs" => CsKeyRegex(),
|
||||
".xaml" => XamlKeyRegex(),
|
||||
".js" or ".html" => JsKeyRegex(),
|
||||
_ => null,
|
||||
};
|
||||
if (regex is null) continue;
|
||||
var text = File.ReadAllText(file);
|
||||
foreach (Match m in regex.Matches(text)) yield return (file, m.Groups[1].Value);
|
||||
}
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"\{(\d+)(?:[,:][^}]*)?\}")]
|
||||
private static partial Regex PlaceholderRegex();
|
||||
|
||||
[GeneratedRegex(@"\b(?:L|Plural|Loc\.Get|LocKey)\(\s*""([A-Z][A-Za-z0-9]*\.[A-Za-z0-9_.]+)""")]
|
||||
private static partial Regex CsKeyRegex();
|
||||
|
||||
[GeneratedRegex(@"\{(?:l|loc):Loc\s+(?:Key=)?([A-Z][A-Za-z0-9]*\.[A-Za-z0-9_.]+)")]
|
||||
private static partial Regex XamlKeyRegex();
|
||||
|
||||
[GeneratedRegex(@"(?:\bt\(\s*['""]|data-i18n(?:-[a-z]+)?=['""])([A-Z][A-Za-z0-9]*\.[A-Za-z0-9_.]+)")]
|
||||
private static partial Regex JsKeyRegex();
|
||||
|
||||
[GeneratedRegex(@"^(one|few|many|other)$")]
|
||||
private static partial Regex PluralSuffix();
|
||||
|
||||
internal sealed record Entry(string File, string Value, string? Comment);
|
||||
|
||||
internal sealed class Catalog
|
||||
{
|
||||
public Dictionary<string, Dictionary<string, Entry>> Cultures { get; } = new(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public static Catalog Load(string dir)
|
||||
{
|
||||
var c = new Catalog();
|
||||
foreach (var cultureDir in Directory.EnumerateDirectories(dir))
|
||||
{
|
||||
var culture = Path.GetFileName(cultureDir);
|
||||
var strings = new Dictionary<string, Entry>(StringComparer.Ordinal);
|
||||
foreach (var file in Directory.EnumerateFiles(cultureDir, "*.resx"))
|
||||
{
|
||||
var area = Path.GetFileName(file).Split('.')[0];
|
||||
var doc = XDocument.Load(file);
|
||||
foreach (var data in doc.Root!.Elements("data"))
|
||||
{
|
||||
var name = (string?)data.Attribute("name") ?? throw new ToolException($"{file}: data without name");
|
||||
var value = (string?)data.Element("value") ?? string.Empty;
|
||||
if (!strings.TryAdd(name, new Entry(area, value, (string?)data.Element("comment"))))
|
||||
throw new ToolException($"{file}: duplicate key {name}");
|
||||
}
|
||||
}
|
||||
c.Cultures[culture] = strings;
|
||||
}
|
||||
foreach (var code in Languages.Shipped.Where(s => !c.Cultures.ContainsKey(s)))
|
||||
c.Cultures.TryAdd(code, new Dictionary<string, Entry>(StringComparer.Ordinal));
|
||||
return c;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using Titano.Core.Branding;
|
||||
using Titano.Core.Codecs.Ico;
|
||||
using Titano.Core.Codecs.Png;
|
||||
|
||||
namespace Titano.Tools.Commands;
|
||||
|
||||
/// <summary>Generates ICO/PNG sets and SVG masters from <see cref="BrandMark"/> geometry.</summary>
|
||||
internal sealed class MakeIconCommand : ICommand
|
||||
{
|
||||
private static readonly int[] IcoSizes = [16, 20, 24, 32, 48, 64, 128, 256];
|
||||
|
||||
public string Name => "make-icon";
|
||||
public string Summary => "Generate ICO/PNG/SVG brand assets (--out dir, --svg dir to refresh masters)";
|
||||
|
||||
public Task<int> RunAsync(string[] args)
|
||||
{
|
||||
var a = new Args(args);
|
||||
var outDir = Path.GetFullPath(a.Get("out", Path.Combine(Args.RepoRoot(), "artifacts", "icons")));
|
||||
Directory.CreateDirectory(outDir);
|
||||
|
||||
foreach (var (variant, name) in new[]
|
||||
{
|
||||
(BrandVariant.App, "titano"),
|
||||
(BrandVariant.Server, "titano-server"),
|
||||
(BrandVariant.Uploader, "titano-uploader"),
|
||||
(BrandVariant.Mono, "titano-mono"),
|
||||
})
|
||||
{
|
||||
var images = IcoSizes.Select(s => (s, BrandMark.Render(variant, s))).ToList();
|
||||
File.WriteAllBytes(Path.Combine(outDir, name + ".ico"), IcoWriter.Write(images));
|
||||
foreach (var size in new[] { 16, 32, 48, 64, 128, 256, 512, 1024 })
|
||||
{
|
||||
var rgba = BrandMark.Render(variant, size);
|
||||
File.WriteAllBytes(Path.Combine(outDir, $"{name}-{size}.png"), PngEncoder.Encode(rgba, size, size, PngColorType.Rgba));
|
||||
}
|
||||
File.WriteAllText(Path.Combine(outDir, name + ".svg"), BrandMark.ToSvg(variant));
|
||||
}
|
||||
|
||||
if (a.Get("svg") is { } svgDir)
|
||||
{
|
||||
Directory.CreateDirectory(svgDir);
|
||||
File.WriteAllText(Path.Combine(svgDir, "titano.svg"), BrandMark.ToSvg(BrandVariant.App));
|
||||
File.WriteAllText(Path.Combine(svgDir, "titano-server.svg"), BrandMark.ToSvg(BrandVariant.Server));
|
||||
File.WriteAllText(Path.Combine(svgDir, "titano-uploader.svg"), BrandMark.ToSvg(BrandVariant.Uploader));
|
||||
File.WriteAllText(Path.Combine(svgDir, "titano-mono.svg"), BrandMark.ToSvg(BrandVariant.Mono));
|
||||
}
|
||||
|
||||
Console.WriteLine($"Icons written to {outDir}");
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Titano.Tools.Commands;
|
||||
|
||||
/// <summary>BRIEF §19.2: no PackageReference anywhere and no restored packages in project.assets.json.</summary>
|
||||
internal sealed partial class PackageGuardCommand : ICommand
|
||||
{
|
||||
public string Name => "package-guard";
|
||||
public string Summary => "Fail when any project references or restores a package";
|
||||
|
||||
public Task<int> RunAsync(string[] args)
|
||||
{
|
||||
var root = Args.RepoRoot();
|
||||
var failures = new List<string>();
|
||||
foreach (var file in Directory.EnumerateFiles(root, "*.*", SearchOption.AllDirectories)
|
||||
.Where(f => f.EndsWith(".csproj", StringComparison.OrdinalIgnoreCase) || f.EndsWith(".props", StringComparison.OrdinalIgnoreCase) || f.EndsWith(".targets", StringComparison.OrdinalIgnoreCase))
|
||||
.Where(f => !f.Contains($"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||
&& !f.Contains($"{Path.DirectorySeparatorChar}bin{Path.DirectorySeparatorChar}", StringComparison.Ordinal)))
|
||||
{
|
||||
var text = File.ReadAllText(file);
|
||||
if (PackageReference().IsMatch(text)) failures.Add($"{Path.GetRelativePath(root, file)}: PackageReference");
|
||||
}
|
||||
|
||||
foreach (var assets in Directory.EnumerateFiles(root, "project.assets.json", SearchOption.AllDirectories))
|
||||
{
|
||||
using var doc = JsonDocument.Parse(File.ReadAllText(assets));
|
||||
if (doc.RootElement.TryGetProperty("libraries", out var libs))
|
||||
{
|
||||
foreach (var lib in libs.EnumerateObject())
|
||||
{
|
||||
if (lib.Value.TryGetProperty("type", out var type) && type.GetString() == "package")
|
||||
failures.Add($"{Path.GetRelativePath(root, assets)}: restored package {lib.Name}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var f in failures) Console.Error.WriteLine(f);
|
||||
Console.WriteLine(failures.Count == 0 ? "Zero packages: OK" : $"{failures.Count} package violation(s)");
|
||||
return Task.FromResult(failures.Count == 0 ? 0 : 1);
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"<\s*PackageReference\b", RegexOptions.IgnoreCase)]
|
||||
private static partial Regex PackageReference();
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Titano.Tools.Commands;
|
||||
|
||||
/// <summary>
|
||||
/// BRIEF §20.3 / DESIGN §4: every actionable control carries a tooltip and no visible text is a literal.
|
||||
/// Elements inside <c>ControlTemplate</c>s are template parts and exempt from the tooltip rule.
|
||||
/// </summary>
|
||||
internal sealed class XamlLintCommand : ICommand
|
||||
{
|
||||
private static readonly HashSet<string> Actionable = new(StringComparer.Ordinal)
|
||||
{
|
||||
"Button", "ToggleButton", "RepeatButton", "Slider", "ComboBox", "CheckBox", "RadioButton", "MenuItem",
|
||||
"AutoSlider", "IconButton", "SplitButton",
|
||||
};
|
||||
|
||||
private static readonly string[] TextAttributes = ["Content", "Text", "Header", "ToolTip", "Title", "Tag"];
|
||||
|
||||
public string Name => "xaml-lint";
|
||||
public string Summary => "Check tooltips and literal text in all XAML under src/";
|
||||
|
||||
public Task<int> RunAsync(string[] args)
|
||||
{
|
||||
var root = Args.RepoRoot();
|
||||
var problems = new List<string>();
|
||||
var files = Directory.EnumerateFiles(Path.Combine(root, "src"), "*.xaml", SearchOption.AllDirectories)
|
||||
.Where(f => !f.Contains($"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||
&& !f.Contains($"{Path.DirectorySeparatorChar}bin{Path.DirectorySeparatorChar}", StringComparison.Ordinal))
|
||||
.ToList();
|
||||
|
||||
foreach (var file in files)
|
||||
{
|
||||
var doc = XDocument.Load(file, LoadOptions.SetLineInfo);
|
||||
foreach (var el in doc.Descendants())
|
||||
{
|
||||
var line = ((System.Xml.IXmlLineInfo)el).LineNumber;
|
||||
var where = $"{Path.GetRelativePath(root, file)}:{line}";
|
||||
var name = el.Name.LocalName;
|
||||
var inTemplate = el.Ancestors().Any(a => a.Name.LocalName is "ControlTemplate" or "Setter" or "Style");
|
||||
|
||||
if (Actionable.Contains(name) && !inTemplate && !HasToolTip(el) && !IsExempt(el))
|
||||
problems.Add($"{where}: <{name}> has no ToolTip");
|
||||
|
||||
foreach (var attrName in TextAttributes)
|
||||
{
|
||||
var attr = el.Attribute(attrName);
|
||||
if (attr is null) continue;
|
||||
var v = attr.Value;
|
||||
if (v.Length == 0 || v.StartsWith('{')) continue;
|
||||
if (attrName == "Tag" || (attrName == "Content" && inTemplate)) continue;
|
||||
if (v.Any(char.IsLetter))
|
||||
problems.Add($"{where}: literal {attrName}=\"{v}\" on <{name}> (use {{l:Loc …}})");
|
||||
}
|
||||
|
||||
// Literal element content such as <TextBlock>Hello</TextBlock> or <Run>Hi</Run>.
|
||||
if (name is "TextBlock" or "Run" or "Label" or "Button" && !el.HasElements && el.Value.Any(char.IsLetter))
|
||||
problems.Add($"{where}: literal text in <{name}>");
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var p in problems) Console.Error.WriteLine(p);
|
||||
Console.WriteLine($"xaml-lint: {files.Count} file(s), {problems.Count} problem(s)");
|
||||
return Task.FromResult(problems.Count == 0 ? 0 : 1);
|
||||
}
|
||||
|
||||
private static bool HasToolTip(XElement el) =>
|
||||
el.Attribute("ToolTip") is not null
|
||||
|| el.Elements().Any(c => c.Name.LocalName.EndsWith(".ToolTip", StringComparison.Ordinal))
|
||||
|| el.Attributes().Any(a => a.Name.LocalName == "TipKey");
|
||||
|
||||
/// <summary>Opt-out for controls whose tooltip is applied by a style (marked explicitly in XAML).</summary>
|
||||
private static bool IsExempt(XElement el) =>
|
||||
el.Attributes().Any(a => a.Name.LocalName == "ToolTipFromStyle" && a.Value == "True");
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
namespace Titano.Tools;
|
||||
|
||||
internal interface ICommand
|
||||
{
|
||||
string Name { get; }
|
||||
string Summary { get; }
|
||||
Task<int> RunAsync(string[] args);
|
||||
}
|
||||
|
||||
internal sealed class ToolException(string message) : Exception(message);
|
||||
|
||||
/// <summary>Minimal option parser: <c>--key value</c>, <c>--flag</c>, positional arguments.</summary>
|
||||
internal sealed class Args
|
||||
{
|
||||
private readonly Dictionary<string, string?> _options = new(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
public Args(string[] args, params string[] flags)
|
||||
{
|
||||
for (var i = 0; i < args.Length; i++)
|
||||
{
|
||||
var a = args[i];
|
||||
if (a.StartsWith("--", StringComparison.Ordinal))
|
||||
{
|
||||
var key = a[2..];
|
||||
if (flags.Contains(key, StringComparer.OrdinalIgnoreCase) || i + 1 >= args.Length || args[i + 1].StartsWith("--", StringComparison.Ordinal))
|
||||
_options[key] = null;
|
||||
else
|
||||
_options[key] = args[++i];
|
||||
}
|
||||
else
|
||||
{
|
||||
Positional.Add(a);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> Positional { get; } = [];
|
||||
|
||||
public bool Has(string key) => _options.ContainsKey(key);
|
||||
|
||||
public string? Get(string key) => _options.TryGetValue(key, out var v) ? v : null;
|
||||
|
||||
public string Get(string key, string fallback) => Get(key) ?? fallback;
|
||||
|
||||
public static string RepoRoot()
|
||||
{
|
||||
var dir = new DirectoryInfo(Directory.GetCurrentDirectory());
|
||||
while (dir is not null)
|
||||
{
|
||||
if (File.Exists(Path.Combine(dir.FullName, "Titano.slnx"))) return dir.FullName;
|
||||
dir = dir.Parent;
|
||||
}
|
||||
dir = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
while (dir is not null)
|
||||
{
|
||||
if (File.Exists(Path.Combine(dir.FullName, "Titano.slnx"))) return dir.FullName;
|
||||
dir = dir.Parent;
|
||||
}
|
||||
throw new ToolException("Repository root (Titano.slnx) not found.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Titano.Tools;
|
||||
using Titano.Tools.Commands;
|
||||
|
||||
var commands = new ICommand[]
|
||||
{
|
||||
new MakeIconCommand(),
|
||||
new I18nCommand(),
|
||||
new XamlLintCommand(),
|
||||
new PackageGuardCommand(),
|
||||
};
|
||||
|
||||
if (args.Length == 0 || args[0] is "-h" or "--help" or "help")
|
||||
{
|
||||
Console.WriteLine("Titano.Tools <command> [options]");
|
||||
foreach (var c in commands) Console.WriteLine($" {c.Name,-14} {c.Summary}");
|
||||
return args.Length == 0 ? 2 : 0;
|
||||
}
|
||||
|
||||
var command = commands.FirstOrDefault(c => c.Name.Equals(args[0], StringComparison.OrdinalIgnoreCase));
|
||||
if (command is null)
|
||||
{
|
||||
Console.Error.WriteLine($"Unknown command '{args[0]}'. Run with --help.");
|
||||
return 2;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return await command.RunAsync(args[1..]);
|
||||
}
|
||||
catch (ToolException ex)
|
||||
{
|
||||
Console.Error.WriteLine(ex.Message);
|
||||
return 2;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Tools</RootNamespace>
|
||||
<AssemblyName>Titano.Tools</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Data\Titano.Data.csproj" />
|
||||
<ProjectReference Include="..\Titano.Protocol\Titano.Protocol.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<RootNamespace>Titano.Ui</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Titano.Ui;
|
||||
|
||||
/// <summary>Shared WPF theme, controls and localization bindings for Titano desktop programs.</summary>
|
||||
public static class UiAssembly
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<Application x:Class="Titano.Uploader.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
</Application>
|
||||
@@ -0,0 +1,7 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Titano.Uploader;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<RootNamespace>Titano.Uploader</RootNamespace>
|
||||
<AssemblyName>Titano.Uploader</AssemblyName>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<TitanoIconVariant>titano-uploader</TitanoIconVariant>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\Titano.Protocol\Titano.Protocol.csproj" />
|
||||
<ProjectReference Include="..\Titano.Ui\Titano.Ui.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="Titano.Uploader" />
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
</assembly>
|
||||
@@ -0,0 +1,8 @@
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.App.Tests;
|
||||
|
||||
internal static class TestMain
|
||||
{
|
||||
public static Task<int> Main(string[] args) => TestRunner.RunAsync(args, typeof(TestMain).Assembly);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<UseWPF>true</UseWPF>
|
||||
<RootNamespace>Titano.App.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Testing\Titano.Testing.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.App\Titano.App.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Uploader\Titano.Uploader.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,62 @@
|
||||
using Titano.Core.Branding;
|
||||
using Titano.Core.Codecs.Ico;
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests.Branding;
|
||||
|
||||
public sealed class BrandMarkTests
|
||||
{
|
||||
[Test]
|
||||
public void TickOpacityRampsFromDimToFull()
|
||||
{
|
||||
Assert.Approximately(0.14, BrandMark.TickOpacity(0), 1e-9);
|
||||
Assert.Approximately(1.0, BrandMark.TickOpacity(11), 1e-9);
|
||||
Assert.Monotonic(Enumerable.Range(0, 12).Select(BrandMark.TickOpacity), strict: true);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SunPixelIsSunColour()
|
||||
{
|
||||
var rgba = BrandMark.Render(BrandVariant.App, 256);
|
||||
var o = (104 * 256 + 152) * 4;
|
||||
Assert.Equal(BrandMark.Sun.R, rgba[o]);
|
||||
Assert.Equal(BrandMark.Sun.G, rgba[o + 1]);
|
||||
Assert.Equal(BrandMark.Sun.B, rgba[o + 2]);
|
||||
Assert.Equal((byte)255, rgba[o + 3]);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CornersOutsideRoundedPlateAreTransparent()
|
||||
{
|
||||
var rgba = BrandMark.Render(BrandVariant.App, 64);
|
||||
Assert.Equal((byte)0, rgba[3]);
|
||||
Assert.Equal((byte)255, rgba[(32 * 64 + 32) * 4 + 3]);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MonoHasNoPlate()
|
||||
{
|
||||
var rgba = BrandMark.Render(BrandVariant.Mono, 64);
|
||||
Assert.Equal((byte)0, rgba[(4 * 64 + 32) * 4 + 3]);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SvgMatchesDesignMaster()
|
||||
{
|
||||
var master = File.ReadAllText(Path.Combine(TestContext.RepositoryRoot, "branding", "titano.svg")).Replace("\r", "", StringComparison.Ordinal);
|
||||
Assert.Equal(master.Trim(), BrandMark.ToSvg(BrandVariant.App).Trim());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void IcoHasAllSizes()
|
||||
{
|
||||
var sizes = new[] { 16, 32, 48, 256 };
|
||||
var ico = IcoWriter.Write(sizes.Select(s => (s, BrandMark.Render(BrandVariant.App, s))).ToList());
|
||||
Assert.Equal((byte)0, ico[0]);
|
||||
Assert.Equal((byte)1, ico[2]);
|
||||
Assert.Equal(sizes.Length, ico[4] | ico[5] << 8);
|
||||
// 256 px entry stored as PNG.
|
||||
var lastOffset = BitConverter.ToInt32(ico, 6 + 16 * 3 + 12);
|
||||
Assert.Equal((byte)0x89, ico[lastOffset]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Titano.Core.IO;
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests.Foundation;
|
||||
|
||||
public sealed class AtomicFileTests(TestContext context)
|
||||
{
|
||||
[Test]
|
||||
public void ReplacesContentAndLeavesNoTemporaryFiles()
|
||||
{
|
||||
var dir = context.CreateTempDirectory();
|
||||
var path = Path.Combine(dir, "sequence.json");
|
||||
AtomicFile.WriteAllText(path, "one");
|
||||
AtomicFile.WriteAllText(path, "two");
|
||||
Assert.Equal("two", File.ReadAllText(path));
|
||||
Assert.Count(1, Directory.GetFiles(dir));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task FailedWriteKeepsPreviousContent()
|
||||
{
|
||||
var dir = context.CreateTempDirectory();
|
||||
var path = Path.Combine(dir, "project.json");
|
||||
AtomicFile.WriteAllText(path, "stable");
|
||||
await Assert.ThrowsAsync<InvalidOperationException>(() => AtomicFile.WriteAsync(path, async (s, ct) =>
|
||||
{
|
||||
await s.WriteAsync("partial"u8.ToArray(), ct);
|
||||
throw new InvalidOperationException("boom");
|
||||
}));
|
||||
Assert.Equal("stable", File.ReadAllText(path));
|
||||
Assert.Count(1, Directory.GetFiles(dir));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.Text;
|
||||
using Titano.Core.Hashing;
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests.Foundation;
|
||||
|
||||
public sealed class Crc32Tests
|
||||
{
|
||||
[Test]
|
||||
public void CheckValueMatchesStandard() => Assert.Equal(0xCBF43926u, Crc32.Compute("123456789"u8));
|
||||
|
||||
[Test]
|
||||
public void IncrementalEqualsOneShot()
|
||||
{
|
||||
var data = Encoding.ASCII.GetBytes(new string('x', 1000) + "titano");
|
||||
var crc = new Crc32();
|
||||
crc.Append(data.AsSpan(0, 7));
|
||||
crc.Append(data.AsSpan(7, 500));
|
||||
crc.Append(data.AsSpan(507));
|
||||
Assert.Equal(Crc32.Compute(data), crc.GetCurrentHashAsUInt32());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EmptyInputIsZero() => Assert.Equal(0u, Crc32.Compute([]));
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using Titano.Core.Imaging;
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests.Foundation;
|
||||
|
||||
public sealed class ImageBufferTests
|
||||
{
|
||||
[Test]
|
||||
public void PlanesAreIndependentAndClearedByDefault()
|
||||
{
|
||||
using var image = new ImageBuffer(4, 3);
|
||||
Assert.Equal(12, image.PlaneLength);
|
||||
Assert.True(image.Data.ToArray().All(v => v == 0));
|
||||
image[1, 2, 1] = 0.5f;
|
||||
Assert.Equal(0.5f, image.Plane(1)[1 * 4 + 2]);
|
||||
Assert.Equal(0f, image.Plane(0)[1 * 4 + 2]);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CloneCopiesPixels()
|
||||
{
|
||||
using var image = new ImageBuffer(2, 2, 1);
|
||||
image[0, 1, 1] = 3f;
|
||||
using var clone = image.Clone();
|
||||
image[0, 1, 1] = 0f;
|
||||
Assert.Equal(3f, clone[0, 1, 1]);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DisposedBufferThrows()
|
||||
{
|
||||
var image = new ImageBuffer(1, 1);
|
||||
image.Dispose();
|
||||
Assert.Throws<ObjectDisposedException>(() => _ = image.Storage);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[Case("IMG_0001.CR2", ImageFileFormat.Cr2)]
|
||||
[Case("a.jpeg", ImageFileFormat.Jpeg)]
|
||||
[Case("photo.HEIC", ImageFileFormat.Heif)]
|
||||
[Case("notes.txt", ImageFileFormat.Unknown)]
|
||||
public void FormatFromExtension(string name, ImageFileFormat expected) =>
|
||||
Assert.Equal(expected, ImageFormatInfo.FromPath(name).Format);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.Globalization;
|
||||
using Titano.Core.Localization;
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests.Localization;
|
||||
|
||||
public sealed class PluralRulesTests
|
||||
{
|
||||
[Theory]
|
||||
[Case("en", 1L, PluralCategory.One)]
|
||||
[Case("en", 0L, PluralCategory.Other)]
|
||||
[Case("fr", 0L, PluralCategory.One)]
|
||||
[Case("ru", 21L, PluralCategory.One)]
|
||||
[Case("ru", 22L, PluralCategory.Few)]
|
||||
[Case("ru", 11L, PluralCategory.Many)]
|
||||
[Case("ru", 25L, PluralCategory.Many)]
|
||||
[Case("pl", 12L, PluralCategory.Many)]
|
||||
[Case("pl", 23L, PluralCategory.Few)]
|
||||
[Case("cs", 3L, PluralCategory.Few)]
|
||||
[Case("ja", 1L, PluralCategory.Other)]
|
||||
[Case("ar", 11L, PluralCategory.Many)]
|
||||
public void SelectsCldrCategory(string culture, long count, PluralCategory expected) =>
|
||||
Assert.Equal(expected, PluralRules.Select(CultureInfo.GetCultureInfo(culture), count));
|
||||
|
||||
[Test]
|
||||
public void BestMatchFallsBackToEnglish()
|
||||
{
|
||||
Assert.Equal("it", Languages.BestMatch(CultureInfo.GetCultureInfo("it-CH")).Name);
|
||||
Assert.Equal("pt-BR", Languages.BestMatch(CultureInfo.GetCultureInfo("pt-BR")).Name);
|
||||
Assert.Equal("en", Languages.BestMatch(CultureInfo.GetCultureInfo("sw")).Name);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EveryShippedLanguageIsAKnownCulture()
|
||||
{
|
||||
foreach (var code in Languages.Shipped) Assert.NotNull(CultureInfo.GetCultureInfo(code));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Tests;
|
||||
|
||||
internal static class TestMain
|
||||
{
|
||||
public static Task<int> Main(string[] args) => TestRunner.RunAsync(args, typeof(TestMain).Assembly);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Core.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Testing\Titano.Testing.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Data\Titano.Data.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,8 @@
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Core.Windows.Tests;
|
||||
|
||||
internal static class TestMain
|
||||
{
|
||||
public static Task<int> Main(string[] args) => TestRunner.RunAsync(args, typeof(TestMain).Assembly);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<RootNamespace>Titano.Core.Windows.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Testing\Titano.Testing.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Core.Windows\Titano.Core.Windows.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,8 @@
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Data.Tests;
|
||||
|
||||
internal static class TestMain
|
||||
{
|
||||
public static Task<int> Main(string[] args) => TestRunner.RunAsync(args, typeof(TestMain).Assembly);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Titano.Data.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Titano.Testing\Titano.Testing.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Core\Titano.Core.csproj" />
|
||||
<ProjectReference Include="..\..\src\Titano.Data\Titano.Data.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,8 @@
|
||||
using Titano.Testing;
|
||||
|
||||
namespace Titano.Server.Tests;
|
||||
|
||||
internal static class TestMain
|
||||
{
|
||||
public static Task<int> Main(string[] args) => TestRunner.RunAsync(args, typeof(TestMain).Assembly);
|
||||
}
|
||||
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user