Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
"bootstrap": "^5.3.8",
"chart.js": "^4.5.1",
"jquery": "^4.0.0",
"jquery-sparkline": "^2.4.0",
"jquery-migrate": "^4.0.2",
"lodash": "^4.18.1",
"moment": "^2.30.1",
"perfect-scrollbar": "^1.5.6",
"skycons": "^1.0.0"
"moment": "^2.30.1"
},
"devDependencies": {
"@babel/core": "^7.24.7",
Expand Down
6 changes: 3 additions & 3 deletions public/css/app.css

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
File renamed without changes
13 changes: 12 additions & 1 deletion public/js/admin.js

Large diffs are not rendered by default.

48 changes: 21 additions & 27 deletions public/js/app.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion public/js/table_settings.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion public/js/user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Admin/templates/admin/login-form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="peers ai-s fxw-nw h-100vh align-items-center">
<div class="container">
<div class="row">
<div class="col-md-6 peer pX-40 pY-80 h-100 bgc-white scrollable pos-r">
<div class="col-md-6 peer pX-40 pY-80 h-100 bgc-white pos-r">
<div class="pos-a centerXY">
<div class="bgc-white bdrs-50p w-100">
<a href="{{ path('app::index-redirect') }}">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/App/assets/images/no-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/App/assets/js/components/_admin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import $ from 'jquery';

$(document).ready(() => {
const request = async(url, options = {}) => {
try {
Expand Down
250 changes: 125 additions & 125 deletions src/App/assets/js/components/_chart.js
Original file line number Diff line number Diff line change
@@ -1,147 +1,147 @@
import Chart from 'chart.js/auto';
import { COLORS } from './_colors';

export default (function () {
(function () {
// ------------------------------------------------------
// @Line Charts
// ------------------------------------------------------

const lineChartBox = document.getElementById('line-chart');

if (lineChartBox) {
const lineCtx = lineChartBox.getContext('2d');
lineChartBox.height = 80;

new Chart(lineCtx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label : 'Series A',
backgroundColor : 'rgba(237, 231, 246, 0.5)',
borderColor : COLORS['deep-purple-500'],
pointBackgroundColor : COLORS['deep-purple-700'],
borderWidth : 2,
data : [60, 50, 70, 60, 50, 70, 60],
}, {
label : 'Series B',
backgroundColor : 'rgba(232, 245, 233, 0.5)',
borderColor : COLORS['blue-500'],
pointBackgroundColor : COLORS['blue-700'],
borderWidth : 2,
data : [70, 75, 85, 70, 75, 85, 70],
}],
},

options: {
legend: {
display: false,
},
},

});
}
const lineChartBox = document.getElementById('line-chart');

if (lineChartBox) {
const lineCtx = lineChartBox.getContext('2d');
lineChartBox.height = 80;

new Chart(lineCtx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label : 'Series A',
backgroundColor : 'rgba(237, 231, 246, 0.5)',
borderColor : COLORS['deep-purple-500'],
pointBackgroundColor : COLORS['deep-purple-700'],
borderWidth : 2,
data : [60, 50, 70, 60, 50, 70, 60],
}, {
label : 'Series B',
backgroundColor : 'rgba(232, 245, 233, 0.5)',
borderColor : COLORS['blue-500'],
pointBackgroundColor : COLORS['blue-700'],
borderWidth : 2,
data : [70, 75, 85, 70, 75, 85, 70],
}],
},

options: {
legend: {
display: false,
},
},

});
}

// ------------------------------------------------------
// @Bar Charts
// ------------------------------------------------------

const barChartBox = document.getElementById('bar-chart');

if (barChartBox) {
const barCtx = barChartBox.getContext('2d');

new Chart(barCtx, {
type: 'bar',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label : 'Dataset 1',
backgroundColor : COLORS['deep-purple-500'],
borderColor : COLORS['deep-purple-800'],
borderWidth : 1,
data : [10, 50, 20, 40, 60, 30, 70],
}, {
label : 'Dataset 2',
backgroundColor : COLORS['light-blue-500'],
borderColor : COLORS['light-blue-800'],
borderWidth : 1,
data : [10, 50, 20, 40, 60, 30, 70],
}],
},

options: {
responsive: true,
legend: {
position: 'bottom',
},
},
});
}
const barChartBox = document.getElementById('bar-chart');

