Skip to content

Commit c31d846

Browse files
author
George
committed
6.0 parcel - V1
1 parent 0610de8 commit c31d846

38 files changed

Lines changed: 496 additions & 812 deletions

package.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"name": "admin",
33
"version": "2.0.0",
44
"description": "Web starter package suitable for admin applications.",
5-
"main": "index.js",
5+
"main": "public/index.js",
66
"type": "module",
77
"scripts": {
88
"preview": "php -S 0.0.0.0:8080 -t public",
9-
"build": "vite build --watch"
9+
"start": "parcel ",
10+
"build": "parcel build src/App/assets/js/index.js"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -32,11 +33,10 @@
3233
"jquery-sparkline": "^2.4.0",
3334
"lodash": "^4.17.21",
3435
"moment": "^2.30.1",
36+
"parcel": "^2.15.2",
3537
"perfect-scrollbar": "^1.5.5",
3638
"skycons": "^1.0.0",
37-
"typescript": "^5.5.4",
38-
"vite": "^6.3.1",
39-
"vite-plugin-static-copy": "^2.3.1"
39+
"typescript": "^5.5.4"
4040
},
4141
"devDependencies": {
4242
"@babel/core": "^7.27.1",
@@ -46,6 +46,8 @@
4646
"@babel/plugin-transform-runtime": "^7.27.1",
4747
"@babel/runtime": "^7.27.1",
4848
"@babel/traverse": "^7.27.1",
49+
"@parcel/transformer-sass": "^2.15.2",
50+
"bootstrap-sass": "^3.4.3",
4951
"cross-env": "^7.0.3",
5052
"css-loader": "5.2.7",
5153
"eslint": "^9.26.0",
@@ -63,12 +65,7 @@
6365
"shx": "^0.3.4",
6466
"style-loader": "^4.0.0",
6567
"stylelint": "^16.6.1",
66-
"stylelint-config-standard": "^36.0.1",
67-
"vite-jsconfig-paths": "^2.0.1",
68-
"vite-plugin-bundle-css": "^0.1.1",
69-
"vite-plugin-commonjs": "^0.10.4",
70-
"vite-plugin-css-injected-by-js": "^3.5.2",
71-
"vite-plugin-minify": "^2.1.0"
68+
"stylelint-config-standard": "^36.0.1"
7269
},
7370
"overrides": {
7471
"graceful-fs": "^4.2.11",

public/css/app.css

-69.1 KB
Binary file not shown.

public/js/admin.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/js/app.js

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

public/js/table_settings.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/js/user.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/App/assets/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import '/node_modules/bootstrap/dist/js/bootstrap.bundle';
2+
require('../scss/index.scss')
13
import './components/_chart';
2-
import './components/_sparkline';
34
import './components/_popover';
45
import './components/_scrollbar';
56
import './components/_search';
67
import './components/_sidebar';
78
import './components/_main';
9+
import './components/_sparkline';
810

9-
import 'bootstrap/dist/js/bootstrap.bundle';
10-
import '../scss/index.scss'
1111
window.$ = window.jQuery = require('jquery');

src/App/assets/scss/components/forms.scss

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@use "./../settings/baseColors";
2+
@use "./../settings/materialColors";
3+
14
.checkbox label {
25
display: inline-block;
36
vertical-align: middle;
@@ -16,9 +19,9 @@
1619
top: 50%;
1720
transform: translateY(-50%);
1821
margin-left: -12px;
19-
border: 1px solid $grey-300;
22+
border: 1px solid baseColors.$grey-300;
2023
border-radius: 3px;
21-
background-color: $md-white;
24+
background-color: materialColors.$md-white;
2225
-webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
2326
-o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
2427
transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
@@ -36,7 +39,7 @@
3639
top: 50%;
3740
transform: translateY(-50%);
3841
margin-left: -12px;
39-
color: $grey-500;
42+
color: baseColors.$grey-500;
4043
}
4144

4245
.checkbox input[type="checkbox"] {
@@ -61,7 +64,7 @@
6164
}
6265

6366
.checkbox input[type="checkbox"]:disabled + label::before {
64-
background-color: $grey-400;
67+
background-color: baseColors.$grey-400;
6568
cursor: not-allowed;
6669
}
6770

@@ -74,48 +77,48 @@
7477
}
7578

7679
.checkbox-primary input[type="checkbox"]:checked + label::before {
77-
background-color: $default-primary;
78-
border-color: $default-primary;
80+
background-color: baseColors.$default-primary;
81+
border-color: baseColors.$default-primary;
7982
}
8083

8184
.checkbox-primary input[type="checkbox"]:checked + label::after {
8285
color: #fff;
8386
}
8487

8588
.checkbox-danger input[type="checkbox"]:checked + label::before {
86-
background-color: $default-danger;
87-
border-color: $default-danger;
89+
background-color: baseColors.$default-danger;
90+
border-color: baseColors.$default-danger;
8891
}
8992

9093
.checkbox-danger input[type="checkbox"]:checked + label::after {
91-
color: $md-white;
94+
color: materialColors.$md-white;
9295
}
9396

