Skip to content

Commit 885ddd7

Browse files
committed
run: format
1 parent c5dcb3a commit 885ddd7

Some content is hidden

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

56 files changed

+288
-289
lines changed

src/colors.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const colorsBgLight = {
1010
success: 'bg-emerald-500 border-emerald-500 text-white',
1111
danger: 'bg-red-500 border-red-500 text-white',
1212
warning: 'bg-yellow-500 border-yellow-500 text-white',
13-
info: 'bg-blue-500 border-blue-500 text-white'
13+
info: 'bg-blue-500 border-blue-500 text-white',
1414
}
1515

1616
export const colorsText = {
@@ -20,7 +20,7 @@ export const colorsText = {
2020
success: 'text-emerald-500',
2121
danger: 'text-red-500',
2222
warning: 'text-yellow-500',
23-
info: 'text-blue-500'
23+
info: 'text-blue-500',
2424
}
2525

2626
export const colorsOutline = {
@@ -30,7 +30,7 @@ export const colorsOutline = {
3030
success: [colorsText.success, 'border-emerald-500'],
3131
danger: [colorsText.danger, 'border-red-500'],
3232
warning: [colorsText.warning, 'border-yellow-500'],
33-
info: [colorsText.info, 'border-blue-500']
33+
info: [colorsText.info, 'border-blue-500'],
3434
}
3535

3636
export const getButtonColor = (color, isOutlined, hasHover, isActive = false) => {
@@ -43,7 +43,7 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
4343
success: 'ring-emerald-300 dark:ring-emerald-700',
4444
danger: 'ring-red-300 dark:ring-red-700',
4545
warning: 'ring-yellow-300 dark:ring-yellow-700',
46-
info: 'ring-blue-300 dark:ring-blue-700'
46+
info: 'ring-blue-300 dark:ring-blue-700',
4747
},
4848
active: {
4949
white: 'bg-gray-100',
@@ -53,7 +53,7 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
5353
success: 'bg-emerald-700 dark:bg-emerald-600',
5454
danger: 'bg-red-700 dark:bg-red-600',
5555
warning: 'bg-yellow-700 dark:bg-yellow-600',
56-
info: 'bg-blue-700 dark:bg-blue-600'
56+
info: 'bg-blue-700 dark:bg-blue-600',
5757
},
5858
bg: {
5959
white: 'bg-white text-black',
@@ -63,7 +63,7 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
6363
success: 'bg-emerald-600 dark:bg-emerald-500 text-white',
6464
danger: 'bg-red-600 dark:bg-red-500 text-white',
6565
warning: 'bg-yellow-600 dark:bg-yellow-500 text-white',
66-
info: 'bg-blue-600 dark:bg-blue-500 text-white'
66+
info: 'bg-blue-600 dark:bg-blue-500 text-white',
6767
},
6868
bgHover: {
6969
white: 'hover:bg-gray-100',
@@ -76,7 +76,7 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
7676
'hover:bg-red-700 hover:border-red-700 dark:hover:bg-red-600 dark:hover:border-red-600',
7777
warning:
7878
'hover:bg-yellow-700 hover:border-yellow-700 dark:hover:bg-yellow-600 dark:hover:border-yellow-600',
79-
info: 'hover:bg-blue-700 hover:border-blue-700 dark:hover:bg-blue-600 dark:hover:border-blue-600'
79+
info: 'hover:bg-blue-700 hover:border-blue-700 dark:hover:bg-blue-600 dark:hover:border-blue-600',
8080
},
8181
borders: {
8282
white: 'border-white',
@@ -86,14 +86,14 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
8686
success: 'border-emerald-600 dark:border-emerald-500',
8787
danger: 'border-red-600 dark:border-red-500',
8888
warning: 'border-yellow-600 dark:border-yellow-500',
89-
info: 'border-blue-600 dark:border-blue-500'
89+
info: 'border-blue-600 dark:border-blue-500',
9090
},
9191
text: {
9292
contrast: 'dark:text-slate-100',
9393
success: 'text-emerald-600 dark:text-emerald-500',
9494
danger: 'text-red-600 dark:text-red-500',
9595
warning: 'text-yellow-600 dark:text-yellow-500',
96-
info: 'text-blue-600 dark:text-blue-500'
96+
info: 'text-blue-600 dark:text-blue-500',
9797
},
9898
outlineHover: {
9999
contrast:
@@ -104,8 +104,8 @@ export const getButtonColor = (color, isOutlined, hasHover, isActive = false) =>
104104
'hover:bg-red-600 hover:text-white hover:text-white dark:hover:text-white dark:hover:border-red-600',
105105
warning:
106106
'hover:bg-yellow-600 hover:text-white hover:text-white dark:hover:text-white dark:hover:border-yellow-600',
107-
info: 'hover:bg-blue-600 hover:text-white dark:hover:text-white dark:hover:border-blue-600'
108-
}
107+
info: 'hover:bg-blue-600 hover:text-white dark:hover:text-white dark:hover:border-blue-600',
108+
},
109109
}
110110

