elm-pages 3.0.0-beta.14 → 3.0.0-beta.16
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 +1 -1
- package/codegen/elm-pages-codegen.js +66 -118
- 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/js/Runner.elm.js +20 -20
- 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 +5 -5
- package/generator/dead-code-review/tests/Pages/Review/DeadCodeEliminateDataTest.elm +21 -21
- 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/generator/src/RouteBuilder.elm +23 -23
- package/generator/src/SharedTemplate.elm +2 -2
- package/generator/src/SiteConfig.elm +2 -2
- package/generator/src/cli.js +2 -2
- package/generator/src/compatibility-key.js +1 -1
- package/generator/src/error-formatter.js +7 -3
- package/generator/src/render.js +6 -15
- package/generator/src/request-cache.js +34 -4
- package/generator/static-code/hmr.js +16 -2
- package/package.json +1 -1
- package/src/ApiRoute.elm +13 -16
- package/src/BackendTask/Env.elm +11 -8
- package/src/BackendTask/File.elm +49 -10
- package/src/BackendTask/Glob.elm +6 -6
- package/src/BackendTask/Http.elm +49 -13
- package/src/BackendTask/Port.elm +59 -47
- package/src/BackendTask.elm +8 -22
- package/src/FatalError.elm +101 -0
- package/src/Form.elm +3 -2
- package/src/Internal/ApiRoute.elm +5 -5
- package/src/Pages/Generate.elm +300 -103
- package/src/Pages/Internal/FatalError.elm +5 -0
- package/src/Pages/Internal/Platform/Cli.elm +21 -41
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +1 -1
- package/src/Pages/Internal/Platform/GeneratorApplication.elm +24 -48
- package/src/Pages/Internal/Platform/StaticResponses.elm +18 -31
- package/src/Pages/Internal/Script.elm +2 -2
- package/src/Pages/Manifest.elm +2 -2
- package/src/Pages/ProgramConfig.elm +7 -7
- package/src/Pages/Script.elm +4 -4
- package/src/Pages/SiteConfig.elm +2 -2
- package/src/Pages/StaticHttpRequest.elm +1 -23
- package/src/Server/Request.elm +3 -2
- package/src/Exception.elm +0 -37
- package/src/MultiDict.elm +0 -49
- package/src/PairingHeap.elm +0 -137
- package/src/Parser/Extra/String.elm +0 -33
- package/src/Parser/Extra.elm +0 -69
- package/src/ProgramTest/ComplexQuery.elm +0 -360
- package/src/ProgramTest/EffectSimulation.elm +0 -122
- package/src/ProgramTest/Failure.elm +0 -367
- package/src/ProgramTest/HtmlHighlighter.elm +0 -116
- package/src/ProgramTest/HtmlParserHacks.elm +0 -58
- package/src/ProgramTest/HtmlRenderer.elm +0 -73
- package/src/ProgramTest/Program.elm +0 -30
- package/src/ProgramTest/StringLines.elm +0 -26
- package/src/ProgramTest/TestHtmlHacks.elm +0 -132
- package/src/ProgramTest/TestHtmlParser.elm +0 -201
- package/src/ProgramTest.elm +0 -2339
- package/src/Query/Extra.elm +0 -55
- package/src/SimulatedEffect/Cmd.elm +0 -69
- package/src/SimulatedEffect/Http.elm +0 -330
- package/src/SimulatedEffect/Navigation.elm +0 -69
- package/src/SimulatedEffect/Ports.elm +0 -62
- package/src/SimulatedEffect/Process.elm +0 -24
- package/src/SimulatedEffect/Sub.elm +0 -48
- package/src/SimulatedEffect/Task.elm +0 -252
- package/src/SimulatedEffect/Time.elm +0 -25
- package/src/SimulatedEffect.elm +0 -42
- package/src/String/Extra.elm +0 -6
- package/src/Test/Http.elm +0 -145
- package/src/TestResult.elm +0 -35
- package/src/TestState.elm +0 -305
- package/src/Url/Extra.elm +0 -100
- package/src/Vendored/Diff.elm +0 -321
- package/src/Vendored/Failure.elm +0 -217
- package/src/Vendored/FormatMonochrome.elm +0 -44
- package/src/Vendored/Highlightable.elm +0 -53
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ https://github.com/dillonkearns/elm-pages/projects
|
|
|
81
81
|
You will see an error if the NPM and Elm package do not have a matching Compatibility Key. Usually it's best to upgrade to the latest version of both the Elm and NPM
|
|
82
82
|
packages when you upgrade. However, in case you want to install versions that are behind the latest, the Compatibility Key is included here for reference.
|
|
83
83
|
|
|
84
|
-
Current Compatibility Key:
|
|
84
|
+
Current Compatibility Key: 6.
|
|
85
85
|
|
|
86
86
|
## Contributors ✨
|
|
87
87
|
|
|
@@ -26201,7 +26201,7 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
|
|
|
26201
26201
|
'BackendTask',
|
|
26202
26202
|
_List_fromArray(
|
|
26203
26203
|
[
|
|
26204
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
26204
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
26205
26205
|
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Effect', _List_Nil)
|
|
26206
26206
|
]))),
|
|
26207
26207
|
_Utils_Tuple2(
|
|
@@ -26209,9 +26209,6 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
|
|
|
26209
26209
|
$author$project$Elm$Annotation$list(
|
|
26210
26210
|
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'BuildError', _List_Nil))),
|
|
26211
26211
|
_Utils_Tuple2(
|
|
26212
|
-
'allRawResponses',
|
|
26213
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'RequestsAndPending', _List_Nil)),
|
|
26214
|
-
_Utils_Tuple2(
|
|
26215
26212
|
'maybeRequestJson',
|
|
26216
26213
|
A3(
|
|
26217
26214
|
$author$project$Elm$Annotation$namedWith,
|
|
@@ -26990,6 +26987,50 @@ var $author$project$Gen$Platform$Sub$batch = function (batchArg) {
|
|
|
26990
26987
|
]));
|
|
26991
26988
|
};
|
|
26992
26989
|
var $author$project$Gen$BackendTask$call_ = {
|
|
26990
|
+
allowFatal: function (allowFatalArg) {
|
|
26991
|
+
return A2(
|
|
26992
|
+
$author$project$Elm$apply,
|
|
26993
|
+
$author$project$Elm$value(
|
|
26994
|
+
{
|
|
26995
|
+
annotation: $elm$core$Maybe$Just(
|
|
26996
|
+
A2(
|
|
26997
|
+
$author$project$Elm$Annotation$function,
|
|
26998
|
+
_List_fromArray(
|
|
26999
|
+
[
|
|
27000
|
+
A3(
|
|
27001
|
+
$author$project$Elm$Annotation$namedWith,
|
|
27002
|
+
_List_Nil,
|
|
27003
|
+
'BackendTask',
|
|
27004
|
+
_List_fromArray(
|
|
27005
|
+
[
|
|
27006
|
+
A2(
|
|
27007
|
+
$author$project$Elm$Annotation$extensible,
|
|
27008
|
+
'error',
|
|
27009
|
+
_List_fromArray(
|
|
27010
|
+
[
|
|
27011
|
+
_Utils_Tuple2(
|
|
27012
|
+
'fatal',
|
|
27013
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil))
|
|
27014
|
+
])),
|
|
27015
|
+
$author$project$Elm$Annotation$var('data')
|
|
27016
|
+
]))
|
|
27017
|
+
]),
|
|
27018
|
+
A3(
|
|
27019
|
+
$author$project$Elm$Annotation$namedWith,
|
|
27020
|
+
_List_Nil,
|
|
27021
|
+
'BackendTask',
|
|
27022
|
+
_List_fromArray(
|
|
27023
|
+
[
|
|
27024
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
27025
|
+
$author$project$Elm$Annotation$var('data')
|
|
27026
|
+
])))),
|
|
27027
|
+
importFrom: _List_fromArray(
|
|
27028
|
+
['BackendTask']),
|
|
27029
|
+
name: 'allowFatal'
|
|
27030
|
+
}),
|
|
27031
|
+
_List_fromArray(
|
|
27032
|
+
[allowFatalArg]));
|
|
27033
|
+
},
|
|
26993
27034
|
andMap: F2(
|
|
26994
27035
|
function (andMapArg, andMapArg0) {
|
|
26995
27036
|
return A2(
|
|
@@ -27094,49 +27135,6 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
27094
27135
|
_List_fromArray(
|
|
27095
27136
|
[andThenArg, andThenArg0]));
|
|
27096
27137
|
}),
|
|
27097
|
-
_catch: function (catchArg) {
|
|
27098
|
-
return A2(
|
|
27099
|
-
$author$project$Elm$apply,
|
|
27100
|
-
$author$project$Elm$value(
|
|
27101
|
-
{
|
|
27102
|
-
annotation: $elm$core$Maybe$Just(
|
|
27103
|
-
A2(
|
|
27104
|
-
$author$project$Elm$Annotation$function,
|
|
27105
|
-
_List_fromArray(
|
|
27106
|
-
[
|
|
27107
|
-
A3(
|
|
27108
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27109
|
-
_List_Nil,
|
|
27110
|
-
'BackendTask',
|
|
27111
|
-
_List_fromArray(
|
|
27112
|
-
[
|
|
27113
|
-
A3(
|
|
27114
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27115
|
-
_List_Nil,
|
|
27116
|
-
'Catchable',
|
|
27117
|
-
_List_fromArray(
|
|
27118
|
-
[
|
|
27119
|
-
$author$project$Elm$Annotation$var('error')
|
|
27120
|
-
])),
|
|
27121
|
-
$author$project$Elm$Annotation$var('value')
|
|
27122
|
-
]))
|
|
27123
|
-
]),
|
|
27124
|
-
A3(
|
|
27125
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27126
|
-
_List_Nil,
|
|
27127
|
-
'BackendTask',
|
|
27128
|
-
_List_fromArray(
|
|
27129
|
-
[
|
|
27130
|
-
$author$project$Elm$Annotation$var('error'),
|
|
27131
|
-
$author$project$Elm$Annotation$var('value')
|
|
27132
|
-
])))),
|
|
27133
|
-
importFrom: _List_fromArray(
|
|
27134
|
-
['BackendTask']),
|
|
27135
|
-
name: 'catch'
|
|
27136
|
-
}),
|
|
27137
|
-
_List_fromArray(
|
|
27138
|
-
[catchArg]));
|
|
27139
|
-
},
|
|
27140
27138
|
combine: function (combineArg) {
|
|
27141
27139
|
return A2(
|
|
27142
27140
|
$author$project$Elm$apply,
|
|
@@ -28182,49 +28180,6 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
28182
28180
|
_List_fromArray(
|
|
28183
28181
|
[succeedArg]));
|
|
28184
28182
|
},
|
|
28185
|
-
_throw: function (throwArg) {
|
|
28186
|
-
return A2(
|
|
28187
|
-
$author$project$Elm$apply,
|
|
28188
|
-
$author$project$Elm$value(
|
|
28189
|
-
{
|
|
28190
|
-
annotation: $elm$core$Maybe$Just(
|
|
28191
|
-
A2(
|
|
28192
|
-
$author$project$Elm$Annotation$function,
|
|
28193
|
-
_List_fromArray(
|
|
28194
|
-
[
|
|
28195
|
-
A3(
|
|
28196
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28197
|
-
_List_Nil,
|
|
28198
|
-
'BackendTask',
|
|
28199
|
-
_List_fromArray(
|
|
28200
|
-
[
|
|
28201
|
-
A3(
|
|
28202
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28203
|
-
_List_Nil,
|
|
28204
|
-
'Catchable',
|
|
28205
|
-
_List_fromArray(
|
|
28206
|
-
[
|
|
28207
|
-
$author$project$Elm$Annotation$var('error')
|
|
28208
|
-
])),
|
|
28209
|
-
$author$project$Elm$Annotation$var('data')
|
|
28210
|
-
]))
|
|
28211
|
-
]),
|
|
28212
|
-
A3(
|
|
28213
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28214
|
-
_List_Nil,
|
|
28215
|
-
'BackendTask',
|
|
28216
|
-
_List_fromArray(
|
|
28217
|
-
[
|
|
28218
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Throwable', _List_Nil),
|
|
28219
|
-
$author$project$Elm$Annotation$var('data')
|
|
28220
|
-
])))),
|
|
28221
|
-
importFrom: _List_fromArray(
|
|
28222
|
-
['BackendTask']),
|
|
28223
|
-
name: 'throw'
|
|
28224
|
-
}),
|
|
28225
|
-
_List_fromArray(
|
|
28226
|
-
[throwArg]));
|
|
28227
|
-
},
|
|
28228
28183
|
toResult: function (toResultArg) {
|
|
28229
28184
|
return A2(
|
|
28230
28185
|
$author$project$Elm$apply,
|
|
@@ -28241,14 +28196,7 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
28241
28196
|
'BackendTask',
|
|
28242
28197
|
_List_fromArray(
|
|
28243
28198
|
[
|
|
28244
|
-
|
|
28245
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28246
|
-
_List_Nil,
|
|
28247
|
-
'Catchable',
|
|
28248
|
-
_List_fromArray(
|
|
28249
|
-
[
|
|
28250
|
-
$author$project$Elm$Annotation$var('error')
|
|
28251
|
-
])),
|
|
28199
|
+
$author$project$Elm$Annotation$var('error'),
|
|
28252
28200
|
$author$project$Elm$Annotation$var('data')
|
|
28253
28201
|
]))
|
|
28254
28202
|
]),
|
|
@@ -32817,7 +32765,7 @@ var $author$project$Gen$ApiRoute$single = function (singleArg) {
|
|
|
32817
32765
|
'BackendTask',
|
|
32818
32766
|
_List_fromArray(
|
|
32819
32767
|
[
|
|
32820
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
32768
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
32821
32769
|
$author$project$Elm$Annotation$string
|
|
32822
32770
|
])),
|
|
32823
32771
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
@@ -33571,7 +33519,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33571
33519
|
'BackendTask',
|
|
33572
33520
|
_List_fromArray(
|
|
33573
33521
|
[
|
|
33574
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33522
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33575
33523
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
33576
33524
|
])))),
|
|
33577
33525
|
importFrom: _List_fromArray(
|
|
@@ -33606,7 +33554,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33606
33554
|
'BackendTask',
|
|
33607
33555
|
_List_fromArray(
|
|
33608
33556
|
[
|
|
33609
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33557
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33610
33558
|
$author$project$Elm$Annotation$list(
|
|
33611
33559
|
A3(
|
|
33612
33560
|
$author$project$Elm$Annotation$namedWith,
|
|
@@ -33670,7 +33618,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33670
33618
|
'BackendTask',
|
|
33671
33619
|
_List_fromArray(
|
|
33672
33620
|
[
|
|
33673
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33621
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33674
33622
|
$author$project$Elm$Annotation$list(
|
|
33675
33623
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
|
|
33676
33624
|
]))),
|
|
@@ -33686,7 +33634,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33686
33634
|
'BackendTask',
|
|
33687
33635
|
_List_fromArray(
|
|
33688
33636
|
[
|
|
33689
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33637
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33690
33638
|
$author$project$Elm$Annotation$string
|
|
33691
33639
|
])),
|
|
33692
33640
|
$author$project$Elm$Annotation$var('constructor')
|
|
@@ -33723,7 +33671,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33723
33671
|
'BackendTask',
|
|
33724
33672
|
_List_fromArray(
|
|
33725
33673
|
[
|
|
33726
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33674
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33727
33675
|
$author$project$Elm$Annotation$list(
|
|
33728
33676
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
|
|
33729
33677
|
]))),
|
|
@@ -33739,7 +33687,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33739
33687
|
'BackendTask',
|
|
33740
33688
|
_List_fromArray(
|
|
33741
33689
|
[
|
|
33742
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33690
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33743
33691
|
A3(
|
|
33744
33692
|
$author$project$Elm$Annotation$namedWith,
|
|
33745
33693
|
_List_fromArray(
|
|
@@ -33792,7 +33740,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33792
33740
|
'BackendTask',
|
|
33793
33741
|
_List_fromArray(
|
|
33794
33742
|
[
|
|
33795
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33743
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33796
33744
|
A3(
|
|
33797
33745
|
$author$project$Elm$Annotation$namedWith,
|
|
33798
33746
|
_List_fromArray(
|
|
@@ -33839,7 +33787,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33839
33787
|
'BackendTask',
|
|
33840
33788
|
_List_fromArray(
|
|
33841
33789
|
[
|
|
33842
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33790
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33843
33791
|
$author$project$Elm$Annotation$string
|
|
33844
33792
|
])),
|
|
33845
33793
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
@@ -33948,7 +33896,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33948
33896
|
'BackendTask',
|
|
33949
33897
|
_List_fromArray(
|
|
33950
33898
|
[
|
|
33951
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33899
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33952
33900
|
$author$project$Elm$Annotation$list(
|
|
33953
33901
|
A3(
|
|
33954
33902
|
$author$project$Elm$Annotation$namedWith,
|
|
@@ -36967,8 +36915,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36967
36915
|
A2(
|
|
36968
36916
|
$author$project$Elm$Annotation$named,
|
|
36969
36917
|
_List_fromArray(
|
|
36970
|
-
['
|
|
36971
|
-
'
|
|
36918
|
+
['FatalError']),
|
|
36919
|
+
'FatalError'),
|
|
36972
36920
|
$author$project$Elm$Annotation$list(
|
|
36973
36921
|
A2(
|
|
36974
36922
|
$author$project$Elm$Annotation$named,
|
|
@@ -37047,8 +36995,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37047
36995
|
A2(
|
|
37048
36996
|
$author$project$Elm$Annotation$named,
|
|
37049
36997
|
_List_fromArray(
|
|
37050
|
-
['
|
|
37051
|
-
'
|
|
36998
|
+
['FatalError']),
|
|
36999
|
+
'FatalError'),
|
|
37052
37000
|
$author$project$Elm$Annotation$list($author$project$Gen$Head$annotation_.tag)),
|
|
37053
37001
|
A2(
|
|
37054
37002
|
$author$project$Gen$BackendTask$call_.map,
|
|
@@ -38146,8 +38094,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38146
38094
|
A2(
|
|
38147
38095
|
$author$project$Elm$Annotation$named,
|
|
38148
38096
|
_List_fromArray(
|
|
38149
|
-
['
|
|
38150
|
-
'
|
|
38097
|
+
['FatalError']),
|
|
38098
|
+
'FatalError'),
|
|
38151
38099
|
A2(
|
|
38152
38100
|
$author$project$Gen$Server$Response$annotation_.response,
|
|
38153
38101
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
|
|
@@ -38231,8 +38179,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38231
38179
|
A2(
|
|
38232
38180
|
$author$project$Elm$Annotation$named,
|
|
38233
38181
|
_List_fromArray(
|
|
38234
|
-
['
|
|
38235
|
-
'
|
|
38182
|
+
['FatalError']),
|
|
38183
|
+
'FatalError'),
|
|
38236
38184
|
$author$project$Elm$Annotation$maybe($author$project$Gen$Pages$Internal$NotFoundReason$annotation_.notFoundReason)),
|
|
38237
38185
|
A2(
|
|
38238
38186
|
$author$project$Elm$Case$maybe,
|
|
@@ -38640,8 +38588,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38640
38588
|
A2(
|
|
38641
38589
|
$author$project$Elm$Annotation$named,
|
|
38642
38590
|
_List_fromArray(
|
|
38643
|
-
['
|
|
38644
|
-
'
|
|
38591
|
+
['FatalError']),
|
|
38592
|
+
'FatalError'),
|
|
38645
38593
|
A2(
|
|
38646
38594
|
$author$project$Gen$Server$Response$annotation_.response,
|
|
38647
38595
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11397,7 +11397,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$declarationVisitor = F2(
|
|
|
11397
11397
|
context.importContext,
|
|
11398
11398
|
_Utils_Tuple2(
|
|
11399
11399
|
_List_fromArray(
|
|
11400
|
-
['
|
|
11400
|
+
['FatalError']),
|
|
11401
11401
|
'fromString')) + ' \"\")');
|
|
11402
11402
|
var _v0 = $stil4m$elm_syntax$Elm$Syntax$Node$value(node);
|
|
11403
11403
|
if (_v0.$ === 'FunctionDeclaration') {
|
|
@@ -11511,7 +11511,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$expressionVisitor = F2(
|
|
|
11511
11511
|
context.importContext,
|
|
11512
11512
|
_Utils_Tuple2(
|
|
11513
11513
|
_List_fromArray(
|
|
11514
|
-
['
|
|
11514
|
+
['FatalError']),
|
|
11515
11515
|
'fromString')) + ' \"\")');
|
|
11516
11516
|
return _List_fromArray(
|
|
11517
11517
|
[
|
|
@@ -11587,7 +11587,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$finalEvaluation = functio
|
|
|
11587
11587
|
var _v0 = A2(
|
|
11588
11588
|
$elm$core$Dict$get,
|
|
11589
11589
|
_List_fromArray(
|
|
11590
|
-
['
|
|
11590
|
+
['FatalError']),
|
|
11591
11591
|
context.importContext);
|
|
11592
11592
|
if (_v0.$ === 'Nothing') {
|
|
11593
11593
|
var importAddRange = A2(
|
|
@@ -11609,7 +11609,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$finalEvaluation = functio
|
|
|
11609
11609
|
importAddRange,
|
|
11610
11610
|
_List_fromArray(
|
|
11611
11611
|
[
|
|
11612
|
-
A2($jfmengels$elm_review$Review$Fix$insertAt, importAddRange.end, '\nimport
|
|
11612
|
+
A2($jfmengels$elm_review$Review$Fix$insertAt, importAddRange.end, '\nimport FatalError\n')
|
|
11613
11613
|
]))
|
|
11614
11614
|
]);
|
|
11615
11615
|
} else {
|
|
@@ -26623,7 +26623,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26623
26623
|
[
|
|
26624
26624
|
A2(
|
|
26625
26625
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26626
|
-
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26626
|
+
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = BackendTask.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26627
26627
|
$jfmengels$elm_review$Review$Test$error(
|
|
26628
26628
|
{
|
|
26629
26629
|
details: _List_fromArray(
|
|
@@ -26632,7 +26632,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26632
26632
|
under: 'data = data\n }'
|
|
26633
26633
|
}))
|
|
26634
26634
|
]),
|
|
26635
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26635
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = data\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26636
26636
|
}),
|
|
26637
26637
|
A2(
|
|
26638
26638
|
$elm_explorations$test$Test$test,
|
|
@@ -26644,7 +26644,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26644
26644
|
[
|
|
26645
26645
|
A2(
|
|
26646
26646
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26647
|
-
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26647
|
+
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\nimport BackendTask as DS\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = DS.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26648
26648
|
$jfmengels$elm_review$Review$Test$error(
|
|
26649
26649
|
{
|
|
26650
26650
|
details: _List_fromArray(
|
|
@@ -26653,7 +26653,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26653
26653
|
under: 'data = data\n }'
|
|
26654
26654
|
}))
|
|
26655
26655
|
]),
|
|
26656
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26656
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\nimport BackendTask as DS\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = data\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26657
26657
|
}),
|
|
26658
26658
|
A2(
|
|
26659
26659
|
$elm_explorations$test$Test$test,
|
|
@@ -26665,7 +26665,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26665
26665
|
[
|
|
26666
26666
|
A2(
|
|
26667
26667
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26668
|
-
'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26668
|
+
'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n { slug : String }\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.preRender\n { data = \\_ -> BackendTask.fail (FatalError.fromString "")\n , head = head\n , pages = pages\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26669
26669
|
$jfmengels$elm_review$Review$Test$error(
|
|
26670
26670
|
{
|
|
26671
26671
|
details: _List_fromArray(
|
|
@@ -26674,7 +26674,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26674
26674
|
under: 'data = data'
|
|
26675
26675
|
}))
|
|
26676
26676
|
]),
|
|
26677
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26677
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n { slug : String }\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.preRender\n { data = data\n , head = head\n , pages = pages\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26678
26678
|
}),
|
|
26679
26679
|
A2(
|
|
26680
26680
|
$elm_explorations$test$Test$test,
|
|
@@ -26686,7 +26686,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26686
26686
|
[
|
|
26687
26687
|
A2(
|
|
26688
26688
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26689
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26689
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Request.oneOf []\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26690
26690
|
$jfmengels$elm_review$Review$Test$error(
|
|
26691
26691
|
{
|
|
26692
26692
|
details: _List_fromArray(
|
|
@@ -26696,7 +26696,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26696
26696
|
})),
|
|
26697
26697
|
A2(
|
|
26698
26698
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26699
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26699
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = \\_ -> Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26700
26700
|
$jfmengels$elm_review$Review$Test$error(
|
|
26701
26701
|
{
|
|
26702
26702
|
details: _List_fromArray(
|
|
@@ -26705,7 +26705,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26705
26705
|
under: 'action = action\n }'
|
|
26706
26706
|
}))
|
|
26707
26707
|
]),
|
|
26708
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26708
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26709
26709
|
}),
|
|
26710
26710
|
A2(
|
|
26711
26711
|
$elm_explorations$test$Test$test,
|
|
@@ -26717,7 +26717,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26717
26717
|
[
|
|
26718
26718
|
A2(
|
|
26719
26719
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26720
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26720
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Server.Request.oneOf []\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26721
26721
|
$jfmengels$elm_review$Review$Test$error(
|
|
26722
26722
|
{
|
|
26723
26723
|
details: _List_fromArray(
|
|
@@ -26727,7 +26727,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26727
26727
|
})),
|
|
26728
26728
|
A2(
|
|
26729
26729
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26730
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26730
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = \\_ -> Server.Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26731
26731
|
$jfmengels$elm_review$Review$Test$error(
|
|
26732
26732
|
{
|
|
26733
26733
|
details: _List_fromArray(
|
|
@@ -26736,21 +26736,21 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26736
26736
|
under: 'action = action\n }'
|
|
26737
26737
|
}))
|
|
26738
26738
|
]),
|
|
26739
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26739
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26740
26740
|
}),
|
|
26741
26741
|
A2(
|
|
26742
26742
|
$elm_explorations$test$Test$test,
|
|
26743
26743
|
'no Request.oneOf fix after replacement is made',
|
|
26744
26744
|
function (_v5) {
|
|
26745
26745
|
return $jfmengels$elm_review$Review$Test$expectNoErrors(
|
|
26746
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26746
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26747
26747
|
}),
|
|
26748
26748
|
A2(
|
|
26749
26749
|
$elm_explorations$test$Test$test,
|
|
26750
26750
|
'no fix after replacement is made',
|
|
26751
26751
|
function (_v6) {
|
|
26752
26752
|
return $jfmengels$elm_review$Review$Test$expectNoErrors(
|
|
26753
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26753
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\nimport BackendTask exposing (BackendTask)\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.single\n { head = head\n , data = BackendTask.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26754
26754
|
}),
|
|
26755
26755
|
A2(
|
|
26756
26756
|
$elm_explorations$test$Test$test,
|
|
@@ -26762,7 +26762,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26762
26762
|
[
|
|
26763
26763
|
A2(
|
|
26764
26764
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26765
|
-
'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport
|
|
26765
|
+
'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport FatalError\n\nimport Browser.Navigation\nimport BackendTask\nimport Html exposing (Html)\nimport Html.Styled\nimport Pages.Flags\nimport Pages.PageUrl exposing (PageUrl)\nimport Path exposing (Path)\nimport Route exposing (Route)\nimport SharedTemplate exposing (SharedTemplate)\nimport TableOfContents\nimport View exposing (View)\nimport View.Header\n\n\ntemplate : SharedTemplate Msg Model Data msg\ntemplate =\n { init = init\n , update = update\n , view = view\n , data = BackendTask.fail (FatalError.fromString "")\n , subscriptions = subscriptions\n , onPageChange = Just OnPageChange\n }\n\n\ntype alias Data =\n TableOfContents.TableOfContents TableOfContents.Data\n\n\ntype alias Model =\n { showMobileMenu : Bool\n , counter : Int\n , navigationKey : Maybe Browser.Navigation.Key\n }\n',
|
|
26766
26766
|
$jfmengels$elm_review$Review$Test$error(
|
|
26767
26767
|
{
|
|
26768
26768
|
details: _List_fromArray(
|
|
@@ -26771,7 +26771,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26771
26771
|
under: 'data = data\n ,'
|
|
26772
26772
|
}))
|
|
26773
26773
|
]),
|
|
26774
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport
|
|
26774
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport FatalError\n\nimport Browser.Navigation\nimport BackendTask\nimport Html exposing (Html)\nimport Html.Styled\nimport Pages.Flags\nimport Pages.PageUrl exposing (PageUrl)\nimport Path exposing (Path)\nimport Route exposing (Route)\nimport SharedTemplate exposing (SharedTemplate)\nimport TableOfContents\nimport View exposing (View)\nimport View.Header\n\n\ntemplate : SharedTemplate Msg Model Data msg\ntemplate =\n { init = init\n , update = update\n , view = view\n , data = data\n , subscriptions = subscriptions\n , onPageChange = Just OnPageChange\n }\n\n\ntype alias Data =\n TableOfContents.TableOfContents TableOfContents.Data\n\n\ntype alias Model =\n { showMobileMenu : Bool\n , counter : Int\n , navigationKey : Maybe Browser.Navigation.Key\n }\n'));
|
|
26775
26775
|
})
|
|
26776
26776
|
]));
|
|
26777
26777
|
var $elm$core$Debug$todo = _Debug_todo;
|
|
@@ -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: 2665303026, 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
|
|
@@ -74,7 +74,7 @@ rule =
|
|
|
74
74
|
|
|
75
75
|
finalEvaluation : Context -> List (Rule.Error {})
|
|
76
76
|
finalEvaluation context =
|
|
77
|
-
case Dict.get [ "
|
|
77
|
+
case Dict.get [ "FatalError" ] context.importContext of
|
|
78
78
|
Nothing ->
|
|
79
79
|
let
|
|
80
80
|
importAddRange : { start : { row : Int, column : Int }, end : { row : Int, column : Int } }
|
|
@@ -86,7 +86,7 @@ finalEvaluation context =
|
|
|
86
86
|
, details = [ "" ]
|
|
87
87
|
}
|
|
88
88
|
importAddRange
|
|
89
|
-
[ Review.Fix.insertAt importAddRange.end "\nimport
|
|
89
|
+
[ Review.Fix.insertAt importAddRange.end "\nimport FatalError\n"
|
|
90
90
|
]
|
|
91
91
|
]
|
|
92
92
|
|
|
@@ -128,7 +128,7 @@ declarationVisitor node context =
|
|
|
128
128
|
exceptionFromString : String
|
|
129
129
|
exceptionFromString =
|
|
130
130
|
"("
|
|
131
|
-
++ referenceFunction context.importContext ( [ "
|
|
131
|
+
++ referenceFunction context.importContext ( [ "FatalError" ], "fromString" )
|
|
132
132
|
++ " \"\")"
|
|
133
133
|
in
|
|
134
134
|
case Node.value node of
|
|
@@ -168,7 +168,7 @@ declarationVisitor node context =
|
|
|
168
168
|
-- TODO need to replace `action` as well
|
|
169
169
|
[ ("data = "
|
|
170
170
|
++ referenceFunction context.importContext ( [ "BackendTask" ], "fail" )
|
|
171
|
-
-- TODO add `import
|
|
171
|
+
-- TODO add `import FatalError` if not present (and use alias if present)
|
|
172
172
|
++ " "
|
|
173
173
|
++ exceptionFromString
|
|
174
174
|
++ "\n "
|
|
@@ -221,7 +221,7 @@ expressionVisitor node context =
|
|
|
221
221
|
exceptionFromString : String
|
|
222
222
|
exceptionFromString =
|
|
223
223
|
"("
|
|
224
|
-
++ referenceFunction context.importContext ( [ "
|
|
224
|
+
++ referenceFunction context.importContext ( [ "FatalError" ], "fromString" )
|
|
225
225
|
++ " \"\")"
|
|
226
226
|
in
|
|
227
227
|
[ Rule.errorWithFix
|