Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWK Project Effort Estimation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oh14.dev
SWK Project Effort Estimation
Commits
99c52f7b
Commit
99c52f7b
authored
4 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
Add better json debug handling
parent
9d15a08c
No related branches found
No related tags found
No related merge requests found
Pipeline
#19686
passed
4 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/App.svelte
+3
-3
3 additions, 3 deletions
src/App.svelte
with
3 additions
and
3 deletions
src/App.svelte
+
3
−
3
View file @
99c52f7b
...
@@ -14,7 +14,7 @@ import FormulaS from "./FormulaS.svelte";
...
@@ -14,7 +14,7 @@ import FormulaS from "./FormulaS.svelte";
for
(
let
i
=
0
;
i
<=
NUMBER_OF_WORKPACKAGES
;
i
++
)
{
for
(
let
i
=
0
;
i
<=
NUMBER_OF_WORKPACKAGES
;
i
++
)
{
workPackages
.
push
({
a
:
null
,
b
:
null
,
c
:
null
});
workPackages
.
push
({
a
:
null
,
b
:
null
,
c
:
null
});
}
}
$
:
dataJson
=
JSON
.
stringify
(
workPackages
,
null
,
2
)
$
:
dataJson
=
JSON
.
stringify
(
workPackages
.
filter
(({
a
,
b
,
c
})
=>
a
!==
null
||
b
!==
null
||
c
!==
null
)
,
null
,
2
)
let
jsonPasteArea
=
""
;
let
jsonPasteArea
=
""
;
...
@@ -60,7 +60,7 @@ import FormulaS from "./FormulaS.svelte";
...
@@ -60,7 +60,7 @@ import FormulaS from "./FormulaS.svelte";
<summary>
<summary>
Debug: Show Input as JSON
Debug: Show Input as JSON
</summary>
</summary>
<pre>
<pre
style=
"border: 1px solid;"
>
{
dataJson
}
{
dataJson
}
</pre>
</pre>
</details><details>
</details><details>
...
@@ -81,7 +81,7 @@ import FormulaS from "./FormulaS.svelte";
...
@@ -81,7 +81,7 @@ import FormulaS from "./FormulaS.svelte";
if
(
typeof
elem
.
c
!==
'
number
'
&&
elem
.
c
!==
null
)
if
(
typeof
elem
.
c
!==
'
number
'
&&
elem
.
c
!==
null
)
throw
TypeError
(
"
An 'c' attribute was neither number not null
"
);
throw
TypeError
(
"
An 'c' attribute was neither number not null
"
);
}
}
workPackages =
decoded;
workPackages =
[...
decoded
,
{
a:
null
,
b:
null
,
c:
null
}]
;
jsonPasteArea =
""
;
jsonPasteArea =
""
;
}
catch
(
error
)
{
}
catch
(
error
)
{
alert
(
error.toString
())
alert
(
error.toString
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment