-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ef2680
commit 1d0988a
Showing
23 changed files
with
139 additions
and
108 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
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
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 +1 @@ | ||
export const version = '0.1.29' // FIXME: `process.env.npm_package_version` is not available :/ | ||
export const version = '0.1.30' // FIXME: `process.env.npm_package_version` is not available :/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module PagesComponents.Create.Element exposing (init) | ||
|
||
import Dict exposing (Dict) | ||
import Models.OrganizationId exposing (OrganizationId) | ||
import Page | ||
import PagesComponents.Create.Init as Init | ||
import PagesComponents.Create.Models as Models | ||
import PagesComponents.Create.Subscriptions as Subscriptions | ||
import PagesComponents.Create.Updates as Updates | ||
import PagesComponents.Create.Views as Views | ||
import Request | ||
import Shared | ||
|
||
|
||
init : Maybe OrganizationId -> Shared.Model -> Request.With params -> Page.With Model Msg | ||
init urlOrganization shared req = | ||
let | ||
hash : Dict String String | ||
hash = | ||
req.url.fragment |> Maybe.map (\h -> Dict.fromList [ ( "database", h ) ]) |> Maybe.withDefault Dict.empty | ||
|
||
params : Dict String String | ||
params = | ||
hash |> Dict.union shared.params |> Dict.union req.query | ||
in | ||
Page.element | ||
{ init = Init.init urlOrganization | ||
, update = Updates.update req params shared.now shared.projects shared.projectsLoaded urlOrganization | ||
, view = Views.view | ||
, subscriptions = Subscriptions.subscriptions | ||
} | ||
|
||
|
||
type alias Model = | ||
Models.Model | ||
|
||
|
||
type alias Msg = | ||
Models.Msg |
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,39 @@ | ||
module PagesComponents.New.Element exposing (init) | ||
|
||
import Dict exposing (Dict) | ||
import Models.OrganizationId exposing (OrganizationId) | ||
import Page | ||
import PagesComponents.New.Init as Init | ||
import PagesComponents.New.Models as Models | ||
import PagesComponents.New.Subscriptions as Subscriptions | ||
import PagesComponents.New.Updates as Updates | ||
import PagesComponents.New.Views as Views | ||
import Request | ||
import Shared | ||
|
||
|
||
init : Maybe OrganizationId -> Shared.Model -> Request.With params -> Page.With Model Msg | ||
init urlOrganization shared req = | ||
let | ||
hash : Dict String String | ||
hash = | ||
req.url.fragment |> Maybe.map (\h -> Dict.fromList [ ( "database", h ) ]) |> Maybe.withDefault Dict.empty | ||
|
||
params : Dict String String | ||
params = | ||
hash |> Dict.union shared.params |> Dict.union req.query | ||
in | ||
Page.element | ||
{ init = Init.init urlOrganization params | ||
, update = Updates.update req params shared.now shared.projects urlOrganization | ||
, view = Views.view shared req.url urlOrganization | ||
, subscriptions = Subscriptions.subscriptions | ||
} | ||
|
||
|
||
type alias Model = | ||
Models.Model | ||
|
||
|
||
type alias Msg = | ||
Models.Msg |
Oops, something went wrong.