chore: bootstrap repository foundation
Solution layout, build rules with zero-package guard, in-house test framework, localization runtime, brand mark rasteriser with ICO/PNG generation, Core contracts (imaging, video, domain model, TIFF reader), Titano.Tools (make-icon, i18n, xaml-lint, package-guard) and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
109 files changed
+7523
No files matched your search
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user