Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
privatestoragemobile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
privatestoragemobile
Commits
5cd86f9b
Commit
5cd86f9b
authored
May 10, 2023
by
Florian Sesser
Browse files
Options
Downloads
Patches
Plain Diff
Make hlint happy
parent
715b59c0
Branches
Branches containing commit
No related tags found
1 merge request
!56
Draft: Style magic wormhole code input field
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
obelisk/frontend/src/Pages/MagicFolders.hs
+7
-7
7 additions, 7 deletions
obelisk/frontend/src/Pages/MagicFolders.hs
with
7 additions
and
7 deletions
obelisk/frontend/src/Pages/MagicFolders.hs
+
7
−
7
View file @
5cd86f9b
...
...
@@ -70,31 +70,31 @@ magicFolders foldersDyn = do
elClass
"h2"
"mdc-dialog__title"
$
text
"Add magic folder"
divClass
"mdc-dialog__content"
$
do
(
_
,
inputEl
)
<-
elAttr'
"label"
(
"class"
=:
"mdc-text-field mdc-text-field--filled"
<>
"data-mdc-auto-init"
=:
"MDCTextField"
)
$
do
elClass
"span"
"mdc-text-field__ripple"
$
blank
elClass
"span"
"mdc-text-field__ripple"
blank
inputEl
<-
inviteCodeInput
elClass
"span"
"mdc-floating-label"
$
text
"Enter Wormhole code"
elClass
"span"
"mdc-line-ripple"
$
blank
elClass
"span"
"mdc-line-ripple"
blank
pure
inputEl
(
_closeButton
,
acceptButton
)
<-
divClass
"mdc-dialog__actions"
$
do
(
closeButton
,
_
)
<-
elAttr'
"button"
(
"type"
=:
"button"
<>
"class"
=:
"mdc-button mdc-dialog__button"
<>
"data-mdc-dialog-action"
=:
"close"
)
$
do
divClass
"mdc-button__ripple"
$
blank
divClass
"mdc-button__ripple"
blank
divClass
"mdc-button__label"
$
text
"Cancel"
(
acceptButton
,
_
)
<-
elAttr'
"button"
(
"type"
=:
"button"
<>
"class"
=:
"mdc-button mdc-dialog__button"
<>
"data-mdc-dialog-action"
=:
"accept"
)
$
do
divClass
"mdc-button__ripple"
$
blank
divClass
"mdc-button__ripple"
blank
divClass
"mdc-button__label"
$
text
"OK"
pure
(
closeButton
,
acceptButton
)
let
goAheadEv
=
leftmost
[
keypress
Enter
inputEl
,
()
<$
domEvent
Click
acceptButton
]
inviteCodeEv
=
tag
(
current
(
_inputElement_value
inputEl
))
goAheadEv
setRoute
$
(
FrontendRoute_AcceptFolderInvite
:/
)
<$>
inviteCodeEv
divClass
"mdc-dialog__scrim"
$
blank
divClass
"mdc-dialog__scrim"
blank
el
"script"
$
do
text
"mdc.autoInit();"
inviteCodeInput
::
(
DomBuilder
t
m
)
=>
m
(
InputElement
EventResult
(
DomBuilderSpace
m
)
t
)
inviteCodeInput
=
-- elAttr' "input" ("class" =: "mdc-text-field__input" <> "type" =: "text" <> "placeholder" =: "7-example-code")
$
blank
inviteCodeInput
=
-- elAttr' "input" ("class" =: "mdc-text-field__input" <> "type" =: "text" <> "placeholder" =: "7-example-code") blank
inputElement
def
-- | A widget representing a single magic-folder.
...
...
@@ -134,7 +134,7 @@ receiveFolderInviteText
=>
m
()
receiveFolderInviteText
=
do
el
"div"
$
do
inputEl
<-
inputElement
$
def
inputEl
<-
inputElement
def
-- { _inputElementConfig_elementConfig = ElementConfig
-- { _elementConfig_namespace = Nothing
-- , _elementConfig_initialAttributes = "foo" =: "bar"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment