diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 30d2f229..6aab95d4 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -2,17 +2,17 @@ version: 1 update_configs: - package_manager: "dotnet:nuget" directory: "/src/shortenerTools" - update_schedule: "weekly" + update_schedule: "monthly" default_assignees: - "fboucher" default_reviewers: - "fboucher" - target_branch: "dev" + target_branch: "vnext" - package_manager: "dotnet:nuget" directory: "/src/adminTools/adminBlazorWebsite/src" - update_schedule: "weekly" + update_schedule: "monthly" default_assignees: - "fboucher" default_reviewers: - "fboucher" - target_branch: "dev" \ No newline at end of file + target_branch: "vnext" \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 92056412..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "workbench.colorCustomizations": { - "activityBar.background": "#3399ff", - "activityBar.activeBackground": "#3399ff", - "activityBar.activeBorder": "#bf0060", - "activityBar.foreground": "#15202b", - "activityBar.inactiveForeground": "#15202b99", - "activityBarBadge.background": "#bf0060", - "activityBarBadge.foreground": "#e7e7e7", - "titleBar.activeBackground": "#007fff", - "titleBar.inactiveBackground": "#007fff99", - "titleBar.activeForeground": "#e7e7e7", - "titleBar.inactiveForeground": "#e7e7e799", - "statusBar.background": "#007fff", - "statusBarItem.hoverBackground": "#3399ff", - "statusBar.foreground": "#e7e7e7", - "statusBar.border": "#007fff", - "titleBar.border": "#007fff" - }, - "peacock.color": "#272727" -} \ No newline at end of file diff --git a/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs b/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs index 0d88ecc6..1a7b2983 100644 --- a/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs +++ b/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs @@ -1,3 +1,4 @@ +using System.ComponentModel.DataAnnotations; using System.Linq; namespace adminBlazorWebsite.Data @@ -10,6 +11,8 @@ public class ShortUrlEntity public string Title { get; set; } + [Required] + [Url] public string Url { get; set; } public string ShortUrl { get; set; } @@ -32,7 +35,7 @@ public string GetDisplayableUrl(){ var lenght = Url.ToString().Length; if (lenght >= 50){ - return string.Concat(Url.Substring(1,50), "..."); + return string.Concat(Url.Substring(0,49), "..."); } return Url; } diff --git a/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlRequest.cs b/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlRequest.cs index b1f14284..f64ba9e4 100644 --- a/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlRequest.cs +++ b/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlRequest.cs @@ -20,6 +20,7 @@ public string Vanity { } [Required] + [Url] public string Url { get; set; } } diff --git a/src/adminTools/adminBlazorWebsite/src/Pages/Urls.razor b/src/adminTools/adminBlazorWebsite/src/Pages/Urls.razor index 8da2ee18..92ad6cb6 100644 --- a/src/adminTools/adminBlazorWebsite/src/Pages/Urls.razor +++ b/src/adminTools/adminBlazorWebsite/src/Pages/Urls.razor @@ -46,86 +46,65 @@ else

- - -

+ + +

} -@if(ShowCreatePopup) +@if (ShowCreatePopup) { -