feat: paste cleanup service; sveltekit frontend; paste editing; paste metadata modifying

refactor: rename SharpbinV3 -> SharpbinV3.Server; run cleanup
This commit is contained in:
2025-12-28 05:39:18 -05:00
parent 19f439a405
commit adad139081
56 changed files with 4432 additions and 81 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using SharpbinV3.Data.Entities;
using SharpbinV3.Server.Data.Entities;
namespace SharpbinV3.Data
namespace SharpbinV3.Server.Data
{
public sealed class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
{
+5 -5
View File
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Data.Entities
namespace SharpbinV3.Server.Data.Entities
{
[Index(nameof(PID), IsUnique = true)]
[Index(nameof(UUID), IsUnique = true)]
@@ -20,9 +20,9 @@ namespace SharpbinV3.Data.Entities
public required Guid AuthorUUID { get; set; } = Guid.Empty; // uuid of the user who created the paste, or Guid.Empty for anonymous pastes
public User? User { get; set; }
public long? EditedAt { get; set; }
public required byte[] Content { get; set; }
public int Size { get; set; } // stored size (may be compressed)
public int TrueSize { get; set; } // uncompressed size
+1 -1
View File
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Data.Entities
namespace SharpbinV3.Server.Data.Entities
{
public sealed class RefreshToken
{
+1 -1
View File
@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Data.Entities
namespace SharpbinV3.Server.Data.Entities
{
[Index(nameof(UID), IsUnique = true)]
[Index(nameof(UUID), IsUnique = true)]