Skip to content

Commit 2f793d1

Browse files
committed
styles: improve syntax using prettier
1 parent f502f58 commit 2f793d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3740
-2718
lines changed

src/App.js

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, { Component } from 'react';
2-
import { HashRouter, Route, Switch } from 'react-router-dom';
3-
import './scss/style.scss';
1+
import React, { Component } from 'react'
2+
import { HashRouter, Route, Switch } from 'react-router-dom'
3+
import './scss/style.scss'
44

55
const loading = (
66
<div className="pt-3 text-center">
@@ -9,31 +9,35 @@ const loading = (
99
)
1010

1111
// Containers
12-
const DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'));
12+
const DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'))
1313

1414
// Pages
15-
const Login = React.lazy(() => import('./views/pages/login/Login'));
16-
const Register = React.lazy(() => import('./views/pages/register/Register'));
17-
const Page404 = React.lazy(() => import('./views/pages/page404/Page404'));
18-
const Page500 = React.lazy(() => import('./views/pages/page500/Page500'));
15+
const Login = React.lazy(() => import('./views/pages/login/Login'))
16+
const Register = React.lazy(() => import('./views/pages/register/Register'))
17+
const Page404 = React.lazy(() => import('./views/pages/page404/Page404'))
18+
const Page500 = React.lazy(() => import('./views/pages/page500/Page500'))
1919

2020
class App extends Component {
21-
2221
render() {
2322
return (
2423
<HashRouter>
25-
<React.Suspense fallback={loading}>
26-
<Switch>
27-
<Route exact path="/login" name="Login Page" render={props => <Login {...props}/>} />
28-
<Route exact path="/register" name="Register Page" render={props => <Register {...props}/>} />
29-
<Route exact path="/404" name="Page 404" render={props => <Page404 {...props}/>} />
30-
<Route exact path="/500" name="Page 500" render={props => <Page500 {...props}/>} />
31-
<Route path="/" name="Home" render={props => <DefaultLayout {...props}/>} />
32-
</Switch>
33-
</React.Suspense>
24+
<React.Suspense fallback={loading}>
25+
<Switch>
26+
<Route exact path="/login" name="Login Page" render={(props) => <Login {...props} />} />
27+
<Route
28+
exact
29+
path="/register"
30+
name="Register Page"
31+
render={(props) => <Register {...props} />}
32+
/>
33+
<Route exact path="/404" name="Page 404" render={(props) => <Page404 {...props} />} />
34+
<Route exact path="/500" name="Page 500" render={(props) => <Page500 {...props} />} />
35+
<Route path="/" name="Home" render={(props) => <DefaultLayout {...props} />} />
36+
</Switch>
37+
</React.Suspense>
3438
</HashRouter>
35-
);
39+
)
3640
}
3741
}
3842

39-
export default App;
43+
export default App

src/App.test.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ import App from './App'
44
import ChartLineSimple from './views/charts/ChartLineSimple'
55
import Dashboard from './views/dashboard/Dashboard.js'
66

7-
87
it('mounts App without crashing', () => {
9-
const wrapper = shallow(<App/>)
8+
const wrapper = shallow(<App />)
109
wrapper.unmount()
1110
})
1211

1312
it('mounts Dashboard without crashing', () => {
14-
const wrapper = shallow(<Dashboard/>)
13+
const wrapper = shallow(<Dashboard />)
1514
wrapper.unmount()
1615
})
1716

1817
it('mounts Charts without crashing', () => {
19-
const wrapper = shallow(<ChartLineSimple/> )
18+
const wrapper = shallow(<ChartLineSimple />)
2019
wrapper.unmount()
2120
})

src/assets/icons/index.js

+138-139
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,9 @@ import {
2626
cibStripe,
2727
cibPaypal,
2828
cibGooglePay,
29-
cibCcAmex
30-
} from '@coreui/icons'
31-
import {
32-
cifUs,
33-
cifBr,
34-
cifIn,
35-
cifFr,
36-
cifEs,
37-
cifPl
29+
cibCcAmex,
3830
} from '@coreui/icons'
31+
import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from '@coreui/icons'
3932
import {
4033
cilAlignCenter,
4134
cilAlignLeft,
@@ -127,135 +120,141 @@ import {
127120
cilUserUnfollow,
128121
cilX,
129122
cilXCircle,
130-
cilWarning
123+
cilWarning,
131124
} from '@coreui/icons'
132125

133-
export const icons = Object.assign({}, {
134-
sygnet,
135-
logo,
136-
logoNegative
137-
}, {
138-
cilAlignCenter,
139-
cilAlignLeft,
140-
cilAlignRight,
141-
cilApplicationsSettings,
142-
cilArrowRight,
143-
cilArrowTop,
144-
cilAsterisk,
145-
cilBan,
146-
cilBasket,
147-
cilBell,
148-
cilBold,
149-
cilBookmark,
150-
cilCalculator,
151-
cilCalendar,
152-
cilCloudDownload,
153-
cilChartPie,
154-
cilCheck,
155-
cilChevronBottom,
156-
cilChevronLeft,
157-
cilChevronRight,
158-
cilChevronTop,
159-
cilCircle,
160-
cilCheckCircle,
161-
cilCode,
162-
cilCommentSquare,
163-
cilCreditCard,
164-
cilCursor,
165-
cilCursorMove,
166-
cilDrop,
167-
cilDollar,
168-
cilEnvelopeClosed,
169-
cilEnvelopeLetter,
170-
cilEnvelopeOpen,
171-
cilEuro,
172-
cilGlobeAlt,
173-
cilGrid,
174-
cilFile,
175-
cilFullscreen,
176-
cilFullscreenExit,
177-
cilGraph,
178-
cilHome,
179-
cilInbox,
180-
cilIndentDecrease,
181-
cilIndentIncrease,
182-
cilInputPower,
183-
cilItalic,
184-
cilJustifyCenter,
185-
cilJustifyLeft,
186-
cilLaptop,
187-
cilLayers,
188-
cilLightbulb,
189-
cilList,
190-
cilListNumbered,
191-
cilListRich,
192-
cilLocationPin,
193-
cilLockLocked,
194-
cilMagnifyingGlass,
195-
cilMap,
196-
cilMoon,
197-
cilNotes,
198-
cilOptions,
199-
cilPaperclip,
200-
cilPaperPlane,
201-
cilPencil,
202-
cilPeople,
203-
cilPhone,
204-
cilPrint,
205-
cilPuzzle,
206-
cilSave,
207-
cilScrubber,
208-
cilSettings,
209-
cilShare,
210-
cilShareAll,
211-
cilShareBoxed,
212-
cilShieldAlt,
213-
cilSpeech,
214-
cilSpeedometer,
215-
cilSpreadsheet,
216-
cilStar,
217-
cilSun,
218-
cilTags,
219-
cilTask,
220-
cilTrash,
221-
cilUnderline,
222-
cilUser,
223-
cilUserFemale,
224-
cilUserFollow,
225-
cilUserUnfollow,
226-
cilX,
227-
cilXCircle,
228-
cilWarning
229-
}, {
230-
cifUs,
231-
cifBr,
232-
cifIn,
233-
cifFr,
234-
cifEs,
235-
cifPl
236-
}, {
237-
cibSkype,
238-
cibFacebook,
239-
cibTwitter,
240-
cibLinkedin,
241-
cibFlickr,
242-
cibTumblr,
243-
cibXing,
244-
cibGithub,
245-
cibStackoverflow,
246-
cibYoutube,
247-
cibDribbble,
248-
cibInstagram,
249-
cibPinterest,
250-
cibVk,
251-
cibYahoo,
252-
cibBehance,
253-
cibReddit,
254-
cibVimeo,
255-
cibCcMastercard,
256-
cibCcVisa,
257-
cibStripe,
258-
cibPaypal,
259-
cibGooglePay,
260-
cibCcAmex
261-
})
126+
export const icons = Object.assign(
127+
{},
128+
{
129+
sygnet,
130+
logo,
131+
logoNegative,
132+
},
133+
{
134+
cilAlignCenter,
135+
cilAlignLeft,
136+
cilAlignRight,
137+
cilApplicationsSettings,
138+
cilArrowRight,
139+
cilArrowTop,
140+
cilAsterisk,
141+
cilBan,
142+
cilBasket,
143+
cilBell,
144+
cilBold,
145+
cilBookmark,
146+
cilCalculator,
147+
cilCalendar,
148+
cilCloudDownload,
149+
cilChartPie,
150+
cilCheck,
151+
cilChevronBottom,
152+
cilChevronLeft,
153+
cilChevronRight,
154+
cilChevronTop,
155+
cilCircle,
156+
cilCheckCircle,
157+
cilCode,
158+
cilCommentSquare,
159+
cilCreditCard,
160+
cilCursor,
161+
cilCursorMove,
162+
cilDrop,
163+
cilDollar,
164+
cilEnvelopeClosed,
165+
cilEnvelopeLetter,
166+
cilEnvelopeOpen,
167+
cilEuro,
168+
cilGlobeAlt,
169+
cilGrid,
170+
cilFile,
171+
cilFullscreen,
172+
cilFullscreenExit,
173+
cilGraph,
174+
cilHome,
175+
cilInbox,
176+
cilIndentDecrease,
177+
cilIndentIncrease,
178+
cilInputPower,
179+
cilItalic,
180+
cilJustifyCenter,
181+
cilJustifyLeft,
182+
cilLaptop,
183+
cilLayers,
184+
cilLightbulb,
185+
cilList,
186+
cilListNumbered,
187+
cilListRich,
188+
cilLocationPin,
189+
cilLockLocked,
190+
cilMagnifyingGlass,
191+
cilMap,
192+
cilMoon,
193+
cilNotes,
194+
cilOptions,
195+
cilPaperclip,
196+
cilPaperPlane,
197+
cilPencil,
198+
cilPeople,
199+
cilPhone,
200+
cilPrint,
201+
cilPuzzle,
202+
cilSave,
203+
cilScrubber,
204+
cilSettings,
205+
cilShare,
206+
cilShareAll,
207+
cilShareBoxed,
208+
cilShieldAlt,
209+
cilSpeech,
210+
cilSpeedometer,
211+
cilSpreadsheet,
212+
cilStar,
213+
cilSun,
214+
cilTags,
215+
cilTask,
216+
cilTrash,
217+
cilUnderline,
218+
cilUser,
219+
cilUserFemale,
220+
cilUserFollow,
221+
cilUserUnfollow,
222+
cilX,
223+
cilXCircle,
224+
cilWarning,
225+
},
226+
{
227+
cifUs,
228+
cifBr,
229+
cifIn,
230+
cifFr,
231+
cifEs,
232+
cifPl,
233+
},
234+
{
235+
cibSkype,
236+
cibFacebook,
237+
cibTwitter,
238+
cibLinkedin,
239+
cibFlickr,
240+
cibTumblr,
241+
cibXing,
242+
cibGithub,
243+
cibStackoverflow,
244+
cibYoutube,
245+
cibDribbble,
246+
cibInstagram,
247+
cibPinterest,
248+
cibVk,
249+
cibYahoo,
250+
cibBehance,
251+
cibReddit,
252+
cibVimeo,
253+
cibCcMastercard,
254+
cibCcVisa,
255+
cibStripe,
256+
cibPaypal,
257+
cibGooglePay,
258+
cibCcAmex,
259+
},
260+
)

src/assets/icons/logo-negative.js

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)