111111
if (!colors.bg[color]) {

src/components/AsideMenu.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import OverlayLayer from '@/components/OverlayLayer.vue'
55
defineProps({
66
menu: {
77
type: Array,
8-
required: true
8+
required: true,
99
},
1010
isAsideMobileExpanded: Boolean,
11-
isAsideLgActive: Boolean
11+
isAsideLgActive: Boolean,
1212
})
1313
1414
const emit = defineEmits(['menu-click', 'aside-lg-close-click'])
@@ -27,7 +27,7 @@ const asideLgCloseClick = (event) => {
2727
:menu="menu"
2828
:class="[
2929
isAsideMobileExpanded ? 'left-0' : '-left-60 lg:left-0',
30-
{ 'lg:hidden xl:flex': !isAsideLgActive }
30+
{ 'lg:hidden xl:flex': !isAsideLgActive },
3131
]"
3232
@menu-click="menuClick"
3333
@aside-lg-close-click="asideLgCloseClick"

src/components/AsideMenuItem.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ import AsideMenuList from '@/components/AsideMenuList.vue'
99
const props = defineProps({
1010
item: {
1111
type: Object,
12-
required: true
12+
required: true,
1313
},
14-
isDropdownList: Boolean
14+
isDropdownList: Boolean,
1515
})
1616
1717
const emit = defineEmits(['menu-click'])
1818
1919
const hasColor = computed(() => props.item && props.item.color)
2020
2121
const asideMenuItemActiveStyle = computed(() =>
22-
hasColor.value ? '' : 'aside-menu-item-active font-bold'
22+
hasColor.value ? '' : 'aside-menu-item-active font-bold',
2323
)
2424
2525
const isDropdownActive = ref(false)
@@ -28,7 +28,7 @@ const componentClass = computed(() => [
2828
props.isDropdownList ? 'py-3 px-6 text-sm' : 'py-3',
2929
hasColor.value
3030
? getButtonColor(props.item.color, false, true)
31-
: `aside-menu-item dark:text-slate-300 dark:hover:text-white`
31+
: `aside-menu-item dark:text-slate-300 dark:hover:text-white`,
3232
])
3333
3434
const hasDropdown = computed(() => !!props.item.menu)
@@ -66,7 +66,7 @@ const menuClick = (event) => {
6666
class="grow text-ellipsis line-clamp-1"
6767
:class="[
6868
{ 'pr-12': !hasDropdown },
69-
vSlot && vSlot.isExactActive ? asideMenuItemActiveStyle : ''
69+
vSlot && vSlot.isExactActive ? asideMenuItemActiveStyle : '',
7070
]"
7171
>{{ item.label }}</span
7272
>

src/components/AsideMenuLayer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import BaseIcon from '@/components/BaseIcon.vue'
88
defineProps({
99
menu: {
1010
type: Array,
11-
required: true
12-
}
11+
required: true,
12+
},
1313
})
1414
1515
const emit = defineEmits(['menu-click', 'aside-lg-close-click'])
@@ -18,7 +18,7 @@ const logoutItem = computed(() => ({
1818
label: 'Logout',
1919
icon: mdiLogout,
2020
color: 'info',
21-
isLogout: true
21+
isLogout: true,
2222
}))
2323
2424
const menuClick = (event, item) => {

src/components/AsideMenuList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ defineProps({
55
isDropdownList: Boolean,
66
menu: {
77
type: Array,
8-
required: true
9-
}
8+
required: true,
9+
},
1010
})
1111
1212
const emit = defineEmits(['menu-click'])

