-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:graduta/webui-workshop into solutio…
…n/frontend-backend-development
- Loading branch information
Showing
11 changed files
with
28 additions
and
214 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
<!doctype html> | ||
<title>WebUI Workshop - 2020</title> | ||
<script src="./index.js" type="module"></script> | ||
|
||
<title>WebUI Workshop - 2023</title> | ||
<meta name="description" content="Control interface of Alice O2"> | ||
|
||
<link rel="stylesheet" href="/css/src/bootstrap.css"> | ||
<link rel="stylesheet" href="/app.css"> | ||
<script src="/js/src/compatibility.js"></script> | ||
|
||
<!-- Load the session service, parses variables provided by server in the query --> | ||
<script type="module"> | ||
import sessionService from '/js/src/sessionService.js'; | ||
sessionService.loadAndHideParameters(); | ||
|
||
// Expose sessionService to interact with it the browser's console | ||
window.sessionService = sessionService; | ||
</script> | ||
|
||
<!-- Main application controller --> | ||
<script type="module"> | ||
// Import MVC | ||
import {mount} from '/js/src/index.js'; | ||
import view from './view.js'; | ||
import Model from './Model.js'; | ||
|
||
// Start application | ||
const model = new Model(); | ||
const debug = true; // shows when redraw is done | ||
mount(document.body, view, model, debug); | ||
|
||
// Expose model to interact with it the browser's console | ||
window.model = model; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import sessionService from '/js/src/sessionService.js'; | ||
import {mount} from '/js/src/index.js'; | ||
import view from './view.js'; | ||
import Model from './Model.js'; | ||
|
||
sessionService.loadAndHideParameters(); | ||
window.sessionService = sessionService; | ||
|
||
// Start application | ||
const model = new Model(); | ||
const debug = true; // shows when redraw is done | ||
mount(document.body, view, model, debug); | ||
|
||
// Expose model to interact with it the browser's console | ||
window.model = model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.