-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eslint and themeprepare): changed eslint rule and themePrapare
- Loading branch information
Showing
19 changed files
with
265 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import merge from 'lodash.merge'; | ||
import defaultTheme from './__appset/universal/theme'; | ||
import merge from "lodash.merge" | ||
import defaultTheme from "./__appset/theme" | ||
|
||
export default function Init(userTheme) { | ||
const mergeTheme = merge(defaultTheme, userTheme); | ||
const mergeTheme = merge(defaultTheme, userTheme) | ||
|
||
return mergeTheme; | ||
return mergeTheme | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
/* eslint-disable */ | ||
export const MONTHS_NAME = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', | ||
'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec', | ||
]; | ||
export const MONTHS_NAME = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", | ||
"Jul", "Aug", "Sept", "Oct", "Nov", "Dec" | ||
] | ||
|
||
export const timeMap = { | ||
1: '13', | ||
2:'14', | ||
3:'15', | ||
4:'16', | ||
5:'17', | ||
6:'18', | ||
7:'19', | ||
8:'20', | ||
9:'21', | ||
10:'22', | ||
11:'23', | ||
12:'24', | ||
"1": "13", | ||
"2": "14", | ||
"3": "15", | ||
"4": "16", | ||
"5": "17", | ||
"6": "18", | ||
"7": "19", | ||
"8": "20", | ||
"9": "21", | ||
"10": "22", | ||
"11": "23", | ||
"12": "24" | ||
} | ||
|
||
// YEAR MAPPING | ||
|
||
export const yearMapping = { | ||
1: 'Jan', | ||
2: 'Feb', | ||
3: 'Mar', | ||
4: 'Apr', | ||
5: 'May', | ||
6: 'Jun', | ||
7: 'Jul', | ||
8: 'Aug', | ||
9: 'Sept', | ||
10: 'Oct', | ||
11: 'Nov', | ||
12: 'Dec', | ||
}; | ||
"1": "Jan", | ||
"2": "Feb", | ||
"3": "Mar", | ||
"4": "Apr", | ||
"5": "May", | ||
"6": "Jun", | ||
"7": "Jul", | ||
"8": "Aug", | ||
"9": "Sept", | ||
"10": "Oct", | ||
"11": "Nov", | ||
"12": "Dec" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
/* eslint-disable */ | ||
const Button = { | ||
"borderRadius": "50px", | ||
"borderColor": "12px", | ||
"primary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"secondary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
} | ||
"primary": { | ||
"color": "white", | ||
"background": "#03567b", | ||
"borderColor": "white", | ||
"borderRadius": "4px" | ||
}, | ||
"secondary": { | ||
"color": "white", | ||
"background": "#03567b", | ||
"borderColor": "white", | ||
"borderRadius": "4px" | ||
} | ||
} | ||
|
||
export default Button; | ||
export default Button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
/* eslint-disable */ | ||
const Button = { | ||
"borderRadius": "50px", | ||
"borderColor": "12px", | ||
"primary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"secondary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"tertiary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"quaternary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
} | ||
const Chip = { | ||
"borderRadius": "50px", | ||
"borderColor": "12px", | ||
"primary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"secondary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"tertiary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
}, | ||
"quaternary": { | ||
"color": "white", | ||
"borderColor": "white" | ||
} | ||
} | ||
|
||
export default Button; | ||
export default Chip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
__appset/universal/configFontFamily.js → __appset/configFontFamily.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
/* eslint-disable */ | ||
const FontFamily = { | ||
"roboto": "Roboto", | ||
"averta": "Averta", | ||
"sans": "Open Sans,sans-serif" | ||
} | ||
|
||
export default FontFamily; | ||
export default FontFamily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const FontSize = { | ||
"xxxxxl": "48px", | ||
"xxxxl": "32px", | ||
"xxxl": "28px", | ||
"xxl": "24px", | ||
"xl": "20px", | ||
"l": "18px", | ||
"m": "16px", | ||
"md": "15px", | ||
"s": "14px", | ||
"sm": "13px", | ||
"xs": "12px", | ||
"xxs": "11px", | ||
"xxxs": "10px", | ||
"xxxxs": "8px" | ||
} | ||
|
||
export default FontSize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const FontWeight = { | ||
"normal": "400", | ||
"medium": "500", | ||
"semibold": "600", | ||
"bold": "700" | ||
} | ||
|
||
export default FontWeight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const PXL = { | ||
"pxScale": 8, | ||
"PXL": (value) => { | ||
const values = [].concat(value) | ||
return values | ||
.map((v) => (typeof v === "string" ? v : `${v * 8}px`)) | ||
.join(" ") | ||
} | ||
} | ||
|
||
export default PXL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable import/no-anonymous-default-export */ | ||
import PXL from "./configPXL" | ||
import Color from "./configColor" | ||
import FontSize from "./configFontSize" | ||
import FontFamily from "./configFontFamily" | ||
import FontWeight from "./configFontWeight" | ||
|
||
import Button from "./configButton" | ||
import Input from "./configInput" | ||
|
||
export default { | ||
"Universal": { | ||
...PXL, | ||
Color, | ||
FontSize, | ||
FontFamily, | ||
FontWeight | ||
}, | ||
Button, | ||
Input | ||
} |
Oops, something went wrong.