Vendor globe.gl and its Earth textures
globe.gl 2.46.2 (MIT, three.js r185 bundled) and the NASA Blue Marble and Black Marble textures from three-globe 2.45.3, copied once from the npm registry; SOURCES.md records versions, licences and sha256, and the bundled libraries' notices are in LICENSES-bundled.txt. The service worker leaves the folder out of the offline precache: the feed loads it the first time it shows the globe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
b9040bbd80
commit
f41ebf2160
26 files changed
+122
-1101
No files matched your search
@@ -1,9 +0,0 @@
|
||||
using decePubClient.Models.Types;
|
||||
|
||||
namespace decePubClient.Models;
|
||||
|
||||
public class ActionBarFilter
|
||||
{
|
||||
public TimelineType TimelineType { get; set; } = TimelineType.Home;
|
||||
public TimeSortingType TimeSortingType { get; set; } = TimeSortingType.Ascending;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class BoostingUser
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PictureUrl { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public interface CustomIPrincipal : IPrincipal
|
||||
{
|
||||
string UserId { get; set; }
|
||||
string UserName { get; set; }
|
||||
string DisplayName { get; set; }
|
||||
string PictureUrl { get; set; }
|
||||
string ProfileUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class CustomPrincipal : CustomIPrincipal
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PictureUrl { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
public bool IsAdmin { get; set; } = false;
|
||||
public IIdentity Identity { get; }
|
||||
|
||||
public CustomPrincipal(string userName, string authType) =>
|
||||
Identity = new GenericIdentity(userName, authType);
|
||||
|
||||
public bool IsInRole(string role) => false;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class Media
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string ContentType { get; set; }
|
||||
public string AltText { get; set; }
|
||||
public byte[] Blob { get; set; } = []; //TODO TEMPORARY
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class Mention
|
||||
{
|
||||
public string DisplayName { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
using decePubClient.Models.Types;
|
||||
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class Message
|
||||
{
|
||||
public MessageUser User { get; set; } = new();
|
||||
public MessageType MessageType { get; set; } = MessageType.Public;
|
||||
public string RootMessageId { get; set; }
|
||||
public string MessageId { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
public bool IsFavourite { get; set; } = false;
|
||||
public int BoostsCounter { get; set; } = 0;
|
||||
public bool IsBoostedByCurrentUser { get; set; } = false;
|
||||
public BoostingUser BoostingUser { get; set; }
|
||||
public List<Media> Medias { get; set; } = [];
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[Bindable(false), JsonIgnore]
|
||||
public bool IsOptionsOpen { get; set; } = false;
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
using decePubClient.Models.Types;
|
||||
using decePubClient.Resources;
|
||||
|
||||
namespace decePubClient.Models;
|
||||
|
||||
public class MessageForm
|
||||
{
|
||||
public string RootMessageId { get; set; }
|
||||
|
||||
[Required(ErrorMessageResourceName = ValidationNames.Required, ErrorMessageResourceType = typeof(ErrorMessages))]
|
||||
public MessageType MessageType { get; set; } = MessageType.Public;
|
||||
[Required(ErrorMessageResourceName = ValidationNames.Required, ErrorMessageResourceType = typeof(ErrorMessages))]
|
||||
public ContentType ContentType { get; set; } = ContentType.PlainText;
|
||||
[StringLength(64, ErrorMessageResourceName = ValidationNames.MaxLength, ErrorMessageResourceType = typeof(ErrorMessages))]
|
||||
public string Title { get; set; }
|
||||
[StringLength(5_000, ErrorMessageResourceName = ValidationNames.MaxLength, ErrorMessageResourceType = typeof(ErrorMessages))]
|
||||
public string Content { get; set; }
|
||||
public List<UploadMedia> Media { get; set; } = [];
|
||||
|
||||
[JsonIgnore, Bindable(false)]
|
||||
public MediaType MediaType { get; set; } = MediaType.Images;
|
||||
[JsonIgnore, Bindable(false)]
|
||||
public bool IsScopeOptionsOpen { get; set; } = false;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class MessageUser
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PictureUrl { get; set; }
|
||||
public string BackgroundUrl { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace decePubClient.Models.Types;
|
||||
|
||||
public enum ContentType
|
||||
{
|
||||
PlainText = 1,
|
||||
HTML,
|
||||
Markdown
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace decePubClient.Models.Types;
|
||||
|
||||
public enum TimeSortingType
|
||||
{
|
||||
Ascending,
|
||||
Descending
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
namespace decePubClient.Models
|
||||
{
|
||||
public class User
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public bool IsAuthenticated { get; set; } = false;
|
||||
public List<UserClaim> Claims { get; set; } = [];
|
||||
|
||||
public string UserName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PictureUrl { get; set; }
|
||||
public string BackgroundUrl { get; set; }
|
||||
public string ProfileUrl { get; set; }
|
||||
|
||||
public MessageUser ToMessageUser() => new()
|
||||
{
|
||||
UserId = Id,
|
||||
UserName = UserName,
|
||||
DisplayName = DisplayName,
|
||||
PictureUrl = PictureUrl,
|
||||
BackgroundUrl = BackgroundUrl,
|
||||
ProfileUrl = ProfileUrl
|
||||
};
|
||||
|
||||
public BoostingUser ToBoostingUser() => new()
|
||||
{
|
||||
UserId = Id,
|
||||
UserName = UserName,
|
||||
DisplayName = DisplayName,
|
||||
PictureUrl = PictureUrl,
|
||||
ProfileUrl = ProfileUrl
|
||||
};
|
||||
}
|
||||
|
||||
public class UserClaim
|
||||
{
|
||||
public string Type { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user