From 08938d23347ad77cda4121ebead150ac4a49d012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 23 Jan 2019 11:12:54 +0100 Subject: [PATCH] refactoring on types --- tsconfig.json | 2 +- web/index.html | 1 + web/static/src/ts/core/Widget.ts | 21 ++++++------- web/static/src/ts/core/qweb_vdom.ts | 19 ++++++------ web/static/src/ts/env.ts | 10 +++---- web/static/src/ts/main.ts | 2 +- web/static/src/ts/services/actions.ts | 12 +++++--- web/static/src/ts/types.ts | 11 +++++++ web/static/src/ts/widgets/CRM.ts | 5 ++-- web/static/src/ts/widgets/Counter.ts | 7 +++-- web/static/src/ts/widgets/Discuss.ts | 7 +++-- web/static/src/ts/widgets/Navbar.ts | 9 +++--- .../widgets/{RootWidget.ts => root_widget.ts} | 12 ++++---- web/static/tests/qweb_vdom.test.ts | 2 +- web/static/tests/widget.test.ts | 30 +++++++++++-------- 15 files changed, 85 insertions(+), 65 deletions(-) create mode 100644 web/static/src/ts/types.ts rename web/static/src/ts/widgets/{RootWidget.ts => root_widget.ts} (78%) diff --git a/tsconfig.json b/tsconfig.json index 8a6f9631..0853593e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,5 +17,5 @@ "strictPropertyInitialization": true, "strictNullChecks": true }, - "include": ["src/**/*.ts", "tests/**/*.ts", "demo/**/*.ts"] + "include": ["web/static/**/*.ts"] } diff --git a/web/index.html b/web/index.html index 5b0b4b81..fdccdfe2 100644 --- a/web/index.html +++ b/web/index.html @@ -5,6 +5,7 @@ Odoo Web Core Demo +