Skip to content

Commit 3507035

Browse files
{FIX] Dummy push
1 parent 5f12bed commit 3507035

File tree

19 files changed

+214
-64
lines changed

19 files changed

+214
-64
lines changed

awesome_dashboard/__manifest__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
'assets': {
2525
'web.assets_backend': [
2626
'awesome_dashboard/static/src/**/*',
27+
('remove', 'awesome_dashboard/static/src/dashboard/**/**'),
2728
],
29+
'awesome_dashboard.dashboard': [
30+
'awesome_dashboard/static/src/dashboard/**/**'
31+
]
2832
},
2933
'license': 'AGPL-3'
3034
}

awesome_dashboard/static/src/core/statistics.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

awesome_dashboard/static/src/dashboard.xml

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Component } from "@odoo/owl";
2+
import { PieChart } from "../PieChart/PieChart";
3+
4+
5+
export class ChartCard extends Component {
6+
static template = "awesome_dashboard.ChartCard";
7+
static components = { PieChart};
8+
static props = {
9+
title: String,
10+
label : String,
11+
data : Object,
12+
}
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates xml:space="preserve">
3+
<t t-name="awesome_dashboard.ChartCard">
4+
<h2 class="card-text o_text"> <t t-esc="props.title"></t></h2>
5+
<PieChart data="props.data" label="props.label"/>
6+
</t>
7+
</templates>

awesome_dashboard/static/src/DashboardItem/DashboardItem.js renamed to awesome_dashboard/static/src/dashboard/DashboardItem/DashboardItem.js

File renamed without changes.

awesome_dashboard/static/src/DashboardItem/DashboardItem.xml renamed to awesome_dashboard/static/src/dashboard/DashboardItem/DashboardItem.xml

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Component, onWillStart, useState} from "@odoo/owl";
2+
export class NumberCard extends Component {
3+
static template = "awesome_dashboard.NumberCard";
4+
static components = { };
5+
static props = {
6+
title: String,
7+
value: Number
8+
};
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<templates xml:space="preserve">
3+
<t t-name="awesome_dashboard.NumberCard">
4+
<div class="card-text o_text">
5+
<h2> <t t-esc="props.title"></t></h2>
6+
<t t-esc="props.value"/>
7+
</div>
8+
</t>
9+
</templates>

awesome_dashboard/static/src/PieChart/PieChart.js renamed to awesome_dashboard/static/src/dashboard/PieChart/PieChart.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export class PieChart extends Component
2525

2626
renderChart()
2727
{
28-
console.log(this.props.data)
29-
console.log(this.props.label)
3028
this.chart = new Chart(this.canvasRef.el,
3129
{
3230
type: 'doughnut',

0 commit comments

Comments
 (0)