elm-pages 3.0.0-beta.1 → 3.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/codegen/elm-pages-codegen.js +803 -284
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateData.elmi +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateData.elmo +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateDataTest.elmo +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/o.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm.json +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Runner.elm.js +285 -101
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/dead-code-review/src/Pages/Review/DeadCodeEliminateData.elm +140 -17
- package/generator/dead-code-review/tests/Pages/Review/DeadCodeEliminateDataTest.elm +218 -0
- package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/o.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/elm.json +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/src/SharedTemplate.elm +1 -1
- package/generator/src/build.js +75 -42
- package/generator/src/compatibility-key.js +1 -0
- package/generator/src/config.js +41 -0
- package/generator/src/dev-server.js +36 -56
- package/generator/src/generate-template-module-connector.js +0 -28
- package/generator/src/pre-render-html.js +31 -17
- package/generator/src/render.js +2 -0
- package/generator/src/seo-renderer.js +11 -4
- package/generator/src/vite-utils.js +78 -0
- package/generator/template/app/Api.elm +1 -1
- package/generator/template/app/Site.elm +6 -1
- package/package.json +2 -3
- package/src/ApiRoute.elm +0 -3
- package/src/DataSource/File.elm +1 -1
- package/src/DataSource/Internal/Request.elm +0 -5
- package/src/DataSource.elm +39 -31
- package/src/Form/Field.elm +1 -1
- package/src/Form.elm +1 -1
- package/src/Head/Seo.elm +16 -27
- package/src/Head.elm +126 -0
- package/src/HtmlPrinter.elm +7 -3
- package/src/Pages/Generate.elm +544 -102
- package/src/Pages/Internal/NotFoundReason.elm +3 -2
- package/src/Pages/Internal/Platform/Cli.elm +91 -27
- package/src/Pages/Internal/Platform/Cli.elm.bak +1276 -0
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +6 -0
- package/src/Pages/Internal/Platform.elm +34 -27
- package/src/Pages/ProgramConfig.elm +6 -3
- package/src/Server/Session.elm +149 -83
- package/src/Server/SetCookie.elm +89 -31
|
@@ -25890,6 +25890,370 @@ var $author$project$Gen$Pages$Internal$NotFoundReason$annotation_ = {
|
|
|
25890
25890
|
$author$project$Elm$Annotation$list(
|
|
25891
25891
|
A2($author$project$Elm$Annotation$tuple, $author$project$Elm$Annotation$string, $author$project$Elm$Annotation$string)))
|
|
25892
25892
|
};
|
|
25893
|
+
var $author$project$Gen$Pages$Internal$Platform$moduleName_ = _List_fromArray(
|
|
25894
|
+
['Pages', 'Internal', 'Platform']);
|
|
25895
|
+
var $author$project$Elm$Annotation$triple = F3(
|
|
25896
|
+
function (one, two, three) {
|
|
25897
|
+
return $author$project$Internal$Compiler$Annotation(
|
|
25898
|
+
{
|
|
25899
|
+
aliases: A2(
|
|
25900
|
+
$author$project$Internal$Compiler$mergeAliases,
|
|
25901
|
+
A2(
|
|
25902
|
+
$author$project$Internal$Compiler$mergeAliases,
|
|
25903
|
+
$author$project$Elm$Annotation$getAliases(one),
|
|
25904
|
+
$author$project$Elm$Annotation$getAliases(two)),
|
|
25905
|
+
$author$project$Elm$Annotation$getAliases(three)),
|
|
25906
|
+
annotation: $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
|
|
25907
|
+
$author$project$Internal$Compiler$nodifyAll(
|
|
25908
|
+
_List_fromArray(
|
|
25909
|
+
[
|
|
25910
|
+
$author$project$Internal$Compiler$getInnerAnnotation(one),
|
|
25911
|
+
$author$project$Internal$Compiler$getInnerAnnotation(two),
|
|
25912
|
+
$author$project$Internal$Compiler$getInnerAnnotation(three)
|
|
25913
|
+
]))),
|
|
25914
|
+
imports: _Utils_ap(
|
|
25915
|
+
$author$project$Internal$Compiler$getAnnotationImports(one),
|
|
25916
|
+
_Utils_ap(
|
|
25917
|
+
$author$project$Internal$Compiler$getAnnotationImports(two),
|
|
25918
|
+
$author$project$Internal$Compiler$getAnnotationImports(three)))
|
|
25919
|
+
});
|
|
25920
|
+
});
|
|
25921
|
+
var $author$project$Gen$Pages$Internal$Platform$annotation_ = {
|
|
25922
|
+
effect: F6(
|
|
25923
|
+
function (effectArg0, effectArg1, effectArg2, effectArg3, effectArg4, effectArg5) {
|
|
25924
|
+
return A3(
|
|
25925
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25926
|
+
_List_fromArray(
|
|
25927
|
+
['Pages', 'Internal', 'Platform']),
|
|
25928
|
+
'Effect',
|
|
25929
|
+
_List_fromArray(
|
|
25930
|
+
[effectArg0, effectArg1, effectArg2, effectArg3, effectArg4, effectArg5]));
|
|
25931
|
+
}),
|
|
25932
|
+
flags: A4(
|
|
25933
|
+
$author$project$Elm$Annotation$alias,
|
|
25934
|
+
$author$project$Gen$Pages$Internal$Platform$moduleName_,
|
|
25935
|
+
'Flags',
|
|
25936
|
+
_List_Nil,
|
|
25937
|
+
A3(
|
|
25938
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25939
|
+
_List_fromArray(
|
|
25940
|
+
['Decode']),
|
|
25941
|
+
'Value',
|
|
25942
|
+
_List_Nil)),
|
|
25943
|
+
model: F4(
|
|
25944
|
+
function (modelArg0, modelArg1, modelArg2, modelArg3) {
|
|
25945
|
+
return A4(
|
|
25946
|
+
$author$project$Elm$Annotation$alias,
|
|
25947
|
+
$author$project$Gen$Pages$Internal$Platform$moduleName_,
|
|
25948
|
+
'Model',
|
|
25949
|
+
_List_fromArray(
|
|
25950
|
+
[modelArg0, modelArg1, modelArg2, modelArg3]),
|
|
25951
|
+
$author$project$Elm$Annotation$record(
|
|
25952
|
+
_List_fromArray(
|
|
25953
|
+
[
|
|
25954
|
+
_Utils_Tuple2(
|
|
25955
|
+
'key',
|
|
25956
|
+
A3(
|
|
25957
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25958
|
+
_List_Nil,
|
|
25959
|
+
'Maybe',
|
|
25960
|
+
_List_fromArray(
|
|
25961
|
+
[
|
|
25962
|
+
A3(
|
|
25963
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25964
|
+
_List_fromArray(
|
|
25965
|
+
['Browser', 'Navigation']),
|
|
25966
|
+
'Key',
|
|
25967
|
+
_List_Nil)
|
|
25968
|
+
]))),
|
|
25969
|
+
_Utils_Tuple2(
|
|
25970
|
+
'url',
|
|
25971
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Url', _List_Nil)),
|
|
25972
|
+
_Utils_Tuple2('currentPath', $author$project$Elm$Annotation$string),
|
|
25973
|
+
_Utils_Tuple2('ariaNavigationAnnouncement', $author$project$Elm$Annotation$string),
|
|
25974
|
+
_Utils_Tuple2(
|
|
25975
|
+
'pageData',
|
|
25976
|
+
A3(
|
|
25977
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25978
|
+
_List_Nil,
|
|
25979
|
+
'Result',
|
|
25980
|
+
_List_fromArray(
|
|
25981
|
+
[
|
|
25982
|
+
$author$project$Elm$Annotation$string,
|
|
25983
|
+
$author$project$Elm$Annotation$record(
|
|
25984
|
+
_List_fromArray(
|
|
25985
|
+
[
|
|
25986
|
+
_Utils_Tuple2(
|
|
25987
|
+
'userModel',
|
|
25988
|
+
$author$project$Elm$Annotation$var('userModel')),
|
|
25989
|
+
_Utils_Tuple2(
|
|
25990
|
+
'pageData',
|
|
25991
|
+
$author$project$Elm$Annotation$var('pageData')),
|
|
25992
|
+
_Utils_Tuple2(
|
|
25993
|
+
'sharedData',
|
|
25994
|
+
$author$project$Elm$Annotation$var('sharedData')),
|
|
25995
|
+
_Utils_Tuple2(
|
|
25996
|
+
'actionData',
|
|
25997
|
+
A3(
|
|
25998
|
+
$author$project$Elm$Annotation$namedWith,
|
|
25999
|
+
_List_Nil,
|
|
26000
|
+
'Maybe',
|
|
26001
|
+
_List_fromArray(
|
|
26002
|
+
[
|
|
26003
|
+
$author$project$Elm$Annotation$var('actionData')
|
|
26004
|
+
])))
|
|
26005
|
+
]))
|
|
26006
|
+
]))),
|
|
26007
|
+
_Utils_Tuple2(
|
|
26008
|
+
'notFound',
|
|
26009
|
+
A3(
|
|
26010
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26011
|
+
_List_Nil,
|
|
26012
|
+
'Maybe',
|
|
26013
|
+
_List_fromArray(
|
|
26014
|
+
[
|
|
26015
|
+
$author$project$Elm$Annotation$record(
|
|
26016
|
+
_List_fromArray(
|
|
26017
|
+
[
|
|
26018
|
+
_Utils_Tuple2(
|
|
26019
|
+
'reason',
|
|
26020
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'NotFoundReason', _List_Nil)),
|
|
26021
|
+
_Utils_Tuple2(
|
|
26022
|
+
'path',
|
|
26023
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))
|
|
26024
|
+
]))
|
|
26025
|
+
]))),
|
|
26026
|
+
_Utils_Tuple2(
|
|
26027
|
+
'userFlags',
|
|
26028
|
+
A3(
|
|
26029
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26030
|
+
_List_fromArray(
|
|
26031
|
+
['Decode']),
|
|
26032
|
+
'Value',
|
|
26033
|
+
_List_Nil)),
|
|
26034
|
+
_Utils_Tuple2(
|
|
26035
|
+
'transition',
|
|
26036
|
+
A3(
|
|
26037
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26038
|
+
_List_Nil,
|
|
26039
|
+
'Maybe',
|
|
26040
|
+
_List_fromArray(
|
|
26041
|
+
[
|
|
26042
|
+
A2(
|
|
26043
|
+
$author$project$Elm$Annotation$tuple,
|
|
26044
|
+
$author$project$Elm$Annotation$int,
|
|
26045
|
+
A3(
|
|
26046
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26047
|
+
_List_fromArray(
|
|
26048
|
+
['Pages', 'Transition']),
|
|
26049
|
+
'Transition',
|
|
26050
|
+
_List_Nil))
|
|
26051
|
+
]))),
|
|
26052
|
+
_Utils_Tuple2('nextTransitionKey', $author$project$Elm$Annotation$int),
|
|
26053
|
+
_Utils_Tuple2(
|
|
26054
|
+
'inFlightFetchers',
|
|
26055
|
+
A3(
|
|
26056
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26057
|
+
_List_Nil,
|
|
26058
|
+
'Dict',
|
|
26059
|
+
_List_fromArray(
|
|
26060
|
+
[
|
|
26061
|
+
$author$project$Elm$Annotation$string,
|
|
26062
|
+
A2(
|
|
26063
|
+
$author$project$Elm$Annotation$tuple,
|
|
26064
|
+
$author$project$Elm$Annotation$int,
|
|
26065
|
+
A3(
|
|
26066
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26067
|
+
_List_fromArray(
|
|
26068
|
+
['Pages', 'Transition']),
|
|
26069
|
+
'FetcherState',
|
|
26070
|
+
_List_fromArray(
|
|
26071
|
+
[
|
|
26072
|
+
$author$project$Elm$Annotation$var('actionData')
|
|
26073
|
+
])))
|
|
26074
|
+
]))),
|
|
26075
|
+
_Utils_Tuple2(
|
|
26076
|
+
'pageFormState',
|
|
26077
|
+
A3(
|
|
26078
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26079
|
+
_List_fromArray(
|
|
26080
|
+
['Pages', 'FormState']),
|
|
26081
|
+
'PageFormState',
|
|
26082
|
+
_List_Nil)),
|
|
26083
|
+
_Utils_Tuple2('pendingRedirect', $author$project$Elm$Annotation$bool),
|
|
26084
|
+
_Utils_Tuple2(
|
|
26085
|
+
'pendingData',
|
|
26086
|
+
A3(
|
|
26087
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26088
|
+
_List_Nil,
|
|
26089
|
+
'Maybe',
|
|
26090
|
+
_List_fromArray(
|
|
26091
|
+
[
|
|
26092
|
+
A3(
|
|
26093
|
+
$author$project$Elm$Annotation$triple,
|
|
26094
|
+
$author$project$Elm$Annotation$var('pageData'),
|
|
26095
|
+
$author$project$Elm$Annotation$var('sharedData'),
|
|
26096
|
+
A3(
|
|
26097
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26098
|
+
_List_Nil,
|
|
26099
|
+
'Maybe',
|
|
26100
|
+
_List_fromArray(
|
|
26101
|
+
[
|
|
26102
|
+
$author$project$Elm$Annotation$var('actionData')
|
|
26103
|
+
])))
|
|
26104
|
+
])))
|
|
26105
|
+
])));
|
|
26106
|
+
}),
|
|
26107
|
+
msg: F5(
|
|
26108
|
+
function (msgArg0, msgArg1, msgArg2, msgArg3, msgArg4) {
|
|
26109
|
+
return A3(
|
|
26110
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26111
|
+
_List_fromArray(
|
|
26112
|
+
['Pages', 'Internal', 'Platform']),
|
|
26113
|
+
'Msg',
|
|
26114
|
+
_List_fromArray(
|
|
26115
|
+
[msgArg0, msgArg1, msgArg2, msgArg3, msgArg4]));
|
|
26116
|
+
}),
|
|
26117
|
+
program: F6(
|
|
26118
|
+
function (programArg0, programArg1, programArg2, programArg3, programArg4, programArg5) {
|
|
26119
|
+
return A4(
|
|
26120
|
+
$author$project$Elm$Annotation$alias,
|
|
26121
|
+
$author$project$Gen$Pages$Internal$Platform$moduleName_,
|
|
26122
|
+
'Program',
|
|
26123
|
+
_List_fromArray(
|
|
26124
|
+
[programArg0, programArg1, programArg2, programArg3, programArg4, programArg5]),
|
|
26125
|
+
A3(
|
|
26126
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26127
|
+
_List_fromArray(
|
|
26128
|
+
['Platform']),
|
|
26129
|
+
'Program',
|
|
26130
|
+
_List_fromArray(
|
|
26131
|
+
[
|
|
26132
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Flags', _List_Nil),
|
|
26133
|
+
A3(
|
|
26134
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26135
|
+
_List_Nil,
|
|
26136
|
+
'Model',
|
|
26137
|
+
_List_fromArray(
|
|
26138
|
+
[
|
|
26139
|
+
$author$project$Elm$Annotation$var('userModel'),
|
|
26140
|
+
$author$project$Elm$Annotation$var('pageData'),
|
|
26141
|
+
$author$project$Elm$Annotation$var('actionData'),
|
|
26142
|
+
$author$project$Elm$Annotation$var('sharedData')
|
|
26143
|
+
])),
|
|
26144
|
+
A3(
|
|
26145
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26146
|
+
_List_Nil,
|
|
26147
|
+
'Msg',
|
|
26148
|
+
_List_fromArray(
|
|
26149
|
+
[
|
|
26150
|
+
$author$project$Elm$Annotation$var('userMsg'),
|
|
26151
|
+
$author$project$Elm$Annotation$var('pageData'),
|
|
26152
|
+
$author$project$Elm$Annotation$var('actionData'),
|
|
26153
|
+
$author$project$Elm$Annotation$var('sharedData'),
|
|
26154
|
+
$author$project$Elm$Annotation$var('errorPage')
|
|
26155
|
+
]))
|
|
26156
|
+
])));
|
|
26157
|
+
}),
|
|
26158
|
+
requestInfo: A4(
|
|
26159
|
+
$author$project$Elm$Annotation$alias,
|
|
26160
|
+
$author$project$Gen$Pages$Internal$Platform$moduleName_,
|
|
26161
|
+
'RequestInfo',
|
|
26162
|
+
_List_Nil,
|
|
26163
|
+
$author$project$Elm$Annotation$record(
|
|
26164
|
+
_List_fromArray(
|
|
26165
|
+
[
|
|
26166
|
+
_Utils_Tuple2('contentType', $author$project$Elm$Annotation$string),
|
|
26167
|
+
_Utils_Tuple2('body', $author$project$Elm$Annotation$string)
|
|
26168
|
+
])))
|
|
26169
|
+
};
|
|
26170
|
+
var $author$project$Gen$Pages$Internal$Platform$Cli$moduleName_ = _List_fromArray(
|
|
26171
|
+
['Pages', 'Internal', 'Platform', 'Cli']);
|
|
26172
|
+
var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
|
|
26173
|
+
flags: A4(
|
|
26174
|
+
$author$project$Elm$Annotation$alias,
|
|
26175
|
+
$author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
|
|
26176
|
+
'Flags',
|
|
26177
|
+
_List_Nil,
|
|
26178
|
+
A3(
|
|
26179
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26180
|
+
_List_fromArray(
|
|
26181
|
+
['Decode']),
|
|
26182
|
+
'Value',
|
|
26183
|
+
_List_Nil)),
|
|
26184
|
+
model: function (modelArg0) {
|
|
26185
|
+
return A4(
|
|
26186
|
+
$author$project$Elm$Annotation$alias,
|
|
26187
|
+
$author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
|
|
26188
|
+
'Model',
|
|
26189
|
+
_List_fromArray(
|
|
26190
|
+
[modelArg0]),
|
|
26191
|
+
$author$project$Elm$Annotation$record(
|
|
26192
|
+
_List_fromArray(
|
|
26193
|
+
[
|
|
26194
|
+
_Utils_Tuple2(
|
|
26195
|
+
'staticResponses',
|
|
26196
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'StaticResponses', _List_Nil)),
|
|
26197
|
+
_Utils_Tuple2(
|
|
26198
|
+
'errors',
|
|
26199
|
+
$author$project$Elm$Annotation$list(
|
|
26200
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'BuildError', _List_Nil))),
|
|
26201
|
+
_Utils_Tuple2(
|
|
26202
|
+
'allRawResponses',
|
|
26203
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'RequestsAndPending', _List_Nil)),
|
|
26204
|
+
_Utils_Tuple2(
|
|
26205
|
+
'unprocessedPages',
|
|
26206
|
+
$author$project$Elm$Annotation$list(
|
|
26207
|
+
A2(
|
|
26208
|
+
$author$project$Elm$Annotation$tuple,
|
|
26209
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil),
|
|
26210
|
+
$author$project$Elm$Annotation$var('route')))),
|
|
26211
|
+
_Utils_Tuple2(
|
|
26212
|
+
'maybeRequestJson',
|
|
26213
|
+
A3(
|
|
26214
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26215
|
+
_List_Nil,
|
|
26216
|
+
'RenderRequest',
|
|
26217
|
+
_List_fromArray(
|
|
26218
|
+
[
|
|
26219
|
+
$author$project$Elm$Annotation$var('route')
|
|
26220
|
+
]))),
|
|
26221
|
+
_Utils_Tuple2('isDevServer', $author$project$Elm$Annotation$bool)
|
|
26222
|
+
])));
|
|
26223
|
+
},
|
|
26224
|
+
msg: A3(
|
|
26225
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26226
|
+
_List_fromArray(
|
|
26227
|
+
['Pages', 'Internal', 'Platform', 'Cli']),
|
|
26228
|
+
'Msg',
|
|
26229
|
+
_List_Nil),
|
|
26230
|
+
program: function (programArg0) {
|
|
26231
|
+
return A4(
|
|
26232
|
+
$author$project$Elm$Annotation$alias,
|
|
26233
|
+
$author$project$Gen$Pages$Internal$Platform$Cli$moduleName_,
|
|
26234
|
+
'Program',
|
|
26235
|
+
_List_fromArray(
|
|
26236
|
+
[programArg0]),
|
|
26237
|
+
A3(
|
|
26238
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26239
|
+
_List_fromArray(
|
|
26240
|
+
['Platform']),
|
|
26241
|
+
'Program',
|
|
26242
|
+
_List_fromArray(
|
|
26243
|
+
[
|
|
26244
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Flags', _List_Nil),
|
|
26245
|
+
A3(
|
|
26246
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26247
|
+
_List_Nil,
|
|
26248
|
+
'Model',
|
|
26249
|
+
_List_fromArray(
|
|
26250
|
+
[
|
|
26251
|
+
$author$project$Elm$Annotation$var('route')
|
|
26252
|
+
])),
|
|
26253
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Msg', _List_Nil)
|
|
26254
|
+
])));
|
|
26255
|
+
}
|
|
26256
|
+
};
|
|
25893
26257
|
var $author$project$Gen$Pages$Msg$annotation_ = {
|
|
25894
26258
|
msg: function (msgArg0) {
|
|
25895
26259
|
return A3(
|
|
@@ -25959,6 +26323,16 @@ var $author$project$Gen$Pages$Transition$annotation_ = {
|
|
|
25959
26323
|
'Transition',
|
|
25960
26324
|
_List_Nil)
|
|
25961
26325
|
};
|
|
26326
|
+
var $author$project$Gen$Platform$Sub$annotation_ = {
|
|
26327
|
+
sub: function (subArg0) {
|
|
26328
|
+
return A3(
|
|
26329
|
+
$author$project$Elm$Annotation$namedWith,
|
|
26330
|
+
_List_Nil,
|
|
26331
|
+
'Sub',
|
|
26332
|
+
_List_fromArray(
|
|
26333
|
+
[subArg0]));
|
|
26334
|
+
}
|
|
26335
|
+
};
|
|
25962
26336
|
var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
|
|
25963
26337
|
['Server', 'Response']);
|
|
25964
26338
|
var $author$project$Gen$Server$Response$annotation_ = {
|
|
@@ -32318,32 +32692,6 @@ var $author$project$Internal$Compiler$noImports = function (tipe) {
|
|
|
32318
32692
|
return $author$project$Internal$Compiler$Annotation(
|
|
32319
32693
|
{aliases: $author$project$Internal$Compiler$emptyAliases, annotation: tipe, imports: _List_Nil});
|
|
32320
32694
|
};
|
|
32321
|
-
var $author$project$Elm$Annotation$triple = F3(
|
|
32322
|
-
function (one, two, three) {
|
|
32323
|
-
return $author$project$Internal$Compiler$Annotation(
|
|
32324
|
-
{
|
|
32325
|
-
aliases: A2(
|
|
32326
|
-
$author$project$Internal$Compiler$mergeAliases,
|
|
32327
|
-
A2(
|
|
32328
|
-
$author$project$Internal$Compiler$mergeAliases,
|
|
32329
|
-
$author$project$Elm$Annotation$getAliases(one),
|
|
32330
|
-
$author$project$Elm$Annotation$getAliases(two)),
|
|
32331
|
-
$author$project$Elm$Annotation$getAliases(three)),
|
|
32332
|
-
annotation: $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
|
|
32333
|
-
$author$project$Internal$Compiler$nodifyAll(
|
|
32334
|
-
_List_fromArray(
|
|
32335
|
-
[
|
|
32336
|
-
$author$project$Internal$Compiler$getInnerAnnotation(one),
|
|
32337
|
-
$author$project$Internal$Compiler$getInnerAnnotation(two),
|
|
32338
|
-
$author$project$Internal$Compiler$getInnerAnnotation(three)
|
|
32339
|
-
]))),
|
|
32340
|
-
imports: _Utils_ap(
|
|
32341
|
-
$author$project$Internal$Compiler$getAnnotationImports(one),
|
|
32342
|
-
_Utils_ap(
|
|
32343
|
-
$author$project$Internal$Compiler$getAnnotationImports(two),
|
|
32344
|
-
$author$project$Internal$Compiler$getAnnotationImports(three)))
|
|
32345
|
-
});
|
|
32346
|
-
});
|
|
32347
32695
|
var $author$project$Elm$triple = F3(
|
|
32348
32696
|
function (oneExp, twoExp, threeExp) {
|
|
32349
32697
|
return $author$project$Internal$Compiler$Expression(
|
|
@@ -35123,9 +35471,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35123
35471
|
$author$project$Elm$list(
|
|
35124
35472
|
A2(
|
|
35125
35473
|
$elm$core$List$map,
|
|
35126
|
-
function (
|
|
35127
|
-
var route =
|
|
35128
|
-
var params =
|
|
35474
|
+
function (_v63) {
|
|
35475
|
+
var route = _v63.a;
|
|
35476
|
+
var params = _v63.b;
|
|
35129
35477
|
var pattern = '/' + A2(
|
|
35130
35478
|
$elm$core$String$join,
|
|
35131
35479
|
'/',
|
|
@@ -35175,9 +35523,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35175
35523
|
$elm$core$List$concatMap,
|
|
35176
35524
|
function (route) {
|
|
35177
35525
|
var params = $author$project$Pages$Internal$RoutePattern$toVariantName(route).params;
|
|
35178
|
-
var
|
|
35179
|
-
if (
|
|
35180
|
-
var repeated =
|
|
35526
|
+
var _v62 = $author$project$Pages$Internal$RoutePattern$repeatWithoutOptionalEnding(params);
|
|
35527
|
+
if (_v62.$ === 'Just') {
|
|
35528
|
+
var repeated = _v62.a;
|
|
35181
35529
|
return _List_fromArray(
|
|
35182
35530
|
[
|
|
35183
35531
|
_Utils_Tuple2(route, repeated),
|
|
@@ -35276,9 +35624,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35276
35624
|
[
|
|
35277
35625
|
A2(
|
|
35278
35626
|
$author$project$Elm$Case$patternToBranch,
|
|
35279
|
-
function (
|
|
35280
|
-
var first =
|
|
35281
|
-
var rest =
|
|
35627
|
+
function (_v60) {
|
|
35628
|
+
var first = _v60.a;
|
|
35629
|
+
var rest = _v60.b;
|
|
35282
35630
|
return $author$project$GenerateMain$append(
|
|
35283
35631
|
_List_fromArray(
|
|
35284
35632
|
[
|
|
@@ -35312,7 +35660,11 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35312
35660
|
$author$project$Elm$string('Model mismatch')),
|
|
35313
35661
|
_Utils_Tuple2(
|
|
35314
35662
|
'body',
|
|
35315
|
-
$author$project$
|
|
35663
|
+
$author$project$Elm$list(
|
|
35664
|
+
_List_fromArray(
|
|
35665
|
+
[
|
|
35666
|
+
$author$project$Gen$Html$text('Model mismatch')
|
|
35667
|
+
])))
|
|
35316
35668
|
])));
|
|
35317
35669
|
var view = A3(
|
|
35318
35670
|
$author$project$Elm$Declare$function,
|
|
@@ -35391,20 +35743,20 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35391
35743
|
function (args) {
|
|
35392
35744
|
if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
|
|
35393
35745
|
var pageFormState = args.a;
|
|
35394
|
-
var
|
|
35395
|
-
var fetchers =
|
|
35396
|
-
var _v41 = _v40.b;
|
|
35397
|
-
var transition = _v41.a;
|
|
35398
|
-
var _v42 = _v41.b;
|
|
35399
|
-
var page = _v42.a;
|
|
35400
|
-
var _v43 = _v42.b;
|
|
35401
|
-
var maybePageUrl = _v43.a;
|
|
35402
|
-
var _v44 = _v43.b;
|
|
35403
|
-
var globalData = _v44.a;
|
|
35746
|
+
var _v44 = args.b;
|
|
35747
|
+
var fetchers = _v44.a;
|
|
35404
35748
|
var _v45 = _v44.b;
|
|
35405
|
-
var
|
|
35749
|
+
var transition = _v45.a;
|
|
35406
35750
|
var _v46 = _v45.b;
|
|
35407
|
-
var
|
|
35751
|
+
var page = _v46.a;
|
|
35752
|
+
var _v47 = _v46.b;
|
|
35753
|
+
var maybePageUrl = _v47.a;
|
|
35754
|
+
var _v48 = _v47.b;
|
|
35755
|
+
var globalData = _v48.a;
|
|
35756
|
+
var _v49 = _v48.b;
|
|
35757
|
+
var pageData = _v49.a;
|
|
35758
|
+
var _v50 = _v49.b;
|
|
35759
|
+
var actionData = _v50.a;
|
|
35408
35760
|
return A2(
|
|
35409
35761
|
$author$project$Elm$withType,
|
|
35410
35762
|
$author$project$Elm$Annotation$record(
|
|
@@ -35424,9 +35776,10 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35424
35776
|
_Utils_Tuple2('title', $author$project$Elm$Annotation$string),
|
|
35425
35777
|
_Utils_Tuple2(
|
|
35426
35778
|
'body',
|
|
35427
|
-
$author$project$
|
|
35428
|
-
$author$project$Gen$
|
|
35429
|
-
|
|
35779
|
+
$author$project$Elm$Annotation$list(
|
|
35780
|
+
$author$project$Gen$Html$annotation_.html(
|
|
35781
|
+
$author$project$Gen$Pages$Msg$annotation_.msg(
|
|
35782
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))))
|
|
35430
35783
|
])))),
|
|
35431
35784
|
_Utils_Tuple2(
|
|
35432
35785
|
'head',
|
|
@@ -35444,8 +35797,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35444
35797
|
[
|
|
35445
35798
|
A2(
|
|
35446
35799
|
$author$project$Elm$Case$patternToBranch,
|
|
35447
|
-
function (
|
|
35448
|
-
var data =
|
|
35800
|
+
function (_v51) {
|
|
35801
|
+
var data = _v51.b;
|
|
35449
35802
|
return $author$project$Elm$record(
|
|
35450
35803
|
_List_fromArray(
|
|
35451
35804
|
[
|
|
@@ -35534,7 +35887,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35534
35887
|
$author$project$Elm$Pattern$var('subModel'))),
|
|
35535
35888
|
A2(
|
|
35536
35889
|
$author$project$Elm$Case$patternToBranch,
|
|
35537
|
-
function (
|
|
35890
|
+
function (_v52) {
|
|
35538
35891
|
return modelMismatchView.value;
|
|
35539
35892
|
},
|
|
35540
35893
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -35559,9 +35912,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35559
35912
|
function (route) {
|
|
35560
35913
|
return A2(
|
|
35561
35914
|
$author$project$Elm$Case$patternToBranch,
|
|
35562
|
-
function (
|
|
35563
|
-
var maybeRouteParams =
|
|
35564
|
-
var data =
|
|
35915
|
+
function (_v53) {
|
|
35916
|
+
var maybeRouteParams = _v53.a;
|
|
35917
|
+
var data = _v53.b;
|
|
35565
35918
|
return $author$project$Elm$Let$toExpression(
|
|
35566
35919
|
A4(
|
|
35567
35920
|
$author$project$Elm$Let$fn,
|
|
@@ -35582,7 +35935,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35582
35935
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'justActionData', route)),
|
|
35583
35936
|
A2(
|
|
35584
35937
|
$author$project$Elm$Case$patternToBranch,
|
|
35585
|
-
function (
|
|
35938
|
+
function (_v57) {
|
|
35586
35939
|
return $author$project$Elm$nothing;
|
|
35587
35940
|
},
|
|
35588
35941
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -35690,7 +36043,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35690
36043
|
A2(
|
|
35691
36044
|
$author$project$Gen$Dict$map,
|
|
35692
36045
|
F2(
|
|
35693
|
-
function (
|
|
36046
|
+
function (_v54, fetcherState) {
|
|
35694
36047
|
return A2(
|
|
35695
36048
|
$author$project$Gen$Pages$Transition$map,
|
|
35696
36049
|
function (ad) {
|
|
@@ -35708,7 +36061,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35708
36061
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'subModel', route)),
|
|
35709
36062
|
A2(
|
|
35710
36063
|
$author$project$Elm$Case$patternToBranch,
|
|
35711
|
-
function (
|
|
36064
|
+
function (_v55) {
|
|
35712
36065
|
return modelMismatchView.value;
|
|
35713
36066
|
},
|
|
35714
36067
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -35772,7 +36125,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35772
36125
|
_List_fromArray(
|
|
35773
36126
|
[
|
|
35774
36127
|
$author$project$Elm$Case$otherwise(
|
|
35775
|
-
function (
|
|
36128
|
+
function (_v58) {
|
|
35776
36129
|
return $author$project$Elm$record(
|
|
35777
36130
|
_List_fromArray(
|
|
35778
36131
|
[
|
|
@@ -35781,7 +36134,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35781
36134
|
A2(
|
|
35782
36135
|
$author$project$Elm$fn,
|
|
35783
36136
|
_Utils_Tuple2('_', $elm$core$Maybe$Nothing),
|
|
35784
|
-
function (
|
|
36137
|
+
function (_v59) {
|
|
35785
36138
|
return $author$project$Elm$record(
|
|
35786
36139
|
_List_fromArray(
|
|
35787
36140
|
[
|
|
@@ -35790,12 +36143,16 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35790
36143
|
$author$project$Elm$string('Page not found')),
|
|
35791
36144
|
_Utils_Tuple2(
|
|
35792
36145
|
'body',
|
|
35793
|
-
|
|
35794
|
-
$author$project$Gen$Html$div,
|
|
35795
|
-
_List_Nil,
|
|
36146
|
+
$author$project$Elm$list(
|
|
35796
36147
|
_List_fromArray(
|
|
35797
36148
|
[
|
|
35798
|
-
|
|
36149
|
+
A2(
|
|
36150
|
+
$author$project$Gen$Html$div,
|
|
36151
|
+
_List_Nil,
|
|
36152
|
+
_List_fromArray(
|
|
36153
|
+
[
|
|
36154
|
+
$author$project$Gen$Html$text('This page could not be found.')
|
|
36155
|
+
]))
|
|
35799
36156
|
])))
|
|
35800
36157
|
]));
|
|
35801
36158
|
})),
|
|
@@ -35917,7 +36274,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
35917
36274
|
return errorPage;
|
|
35918
36275
|
}),
|
|
35919
36276
|
$author$project$Elm$Case$otherwise(
|
|
35920
|
-
function (
|
|
36277
|
+
function (_v42) {
|
|
35921
36278
|
return $author$project$Elm$value(
|
|
35922
36279
|
{
|
|
35923
36280
|
annotation: $elm$core$Maybe$Nothing,
|
|
@@ -36062,9 +36419,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36062
36419
|
},
|
|
36063
36420
|
currentGlobalModel)),
|
|
36064
36421
|
$author$project$Elm$Let$letIn(
|
|
36065
|
-
function (
|
|
36066
|
-
var sharedModel =
|
|
36067
|
-
var globalCmd =
|
|
36422
|
+
function (_v37) {
|
|
36423
|
+
var sharedModel = _v37.a;
|
|
36424
|
+
var globalCmd = _v37.b;
|
|
36068
36425
|
return $author$project$Elm$Let$toExpression(
|
|
36069
36426
|
A4(
|
|
36070
36427
|
$author$project$Elm$Let$tuple,
|
|
@@ -36100,9 +36457,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36100
36457
|
function (route) {
|
|
36101
36458
|
return A2(
|
|
36102
36459
|
$author$project$Elm$Case$patternToBranch,
|
|
36103
|
-
function (
|
|
36104
|
-
var maybeRouteParams =
|
|
36105
|
-
var thisPageData =
|
|
36460
|
+
function (_v39) {
|
|
36461
|
+
var maybeRouteParams = _v39.a;
|
|
36462
|
+
var thisPageData = _v39.b;
|
|
36106
36463
|
return A3(
|
|
36107
36464
|
$author$project$Gen$Tuple$call_.mapBoth,
|
|
36108
36465
|
A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Model, route),
|
|
@@ -36163,7 +36520,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36163
36520
|
},
|
|
36164
36521
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'thisActionData', route)),
|
|
36165
36522
|
$author$project$Elm$Case$otherwise(
|
|
36166
|
-
function (
|
|
36523
|
+
function (_v40) {
|
|
36167
36524
|
return $author$project$Elm$nothing;
|
|
36168
36525
|
})
|
|
36169
36526
|
]));
|
|
@@ -36215,7 +36572,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36215
36572
|
[
|
|
36216
36573
|
A2(
|
|
36217
36574
|
$author$project$Elm$Case$patternToBranch,
|
|
36218
|
-
function (
|
|
36575
|
+
function (_v41) {
|
|
36219
36576
|
return initErrorPage.call(pageData);
|
|
36220
36577
|
},
|
|
36221
36578
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -36224,9 +36581,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36224
36581
|
nothing: initErrorPage.call(pageData)
|
|
36225
36582
|
}),
|
|
36226
36583
|
$author$project$Elm$Let$letIn(
|
|
36227
|
-
function (
|
|
36228
|
-
var templateModel =
|
|
36229
|
-
var templateCmd =
|
|
36584
|
+
function (_v38) {
|
|
36585
|
+
var templateModel = _v38.a;
|
|
36586
|
+
var templateCmd = _v38.b;
|
|
36230
36587
|
return A2(
|
|
36231
36588
|
$author$project$Elm$tuple,
|
|
36232
36589
|
$author$project$Elm$record(
|
|
@@ -36336,6 +36693,13 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36336
36693
|
$author$project$Elm$Annotation$function,
|
|
36337
36694
|
_List_fromArray(
|
|
36338
36695
|
[
|
|
36696
|
+
$author$project$Elm$Annotation$maybe(
|
|
36697
|
+
$author$project$Elm$Annotation$record(
|
|
36698
|
+
_List_fromArray(
|
|
36699
|
+
[
|
|
36700
|
+
_Utils_Tuple2('indent', $author$project$Elm$Annotation$int),
|
|
36701
|
+
_Utils_Tuple2('newLines', $author$project$Elm$Annotation$bool)
|
|
36702
|
+
]))),
|
|
36339
36703
|
$author$project$Gen$Html$annotation_.html($author$project$Gen$Basics$annotation_.never)
|
|
36340
36704
|
]),
|
|
36341
36705
|
$author$project$Elm$Annotation$string))),
|
|
@@ -36378,82 +36742,154 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36378
36742
|
var fooFn = A6(
|
|
36379
36743
|
$author$project$Elm$Declare$fn4,
|
|
36380
36744
|
'fooFn',
|
|
36381
|
-
_Utils_Tuple2(
|
|
36382
|
-
|
|
36745
|
+
_Utils_Tuple2(
|
|
36746
|
+
'wrapModel',
|
|
36747
|
+
$elm$core$Maybe$Just(
|
|
36748
|
+
A2(
|
|
36749
|
+
$author$project$Elm$Annotation$function,
|
|
36750
|
+
_List_fromArray(
|
|
36751
|
+
[
|
|
36752
|
+
$author$project$Elm$Annotation$var('a')
|
|
36753
|
+
]),
|
|
36754
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel')))),
|
|
36755
|
+
_Utils_Tuple2(
|
|
36756
|
+
'wrapMsg',
|
|
36757
|
+
$elm$core$Maybe$Just(
|
|
36758
|
+
A2(
|
|
36759
|
+
$author$project$Elm$Annotation$function,
|
|
36760
|
+
_List_fromArray(
|
|
36761
|
+
[
|
|
36762
|
+
$author$project$Elm$Annotation$var('b')
|
|
36763
|
+
]),
|
|
36764
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))),
|
|
36383
36765
|
_Utils_Tuple2(
|
|
36384
36766
|
'model',
|
|
36385
36767
|
$elm$core$Maybe$Just(
|
|
36386
36768
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
|
|
36387
|
-
_Utils_Tuple2(
|
|
36769
|
+
_Utils_Tuple2(
|
|
36770
|
+
'triple',
|
|
36771
|
+
$elm$core$Maybe$Just(
|
|
36772
|
+
A3(
|
|
36773
|
+
$author$project$Elm$Annotation$triple,
|
|
36774
|
+
$author$project$Elm$Annotation$var('a'),
|
|
36775
|
+
A3(
|
|
36776
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36777
|
+
_List_fromArray(
|
|
36778
|
+
['Effect']),
|
|
36779
|
+
'Effect',
|
|
36780
|
+
_List_fromArray(
|
|
36781
|
+
[
|
|
36782
|
+
$author$project$Elm$Annotation$var('b')
|
|
36783
|
+
])),
|
|
36784
|
+
$author$project$Elm$Annotation$maybe(
|
|
36785
|
+
A2(
|
|
36786
|
+
$author$project$Elm$Annotation$named,
|
|
36787
|
+
_List_fromArray(
|
|
36788
|
+
['Shared']),
|
|
36789
|
+
'Msg'))))),
|
|
36388
36790
|
F4(
|
|
36389
36791
|
function (wrapModel, wrapMsg, model, triple) {
|
|
36390
|
-
return
|
|
36391
|
-
$author$project$Elm$
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36792
|
+
return A2(
|
|
36793
|
+
$author$project$Elm$withType,
|
|
36794
|
+
A3(
|
|
36795
|
+
$author$project$Elm$Annotation$triple,
|
|
36796
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel'),
|
|
36797
|
+
A3(
|
|
36798
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36799
|
+
_List_fromArray(
|
|
36800
|
+
['Effect']),
|
|
36801
|
+
'Effect',
|
|
36802
|
+
_List_fromArray(
|
|
36803
|
+
[
|
|
36804
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')
|
|
36805
|
+
])),
|
|
36806
|
+
A2(
|
|
36807
|
+
$author$project$Elm$Annotation$tuple,
|
|
36396
36808
|
A2(
|
|
36397
|
-
|
|
36398
|
-
|
|
36399
|
-
|
|
36400
|
-
|
|
36401
|
-
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
|
|
36407
|
-
|
|
36408
|
-
|
|
36409
|
-
|
|
36410
|
-
$author$project$Elm$apply,
|
|
36411
|
-
$author$project$Elm$value(
|
|
36412
|
-
{
|
|
36413
|
-
annotation: $elm$core$Maybe$Nothing,
|
|
36414
|
-
importFrom: _List_fromArray(
|
|
36415
|
-
['Effect']),
|
|
36416
|
-
name: 'map'
|
|
36417
|
-
}),
|
|
36809
|
+
$author$project$Elm$Annotation$named,
|
|
36810
|
+
_List_fromArray(
|
|
36811
|
+
['Shared']),
|
|
36812
|
+
'Model'),
|
|
36813
|
+
A3(
|
|
36814
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36815
|
+
_List_fromArray(
|
|
36816
|
+
['Effect']),
|
|
36817
|
+
'Effect',
|
|
36818
|
+
_List_fromArray(
|
|
36819
|
+
[
|
|
36820
|
+
A2(
|
|
36821
|
+
$author$project$Elm$Annotation$named,
|
|
36418
36822
|
_List_fromArray(
|
|
36419
|
-
[
|
|
36420
|
-
|
|
36421
|
-
|
|
36422
|
-
|
|
36423
|
-
|
|
36424
|
-
|
|
36425
|
-
|
|
36426
|
-
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
36431
|
-
|
|
36432
|
-
|
|
36433
|
-
|
|
36434
|
-
|
|
36435
|
-
|
|
36436
|
-
|
|
36437
|
-
|
|
36438
|
-
|
|
36439
|
-
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
-
|
|
36443
|
-
|
|
36823
|
+
['Shared']),
|
|
36824
|
+
'Msg')
|
|
36825
|
+
])))),
|
|
36826
|
+
A3(
|
|
36827
|
+
$author$project$Elm$Case$custom,
|
|
36828
|
+
triple,
|
|
36829
|
+
$author$project$Elm$Annotation$unit,
|
|
36830
|
+
_List_fromArray(
|
|
36831
|
+
[
|
|
36832
|
+
A2(
|
|
36833
|
+
$author$project$Elm$Case$patternToBranch,
|
|
36834
|
+
function (_v36) {
|
|
36835
|
+
var a = _v36.a;
|
|
36836
|
+
var b = _v36.b;
|
|
36837
|
+
var c = _v36.c;
|
|
36838
|
+
return A3(
|
|
36839
|
+
$author$project$Elm$triple,
|
|
36840
|
+
A2(
|
|
36841
|
+
$author$project$Elm$apply,
|
|
36842
|
+
wrapModel,
|
|
36843
|
+
_List_fromArray(
|
|
36844
|
+
[a])),
|
|
36845
|
+
A2(
|
|
36846
|
+
$author$project$Elm$apply,
|
|
36847
|
+
$author$project$Elm$value(
|
|
36848
|
+
{
|
|
36849
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
36850
|
+
importFrom: _List_fromArray(
|
|
36851
|
+
['Effect']),
|
|
36852
|
+
name: 'map'
|
|
36444
36853
|
}),
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36448
|
-
|
|
36449
|
-
|
|
36450
|
-
|
|
36451
|
-
|
|
36452
|
-
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
|
|
36456
|
-
|
|
36854
|
+
_List_fromArray(
|
|
36855
|
+
[wrapMsg, b])),
|
|
36856
|
+
A2(
|
|
36857
|
+
$author$project$Elm$Case$maybe,
|
|
36858
|
+
c,
|
|
36859
|
+
{
|
|
36860
|
+
just: _Utils_Tuple2(
|
|
36861
|
+
'sharedMsg',
|
|
36862
|
+
function (sharedMsg) {
|
|
36863
|
+
return A2(
|
|
36864
|
+
$author$project$Elm$apply,
|
|
36865
|
+
A2(
|
|
36866
|
+
$author$project$Elm$get,
|
|
36867
|
+
'update',
|
|
36868
|
+
$author$project$Elm$value(
|
|
36869
|
+
{
|
|
36870
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
36871
|
+
importFrom: _List_fromArray(
|
|
36872
|
+
['Shared']),
|
|
36873
|
+
name: 'template'
|
|
36874
|
+
})),
|
|
36875
|
+
_List_fromArray(
|
|
36876
|
+
[
|
|
36877
|
+
sharedMsg,
|
|
36878
|
+
A2($author$project$Elm$get, 'global', model)
|
|
36879
|
+
]));
|
|
36880
|
+
}),
|
|
36881
|
+
nothing: A2(
|
|
36882
|
+
$author$project$Elm$tuple,
|
|
36883
|
+
A2($author$project$Elm$get, 'global', model),
|
|
36884
|
+
$author$project$GenerateMain$effectNone)
|
|
36885
|
+
}));
|
|
36886
|
+
},
|
|
36887
|
+
A3(
|
|
36888
|
+
$author$project$Elm$Pattern$triple,
|
|
36889
|
+
$author$project$Elm$Pattern$var('a'),
|
|
36890
|
+
$author$project$Elm$Pattern$var('b'),
|
|
36891
|
+
$author$project$Elm$Pattern$var('c')))
|
|
36892
|
+
])));
|
|
36457
36893
|
}));
|
|
36458
36894
|
var update = A3(
|
|
36459
36895
|
$author$project$Elm$Declare$function,
|
|
@@ -36518,20 +36954,20 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36518
36954
|
function (args) {
|
|
36519
36955
|
if ((((((((args.b && args.b.b) && args.b.b.b) && args.b.b.b.b) && args.b.b.b.b.b) && args.b.b.b.b.b.b) && args.b.b.b.b.b.b.b) && args.b.b.b.b.b.b.b.b) && (!args.b.b.b.b.b.b.b.b.b)) {
|
|
36520
36956
|
var pageFormState = args.a;
|
|
36521
|
-
var
|
|
36522
|
-
var fetchers =
|
|
36523
|
-
var _v12 = _v11.b;
|
|
36524
|
-
var transition = _v12.a;
|
|
36525
|
-
var _v13 = _v12.b;
|
|
36526
|
-
var sharedData = _v13.a;
|
|
36527
|
-
var _v14 = _v13.b;
|
|
36528
|
-
var pageData = _v14.a;
|
|
36529
|
-
var _v15 = _v14.b;
|
|
36530
|
-
var navigationKey = _v15.a;
|
|
36957
|
+
var _v15 = args.b;
|
|
36958
|
+
var fetchers = _v15.a;
|
|
36531
36959
|
var _v16 = _v15.b;
|
|
36532
|
-
var
|
|
36960
|
+
var transition = _v16.a;
|
|
36533
36961
|
var _v17 = _v16.b;
|
|
36534
|
-
var
|
|
36962
|
+
var sharedData = _v17.a;
|
|
36963
|
+
var _v18 = _v17.b;
|
|
36964
|
+
var pageData = _v18.a;
|
|
36965
|
+
var _v19 = _v18.b;
|
|
36966
|
+
var navigationKey = _v19.a;
|
|
36967
|
+
var _v20 = _v19.b;
|
|
36968
|
+
var msg = _v20.a;
|
|
36969
|
+
var _v21 = _v20.b;
|
|
36970
|
+
var model = _v21.a;
|
|
36535
36971
|
return A2(
|
|
36536
36972
|
$author$project$Elm$withType,
|
|
36537
36973
|
A2(
|
|
@@ -36574,9 +37010,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36574
37010
|
[
|
|
36575
37011
|
A2(
|
|
36576
37012
|
$author$project$Elm$Case$patternToBranch,
|
|
36577
|
-
function (
|
|
36578
|
-
var pageModel =
|
|
36579
|
-
var thisPageData =
|
|
37013
|
+
function (_v23) {
|
|
37014
|
+
var pageModel = _v23.a;
|
|
37015
|
+
var thisPageData = _v23.b;
|
|
36580
37016
|
return A3(
|
|
36581
37017
|
$author$project$Gen$Tuple$call_.mapBoth,
|
|
36582
37018
|
$author$project$Elm$val('ModelErrorPage____'),
|
|
@@ -36606,7 +37042,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36606
37042
|
$author$project$Elm$Pattern$var('thisPageData')))),
|
|
36607
37043
|
A2(
|
|
36608
37044
|
$author$project$Elm$Case$patternToBranch,
|
|
36609
|
-
function (
|
|
37045
|
+
function (_v24) {
|
|
36610
37046
|
return A2(
|
|
36611
37047
|
$author$project$Elm$tuple,
|
|
36612
37048
|
A2($author$project$Elm$get, 'page', model),
|
|
@@ -36615,9 +37051,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36615
37051
|
$author$project$Elm$Pattern$ignore)
|
|
36616
37052
|
])),
|
|
36617
37053
|
$author$project$Elm$Let$letIn(
|
|
36618
|
-
function (
|
|
36619
|
-
var updatedPageModel =
|
|
36620
|
-
var pageCmd =
|
|
37054
|
+
function (_v22) {
|
|
37055
|
+
var updatedPageModel = _v22.a;
|
|
37056
|
+
var pageCmd = _v22.b;
|
|
36621
37057
|
return A2(
|
|
36622
37058
|
$author$project$Elm$tuple,
|
|
36623
37059
|
A2(
|
|
@@ -36662,9 +37098,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36662
37098
|
A2($author$project$Elm$get, 'global', model)
|
|
36663
37099
|
])),
|
|
36664
37100
|
$author$project$Elm$Let$letIn(
|
|
36665
|
-
function (
|
|
36666
|
-
var sharedModel =
|
|
36667
|
-
var globalCmd =
|
|
37101
|
+
function (_v25) {
|
|
37102
|
+
var sharedModel = _v25.a;
|
|
37103
|
+
var globalCmd = _v25.b;
|
|
36668
37104
|
return A2(
|
|
36669
37105
|
$author$project$Elm$tuple,
|
|
36670
37106
|
A2(
|
|
@@ -36765,9 +37201,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36765
37201
|
navigationKey,
|
|
36766
37202
|
$author$project$Elm$Let$letIn(
|
|
36767
37203
|
F2(
|
|
36768
|
-
function (
|
|
36769
|
-
var updatedModel =
|
|
36770
|
-
var cmd =
|
|
37204
|
+
function (_v26, _v27) {
|
|
37205
|
+
var updatedModel = _v27.a;
|
|
37206
|
+
var cmd = _v27.b;
|
|
36771
37207
|
return A2(
|
|
36772
37208
|
$author$project$Elm$Case$maybe,
|
|
36773
37209
|
A2(
|
|
@@ -36827,9 +37263,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36827
37263
|
A2($author$project$Elm$get, 'global', model)
|
|
36828
37264
|
])),
|
|
36829
37265
|
$author$project$Elm$Let$letIn(
|
|
36830
|
-
function (
|
|
36831
|
-
var updatedGlobalModel =
|
|
36832
|
-
var globalCmd =
|
|
37266
|
+
function (_v28) {
|
|
37267
|
+
var updatedGlobalModel = _v28.a;
|
|
37268
|
+
var globalCmd = _v28.b;
|
|
36833
37269
|
return A2(
|
|
36834
37270
|
$author$project$Elm$tuple,
|
|
36835
37271
|
A2(
|
|
@@ -36903,13 +37339,13 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36903
37339
|
[
|
|
36904
37340
|
A2(
|
|
36905
37341
|
$author$project$Elm$Case$patternToBranch,
|
|
36906
|
-
function (
|
|
36907
|
-
var pageModel =
|
|
36908
|
-
var thisPageData =
|
|
36909
|
-
var
|
|
36910
|
-
var maybeRouteParams =
|
|
36911
|
-
var pageUrl =
|
|
36912
|
-
var justPage =
|
|
37342
|
+
function (_v29) {
|
|
37343
|
+
var pageModel = _v29.a;
|
|
37344
|
+
var thisPageData = _v29.b;
|
|
37345
|
+
var _v30 = _v29.c;
|
|
37346
|
+
var maybeRouteParams = _v30.a;
|
|
37347
|
+
var pageUrl = _v30.b;
|
|
37348
|
+
var justPage = _v30.c;
|
|
36913
37349
|
return $author$project$Elm$Let$toExpression(
|
|
36914
37350
|
A3(
|
|
36915
37351
|
$author$project$Elm$Let$destructure,
|
|
@@ -36971,7 +37407,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36971
37407
|
A2(
|
|
36972
37408
|
$author$project$Gen$Dict$map,
|
|
36973
37409
|
F2(
|
|
36974
|
-
function (
|
|
37410
|
+
function (_v33, fetcherState) {
|
|
36975
37411
|
return A2(
|
|
36976
37412
|
$author$project$Gen$Pages$Transition$map,
|
|
36977
37413
|
function (ad) {
|
|
@@ -36988,7 +37424,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36988
37424
|
},
|
|
36989
37425
|
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$ActionData, 'justActionData', route)),
|
|
36990
37426
|
$author$project$Elm$Case$otherwise(
|
|
36991
|
-
function (
|
|
37427
|
+
function (_v34) {
|
|
36992
37428
|
return $author$project$Elm$nothing;
|
|
36993
37429
|
})
|
|
36994
37430
|
]));
|
|
@@ -37003,12 +37439,12 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37003
37439
|
A2($author$project$Elm$get, 'global', model)
|
|
37004
37440
|
]))),
|
|
37005
37441
|
$author$project$Elm$Let$letIn(
|
|
37006
|
-
function (
|
|
37007
|
-
var updatedPageModel =
|
|
37008
|
-
var pageCmd =
|
|
37009
|
-
var
|
|
37010
|
-
var newGlobalModel =
|
|
37011
|
-
var newGlobalCmd =
|
|
37442
|
+
function (_v31) {
|
|
37443
|
+
var updatedPageModel = _v31.a;
|
|
37444
|
+
var pageCmd = _v31.b;
|
|
37445
|
+
var _v32 = _v31.c;
|
|
37446
|
+
var newGlobalModel = _v32.a;
|
|
37447
|
+
var newGlobalCmd = _v32.b;
|
|
37012
37448
|
return A2(
|
|
37013
37449
|
$author$project$Elm$tuple,
|
|
37014
37450
|
A2(
|
|
@@ -37066,7 +37502,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37066
37502
|
$author$project$Elm$Pattern$var('justPage'))))),
|
|
37067
37503
|
A2(
|
|
37068
37504
|
$author$project$Elm$Case$patternToBranch,
|
|
37069
|
-
function (
|
|
37505
|
+
function (_v35) {
|
|
37070
37506
|
return A2($author$project$Elm$tuple, model, $author$project$GenerateMain$effectNone);
|
|
37071
37507
|
},
|
|
37072
37508
|
$author$project$Elm$Pattern$ignore)
|
|
@@ -37306,7 +37742,7 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37306
37742
|
$author$project$Elm$Case$branch1,
|
|
37307
37743
|
routeVariant,
|
|
37308
37744
|
_Utils_Tuple2('_', $author$project$Elm$Annotation$unit),
|
|
37309
|
-
function (
|
|
37745
|
+
function (_v13) {
|
|
37310
37746
|
return mappedDecoder;
|
|
37311
37747
|
}) : A2($author$project$Elm$Case$branch0, routeVariant, mappedDecoder);
|
|
37312
37748
|
},
|
|
@@ -37488,9 +37924,9 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37488
37924
|
return $author$project$Elm$list(
|
|
37489
37925
|
A2(
|
|
37490
37926
|
$elm$core$List$map,
|
|
37491
|
-
function (
|
|
37492
|
-
var key =
|
|
37493
|
-
var value =
|
|
37927
|
+
function (_v12) {
|
|
37928
|
+
var key = _v12.a;
|
|
37929
|
+
var value = _v12.b;
|
|
37494
37930
|
return A2(
|
|
37495
37931
|
$author$project$Elm$tuple,
|
|
37496
37932
|
$author$project$Elm$string(key),
|
|
@@ -37570,99 +38006,125 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37570
38006
|
F3(
|
|
37571
38007
|
function (maybeRoute, path, model) {
|
|
37572
38008
|
return A2(
|
|
37573
|
-
$author$project$Elm$
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37579
|
-
|
|
37580
|
-
|
|
37581
|
-
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37585
|
-
|
|
37586
|
-
|
|
37587
|
-
|
|
37588
|
-
|
|
37589
|
-
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37593
|
-
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
38009
|
+
$author$project$Elm$withType,
|
|
38010
|
+
$author$project$Gen$Platform$Sub$annotation_.sub(
|
|
38011
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
|
|
38012
|
+
A2(
|
|
38013
|
+
$author$project$Elm$Case$maybe,
|
|
38014
|
+
maybeRoute,
|
|
38015
|
+
{
|
|
38016
|
+
just: _Utils_Tuple2(
|
|
38017
|
+
'justRoute',
|
|
38018
|
+
function (justRoute) {
|
|
38019
|
+
return A2(
|
|
38020
|
+
branchHelper,
|
|
38021
|
+
justRoute,
|
|
38022
|
+
F2(
|
|
38023
|
+
function (route, maybeRouteParams) {
|
|
38024
|
+
return A3(
|
|
38025
|
+
$author$project$Elm$Case$custom,
|
|
38026
|
+
A2($author$project$Elm$get, 'page', model),
|
|
38027
|
+
$author$project$Elm$Annotation$unit,
|
|
38028
|
+
_List_fromArray(
|
|
38029
|
+
[
|
|
38030
|
+
A2(
|
|
38031
|
+
$author$project$Elm$Case$patternToBranch,
|
|
38032
|
+
function (templateModel) {
|
|
38033
|
+
return A2(
|
|
38034
|
+
$author$project$Gen$Platform$Sub$call_.map,
|
|
38035
|
+
A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
|
|
37598
38036
|
A2(
|
|
37599
|
-
$author$project$Elm$
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
$elm$core$
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
|
|
37611
|
-
|
|
37612
|
-
|
|
37613
|
-
|
|
37614
|
-
|
|
37615
|
-
|
|
37616
|
-
|
|
37617
|
-
|
|
37618
|
-
|
|
37619
|
-
|
|
37620
|
-
|
|
37621
|
-
|
|
37622
|
-
|
|
37623
|
-
|
|
37624
|
-
|
|
37625
|
-
|
|
37626
|
-
|
|
37627
|
-
|
|
37628
|
-
|
|
37629
|
-
|
|
37630
|
-
|
|
37631
|
-
|
|
38037
|
+
$author$project$Elm$apply,
|
|
38038
|
+
A2(
|
|
38039
|
+
$author$project$Elm$get,
|
|
38040
|
+
'subscriptions',
|
|
38041
|
+
$author$project$Elm$value(
|
|
38042
|
+
{
|
|
38043
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
38044
|
+
importFrom: A2(
|
|
38045
|
+
$elm$core$List$cons,
|
|
38046
|
+
'Route',
|
|
38047
|
+
$author$project$Pages$Internal$RoutePattern$toModuleName(route)),
|
|
38048
|
+
name: 'route'
|
|
38049
|
+
})),
|
|
38050
|
+
_List_fromArray(
|
|
38051
|
+
[
|
|
38052
|
+
$author$project$Elm$nothing,
|
|
38053
|
+
A2(
|
|
38054
|
+
$elm$core$Maybe$withDefault,
|
|
38055
|
+
$author$project$Elm$record(_List_Nil),
|
|
38056
|
+
maybeRouteParams),
|
|
38057
|
+
path,
|
|
38058
|
+
templateModel,
|
|
38059
|
+
A2($author$project$Elm$get, 'global', model)
|
|
38060
|
+
])));
|
|
38061
|
+
},
|
|
38062
|
+
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
|
|
38063
|
+
$author$project$Elm$Case$otherwise(
|
|
38064
|
+
function (_v10) {
|
|
38065
|
+
return $author$project$Gen$Platform$Sub$none;
|
|
38066
|
+
})
|
|
38067
|
+
]));
|
|
38068
|
+
}));
|
|
38069
|
+
}),
|
|
38070
|
+
nothing: $author$project$Gen$Platform$Sub$none
|
|
38071
|
+
}));
|
|
37632
38072
|
}));
|
|
37633
38073
|
var subscriptions = A5(
|
|
37634
38074
|
$author$project$Elm$Declare$fn3,
|
|
37635
38075
|
'subscriptions',
|
|
37636
|
-
_Utils_Tuple2(
|
|
37637
|
-
|
|
37638
|
-
|
|
38076
|
+
_Utils_Tuple2(
|
|
38077
|
+
'route',
|
|
38078
|
+
$elm$core$Maybe$Just(
|
|
38079
|
+
$author$project$Elm$Annotation$maybe(
|
|
38080
|
+
A2(
|
|
38081
|
+
$author$project$Elm$Annotation$named,
|
|
38082
|
+
_List_fromArray(
|
|
38083
|
+
['Route']),
|
|
38084
|
+
'Route')))),
|
|
38085
|
+
_Utils_Tuple2(
|
|
38086
|
+
'path',
|
|
38087
|
+
$elm$core$Maybe$Just(
|
|
38088
|
+
A2(
|
|
38089
|
+
$author$project$Elm$Annotation$named,
|
|
38090
|
+
_List_fromArray(
|
|
38091
|
+
['Path']),
|
|
38092
|
+
'Path'))),
|
|
38093
|
+
_Utils_Tuple2(
|
|
38094
|
+
'model',
|
|
38095
|
+
$elm$core$Maybe$Just(
|
|
38096
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
|
|
37639
38097
|
F3(
|
|
37640
38098
|
function (route, path, model) {
|
|
37641
|
-
return
|
|
37642
|
-
|
|
37643
|
-
|
|
37644
|
-
|
|
37645
|
-
|
|
37646
|
-
|
|
37647
|
-
|
|
37648
|
-
$author$project$Elm$apply,
|
|
38099
|
+
return A2(
|
|
38100
|
+
$author$project$Elm$withType,
|
|
38101
|
+
$author$project$Gen$Platform$Sub$annotation_.sub(
|
|
38102
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
|
|
38103
|
+
$author$project$Gen$Platform$Sub$batch(
|
|
38104
|
+
_List_fromArray(
|
|
38105
|
+
[
|
|
37649
38106
|
A2(
|
|
37650
|
-
|
|
37651
|
-
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
|
|
37657
|
-
|
|
37658
|
-
|
|
37659
|
-
|
|
37660
|
-
|
|
37661
|
-
|
|
37662
|
-
|
|
37663
|
-
|
|
37664
|
-
|
|
37665
|
-
|
|
38107
|
+
$author$project$Gen$Platform$Sub$call_.map,
|
|
38108
|
+
$author$project$Elm$val('MsgGlobal'),
|
|
38109
|
+
A2(
|
|
38110
|
+
$author$project$Elm$apply,
|
|
38111
|
+
A2(
|
|
38112
|
+
$author$project$Elm$get,
|
|
38113
|
+
'subscriptions',
|
|
38114
|
+
$author$project$Elm$value(
|
|
38115
|
+
{
|
|
38116
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
38117
|
+
importFrom: _List_fromArray(
|
|
38118
|
+
['Shared']),
|
|
38119
|
+
name: 'template'
|
|
38120
|
+
})),
|
|
38121
|
+
_List_fromArray(
|
|
38122
|
+
[
|
|
38123
|
+
path,
|
|
38124
|
+
A2($author$project$Elm$get, 'global', model)
|
|
38125
|
+
]))),
|
|
38126
|
+
A3(templateSubscriptions.call, route, path, model)
|
|
38127
|
+
])));
|
|
37666
38128
|
}));
|
|
37667
38129
|
var apiPatterns = A2(
|
|
37668
38130
|
$author$project$Elm$Extra$topLevelValue,
|
|
@@ -37697,8 +38159,14 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37697
38159
|
_List_fromArray(
|
|
37698
38160
|
[
|
|
37699
38161
|
getStaticRoutes.reference,
|
|
37700
|
-
|
|
37701
|
-
$author$project$Elm$
|
|
38162
|
+
A3(
|
|
38163
|
+
$author$project$Elm$fn2,
|
|
38164
|
+
_Utils_Tuple2('a', $elm$core$Maybe$Nothing),
|
|
38165
|
+
_Utils_Tuple2('b', $elm$core$Maybe$Nothing),
|
|
38166
|
+
F2(
|
|
38167
|
+
function (_v8, _v9) {
|
|
38168
|
+
return $author$project$Elm$string('');
|
|
38169
|
+
}))
|
|
37702
38170
|
])))))))))));
|
|
37703
38171
|
var pathsToGenerateHandler = A2(
|
|
37704
38172
|
$author$project$Elm$Extra$topLevelValue,
|
|
@@ -37780,8 +38248,14 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37780
38248
|
_List_fromArray(
|
|
37781
38249
|
[
|
|
37782
38250
|
getStaticRoutes.reference,
|
|
37783
|
-
|
|
37784
|
-
$author$project$Elm$
|
|
38251
|
+
A3(
|
|
38252
|
+
$author$project$Elm$fn2,
|
|
38253
|
+
_Utils_Tuple2('a', $elm$core$Maybe$Nothing),
|
|
38254
|
+
_Utils_Tuple2('b', $elm$core$Maybe$Nothing),
|
|
38255
|
+
F2(
|
|
38256
|
+
function (_v6, _v7) {
|
|
38257
|
+
return $author$project$Elm$string('');
|
|
38258
|
+
}))
|
|
37785
38259
|
]))))))))))));
|
|
37786
38260
|
var action = A3(
|
|
37787
38261
|
$author$project$Elm$Declare$fn,
|
|
@@ -38292,13 +38766,58 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38292
38766
|
A2(
|
|
38293
38767
|
$author$project$Elm$declaration,
|
|
38294
38768
|
'main',
|
|
38295
|
-
|
|
38769
|
+
A2(
|
|
38770
|
+
$author$project$Elm$withType,
|
|
38771
|
+
A3(
|
|
38772
|
+
$author$project$Elm$Annotation$namedWith,
|
|
38773
|
+
_List_fromArray(
|
|
38774
|
+
['Platform']),
|
|
38775
|
+
'Program',
|
|
38776
|
+
_List_fromArray(
|
|
38777
|
+
[
|
|
38778
|
+
$author$project$Gen$Pages$Internal$Platform$annotation_.flags,
|
|
38779
|
+
A4(
|
|
38780
|
+
$author$project$Gen$Pages$Internal$Platform$annotation_.model,
|
|
38781
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'),
|
|
38782
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
|
|
38783
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
|
|
38784
|
+
A2(
|
|
38785
|
+
$author$project$Elm$Annotation$named,
|
|
38786
|
+
_List_fromArray(
|
|
38787
|
+
['Shared']),
|
|
38788
|
+
'Data')),
|
|
38789
|
+
A5(
|
|
38790
|
+
$author$project$Gen$Pages$Internal$Platform$annotation_.msg,
|
|
38791
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg'),
|
|
38792
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
|
|
38793
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
|
|
38794
|
+
A2(
|
|
38795
|
+
$author$project$Elm$Annotation$named,
|
|
38796
|
+
_List_fromArray(
|
|
38797
|
+
['Shared']),
|
|
38798
|
+
'Data'),
|
|
38799
|
+
A2(
|
|
38800
|
+
$author$project$Elm$Annotation$named,
|
|
38801
|
+
_List_fromArray(
|
|
38802
|
+
['ErrorPage']),
|
|
38803
|
+
'ErrorPage'))
|
|
38804
|
+
])),
|
|
38805
|
+
$author$project$Gen$Pages$Internal$Platform$application(config))));
|
|
38296
38806
|
} else {
|
|
38297
38807
|
return $author$project$Elm$Extra$expose(
|
|
38298
38808
|
A2(
|
|
38299
38809
|
$author$project$Elm$declaration,
|
|
38300
38810
|
'main',
|
|
38301
|
-
|
|
38811
|
+
A2(
|
|
38812
|
+
$author$project$Elm$withType,
|
|
38813
|
+
$author$project$Gen$Pages$Internal$Platform$Cli$annotation_.program(
|
|
38814
|
+
$author$project$Elm$Annotation$maybe(
|
|
38815
|
+
A2(
|
|
38816
|
+
$author$project$Elm$Annotation$named,
|
|
38817
|
+
_List_fromArray(
|
|
38818
|
+
['Route']),
|
|
38819
|
+
'Route'))),
|
|
38820
|
+
$author$project$Gen$Pages$Internal$Platform$Cli$cliApplication(config))));
|
|
38302
38821
|
}
|
|
38303
38822
|
}(),
|
|
38304
38823
|
dataForRoute.declaration,
|