Skip to content

Commit 24d5116

Browse files
committed
fix: update template
2 parents 4ff2914 + 32e631e commit 24d5116

File tree

13 files changed

+11455
-1772
lines changed

13 files changed

+11455
-1772
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ Then in file ".env" complete this database configuration:
147147
Then go to `my-project/.env`
148148
And modify this line:
149149

150-
* APP_URL = ;
150+
* APP_URL =
151151

152152
To make it look like this:
153153

154-
* APP_URL = http://example.com/sub-folder;
154+
* APP_URL = http://example.com/sub-folder
155155

156156

157157
### Next step

package-lock.json

Lines changed: 11355 additions & 1633 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,58 @@
7171
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
7272
},
7373
"dependencies": {
74-
"@coreui/coreui": "3.0.0-beta.3",
75-
"@coreui/coreui-chartjs": "2.0.0-beta.0",
76-
"@coreui/icons": "1.0.0-beta.3",
74+
"@coreui/chartjs": "^2.0.0",
75+
"@coreui/coreui": "^3.0.0",
76+
"@coreui/icons": "^1.0.1",
77+
"@coreui/utils": "^1.2.2",
78+
"@popperjs/core": "^2.0.6",
79+
"chart.js": "^2.9.3",
80+
"perfect-scrollbar": "1.5.0",
7781
"axios": "^0.19.0",
78-
"chart.js": "^2.8.0",
7982
"cropperjs": "^1.5.6",
8083
"laravel-mix": "^5.0.0",
81-
"pace-progress": "1.0.2",
82-
"perfect-scrollbar": "1.4.0"
84+
"pace-progress": "1.0.2"
8385
},
8486
"devDependencies": {
85-
"cross-env": "^6.0.0",
87+
"@babel/cli": "^7.8.4",
88+
"@babel/core": "^7.8.4",
89+
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
90+
"@babel/preset-env": "^7.8.4",
91+
"@coreui/svg-injector": "^1.0.0",
92+
"@coreui/vendors-injector": "^1.0.2",
93+
"autoprefixer": "^9.7.4",
94+
"babel-eslint": "^10.0.3",
95+
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",
96+
"browser-sync": "^2.26.7",
97+
"chalk": "^3.0.0",
98+
"clean-css-cli": "^4.3.0",
99+
"copyfiles": "^2.2.0",
100+
"cross-env": "^7.0.0",
101+
"eslint": "^6.8.0",
102+
"eslint-config-xo": "^0.29.1",
103+
"eslint-plugin-import": "^2.20.1",
104+
"eslint-plugin-unicorn": "^16.1.1",
105+
"foreach-cli": "^1.8.1",
106+
"js-beautify": "^1.10.3",
107+
"jsdom": "^16.2.0",
108+
"minimist": "^1.2.0",
109+
"node-sass": "^4.13.1",
110+
"nodemon": "^2.0.2",
111+
"npm-run-all": "^4.1.5",
112+
"postcss-cli": "^7.1.0",
113+
"postcss-combine-duplicated-selectors": "^8.1.0",
114+
"postcss-merge-rules": "^4.0.3",
115+
"pug": "^2.0.4",
86116
"resolve-url-loader": "^3.1.0",
87-
"sass": "^1.23.6",
88-
"sass-loader": "^8.0.0",
117+
"rimraf": "^3.0.2",
118+
"sass-loader": "^8.0.2",
119+
"shelljs": "^0.8.3",
120+
"stylelint": "^13.2.0",
121+
"stylelint-config-recommended-scss": "^4.2.0",
122+
"stylelint-config-standard": "^20.0.0",
123+
"stylelint-order": "^4.0.0",
124+
"stylelint-scss": "^3.14.2",
125+
"sync-glob": "^1.4.0",
89126
"vue-template-compiler": "^2.6.10"
90127
},
91128
"engines": {

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"/css/pace.min.css": "/css/pace.min.css",
88
"/css/coreui-chartjs.css": "/css/coreui-chartjs.css",
99
"/css/cropper.css": "/css/cropper.css",
10+
"/js/coreui-utils.js": "/js/coreui-utils.js",
1011
"/js/axios.min.js": "/js/axios.min.js",
1112
"/js/pace.min.js": "/js/pace.min.js",
1213
"/js/coreui.bundle.min.js": "/js/coreui.bundle.min.js",
1314
"/js/Chart.min.js": "/js/Chart.min.js",
1415
"/js/coreui-chartjs.bundle.js": "/js/coreui-chartjs.bundle.js",
15-
"/js/coreui-chartjs.js": "/js/coreui-chartjs.js",
1616
"/js/cropper.js": "/js/cropper.js",
1717
"/js/main.js": "/js/main.js",
1818
"/js/colors.js": "/js/colors.js",

resources/js/coreui/charts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/**
55
* --------------------------------------------------------------------------
6-
* CoreUI Free Boostrap Admin Template (v3.0.0-alpha.1): main.js
6+
* CoreUI Boostrap Admin Template (v3.0.0): main.js
77
* Licensed under MIT (https://coreui.io/license)
88
* --------------------------------------------------------------------------
99
*/

resources/js/coreui/colors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* global rgbToHex */
1+
/* global coreui.Utils.rgbToHex */
22

33
/**
44
* --------------------------------------------------------------------------
5-
* CoreUI Free Boostrap Admin Template (v3.0.0-alpha.1): colors.js
5+
* CoreUI Boostrap Admin Template (v3.0.0): colors.js
66
* Licensed under MIT (https://coreui.io/license)
77
* --------------------------------------------------------------------------
88
*/
@@ -15,7 +15,7 @@ document.querySelectorAll('.theme-color').forEach((element) => {
1515
<table class="w-100">
1616
<tr>
1717
<td class="text-muted">HEX:</td>
18-
<td class="font-weight-bold">${rgbToHex(color)}</td>
18+
<td class="font-weight-bold">${coreui.Utils.rgbToHex(color)}</td>
1919
</tr>
2020
<tr>
2121
<td class="text-muted">RGB:</td>

resources/js/coreui/main.js

Lines changed: 13 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable object-shorthand */
2-
/* global Chart, coreui, getStyle, hexToRgba */
2+
/* global Chart, coreui, coreui.Utils.getStyle, coreui.Utils.hexToRgba */
33

44
/**
55
* --------------------------------------------------------------------------
6-
* CoreUI Free Boostrap Admin Template (v3.0.0-alpha.1): main.js
6+
* CoreUI Boostrap Admin Template (v3.0.0): main.js
77
* Licensed under MIT (https://coreui.io/license)
88
* --------------------------------------------------------------------------
99
*/
@@ -21,12 +21,12 @@ Chart.defaults.global.responsiveAnimationDuration = 1
2121
document.body.addEventListener('classtoggle', event => {
2222
if (event.detail.className === 'c-dark-theme') {
2323
if (document.body.classList.contains('c-dark-theme')) {
24-
cardChart1.data.datasets[0].pointBackgroundColor = getStyle('--primary-dark-theme')
25-
cardChart2.data.datasets[0].pointBackgroundColor = getStyle('--info-dark-theme')
24+
cardChart1.data.datasets[0].pointBackgroundColor = coreui.Utils.getStyle('--primary-dark-theme')
25+
cardChart2.data.datasets[0].pointBackgroundColor = coreui.Utils.getStyle('--info-dark-theme')
2626
Chart.defaults.global.defaultFontColor = '#fff'
2727
} else {
28-
cardChart1.data.datasets[0].pointBackgroundColor = getStyle('--primary')
29-
cardChart2.data.datasets[0].pointBackgroundColor = getStyle('--info')
28+
cardChart1.data.datasets[0].pointBackgroundColor = coreui.Utils.getStyle('--primary')
29+
cardChart2.data.datasets[0].pointBackgroundColor = coreui.Utils.getStyle('--info')
3030
Chart.defaults.global.defaultFontColor = '#646470'
3131
}
3232

@@ -46,7 +46,7 @@ const cardChart1 = new Chart(document.getElementById('card-chart1'), {
4646
label: 'My First dataset',
4747
backgroundColor: 'transparent',
4848
borderColor: 'rgba(255,255,255,.55)',
49-
pointBackgroundColor: getStyle('--primary'),
49+
pointBackgroundColor: coreui.Utils.getStyle('--primary'),
5050
data: [65, 59, 84, 84, 51, 55, 40]
5151
}
5252
]
@@ -99,7 +99,7 @@ const cardChart2 = new Chart(document.getElementById('card-chart2'), {
9999
label: 'My First dataset',
100100
backgroundColor: 'transparent',
101101
borderColor: 'rgba(255,255,255,.55)',
102-
pointBackgroundColor: getStyle('--info'),
102+
pointBackgroundColor: coreui.Utils.getStyle('--info'),
103103
data: [1, 18, 9, 17, 34, 22, 11]
104104
}
105105
]
@@ -194,7 +194,7 @@ const cardChart4 = new Chart(document.getElementById('card-chart4'), {
194194
backgroundColor: 'rgba(255,255,255,.2)',
195195
borderColor: 'rgba(255,255,255,.55)',
196196
data: [78, 81, 80, 45, 34, 12, 40, 85, 65, 23, 12, 98, 34, 84, 67, 82],
197-
barPercentage: 0.7
197+
barPercentage: 0.6
198198
}
199199
],
200200
},
@@ -222,24 +222,24 @@ const mainChart = new Chart(document.getElementById('main-chart'), {
222222
datasets: [
223223
{
224224
label: 'My First dataset',
225-
backgroundColor: hexToRgba(getStyle('--info'), 10),
226-
borderColor: getStyle('--info'),
225+
backgroundColor: coreui.Utils.hexToRgba(coreui.Utils.getStyle('--info'), 10),
226+
borderColor: coreui.Utils.getStyle('--info'),
227227
pointHoverBackgroundColor: '#fff',
228228
borderWidth: 2,
229229
data: [165, 180, 70, 69, 77, 57, 125, 165, 172, 91, 173, 138, 155, 89, 50, 161, 65, 163, 160, 103, 114, 185, 125, 196, 183, 64, 137, 95, 112, 175]
230230
},
231231
{
232232
label: 'My Second dataset',
233233
backgroundColor: 'transparent',
234-
borderColor: getStyle('--success'),
234+
borderColor: coreui.Utils.getStyle('--success'),
235235
pointHoverBackgroundColor: '#fff',
236236
borderWidth: 2,
237237
data: [92, 97, 80, 100, 86, 97, 83, 98, 87, 98, 93, 83, 87, 98, 96, 84, 91, 97, 88, 86, 94, 86, 95, 91, 98, 91, 92, 80, 83, 82]
238238
},
239239
{
240240
label: 'My Third dataset',
241241
backgroundColor: 'transparent',
242-
borderColor: getStyle('--danger'),
242+
borderColor: coreui.Utils.getStyle('--danger'),
243243
pointHoverBackgroundColor: '#fff',
244244
borderWidth: 1,
245245
borderDash: [8, 5],
@@ -285,80 +285,3 @@ const mainChart = new Chart(document.getElementById('main-chart'), {
285285
}
286286
}
287287
})
288-
289-
const brandBoxChartLabels = ['January', 'February', 'March', 'April', 'May', 'June', 'July']
290-
291-
const brandBoxChartOptions = {
292-
responsive: true,
293-
maintainAspectRatio: false,
294-
legend: {
295-
display: false
296-
},
297-
scales: {
298-
xAxes: [{
299-
display:false
300-
}],
301-
yAxes: [{
302-
display:false
303-
}]
304-
},
305-
elements: {
306-
point: {
307-
radius: 0,
308-
hitRadius: 10,
309-
hoverRadius: 4,
310-
hoverBorderWidth: 3
311-
}
312-
}
313-
}
314-
315-
// eslint-disable-next-line no-unused-vars
316-
const brandBoxChart1 = new Chart(document.getElementById('social-box-chart-1'), {
317-
type: 'line',
318-
data: {
319-
labels: brandBoxChartLabels,
320-
datasets: [{
321-
label: 'My First dataset',
322-
backgroundColor: 'rgba(255,255,255,.1)',
323-
borderColor: 'rgba(255,255,255,.55)',
324-
pointHoverBackgroundColor: '#fff',
325-
borderWidth: 2,
326-
data: [65, 59, 84, 84, 51, 55, 40]
327-
}]
328-
},
329-
options: brandBoxChartOptions
330-
})
331-
332-
// eslint-disable-next-line no-unused-vars
333-
const brandBoxChart2 = new Chart(document.getElementById('social-box-chart-2'), {
334-
type: 'line',
335-
data: {
336-
labels: brandBoxChartLabels,
337-
datasets: [{
338-
label: 'My First dataset',
339-
backgroundColor: 'rgba(255,255,255,.1)',
340-
borderColor: 'rgba(255,255,255,.55)',
341-
pointHoverBackgroundColor: '#fff',
342-
borderWidth: 2,
343-
data: [1, 13, 9, 17, 34, 41, 38]
344-
}]
345-
},
346-
options: brandBoxChartOptions
347-
})
348-
349-
// eslint-disable-next-line no-unused-vars
350-
const brandBoxChart3 = new Chart(document.getElementById('social-box-chart-3'), {
351-
type: 'line',
352-
data: {
353-
labels: brandBoxChartLabels,
354-
datasets: [{
355-
label: 'My First dataset',
356-
backgroundColor: 'rgba(255,255,255,.1)',
357-
borderColor: 'rgba(255,255,255,.55)',
358-
pointHoverBackgroundColor: '#fff',
359-
borderWidth: 2,
360-
data: [78, 81, 80, 45, 34, 12, 40]
361-
}]
362-
},
363-
options: brandBoxChartOptions
364-
})

resources/js/coreui/popovers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* --------------------------------------------------------------------------
5-
* CoreUI Free Boostrap Admin Template (v3.0.0-alpha.1): popovers.js
5+
* CoreUI Free Boostrap Admin Template (v3.0.0): popovers.js
66
* Licensed under MIT (https://coreui.io/license)
77
* --------------------------------------------------------------------------
88
*/

resources/js/coreui/tooltips.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* --------------------------------------------------------------------------
3-
* CoreUI Free Boostrap Admin Template (v3.0.0-alpha.1): tooltips.js
3+
* CoreUI Free Boostrap Admin Template (v3.0.0): tooltips.js
44
* Licensed under MIT (https://coreui.io/license)
55
* --------------------------------------------------------------------------
66
*/

0 commit comments

Comments
 (0)