Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
WrumS-Tools
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
WrumS-Tools
Commits
ddb6472a
Commit
ddb6472a
authored
4 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
Beautify page
parent
807695f8
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#17726
passed
4 years ago
Stage: test
Stage: deploy
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/global.css
+0
-63
0 additions, 63 deletions
public/global.css
public/index.html
+1
-8
1 addition, 8 deletions
public/index.html
src/App.svelte
+153
-105
153 additions, 105 deletions
src/App.svelte
src/main.ts
+1
-1
1 addition, 1 deletion
src/main.ts
with
155 additions
and
177 deletions
public/global.css
+
0
−
63
View file @
ddb6472a
html
,
body
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
}
body
{
color
:
#333
;
margin
:
0
;
padding
:
8px
;
box-sizing
:
border-box
;
font-family
:
-
apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
Oxygen-Sans
,
Ubuntu
,
Cantarell
,
"Helvetica Neue"
,
sans-serif
;
}
a
{
color
:
rgb
(
0
,
100
,
200
);
text-decoration
:
none
;
}
a
:hover
{
text-decoration
:
underline
;
}
a
:visited
{
color
:
rgb
(
0
,
80
,
160
);
}
label
{
display
:
block
;
}
input
,
button
,
select
,
textarea
{
font-family
:
inherit
;
font-size
:
inherit
;
-webkit-padding
:
0.4em
0
;
padding
:
0.4em
;
margin
:
0
0
0.5em
0
;
box-sizing
:
border-box
;
border
:
1px
solid
#ccc
;
border-radius
:
2px
;
}
input
:disabled
{
color
:
#ccc
;
}
button
{
color
:
#333
;
background-color
:
#f4f4f4
;
outline
:
none
;
}
button
:disabled
{
color
:
#999
;
}
button
:not
(
:disabled
)
:active
{
background-color
:
#ddd
;
}
button
:focus
{
border-color
:
#666
;
}
This diff is collapsed.
Click to expand it.
public/index.html
+
1
−
8
View file @
ddb6472a
...
...
@@ -8,22 +8,15 @@
<title>
WrumS Tools
</title>
<link
rel=
"icon"
type=
"image/png"
href=
"./favicon.png"
/>
<link
rel=
"stylesheet"
href=
"./bulma.min.css"
>
<link
rel=
"stylesheet"
href=
"./global.css"
/>
<link
rel=
"stylesheet"
href=
"./build/bundle.css"
/>
<link
rel=
"stylesheet"
href=
"./bulma.min.css"
>
<script
src=
"./plotly-latest.min.js"
defer
></script>
<script
defer
src=
"./build/bundle.js"
></script>
</head>
<body>
<div
id=
"svelteAppContainer"
></div>
<footer>
<a
href=
"https://gitlab.fachschaften.org/jfowl/wrums-tools"
>
Source Code
</a>
- Made with
<a
href=
"https://svelte.dev"
>
Svelte
</a>
,
<a
href=
"https://bulma.io"
>
Bulma
</a>
and
<a
href=
"https://plotly.com/javascript/"
>
Plotly
</a>
-
<a
href=
"https://oh14.de/datenschutzerklaerung.html"
>
Datenschutzerklärung
</a>
</footer>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/App.svelte
+
153
−
105
View file @
ddb6472a
...
...
@@ -7,6 +7,7 @@
import
EmpiricalDistribution
from
"
./components/graphs/EmpiricalDistribution.svelte
"
;
import
Histogram
from
"
./components/graphs/Histogram.svelte
"
;
import
ScatterPlot
from
"
./components/graphs/ScatterPlot.svelte
"
;
import
{
distinctify
}
from
"
./lib/descriptiveStatistics
"
;
let
valueInputStr
:
string
=
"
8.0, 4.9, 6.6, 3.2, 3.9, 4.5, 6.1, 3.7, 4.2, 8.5, 3.6, 3.7
"
;
...
...
@@ -17,22 +18,59 @@
.
map
((
v
)
=>
parseFloat
(
v
))
.
filter
((
v
)
=>
!
isNaN
(
v
));
$
:
sortedValues
=
valueSet
.
sort
((
a
,
b
)
=>
a
-
b
);
$
:
distinctValues
=
distinctify
(
sortedValues
);
let
activeTabIndex
:
number
=
0
;
</script>
<main>
<section>
<section
class=
"hero is-primary"
>
<div
class=
"hero-body"
>
<p
class=
"title"
>
WrumS-Tools
</p>
<p
class=
"subtitle"
>
Statistischer Werkzeugkasten für die statistischen Grundlagen im
Informatikstudium
</p>
</div>
</section>
<br
/>
<section
class=
"section"
>
<div
class=
"container"
>
<div
class=
"columns"
/>
<div
class=
"card"
>
<div
class=
"card-content"
>
x =
<input
type=
"text"
style=
"width: 100%;"
bind:value=
{
valueInputStr
}
/>
<h2
class=
"title"
>
Univariate Daten
</h2>
<form
class=
"box"
>
<div
class=
"field"
>
<label
class=
"label"
for=
"x-values-input"
>
x-Werte (N=
{
valueSet
.
length
}
)
</label>
<div
class=
"control"
>
<input
id=
"x-values-input"
class=
"input"
type=
"text"
bind:value=
{
valueInputStr
}
placeholder=
"1.6, 12.3, 15.3, 33.4"
/>
</div>
</div>
<div
class=
"field"
>
<label
class=
"label"
for=
"x-values-sorted"
>
Sortierte x-Werte
</label>
<div
class=
"control"
>
<input
disabled
id=
"x-values-sorted"
class=
"input"
type=
"text"
value=
{
sortedValues
.
join
(
"
,
"
)
}
/>
</div>
</div>
<div
class=
"field"
>
<label
class=
"label"
for=
"x-values-distinct"
>
Sortierter Wertebereich (J=
{
distinctValues
.
length
}
)
</label>
<div
class=
"control"
>
<input
disabled
id=
"x-values-distinct"
class=
"input"
type=
"text"
value=
{
distinctValues
.
join
(
"
,
"
)
}
/>
</div>
</div>
<div
class=
"card"
>
<div
class=
"card-content"
>
<div
class=
"tabs is-boxed is-centered"
>
<ul>
<li
...
...
@@ -114,25 +152,35 @@
<Mean
values=
{
sortedValues
}
/>
{
/if
}
</div>
</form>
<div
class=
"columns is-desktop"
>
<div
class=
"column"
>
<div
class=
"box"
>
<BoxPlot
valueSets=
{
[
sortedValues
]
}
/>
</div>
</div>
</div>
<br
/>
<div
class=
"plots"
>
<BoxPlot
valueSets=
{
[
sortedValues
]
}
/>
<div
class=
"column"
>
<div
class=
"box"
>
<EmpiricalDistribution
values=
{
sortedValues
}
/>
</div>
</div>
</div>
</div>
</section>
<section
class=
"section"
/>
</main>
<style>
.plots
{
display
:
flex
;
justify-content
:
space-evenly
;
align-items
:
stretch
;
flex-wrap
:
wrap
;
}
</style>
<footer
class=
"footer is-small is-primary"
>
<div
class=
"content has-text-centered"
>
<p>
Made with
<a
href=
"https://svelte.dev"
>
Svelte
</a>
,
<a
href=
"https://bulma.io"
>
Bulma
</a>
and
<a
href=
"https://plotly.com/javascript/"
>
Plotly
</a>
-
<a
href=
"https://oh14.de/datenschutzerklaerung.html"
>
Datenschutzerklärung
</a
>
-
<a
href=
"https://gitlab.fachschaften.org/jfowl/wrums-tools"
>
Source Code
</a
>
</p>
</div>
</footer>
This diff is collapsed.
Click to expand it.
src/main.ts
+
1
−
1
View file @
ddb6472a
import
App
from
"
./App.svelte
"
;
const
app
=
new
App
({
target
:
document
.
getElementById
(
"
svelteAppContainer
"
)
,
target
:
document
.
body
,
props
:
{},
});
...
...
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