Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed May 20, 2024
1 parent 54b273c commit 99dc004
Show file tree
Hide file tree
Showing 8 changed files with 225 additions and 221 deletions.
396 changes: 200 additions & 196 deletions src/elm/Main.elm

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/elm/Main/Pages/Model.elm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SPDX-License-Identifier: Apache-2.0

module Main.Pages.Model exposing (Model(..))

import Pages.Home_
import Pages.Account.Authenticate
import Pages.Account.Login
import Pages.Account.Logout
Expand All @@ -24,9 +23,15 @@ import Pages.Dash.Secrets.Engine_.Shared.Org_.Team_.Add
import Pages.Dash.Secrets.Engine_.Shared.Org_.Team_.Name_
import Pages.Dashboards
import Pages.Dashboards.Dashboard_
import Pages.Home_
import Pages.NotFound_
import Pages.Org_
import Pages.Org_.Builds
import Pages.Org_.Repo_
import Pages.Org_.Repo_.Build_
import Pages.Org_.Repo_.Build_.Graph
import Pages.Org_.Repo_.Build_.Pipeline
import Pages.Org_.Repo_.Build_.Services
import Pages.Org_.Repo_.Deployments
import Pages.Org_.Repo_.Deployments.Add
import Pages.Org_.Repo_.Hooks
Expand All @@ -36,11 +41,6 @@ import Pages.Org_.Repo_.Schedules.Add
import Pages.Org_.Repo_.Schedules.Name_
import Pages.Org_.Repo_.Settings
import Pages.Org_.Repo_.Tags
import Pages.Org_.Repo_.Build_
import Pages.Org_.Repo_.Build_.Graph
import Pages.Org_.Repo_.Build_.Pipeline
import Pages.Org_.Repo_.Build_.Services
import Pages.NotFound_
import View exposing (View)


Expand Down
12 changes: 6 additions & 6 deletions src/elm/Main/Pages/Msg.elm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SPDX-License-Identifier: Apache-2.0

module Main.Pages.Msg exposing (Msg(..))

import Pages.Home_
import Pages.Account.Authenticate
import Pages.Account.Login
import Pages.Account.Logout
Expand All @@ -24,9 +23,15 @@ import Pages.Dash.Secrets.Engine_.Shared.Org_.Team_.Add
import Pages.Dash.Secrets.Engine_.Shared.Org_.Team_.Name_
import Pages.Dashboards
import Pages.Dashboards.Dashboard_
import Pages.Home_
import Pages.NotFound_
import Pages.Org_
import Pages.Org_.Builds
import Pages.Org_.Repo_
import Pages.Org_.Repo_.Build_
import Pages.Org_.Repo_.Build_.Graph
import Pages.Org_.Repo_.Build_.Pipeline
import Pages.Org_.Repo_.Build_.Services
import Pages.Org_.Repo_.Deployments
import Pages.Org_.Repo_.Deployments.Add
import Pages.Org_.Repo_.Hooks
Expand All @@ -36,11 +41,6 @@ import Pages.Org_.Repo_.Schedules.Add
import Pages.Org_.Repo_.Schedules.Name_
import Pages.Org_.Repo_.Settings
import Pages.Org_.Repo_.Tags
import Pages.Org_.Repo_.Build_
import Pages.Org_.Repo_.Build_.Graph
import Pages.Org_.Repo_.Build_.Pipeline
import Pages.Org_.Repo_.Build_.Services
import Pages.NotFound_


type Msg
Expand Down
10 changes: 5 additions & 5 deletions src/elm/Pages/Dashboards/Dashboard_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import Components.Nav
import Effect exposing (Effect)
import Html
exposing
( div
( br
, code
, div
, h1
, main_
, code
, p
, span
, text
)
Expand All @@ -38,8 +40,6 @@ import Utils.Helpers as Util
import Utils.Interval as Interval
import Vela
import View exposing (View)
import Html exposing (p)
import Html exposing (br)


{-| page : takes user, shared model, route, and returns the dashboard page.
Expand Down Expand Up @@ -224,7 +224,7 @@ view shared route model =
[]
[ text "This dashboard doesn't have repositories added yet. Add some with the CLI:"
, br [] []
, code [ class "shell" ]
, code [ class "shell" ]
[ text ("vela update dashboard --id " ++ route.params.dashboard ++ " --add-repos org/repo") ]
]
]
Expand Down
4 changes: 2 additions & 2 deletions src/elm/Route.elm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ toString route =
[ Route.Path.toString route.path
, Route.Query.toString route.query
, route.hash
|> Maybe.map (String.append "#")
|> Maybe.withDefault ""
|> Maybe.map (String.append "#")
|> Maybe.withDefault ""
]
6 changes: 3 additions & 3 deletions src/elm/Route/Query.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Route.Query exposing (fromUrl, toString)

import Dict exposing (Dict)
import Url exposing (Url)
import Url.Parser exposing (query)
import Url.Builder exposing (QueryParameter)
import Url.Parser exposing (query)


fromUrl : Url -> Dict String String
Expand All @@ -28,7 +28,7 @@ fromUrl url =
|> Dict.fromList


queryPiecesToTuple : List String -> Maybe (String, String)
queryPiecesToTuple : List String -> Maybe ( String, String )
queryPiecesToTuple pieces =
case pieces of
[] ->
Expand All @@ -55,6 +55,6 @@ toString queryParameterList =
|> Url.Builder.toQuery


tupleToQueryPiece : (String, String) -> QueryParameter
tupleToQueryPiece : ( String, String ) -> QueryParameter
tupleToQueryPiece ( key, value ) =
Url.Builder.string key value
4 changes: 2 additions & 2 deletions src/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1752,14 +1752,14 @@ code.shell {
display: inline-block;
margin: 1rem 0;
padding: 0.75rem 1rem 0.75rem 2rem;

background-color: var(--color-bg-dark);

&::before {
position: absolute;
top: 50%;
left: 0.8rem;

display: block;

color: var(--color-green);
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--color-lavender-light: hsl(286, 29%, 65%); // good for text on coal

// grays
--color-coal-darkest: hsl(0, 0%, 10%);
--color-coal-darkest: hsl(0, 0%, 10%);
--color-coal-dark: hsl(0, 0%, 12%);
--color-coal: hsl(0, 0%, 16%); // main dark bg
--color-coal-light: hsl(0, 0%, 34%);
Expand Down

0 comments on commit 99dc004

Please sign in to comment.