From 375cafb94600f4981f3a3ffd780794bb0951a9b8 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 4 May 2022 11:19:28 +0200 Subject: [PATCH] more naming fixups --- public/index.html | 2 +- src/Pages/About.elm | 16 ++++++++-------- src/Pages/App_String.elm | 6 +++--- src/Pages/Top.elm | 10 +++++----- src/Shared.elm | 14 +++++++------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/public/index.html b/public/index.html index 1417882..f0d48e3 100644 --- a/public/index.html +++ b/public/index.html @@ -28,7 +28,7 @@

- abra recipes

+ Co-op Cloud Recipes

diff --git a/src/Pages/About.elm b/src/Pages/About.elm index 84f03c3..20a801c 100644 --- a/src/Pages/About.elm +++ b/src/Pages/About.elm @@ -33,21 +33,21 @@ type alias Params = view : Url Params -> Document Msg view { params } = - let + let elm_link = a [ href "https://elm-lang.org/" ] [ text "Elm" ] coopcloud_link = a [ href "https://coopcloud.tech/" ] [ text "Co-op Cloud" ] source_link = a [ href "https://git.coopcloud.tech/coop-cloud/abra-apps" ] [ text "source" ] in - { title = "about – abra recipes" - , body = + { title = "About – Co-op Cloud Recipes" + , body = [ div [ class "pt-3" ] - [ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ] + [ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ] [ div [ class "card" ] [ div [ class "card-header" ] - [ h2 [] [ text "abra recipes" ] + [ h2 [] [ text "Co-op Cloud Recipes" ] ] , div [ class "card-body" ] - [ p [] + [ p [] [ text "a lil' " , text " tool to display " @@ -57,12 +57,12 @@ view { params } = , p [] [ text "written in " - , elm_link + , elm_link , text " for some reason 🤷" ] ] , div [ class "card-footer" ] - [ p [] + [ p [] [ text "by @3wc (" , source_link , text ")" diff --git a/src/Pages/App_String.elm b/src/Pages/App_String.elm index b2532cf..8d52576 100644 --- a/src/Pages/App_String.elm +++ b/src/Pages/App_String.elm @@ -151,13 +151,13 @@ title : Model -> String title model = case model.status of Loading -> - "loading – abra recipes" + "loading – Co-op Cloud Recipes" Failure -> - "error –- abra recipes" + "error –- Co-op Cloud Recipes" Success app -> - app.name ++ " – abra recipes" + app.name ++ " – Co-op Cloud Recipes" body : Model -> Html Msg diff --git a/src/Pages/Top.elm b/src/Pages/Top.elm index 0f4bded..cbe9507 100644 --- a/src/Pages/Top.elm +++ b/src/Pages/Top.elm @@ -113,7 +113,7 @@ filterAppsScore : List App -> Maybe Int -> List App filterAppsScore apps score = case score of Just s -> - List.filter (\app -> + List.filter (\app -> app.status <= s ) apps Nothing -> @@ -126,7 +126,7 @@ filterAppsCategory apps category = if c == All then apps else - List.filter (\app -> + List.filter (\app -> app.category == categories.toString c ) apps Nothing -> @@ -138,7 +138,7 @@ filterAppsText apps text = Just "" -> apps Just t -> - List.filter (\app -> + List.filter (\app -> String.contains (String.toLower t) ( String.toLower app.name ++ String.toLower ( Maybe.withDefault "" app.description @@ -214,7 +214,7 @@ subscriptions model = view : Model -> Document Msg view model = - { title = "abra recipes" + { title = "Co-op Cloud Recipes" , body = [ body model ] } @@ -342,7 +342,7 @@ viewApps model = , div [ class "col-md-6" ] [ div [ class "row" ] [ div [ class "col-sm-12" ] [ - div [] [ + div [] [ form [ class "search-bar-container" ] [ label [ for "text" ] [ text "Search" ] , input [ class "search-bar-input", id "text", onInput FilterText ] [] diff --git a/src/Shared.elm b/src/Shared.elm index 0866093..1855771 100644 --- a/src/Shared.elm +++ b/src/Shared.elm @@ -68,18 +68,18 @@ view : view { page, toMsg } model = { title = page.title , body = - [ div [ class "background" ] - [ nav + [ div [ class "background" ] + [ nav [ class "navbar navbar-expand-lg sticky-top font-weight-bold" ] - [ a [ class "navbar-text", href (Route.toString Route.Top) ] - [ img + [ a [ class "navbar-text", href (Route.toString Route.Top) ] + [ img [ src "/logo-2.png" , class "d-inline-block align-top mr-2" - , alt "" + , alt "" , width 48 , height 16 ] [] - , text "abra recipes" - ] + , text "Co-op Cloud Recipes" + ] , ul [ class "navbar-nav" ] [ li [ class "nav-tem" ] [ a [ class "nav-link navbar-text", href (Route.toString Route.About) ] [ text "about" ] ] ]