Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KolloquiumVRWebsite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Nick Anton Christoph Kleine-Tebbe
KolloquiumVRWebsite
Commits
94bd3406
Commit
94bd3406
authored
3 years ago
by
Nick Anton Christoph Kleine-Tebbe
Browse files
Options
Downloads
Patches
Plain Diff
Improved logging
parent
e7df3366
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/routes/kolloquiums.js
+10
-11
10 additions, 11 deletions
api/routes/kolloquiums.js
components/KolloquiumItem.vue
+0
-1
0 additions, 1 deletion
components/KolloquiumItem.vue
with
10 additions
and
12 deletions
api/routes/kolloquiums.js
+
10
−
11
View file @
94bd3406
...
...
@@ -62,11 +62,10 @@ router.use('/getKolloquiums', (req, res) => {
// Get Abgaben
router
.
use
(
'
/getAbgaben
'
,
(
req
,
res
)
=>
{
console
.
log
(
'
/getAbgaben
'
)
let
{
kolloquium
}
=
req
.
body
console
.
log
(
"
Get Abgaben from '
"
+
kolloquium
+
"
'
"
)
let
safeKolloquium
=
removeDangerousSymbols
(
kolloquium
)
console
.
log
(
'
from Kolloquium:
'
+
safeKolloquium
)
if
(
isEmpty
(
safeKolloquium
))
{
console
.
warn
(
'
Folder has no name
'
)
return
res
.
json
({
...
...
@@ -85,9 +84,9 @@ router.use('/getAbgaben', (req, res) => {
// Delete Kolloquium
router
.
use
(
'
/deleteKolloquium
'
,
(
req
,
res
)
=>
{
console
.
log
(
'
/deleteKolloquium
'
)
let
{
title
}
=
req
.
body
let
safeTitle
=
removeDangerousSymbols
(
title
)
console
.
log
(
"
Delete Kolloquium '
"
+
title
+
"
'
"
)
if
(
isEmpty
(
safeTitle
))
{
console
.
error
(
'
Folder has no name
'
)
...
...
@@ -114,9 +113,8 @@ router.use('/deleteKolloquium', (req, res) => {
// Create Kolloquium
router
.
use
(
'
/createKolloquium
'
,
(
req
,
res
)
=>
{
console
.
log
(
'
createKolloquium
'
)
console
.
log
(
req
.
body
)
let
{
title
}
=
req
.
body
console
.
log
(
"
Create Kolloquium '
"
+
title
+
"
'
"
)
let
safeTitle
=
removeDangerousSymbols
(
title
)
if
(
isEmpty
(
safeTitle
))
{
...
...
@@ -142,10 +140,10 @@ router.use('/createKolloquium', (req, res) => {
})
}
else
{
console
.
log
(
'
Directory "
'
+
safeTitle
+
'
" created successfully
!
'
);
console
.
log
(
'
Directory "
'
+
safeTitle
+
'
" created successfully
'
);
return
res
.
json
({
success
:
true
,
message
:
'
Directory "
'
+
safeTitle
+
'
" created successfully
!
'
message
:
'
Directory "
'
+
safeTitle
+
'
" created successfully
'
})
}
});
...
...
@@ -153,9 +151,8 @@ router.use('/createKolloquium', (req, res) => {
// Rename Kolloquium
router
.
use
(
'
/renameKolloquium
'
,
(
req
,
res
)
=>
{
console
.
log
(
'
/renameKolloquium
'
)
console
.
log
(
req
.
body
);
let
{
oldTitle
,
newTitle
}
=
req
.
body
console
.
log
(
"
Rename Kolloquium '
"
+
oldTitle
+
"
' to '
"
+
newTitle
+
"
'
"
)
let
safeOldTitle
=
removeDangerousSymbols
(
oldTitle
)
let
safeNewTitle
=
removeDangerousSymbols
(
newTitle
)
...
...
@@ -175,20 +172,22 @@ router.use('/renameKolloquium', (req, res) => {
})
}
console
.
log
(
"
Directory renamed successfully
.
"
);
console
.
log
(
"
Directory renamed successfully
"
);
});
})
// Submit Abgabe
router
.
use
(
'
/submitAbgabe
'
,
(
req
,
res
)
=>
{
console
.
log
(
'
/submitAbgabe
'
)
let
{
kolloquium
,
name
,
matrikelnummer
,
filename
}
=
req
.
body
console
.
log
(
"
Submit Abgabe '
"
+
filename
+
"
' to '
"
+
kolloquium
+
"
'
"
)
let
safeMatrikelnummer
=
removeDangerousSymbols
(
matrikelnummer
)
let
safeName
=
removeDangerousSymbols
(
name
)
let
safeKolloquium
=
removeDangerousSymbols
(
kolloquium
)
if
(
!
req
.
files
)
{
console
.
log
(
'
No file uploaded
'
)
return
res
.
send
({
status
:
false
,
message
:
'
No file uploaded
'
...
...
This diff is collapsed.
Click to expand it.
components/KolloquiumItem.vue
+
0
−
1
View file @
94bd3406
...
...
@@ -59,7 +59,6 @@ export default {
methods
:
{
save
()
{
this
.
$emit
(
"
update:inEdit
"
,
{
inEdit
:
false
,
title
:
this
.
title
});
// this.$emit("update:title", this.title); // done in update:inEdit
},
edit
()
{
this
.
$emit
(
"
update:inEdit
"
,
{
inEdit
:
true
,
title
:
this
.
title
});
...
...
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