From b18310db9be617e4f99e418e866ad6e69bc2727a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 29 Mar 2019 16:14:36 +0100 Subject: [PATCH] ref: rename playground => app also, add version in title --- index.html | 4 ++-- src/{playground.js => app.js} | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) rename src/{playground.js => app.js} (92%) diff --git a/index.html b/index.html index f0f836b4..e310cf04 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - Odoo Web Lab Playground + OWL Playground @@ -10,7 +10,7 @@ - + diff --git a/src/playground.js b/src/app.js similarity index 92% rename from src/playground.js rename to src/app.js index a7f5fb20..eb86fa14 100644 --- a/src/playground.js +++ b/src/app.js @@ -43,7 +43,7 @@ const TEMPLATE = ` `; -class Playground extends Component { +class App extends Component { constructor(...args) { super(...args); 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() { const qweb = new QWeb(); const env = { qweb }; - const playground = new Playground(env); - playground.mount(document.body); + const app = new App(env); + app.mount(document.body); });