Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EXSYS2021
da6
Hold Afstand
Commits
3168d152
Commit
3168d152
authored
May 06, 2021
by
Anders B. Clausen
Browse files
Site now loads values from backend on startup. Backend default also changed to current default.
parent
6348a8c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/server/server.py
View file @
3168d152
...
...
@@ -6,8 +6,8 @@ hostName = '0.0.0.0'
serverPort
=
1337
db
=
{
'katrine-marie'
:
'{"
left":[],"right":[
{"height":
4
00,"blocks":[{"type":"
Calendar
","width":
100
}]}]
}
'
,
'isaac'
:
'{"
left":[],"right":[
{"height":
4
00,"blocks":[{"type":"Feed","width":
100
}]}]
}
'
'katrine-marie'
:
'
[
{"
height":400,"blocks":[{"type":"Calendar","width":75},{"type":"ActiveCourses","width":25}]},{"height":250,"blocks":[{"type":"Deadlines","width":100}]},
{"height":
3
00,"blocks":[{"type":"
Feed","width":50},{"type":"Mail","width":25},{"type":"Mail
","width":
25
}]}]'
,
'isaac'
:
'
[
{"
height":400,"blocks":[{"type":"Calendar","width":75},{"type":"ActiveCourses","width":25}]},{"height":250,"blocks":[{"type":"Deadlines","width":100}]},
{"height":
3
00,"blocks":[{"type":"Feed","width":
50},{"type":"Mail","width":25},{"type":"Mail","width":25
}]}]'
}
class
MyServer
(
BaseHTTPRequestHandler
):
...
...
website/studerende-dk/src/views/Home.vue
View file @
3168d152
...
...
@@ -57,6 +57,10 @@ export default {
deleting
:
false
,
resizing
:
false
,
created
()
{
this
.
loadLayout
(
"
isaac
"
);
},
data
()
{
return
{
layout
:
[
...
...
@@ -467,6 +471,7 @@ export default {
const
request
=
sendServerRequest
(
type
,
payload
);
request
.
onload
=
()
=>
{
const
response
=
request
.
response
;
this
.
layout
=
[];
Object
.
assign
(
this
.
layout
,
JSON
.
parse
(
response
));
}
},
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment