Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ogptoolbox-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
53
Issues
53
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ogptoolbox
ogptoolbox-ui
Commits
8bd01030
Commit
8bd01030
authored
Mar 16, 2017
by
Emmanuel Raviart
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add authentication to autocompletion requests to bypass HTTP cache.
parent
e9dab3a2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
16 deletions
+26
-16
src/Cards/Autocomplete/State.elm
src/Cards/Autocomplete/State.elm
+7
-6
src/Cards/Item/State.elm
src/Cards/Item/State.elm
+3
-1
src/Collections/Edit/State.elm
src/Collections/Edit/State.elm
+6
-2
src/Properties/KeysAutocomplete/State.elm
src/Properties/KeysAutocomplete/State.elm
+7
-6
src/Values/New/State.elm
src/Values/New/State.elm
+3
-1
No files found.
src/Cards/Autocomplete/State.elm
View file @
8bd01030
module
Cards
.
Autocomplete
.
State
exposing
(
..
)
import
Authenticator
.
Types
exposing
(
Authentication
)
import
Autocomplete
import
Cards
.
Autocomplete
.
Types
exposing
(
..
)
import
Dom
...
...
@@ -101,8 +102,8 @@ subscriptions model =
Sub
.
map
AutocompleteMsg
Autocomplete
.
subscription
update
:
InternalMsg
->
I18n
.
Language
->
String
->
Model
->
(
Model
,
Cmd
Msg
)
update
msg
language
fieldId
model
=
update
:
InternalMsg
->
Maybe
Authentication
->
I18n
.
Language
->
String
->
Model
->
(
Model
,
Cmd
Msg
)
update
msg
authentication
language
fieldId
model
=
case
msg
of
AutocompleteMsg
childMsg
->
let
...
...
@@ -122,7 +123,7 @@ update msg language fieldId model =
(
newModel
,
Cmd
.
none
)
Just
newMsg
->
update
newMsg
language
fieldId
newModel
update
newMsg
authentication
language
fieldId
newModel
Focus
->
model
!
[]
...
...
@@ -156,7 +157,7 @@ update msg language fieldId model =
LoadMenu
->
(
{
model
|
autocompleteMenuState
=
AutocompleteMenuLoading
}
,
Requests
.
autocompleteCards
Nothing
authentication
language
model
.
cardTypes
model
.
autocomplete
...
...
@@ -169,7 +170,7 @@ update msg language fieldId model =
AutocompleteMenuSleeping
->
(
{
model
|
autocompleteMenuState
=
AutocompleteMenuLoading
}
,
Requests
.
autocompleteCards
Nothing
authentication
language
model
.
cardTypes
model
.
autocomplete
...
...
@@ -245,7 +246,7 @@ update msg language fieldId model =
Wrap
toTop
->
case
model
.
selected
of
Just
selected
->
update
Reset
language
fieldId
model
update
Reset
authentication
language
fieldId
model
Nothing
->
let
...
...
src/Cards/Item/State.elm
View file @
8bd01030
...
...
@@ -192,7 +192,9 @@ update msg model =
KeysAutocompleteMsg
childMsg
->
let
(
keysAutocompleteModel
,
childCmd
)
=
Properties
.
KeysAutocomplete
.
State
.
update
childMsg
Properties
.
KeysAutocomplete
.
State
.
update
childMsg
model
.
authentication
model
.
language
"
keyId"
model
.
keysAutocompleteModel
...
...
src/Collections/Edit/State.elm
View file @
8bd01030
...
...
@@ -348,7 +348,9 @@ update msg model =
ToolsAutocompleteMsg
childMsg
->
let
(
toolsAutocompleteModel
,
childCmd
)
=
Cards
.
Autocomplete
.
State
.
update
childMsg
Cards
.
Autocomplete
.
State
.
update
childMsg
model
.
authentication
model
.
language
"
toolsAutocomplete"
model
.
toolsAutocompleteModel
...
...
@@ -360,7 +362,9 @@ update msg model =
UseCasesAutocompleteMsg
childMsg
->
let
(
useCasesAutocompleteModel
,
childCmd
)
=
Cards
.
Autocomplete
.
State
.
update
childMsg
Cards
.
Autocomplete
.
State
.
update
childMsg
model
.
authentication
model
.
language
"
useCasesAutocomplete"
model
.
useCasesAutocompleteModel
...
...
src/Properties/KeysAutocomplete/State.elm
View file @
8bd01030
module
Properties
.
KeysAutocomplete
.
State
exposing
(
..
)
import
Authenticator
.
Types
exposing
(
Authentication
)
import
Autocomplete
import
Dom
import
Http
...
...
@@ -101,8 +102,8 @@ subscriptions model =
Sub
.
map
AutocompleteMsg
Autocomplete
.
subscription
update
:
InternalMsg
->
I18n
.
Language
->
String
->
Model
->
(
Model
,
Cmd
Msg
)
update
msg
language
fieldId
model
=
update
:
InternalMsg
->
Maybe
Authentication
->
I18n
.
Language
->
String
->
Model
->
(
Model
,
Cmd
Msg
)
update
msg
authentication
language
fieldId
model
=
case
msg
of
AutocompleteMsg
childMsg
->
let
...
...
@@ -122,7 +123,7 @@ update msg language fieldId model =
(
newModel
,
Cmd
.
none
)
Just
newMsg
->
update
newMsg
language
fieldId
newModel
update
newMsg
authentication
language
fieldId
newModel
Focus
->
model
!
[]
...
...
@@ -156,7 +157,7 @@ update msg language fieldId model =
LoadMenu
->
(
{
model
|
autocompleteMenuState
=
AutocompleteMenuLoading
}
,
Requests
.
autocompletePropertiesKeys
Nothing
authentication
language
model
.
cardTypes
model
.
autocomplete
...
...
@@ -169,7 +170,7 @@ update msg language fieldId model =
AutocompleteMenuSleeping
->
(
{
model
|
autocompleteMenuState
=
AutocompleteMenuLoading
}
,
Requests
.
autocompletePropertiesKeys
Nothing
authentication
language
model
.
cardTypes
model
.
autocomplete
...
...
@@ -245,7 +246,7 @@ update msg language fieldId model =
Wrap
toTop
->
case
model
.
selected
of
Just
selected
->
update
Reset
language
fieldId
model
update
Reset
authentication
language
fieldId
model
Nothing
->
let
...
...
src/Values/New/State.elm
View file @
8bd01030
...
...
@@ -288,7 +288,9 @@ update msg model =
CardsAutocompleteMsg
childMsg
->
let
(
cardsAutocompleteModel
,
childCmd
)
=
Cards
.
Autocomplete
.
State
.
update
childMsg
Cards
.
Autocomplete
.
State
.
update
childMsg
model
.
authentication
model
.
language
"
cardId"
model
.
cardsAutocompleteModel
...
...
Emmanuel Raviart
@eraviart
mentioned in issue
#82 (closed)
·
Mar 16, 2017
mentioned in issue
#82 (closed)
mentioned in issue #82
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment