elm-pages 3.0.0-beta.4 → 3.0.0-beta.5
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/codegen/elm-pages-codegen.js +260 -152
- 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/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/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/js/node_runner.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/package.json +1 -1
|
@@ -26323,6 +26323,16 @@ var $author$project$Gen$Pages$Transition$annotation_ = {
|
|
|
26323
26323
|
'Transition',
|
|
26324
26324
|
_List_Nil)
|
|
26325
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
|
+
};
|
|
26326
26336
|
var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
|
|
26327
26337
|
['Server', 'Response']);
|
|
26328
26338
|
var $author$project$Gen$Server$Response$annotation_ = {
|
|
@@ -36725,82 +36735,154 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36725
36735
|
var fooFn = A6(
|
|
36726
36736
|
$author$project$Elm$Declare$fn4,
|
|
36727
36737
|
'fooFn',
|
|
36728
|
-
_Utils_Tuple2(
|
|
36729
|
-
|
|
36738
|
+
_Utils_Tuple2(
|
|
36739
|
+
'wrapModel',
|
|
36740
|
+
$elm$core$Maybe$Just(
|
|
36741
|
+
A2(
|
|
36742
|
+
$author$project$Elm$Annotation$function,
|
|
36743
|
+
_List_fromArray(
|
|
36744
|
+
[
|
|
36745
|
+
$author$project$Elm$Annotation$var('a')
|
|
36746
|
+
]),
|
|
36747
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel')))),
|
|
36748
|
+
_Utils_Tuple2(
|
|
36749
|
+
'wrapMsg',
|
|
36750
|
+
$elm$core$Maybe$Just(
|
|
36751
|
+
A2(
|
|
36752
|
+
$author$project$Elm$Annotation$function,
|
|
36753
|
+
_List_fromArray(
|
|
36754
|
+
[
|
|
36755
|
+
$author$project$Elm$Annotation$var('b')
|
|
36756
|
+
]),
|
|
36757
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')))),
|
|
36730
36758
|
_Utils_Tuple2(
|
|
36731
36759
|
'model',
|
|
36732
36760
|
$elm$core$Maybe$Just(
|
|
36733
36761
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
|
|
36734
|
-
_Utils_Tuple2(
|
|
36762
|
+
_Utils_Tuple2(
|
|
36763
|
+
'triple',
|
|
36764
|
+
$elm$core$Maybe$Just(
|
|
36765
|
+
A3(
|
|
36766
|
+
$author$project$Elm$Annotation$triple,
|
|
36767
|
+
$author$project$Elm$Annotation$var('a'),
|
|
36768
|
+
A3(
|
|
36769
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36770
|
+
_List_fromArray(
|
|
36771
|
+
['Effect']),
|
|
36772
|
+
'Effect',
|
|
36773
|
+
_List_fromArray(
|
|
36774
|
+
[
|
|
36775
|
+
$author$project$Elm$Annotation$var('b')
|
|
36776
|
+
])),
|
|
36777
|
+
$author$project$Elm$Annotation$maybe(
|
|
36778
|
+
A2(
|
|
36779
|
+
$author$project$Elm$Annotation$named,
|
|
36780
|
+
_List_fromArray(
|
|
36781
|
+
['Shared']),
|
|
36782
|
+
'Msg'))))),
|
|
36735
36783
|
F4(
|
|
36736
36784
|
function (wrapModel, wrapMsg, model, triple) {
|
|
36737
|
-
return
|
|
36738
|
-
$author$project$Elm$
|
|
36739
|
-
|
|
36740
|
-
|
|
36741
|
-
|
|
36742
|
-
|
|
36785
|
+
return A2(
|
|
36786
|
+
$author$project$Elm$withType,
|
|
36787
|
+
A3(
|
|
36788
|
+
$author$project$Elm$Annotation$triple,
|
|
36789
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageModel'),
|
|
36790
|
+
A3(
|
|
36791
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36792
|
+
_List_fromArray(
|
|
36793
|
+
['Effect']),
|
|
36794
|
+
'Effect',
|
|
36795
|
+
_List_fromArray(
|
|
36796
|
+
[
|
|
36797
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')
|
|
36798
|
+
])),
|
|
36799
|
+
A2(
|
|
36800
|
+
$author$project$Elm$Annotation$tuple,
|
|
36743
36801
|
A2(
|
|
36744
|
-
|
|
36745
|
-
|
|
36746
|
-
|
|
36747
|
-
|
|
36748
|
-
|
|
36749
|
-
|
|
36750
|
-
|
|
36751
|
-
|
|
36752
|
-
|
|
36753
|
-
|
|
36754
|
-
|
|
36755
|
-
|
|
36756
|
-
|
|
36757
|
-
$author$project$Elm$apply,
|
|
36758
|
-
$author$project$Elm$value(
|
|
36759
|
-
{
|
|
36760
|
-
annotation: $elm$core$Maybe$Nothing,
|
|
36761
|
-
importFrom: _List_fromArray(
|
|
36762
|
-
['Effect']),
|
|
36763
|
-
name: 'map'
|
|
36764
|
-
}),
|
|
36802
|
+
$author$project$Elm$Annotation$named,
|
|
36803
|
+
_List_fromArray(
|
|
36804
|
+
['Shared']),
|
|
36805
|
+
'Model'),
|
|
36806
|
+
A3(
|
|
36807
|
+
$author$project$Elm$Annotation$namedWith,
|
|
36808
|
+
_List_fromArray(
|
|
36809
|
+
['Effect']),
|
|
36810
|
+
'Effect',
|
|
36811
|
+
_List_fromArray(
|
|
36812
|
+
[
|
|
36813
|
+
A2(
|
|
36814
|
+
$author$project$Elm$Annotation$named,
|
|
36765
36815
|
_List_fromArray(
|
|
36766
|
-
[
|
|
36767
|
-
|
|
36768
|
-
|
|
36769
|
-
|
|
36770
|
-
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
|
|
36777
|
-
|
|
36778
|
-
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
|
|
36786
|
-
|
|
36787
|
-
|
|
36788
|
-
|
|
36789
|
-
|
|
36790
|
-
|
|
36816
|
+
['Shared']),
|
|
36817
|
+
'Msg')
|
|
36818
|
+
])))),
|
|
36819
|
+
A3(
|
|
36820
|
+
$author$project$Elm$Case$custom,
|
|
36821
|
+
triple,
|
|
36822
|
+
$author$project$Elm$Annotation$unit,
|
|
36823
|
+
_List_fromArray(
|
|
36824
|
+
[
|
|
36825
|
+
A2(
|
|
36826
|
+
$author$project$Elm$Case$patternToBranch,
|
|
36827
|
+
function (_v32) {
|
|
36828
|
+
var a = _v32.a;
|
|
36829
|
+
var b = _v32.b;
|
|
36830
|
+
var c = _v32.c;
|
|
36831
|
+
return A3(
|
|
36832
|
+
$author$project$Elm$triple,
|
|
36833
|
+
A2(
|
|
36834
|
+
$author$project$Elm$apply,
|
|
36835
|
+
wrapModel,
|
|
36836
|
+
_List_fromArray(
|
|
36837
|
+
[a])),
|
|
36838
|
+
A2(
|
|
36839
|
+
$author$project$Elm$apply,
|
|
36840
|
+
$author$project$Elm$value(
|
|
36841
|
+
{
|
|
36842
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
36843
|
+
importFrom: _List_fromArray(
|
|
36844
|
+
['Effect']),
|
|
36845
|
+
name: 'map'
|
|
36791
36846
|
}),
|
|
36792
|
-
|
|
36793
|
-
|
|
36794
|
-
|
|
36795
|
-
|
|
36796
|
-
|
|
36797
|
-
|
|
36798
|
-
|
|
36799
|
-
|
|
36800
|
-
|
|
36801
|
-
|
|
36802
|
-
|
|
36803
|
-
|
|
36847
|
+
_List_fromArray(
|
|
36848
|
+
[wrapMsg, b])),
|
|
36849
|
+
A2(
|
|
36850
|
+
$author$project$Elm$Case$maybe,
|
|
36851
|
+
c,
|
|
36852
|
+
{
|
|
36853
|
+
just: _Utils_Tuple2(
|
|
36854
|
+
'sharedMsg',
|
|
36855
|
+
function (sharedMsg) {
|
|
36856
|
+
return A2(
|
|
36857
|
+
$author$project$Elm$apply,
|
|
36858
|
+
A2(
|
|
36859
|
+
$author$project$Elm$get,
|
|
36860
|
+
'update',
|
|
36861
|
+
$author$project$Elm$value(
|
|
36862
|
+
{
|
|
36863
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
36864
|
+
importFrom: _List_fromArray(
|
|
36865
|
+
['Shared']),
|
|
36866
|
+
name: 'template'
|
|
36867
|
+
})),
|
|
36868
|
+
_List_fromArray(
|
|
36869
|
+
[
|
|
36870
|
+
sharedMsg,
|
|
36871
|
+
A2($author$project$Elm$get, 'global', model)
|
|
36872
|
+
]));
|
|
36873
|
+
}),
|
|
36874
|
+
nothing: A2(
|
|
36875
|
+
$author$project$Elm$tuple,
|
|
36876
|
+
A2($author$project$Elm$get, 'global', model),
|
|
36877
|
+
$author$project$GenerateMain$effectNone)
|
|
36878
|
+
}));
|
|
36879
|
+
},
|
|
36880
|
+
A3(
|
|
36881
|
+
$author$project$Elm$Pattern$triple,
|
|
36882
|
+
$author$project$Elm$Pattern$var('a'),
|
|
36883
|
+
$author$project$Elm$Pattern$var('b'),
|
|
36884
|
+
$author$project$Elm$Pattern$var('c')))
|
|
36885
|
+
])));
|
|
36804
36886
|
}));
|
|
36805
36887
|
var update = A3(
|
|
36806
36888
|
$author$project$Elm$Declare$function,
|
|
@@ -37917,99 +37999,125 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37917
37999
|
F3(
|
|
37918
38000
|
function (maybeRoute, path, model) {
|
|
37919
38001
|
return A2(
|
|
37920
|
-
$author$project$Elm$
|
|
37921
|
-
|
|
37922
|
-
|
|
37923
|
-
|
|
37924
|
-
|
|
37925
|
-
|
|
37926
|
-
|
|
37927
|
-
|
|
37928
|
-
|
|
37929
|
-
|
|
37930
|
-
|
|
37931
|
-
|
|
37932
|
-
|
|
37933
|
-
|
|
37934
|
-
|
|
37935
|
-
|
|
37936
|
-
|
|
37937
|
-
|
|
37938
|
-
|
|
37939
|
-
|
|
37940
|
-
|
|
37941
|
-
|
|
37942
|
-
|
|
37943
|
-
|
|
37944
|
-
|
|
38002
|
+
$author$project$Elm$withType,
|
|
38003
|
+
$author$project$Gen$Platform$Sub$annotation_.sub(
|
|
38004
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
|
|
38005
|
+
A2(
|
|
38006
|
+
$author$project$Elm$Case$maybe,
|
|
38007
|
+
maybeRoute,
|
|
38008
|
+
{
|
|
38009
|
+
just: _Utils_Tuple2(
|
|
38010
|
+
'justRoute',
|
|
38011
|
+
function (justRoute) {
|
|
38012
|
+
return A2(
|
|
38013
|
+
branchHelper,
|
|
38014
|
+
justRoute,
|
|
38015
|
+
F2(
|
|
38016
|
+
function (route, maybeRouteParams) {
|
|
38017
|
+
return A3(
|
|
38018
|
+
$author$project$Elm$Case$custom,
|
|
38019
|
+
A2($author$project$Elm$get, 'page', model),
|
|
38020
|
+
$author$project$Elm$Annotation$unit,
|
|
38021
|
+
_List_fromArray(
|
|
38022
|
+
[
|
|
38023
|
+
A2(
|
|
38024
|
+
$author$project$Elm$Case$patternToBranch,
|
|
38025
|
+
function (templateModel) {
|
|
38026
|
+
return A2(
|
|
38027
|
+
$author$project$Gen$Platform$Sub$call_.map,
|
|
38028
|
+
A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
|
|
37945
38029
|
A2(
|
|
37946
|
-
$author$project$Elm$
|
|
37947
|
-
|
|
37948
|
-
|
|
37949
|
-
|
|
37950
|
-
|
|
37951
|
-
|
|
37952
|
-
$elm$core$
|
|
37953
|
-
|
|
37954
|
-
|
|
37955
|
-
|
|
37956
|
-
|
|
37957
|
-
|
|
37958
|
-
|
|
37959
|
-
|
|
37960
|
-
|
|
37961
|
-
|
|
37962
|
-
|
|
37963
|
-
|
|
37964
|
-
|
|
37965
|
-
|
|
37966
|
-
|
|
37967
|
-
|
|
37968
|
-
|
|
37969
|
-
|
|
37970
|
-
|
|
37971
|
-
|
|
37972
|
-
|
|
37973
|
-
|
|
37974
|
-
|
|
37975
|
-
|
|
37976
|
-
|
|
37977
|
-
|
|
37978
|
-
|
|
38030
|
+
$author$project$Elm$apply,
|
|
38031
|
+
A2(
|
|
38032
|
+
$author$project$Elm$get,
|
|
38033
|
+
'subscriptions',
|
|
38034
|
+
$author$project$Elm$value(
|
|
38035
|
+
{
|
|
38036
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
38037
|
+
importFrom: A2(
|
|
38038
|
+
$elm$core$List$cons,
|
|
38039
|
+
'Route',
|
|
38040
|
+
$author$project$Pages$Internal$RoutePattern$toModuleName(route)),
|
|
38041
|
+
name: 'route'
|
|
38042
|
+
})),
|
|
38043
|
+
_List_fromArray(
|
|
38044
|
+
[
|
|
38045
|
+
$author$project$Elm$nothing,
|
|
38046
|
+
A2(
|
|
38047
|
+
$elm$core$Maybe$withDefault,
|
|
38048
|
+
$author$project$Elm$record(_List_Nil),
|
|
38049
|
+
maybeRouteParams),
|
|
38050
|
+
path,
|
|
38051
|
+
templateModel,
|
|
38052
|
+
A2($author$project$Elm$get, 'global', model)
|
|
38053
|
+
])));
|
|
38054
|
+
},
|
|
38055
|
+
A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
|
|
38056
|
+
$author$project$Elm$Case$otherwise(
|
|
38057
|
+
function (_v6) {
|
|
38058
|
+
return $author$project$Gen$Platform$Sub$none;
|
|
38059
|
+
})
|
|
38060
|
+
]));
|
|
38061
|
+
}));
|
|
38062
|
+
}),
|
|
38063
|
+
nothing: $author$project$Gen$Platform$Sub$none
|
|
38064
|
+
}));
|
|
37979
38065
|
}));
|
|
37980
38066
|
var subscriptions = A5(
|
|
37981
38067
|
$author$project$Elm$Declare$fn3,
|
|
37982
38068
|
'subscriptions',
|
|
37983
|
-
_Utils_Tuple2(
|
|
37984
|
-
|
|
37985
|
-
|
|
38069
|
+
_Utils_Tuple2(
|
|
38070
|
+
'route',
|
|
38071
|
+
$elm$core$Maybe$Just(
|
|
38072
|
+
$author$project$Elm$Annotation$maybe(
|
|
38073
|
+
A2(
|
|
38074
|
+
$author$project$Elm$Annotation$named,
|
|
38075
|
+
_List_fromArray(
|
|
38076
|
+
['Route']),
|
|
38077
|
+
'Route')))),
|
|
38078
|
+
_Utils_Tuple2(
|
|
38079
|
+
'path',
|
|
38080
|
+
$elm$core$Maybe$Just(
|
|
38081
|
+
A2(
|
|
38082
|
+
$author$project$Elm$Annotation$named,
|
|
38083
|
+
_List_fromArray(
|
|
38084
|
+
['Path']),
|
|
38085
|
+
'Path'))),
|
|
38086
|
+
_Utils_Tuple2(
|
|
38087
|
+
'model',
|
|
38088
|
+
$elm$core$Maybe$Just(
|
|
38089
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Model'))),
|
|
37986
38090
|
F3(
|
|
37987
38091
|
function (route, path, model) {
|
|
37988
|
-
return
|
|
37989
|
-
|
|
37990
|
-
|
|
37991
|
-
|
|
37992
|
-
|
|
37993
|
-
|
|
37994
|
-
|
|
37995
|
-
$author$project$Elm$apply,
|
|
38092
|
+
return A2(
|
|
38093
|
+
$author$project$Elm$withType,
|
|
38094
|
+
$author$project$Gen$Platform$Sub$annotation_.sub(
|
|
38095
|
+
A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
|
|
38096
|
+
$author$project$Gen$Platform$Sub$batch(
|
|
38097
|
+
_List_fromArray(
|
|
38098
|
+
[
|
|
37996
38099
|
A2(
|
|
37997
|
-
|
|
37998
|
-
|
|
37999
|
-
|
|
38000
|
-
|
|
38001
|
-
|
|
38002
|
-
|
|
38003
|
-
|
|
38004
|
-
|
|
38005
|
-
|
|
38006
|
-
|
|
38007
|
-
|
|
38008
|
-
|
|
38009
|
-
|
|
38010
|
-
|
|
38011
|
-
|
|
38012
|
-
|
|
38100
|
+
$author$project$Gen$Platform$Sub$call_.map,
|
|
38101
|
+
$author$project$Elm$val('MsgGlobal'),
|
|
38102
|
+
A2(
|
|
38103
|
+
$author$project$Elm$apply,
|
|
38104
|
+
A2(
|
|
38105
|
+
$author$project$Elm$get,
|
|
38106
|
+
'subscriptions',
|
|
38107
|
+
$author$project$Elm$value(
|
|
38108
|
+
{
|
|
38109
|
+
annotation: $elm$core$Maybe$Nothing,
|
|
38110
|
+
importFrom: _List_fromArray(
|
|
38111
|
+
['Shared']),
|
|
38112
|
+
name: 'template'
|
|
38113
|
+
})),
|
|
38114
|
+
_List_fromArray(
|
|
38115
|
+
[
|
|
38116
|
+
path,
|
|
38117
|
+
A2($author$project$Elm$get, 'global', model)
|
|
38118
|
+
]))),
|
|
38119
|
+
A3(templateSubscriptions.call, route, path, model)
|
|
38120
|
+
])));
|
|
38013
38121
|
}));
|
|
38014
38122
|
var apiPatterns = A2(
|
|
38015
38123
|
$author$project$Elm$Extra$topLevelValue,
|
|
Binary file
|
|
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
|
|
|
75
75
|
const { Elm } = require("./Runner.elm.js");
|
|
76
76
|
|
|
77
77
|
// Start the Elm app
|
|
78
|
-
const flags = { initialSeed:
|
|
78
|
+
const flags = { initialSeed: 4067606959, fuzzRuns: 100, filter: null };
|
|
79
79
|
const app = Elm.Runner.init({ flags: flags });
|
|
80
80
|
|
|
81
81
|
// Record the timing at which we received the last "runTest" message
|
|
Binary file
|
|
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
|
|
|
75
75
|
const { Elm } = require("./Runner.elm.js");
|
|
76
76
|
|
|
77
77
|
// Start the Elm app
|
|
78
|
-
const flags = { initialSeed:
|
|
78
|
+
const flags = { initialSeed: 1129837679, fuzzRuns: 100, filter: null };
|
|
79
79
|
const app = Elm.Runner.init({ flags: flags });
|
|
80
80
|
|
|
81
81
|
// Record the timing at which we received the last "runTest" message
|
package/package.json
CHANGED