src/components/BaseButton.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,45 @@ import BaseIcon from '@/components/BaseIcon.vue'
77
const props = defineProps({
88
label: {
99
type: [String, Number],
10-
default: null
10+
default: null,
1111
},
1212
icon: {
1313
type: String,
14-
default: null
14+
default: null,
1515
},
1616
iconSize: {
1717
type: [String, Number],
18-
default: null
18+
default: null,
1919
},
2020
href: {
2121
type: String,
22-
default: null
22+
default: null,
2323
},
2424
target: {
2525
type: String,
26-
default: null
26+
default: null,
2727
},
2828
to: {
2929
type: [String, Object],
30-
default: null
30+
default: null,
3131
},
3232
type: {
3333
type: String,
34-
default: null
34+
default: null,
3535
},
3636
color: {
3737
type: String,
38-
default: 'white'
38+
default: 'white',
3939
},
4040
as: {
4141
type: String,
42-
default: null
42+
default: null,
4343
},
4444
small: Boolean,
4545
outline: Boolean,
4646
active: Boolean,
4747
disabled: Boolean,
48-
roundedFull: Boolean
48+
roundedFull: Boolean,
4949
})
5050
5151
const is = computed(() => {
@@ -87,7 +87,7 @@ const componentClass = computed(() => {
8787
'border',
8888
props.disabled ? 'cursor-not-allowed' : 'cursor-pointer',
8989
props.roundedFull ? 'rounded-full' : 'rounded-sm',
90-
getButtonColor(props.color, props.outline, !props.disabled, props.active)
90+
getButtonColor(props.color, props.outline, !props.disabled, props.active),
9191
]
9292
9393
if (!props.label && props.icon) {

src/components/BaseButtons.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ export default defineComponent({
77
noWrap: Boolean,
88
type: {
99
type: String,
10-
default: 'justify-start'
10+
default: 'justify-start',
1111
},
1212
classAddon: {
1313
type: String,
14-
default: 'mr-3 last:mr-0 mb-3'
14+
default: 'mr-3 last:mr-0 mb-3',
1515
},
1616
mb: {
1717
type: String,
18-
default: '-mb-3'
19-
}
18+
default: '-mb-3',
19+
},
2020
},
2121
render() {
2222
const hasSlot = this.$slots && this.$slots.default
@@ -25,7 +25,7 @@ export default defineComponent({
2525
'flex',
2626
'items-center',
2727
this.type,
28-
this.noWrap ? 'flex-nowrap' : 'flex-wrap'
28+
this.noWrap ? 'flex-nowrap' : 'flex-wrap',
2929
]
3030
3131
if (this.mb) {
@@ -43,14 +43,14 @@ export default defineComponent({
4343
{},
4444
element.children.map((child) => {
4545
return h(child, { class: [this.classAddon] })
46-
})
46+
}),
4747
)
4848
}
4949
5050
return h(element, { class: [this.classAddon] })
5151
})
52-
: null
52+
: null,
5353
)
54-
}
54+
},
5555
})
5656
</script>

src/components/BaseDivider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
const props = defineProps({
3-
navBar: Boolean
3+
navBar: Boolean,
44
})
55
</script>
66

src/components/BaseIcon.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ import { computed } from 'vue'
44
const props = defineProps({
55
path: {
66
type: String,
7-
required: true
7+
required: true,
88
},
99
w: {
1010
type: String,
11-
default: 'w-6'
11+
default: 'w-6',
1212
},
1313
h: {
1414
type: String,
15-
default: 'h-6'
15+
default: 'h-6',
1616
},
1717
size: {
1818
type: [String, Number],
19-
default: null
20-
}
19+
default: null,
20+
},
2121
})
2222
2323
const spanClass = computed(() => `inline-flex justify-center items-center ${props.w} ${props.h}`)

src/components/BaseLevel.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default defineComponent({
77
mobile: Boolean,
88
type: {
99
type: String,
10-
default: 'justify-between'
11-
}
10+
default: 'justify-between',
11+
},
1212
},
1313
render() {
1414
const parentClass = [this.type, 'items-center']
@@ -22,7 +22,7 @@ export default defineComponent({
2222
return h(
2323
'div',
2424
{
25-
class: parentClass.concat(this.mobile ? parentMobileClass : parentBaseClass)
25+
class: parentClass.concat(this.mobile ? parentMobileClass : parentBaseClass),
2626
},
2727
this.$slots.default().map((element, index) => {
2828
const childClass =
@@ -31,8 +31,8 @@ export default defineComponent({
3131
: childBaseClass
3232
3333
return h('div', { class: childClass }, [element])
34-
})
34+
}),
3535
)
36-
}
36+
},
3737
})
3838
</script>

0 commit comments

Comments
 (0)