mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
ref: rename playground => app
also, add version in title
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Odoo Web Lab Playground</title>
|
<title>OWL Playground</title>
|
||||||
<link rel="icon" href="data:,">
|
<link rel="icon" href="data:,">
|
||||||
|
|
||||||
<script src="libs/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="libs/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<!-- Application JS/CSS -->
|
<!-- Application JS/CSS -->
|
||||||
<link rel="stylesheet" href="playground.css">
|
<link rel="stylesheet" href="playground.css">
|
||||||
<script type="module" src="src/playground.js"></script>
|
<script type="module" src="src/app.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const TEMPLATE = `
|
|||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
class Playground extends Component {
|
class App extends Component {
|
||||||
constructor(...args) {
|
constructor(...args) {
|
||||||
super(...args);
|
super(...args);
|
||||||
this.version = owl._version;
|
this.version = owl._version;
|
||||||
@@ -142,9 +142,13 @@ class Playground extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// Application initialization
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
document.title = `${document.title} (v${owl._version})`;
|
||||||
document.addEventListener("DOMContentLoaded", async function() {
|
document.addEventListener("DOMContentLoaded", async function() {
|
||||||
const qweb = new QWeb();
|
const qweb = new QWeb();
|
||||||
const env = { qweb };
|
const env = { qweb };
|
||||||
const playground = new Playground(env);
|
const app = new App(env);
|
||||||
playground.mount(document.body);
|
app.mount(document.body);
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user