if (barChartBox) {
const barCtx = barChartBox.getContext('2d');

new Chart(barCtx, {
type: 'bar',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label : 'Dataset 1',
backgroundColor : COLORS['deep-purple-500'],
borderColor : COLORS['deep-purple-800'],
borderWidth : 1,
data : [10, 50, 20, 40, 60, 30, 70],
}, {
label : 'Dataset 2',
backgroundColor : COLORS['light-blue-500'],
borderColor : COLORS['light-blue-800'],
borderWidth : 1,
data : [10, 50, 20, 40, 60, 30, 70],
}],
},

options: {
responsive: true,
legend: {
position: 'bottom',
},
},
});
}

// ------------------------------------------------------
// @Area Charts
// ------------------------------------------------------

const areaChartBox = document.getElementById('area-chart');

if (areaChartBox) {
const areaCtx = areaChartBox.getContext('2d');

new Chart(areaCtx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
backgroundColor : 'rgba(3, 169, 244, 0.5)',
borderColor : COLORS['light-blue-800'],
data : [10, 50, 20, 40, 60, 30, 70],
label : 'Dataset',
fill : 'start',
}],
},
});
}
const areaChartBox = document.getElementById('area-chart');

if (areaChartBox) {
const areaCtx = areaChartBox.getContext('2d');

new Chart(areaCtx, {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
backgroundColor : 'rgba(3, 169, 244, 0.5)',
borderColor : COLORS['light-blue-800'],
data : [10, 50, 20, 40, 60, 30, 70],
label : 'Dataset',
fill : 'start',
}],
},
});
}

// ------------------------------------------------------
// @Scatter Charts
// ------------------------------------------------------

const scatterChartBox = document.getElementById('scatter-chart');

if (scatterChartBox) {
const scatterCtx = scatterChartBox.getContext('2d');

Chart.Scatter(scatterCtx, {
data: {
datasets: [{
label : 'My First dataset',
borderColor : COLORS['red-500'],
backgroundColor : COLORS['red-500'],
data: [
{ x: 10, y: 20 },
{ x: 30, y: 40 },
{ x: 50, y: 60 },
{ x: 70, y: 80 },
{ x: 90, y: 100 },
{ x: 110, y: 120 },
{ x: 130, y: 140 },
],
}, {
label : 'My Second dataset',
borderColor : COLORS['green-500'],
backgroundColor : COLORS['green-500'],
data: [
{ x: 150, y: 160 },
{ x: 170, y: 180 },
{ x: 190, y: 200 },
{ x: 210, y: 220 },
{ x: 230, y: 240 },
{ x: 250, y: 260 },
{ x: 270, y: 280 },
],
}],
},
});
}
}())
const scatterChartBox = document.getElementById('scatter-chart');

if (scatterChartBox) {
const scatterCtx = scatterChartBox.getContext('2d');

Chart.Scatter(scatterCtx, {
data: {
datasets: [{
label : 'My First dataset',
borderColor : COLORS['red-500'],
backgroundColor : COLORS['red-500'],
data: [
{ x: 10, y: 20 },
{ x: 30, y: 40 },
{ x: 50, y: 60 },
{ x: 70, y: 80 },
{ x: 90, y: 100 },
{ x: 110, y: 120 },
{ x: 130, y: 140 },
],
}, {
label : 'My Second dataset',
borderColor : COLORS['green-500'],
backgroundColor : COLORS['green-500'],
data: [
{ x: 150, y: 160 },
{ x: 170, y: 180 },
{ x: 190, y: 200 },
{ x: 210, y: 220 },
{ x: 230, y: 240 },
{ x: 250, y: 260 },
{ x: 270, y: 280 },
],
}],
},
});
}
}());
Loading
Loading