From 1613d3dd112b74bd734c763d527566225bc3893a Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Wed, 21 Feb 2024 20:04:22 +0100 Subject: [PATCH] remove owl annotations --- entry_types/article.go | 4 ++-- entry_types/bookmark.go | 6 +++--- entry_types/image.go | 6 +++--- entry_types/note.go | 2 +- entry_types/page.go | 4 ++-- entry_types/recipe.go | 10 +++++----- entry_types/reply.go | 6 +++--- plugings/instagram.go | 4 ++-- web/activity_pub_handler.go | 6 +++--- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/entry_types/article.go b/entry_types/article.go index 15a6198..8cd10ad 100644 --- a/entry_types/article.go +++ b/entry_types/article.go @@ -12,8 +12,8 @@ type Article struct { } type ArticleMetaData struct { - Title string `owl:"inputType=text"` - Content string `owl:"inputType=text widget=textarea"` + Title string + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/bookmark.go b/entry_types/bookmark.go index e5ca2d8..19b5d3e 100644 --- a/entry_types/bookmark.go +++ b/entry_types/bookmark.go @@ -12,9 +12,9 @@ type Bookmark struct { } type BookmarkMetaData struct { - Title string `owl:"inputType=text"` - Url string `owl:"inputType=text"` - Content string `owl:"inputType=text widget=textarea"` + Title string + Url string + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/image.go b/entry_types/image.go index 7d7b0aa..acb9cdc 100644 --- a/entry_types/image.go +++ b/entry_types/image.go @@ -12,9 +12,9 @@ type Image struct { } type ImageMetaData struct { - ImageId string `owl:"inputType=file"` - Title string `owl:"inputType=text"` - Content string `owl:"inputType=text widget=textarea"` + ImageId string + Title string + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/note.go b/entry_types/note.go index 7e1bcf6..f828465 100644 --- a/entry_types/note.go +++ b/entry_types/note.go @@ -12,7 +12,7 @@ type Note struct { } type NoteMetaData struct { - Content string `owl:"inputType=text widget=textarea"` + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/page.go b/entry_types/page.go index 9e088bf..37a7c97 100644 --- a/entry_types/page.go +++ b/entry_types/page.go @@ -12,8 +12,8 @@ type Page struct { } type PageMetaData struct { - Title string `owl:"inputType=text"` - Content string `owl:"inputType=text widget=textarea"` + Title string + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/recipe.go b/entry_types/recipe.go index daa8a57..f0eb117 100644 --- a/entry_types/recipe.go +++ b/entry_types/recipe.go @@ -13,11 +13,11 @@ type Recipe struct { } type RecipeMetaData struct { - Title string `owl:"inputType=text"` - Yield string `owl:"inputType=text"` - Duration string `owl:"inputType=text"` - Ingredients []string `owl:"inputType=text widget=textlist"` - Content string `owl:"inputType=text widget=textarea"` + Title string + Yield string + Duration string + Ingredients []string + Content string } // Form implements model.EntryMetaData. diff --git a/entry_types/reply.go b/entry_types/reply.go index e82d0da..1e088f6 100644 --- a/entry_types/reply.go +++ b/entry_types/reply.go @@ -12,9 +12,9 @@ type Reply struct { } type ReplyMetaData struct { - Title string `owl:"inputType=text"` - Url string `owl:"inputType=text"` - Content string `owl:"inputType=text widget=textarea"` + Title string + Url string + Content string } // Form implements model.EntryMetaData. diff --git a/plugings/instagram.go b/plugings/instagram.go index c95611f..5e045c4 100644 --- a/plugings/instagram.go +++ b/plugings/instagram.go @@ -17,8 +17,8 @@ type Instagram struct { } type InstagramConfig struct { - User string `owl:"widget=text"` - Password string `owl:"widget=password"` + User string + Password string } // Form implements app.AppConfig. diff --git a/web/activity_pub_handler.go b/web/activity_pub_handler.go index da9ae92..6783184 100644 --- a/web/activity_pub_handler.go +++ b/web/activity_pub_handler.go @@ -21,9 +21,9 @@ type ActivityPubServer struct { } type ActivityPubConfig struct { - PreferredUsername string `owl:"inputType=text"` - PublicKeyPem string `owl:"inputType=text widget=textarea"` - PrivateKeyPem string `owl:"inputType=text widget=textarea"` + PreferredUsername string + PublicKeyPem string + PrivateKeyPem string } // Form implements app.AppConfig.