-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from jfmengels/doc-improvements
Improve documentation
- Loading branch information
Showing
13 changed files
with
197 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,16 +26,17 @@ import Review.Rule exposing (Rule) | |
import String.Extra | ||
|
||
|
||
|
||
config = configMagicLinkAuth "Jim Carlson" "jxxcarlson" "[email protected]" | ||
config = | ||
configMagicLinkAuth "Jim Carlson" "jxxcarlson" "[email protected]" | ||
|
||
|
||
configMagicLinkAuth fullname username email = | ||
configAll {fullname = fullname, username = username, email = email } | ||
configAll { fullname = fullname, username = username, email = email } | ||
|
||
|
||
stringifyAdminConfig : { fullname : String, username : String, email : String } -> String | ||
stringifyAdminConfig { fullname, username, email } = | ||
"{ fullname = " ++ String.Extra.quote fullname ++ ", username = " ++ String.Extra.quote username ++ ", email = " ++ String.Extra.quote email ++"}" | ||
"{ fullname = " ++ String.Extra.quote fullname ++ ", username = " ++ String.Extra.quote username ++ ", email = " ++ String.Extra.quote email ++ "}" | ||
|
||
|
||
configAll : { fullname : String, username : String, email : String } -> List Rule | ||
|
@@ -199,7 +200,7 @@ configAuthFrontend = | |
|
||
|
||
configAuthBackend : { fullname : String, username : String, email : String } -> List Rule | ||
configAuthBackend adminConfig= | ||
configAuthBackend adminConfig = | ||
[ ClauseInCase.config "Backend" "update" "AuthBackendMsg authMsg" "Auth.Flow.backendUpdate (MagicLink.Auth.backendConfig model) authMsg" |> ClauseInCase.makeRule | ||
, ClauseInCase.config "Backend" "update" "AutoLogin sessionId loginData" "( model, Lamdera.sendToFrontend sessionId (AuthToFrontend <| Auth.Common.AuthSignInWithTokenResponse <| Ok <| loginData) )" |> ClauseInCase.makeRule | ||
, ClauseInCase.config "Backend" "update" "OnConnected sessionId clientId" "( model, Reconnect.connect model sessionId clientId )" |> ClauseInCase.makeRule | ||
|
@@ -238,7 +239,6 @@ configAuthBackend adminConfig= | |
] | ||
|
||
|
||
|
||
configRoute : List Rule | ||
configRoute = | ||
[ -- ROUTE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.