9497
.checkbox-info input[type="checkbox"]:checked + label::before {
95-
background-color: $default-info;
96-
border-color: $default-info;
98+
background-color: baseColors.$default-info;
99+
border-color: baseColors.$default-info;
97100
}
98101

99102
.checkbox-info input[type="checkbox"]:checked + label::after {
100-
color: $md-white;
103+
color: materialColors.$md-white;
101104
}
102105

103106
.checkbox-warning input[type="checkbox"]:checked + label::before {
104-
background-color: $default-warning;
105-
border-color: $default-warning;
107+
background-color: baseColors.$default-warning;
108+
border-color: baseColors.$default-warning;
106109
}
107110

108111
.checkbox-warning input[type="checkbox"]:checked + label::after {
109-
color: $md-white;
112+
color: materialColors.$md-white;
110113
}
111114

112115
.checkbox-success input[type="checkbox"]:checked + label::before {
113-
background-color: $default-success;
114-
border-color: $default-success;
116+
background-color: baseColors.$default-success;
117+
border-color: baseColors.$default-success;
115118
}
116119

117120
.checkbox-success input[type="checkbox"]:checked + label::after {
118-
color: $md-white;
121+
color: materialColors.$md-white;
119122
}
120123

121124
.radio {

src/App/assets/scss/components/pageContainer.scss

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@
1010
// ---------------------------------------------------------
1111
// @Page Container
1212
// ---------------------------------------------------------
13+
@use "./../settings/baseColors";
14+
@use "./../settings/breakpoints";
15+
@use "./../tools/mixins/mediaQueriesRanges";
1316

1417
.page-container {
1518
min-height: 100vh;
16-
padding-left: $offscreen-size;
19+
padding-left: baseColors.$offscreen-size;
1720
transition: all 0.2s ease;
1821

19-
@include between($breakpoint-md, $breakpoint-xl) {
20-
padding-left: $collapsed-size;
22+
@include mediaQueriesRanges.between(breakpoints.$breakpoint-md, breakpoints.$breakpoint-xl) {
23+
padding-left: baseColors.$collapsed-size;
2124
}
2225

23-
@include to($breakpoint-md) {
26+
@include mediaQueriesRanges.to(breakpoints.$breakpoint-md) {
2427
padding-left: 0;
2528
}
2629
}
@@ -33,7 +36,7 @@
3336
padding: 85px 20px 20px;
3437
min-height: calc(100vh - 61px);
3538

36-
@include to($breakpoint-md) {
39+
@include mediaQueriesRanges.to(breakpoints.$breakpoint-md) {
3740
padding: 85px 5px 5px;
3841
}
3942
}
@@ -47,19 +50,19 @@
4750
// ---------------------------------------------------------
4851

4952
.full-container {
50-
left: $offscreen-size;
51-
min-height: calc(100vh - #{$header-height});
53+
left: baseColors.$offscreen-size;
54+
min-height: calc(100vh - #{baseColors.$header-height});
5255
position: absolute;
5356
right: 0;
54-
top: $header-height;
57+
top: baseColors.$header-height;
5558
transition: all 0.2s ease;
5659

57-
@include between($breakpoint-md, $breakpoint-xl) {
60+
@include mediaQueriesRanges.between(breakpoints.$breakpoint-md, breakpoints.$breakpoint-xl) {
5861
left: 0;
59-
padding-left: $collapsed-size;
62+
padding-left: baseColors.$collapsed-size;
6063
}
6164

62-
@include to($breakpoint-md) {
65+
@include mediaQueriesRanges.to(breakpoints.$breakpoint-md) {
6366
left: 0;
6467
}
6568
}
@@ -70,26 +73,26 @@
7073

7174
.is-collapsed {
7275
.page-container {
73-
padding-left: $collapsed-size;
76+
padding-left: baseColors.$collapsed-size;
7477

75-
@include to($breakpoint-md) {
78+
@include mediaQueriesRanges.to(breakpoints.$breakpoint-md) {
7679
padding-left: 0;
7780
}
7881

79-
@include between($breakpoint-md, $breakpoint-xl) {
80-
padding-left: $offscreen-size;
82+
@include mediaQueriesRanges.between(breakpoints.$breakpoint-md, breakpoints.$breakpoint-xl) {
83+
padding-left: baseColors.$offscreen-size;
8184
}
8285
}
8386

8487
.full-container {
85-
left: $collapsed-size;
88+
left: baseColors.$collapsed-size;
8689

87-
@include to($breakpoint-md) {
90+
@include mediaQueriesRanges.to(breakpoints.$breakpoint-md) {
8891
left: 0;
8992
}
9093

91-
@include between($breakpoint-md, $breakpoint-xl) {
92-
left: $offscreen-size;
94+
@include mediaQueriesRanges.between(breakpoints.$breakpoint-md, breakpoints.$breakpoint-xl) {
95+
left: baseColors.$offscreen-size;
9396
padding-left: 0;
9497
}
9598
}

0 commit comments

Comments
 (0)