Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Math Tutor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jannik Wurche
Math Tutor
Commits
ee9a9ebf
Commit
ee9a9ebf
authored
9 months ago
by
Jannik Wurche
Browse files
Options
Downloads
Patches
Plain Diff
add UploadFileView to check and upload files to Firebase
parent
2c8d0aa1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Pages/UploadFileView.elm
+8
-0
8 additions, 0 deletions
src/Pages/UploadFileView.elm
src/Types.elm
+1
-0
1 addition, 0 deletions
src/Types.elm
src/View.elm
+11
-8
11 additions, 8 deletions
src/View.elm
with
20 additions
and
8 deletions
src/Pages/UploadFileView.elm
0 → 100644
+
8
−
0
View file @
ee9a9ebf
module
Pages
.
UploadFileView
exposing
(
..
)
import
Html
exposing
(
..
)
import
Types
exposing
(
Msg
)
uploadView
:
Html
Msg
uploadView
=
div
[]
[]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Types.elm
+
1
−
0
View file @
ee9a9ebf
...
...
@@ -36,6 +36,7 @@ type Route
=
HomeRoute
|
QuestionRoute
Int
|
ResultRoute
|
Upload
|
NotFound
-- Represents a graph, including its window and functions.
...
...
This diff is collapsed.
Click to expand it.
src/View.elm
+
11
−
8
View file @
ee9a9ebf
...
...
@@ -3,10 +3,11 @@ module View exposing (..)
import
Html
exposing
(
..
)
import
Browser
import
Pages
.
HomeView
import
Pages
.
QuizView
import
Pages
.
ResultView
import
Pages
.
NotFound
import
Pages
.
HomeView
exposing
(
homeView
)
import
Pages
.
QuizView
exposing
(
questionView
)
import
Pages
.
ResultView
exposing
(
resultView
)
import
Pages
.
NotFound
exposing
(
notFoundView
)
import
Pages
.
UploadFileView
exposing
(
uploadView
)
import
Types
exposing
(
Model
,
Msg
(
..
)
,
Route
(
..
))
...
...
@@ -16,13 +17,15 @@ view model =
let
routeContent
=
case
model
.
route
of
HomeRoute
->
Pages
.
HomeView
.
homeView
model
homeView
model
QuestionRoute
n
->
Pages
.
QuizView
.
questionView
n
model
.
quiz
questionView
n
model
.
quiz
ResultRoute
->
Pages
.
ResultView
.
resultView
model
resultView
model
Upload
->
uploadView
NotFound
->
Pages
.
NotFound
.
notFoundView
notFoundView
in
{
title
=
"
Mathe Quiz App"
,
body
=
[
routeContent
]
...
...
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