-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display line numbers in Elm editor and support using tab key
Use the Monaco editor for editing the Elm code. Expand the compilation to support Elm make compilation to javascript.
- Loading branch information
Showing
10 changed files
with
334 additions
and
82 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
/elm-stuff/ | ||
|
||
*.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module Backend.Route exposing | ||
( Route(..) | ||
, StaticFile(..) | ||
, fromAuth0LoginRedirectPath | ||
, routeFromUrl | ||
) | ||
|
||
import Url | ||
import Url.Parser | ||
|
||
|
||
type Route | ||
= ApiRoute | ||
| StaticFileRoute StaticFile | ||
|
||
|
||
type StaticFile | ||
= FrontendElmJavascriptRoute | ||
| MonacoFrameDocumentRoute | ||
|
||
|
||
fromAuth0LoginRedirectPath : String | ||
fromAuth0LoginRedirectPath = | ||
"/login/fromauth0" | ||
|
||
|
||
routeFromUrl : Url.Url -> Maybe Route | ||
routeFromUrl = | ||
Url.Parser.parse | ||
(Url.Parser.oneOf | ||
[ Url.Parser.map (StaticFileRoute FrontendElmJavascriptRoute) (Url.Parser.s "elm-made.js") | ||
, Url.Parser.map (StaticFileRoute MonacoFrameDocumentRoute) (Url.Parser.s "monaco") | ||
, Url.Parser.map ApiRoute (Url.Parser.s "api") | ||
] | ||
) |
4 changes: 2 additions & 2 deletions
4
implement/elm-editor-server/src/ElmFullstackCompilerInterface/ElmMake.elm
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module ElmFullstackCompilerInterface.ElmMake exposing (..) | ||
|
||
|
||
elm_make__debug__base64____src_FrontendWeb_Main_elm : String | ||
elm_make__debug__base64____src_FrontendWeb_Main_elm = | ||
elm_make__debug__javascript__base64____src_FrontendWeb_Main_elm : String | ||
elm_make__debug__javascript__base64____src_FrontendWeb_Main_elm = | ||
"The Elm-fullstack compiler replaces this function." |
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.