diff --git a/.all-contributorsrc b/.all-contributorsrc index 8d8b0919..4e716538 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -56,6 +56,16 @@ "code", "ideas" ] + }, + { + "login": "fs366e2spm", + "name": "fs366e2spm", + "avatar_url": "https://avatars2.githubusercontent.com/u/52791126?v=4", + "profile": "https://github.com/fs366e2spm", + "contributions": [ + "bug", + "ideas" + ] } ] } diff --git a/README.md b/README.md index a26ea40a..31cfdf58 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
AKER

🤔
Vincent Baaij

💻
kmm7

💻 🤔 +
fs366e2spm

🐛 🤔 diff --git a/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs b/src/adminTools/adminBlazorWebsite/src/Data/ShortUrlEntity.cs index 0d88ecc6..c978e6e5 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; } 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) { -