feat: add Font Awesome brand icons view
This commit is contained in:
+7
-2
@@ -157,12 +157,12 @@ export default {
|
|||||||
icon: 'cui-pie-chart'
|
icon: 'cui-pie-chart'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CoreUI Icons',
|
name: 'Icons',
|
||||||
url: '/icons',
|
url: '/icons',
|
||||||
icon: 'cui-star',
|
icon: 'cui-star',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'Icons library',
|
name: 'CoreUI Icons',
|
||||||
url: '/icons/coreui-icons',
|
url: '/icons/coreui-icons',
|
||||||
icon: 'cui-star',
|
icon: 'cui-star',
|
||||||
badge: {
|
badge: {
|
||||||
@@ -170,6 +170,11 @@ export default {
|
|||||||
text: 'NEW'
|
text: 'NEW'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Brands',
|
||||||
|
url: '/icons/brands',
|
||||||
|
icon: 'cui-star'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Flags',
|
name: 'Flags',
|
||||||
url: '/icons/flags',
|
url: '/icons/flags',
|
||||||
|
|||||||
+7
-1
@@ -38,8 +38,9 @@ const Dropdowns = () => import('@/views/buttons/Dropdowns')
|
|||||||
const BrandButtons = () => import('@/views/buttons/BrandButtons')
|
const BrandButtons = () => import('@/views/buttons/BrandButtons')
|
||||||
|
|
||||||
// Views - Icons
|
// Views - Icons
|
||||||
const Flags = () => import('@/views/icons/Flags')
|
|
||||||
const CoreUIIcons = () => import('@/views/icons/CoreUIIcons')
|
const CoreUIIcons = () => import('@/views/icons/CoreUIIcons')
|
||||||
|
const Brands = () => import('@/views/icons/Brands')
|
||||||
|
const Flags = () => import('@/views/icons/Flags')
|
||||||
|
|
||||||
// Views - Notifications
|
// Views - Notifications
|
||||||
const Alerts = () => import('@/views/notifications/Alerts')
|
const Alerts = () => import('@/views/notifications/Alerts')
|
||||||
@@ -256,6 +257,11 @@ export default new Router({
|
|||||||
name: 'Icons library',
|
name: 'Icons library',
|
||||||
component: CoreUIIcons
|
component: CoreUIIcons
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'brands',
|
||||||
|
name: 'Brands',
|
||||||
|
component: Brands
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'flags',
|
path: 'flags',
|
||||||
name: 'Flags',
|
name: 'Flags',
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<CCard>
|
||||||
|
<CCardHeader>
|
||||||
|
<i class="cui-globe"></i>Font Awesome brand icons
|
||||||
|
</CCardHeader>
|
||||||
|
<CCardBody>
|
||||||
|
<CRow class="c-text-center">
|
||||||
|
<CCol class="c-mb-5" col="12">
|
||||||
|
<!-- For using the flags inline with text add the classes
|
||||||
|
<code>.flag-icon</code> and <code>.flag-icon-xx</code>
|
||||||
|
(where xx is the ISO 3166-1-alpha-2 code of a country) to an empty
|
||||||
|
span. If you want to have a squared version flag then add the class
|
||||||
|
flag-icon-squared as well. -->
|
||||||
|
</CCol>
|
||||||
|
<template v-for="(brand, brandName) in $options.brands">
|
||||||
|
<CCol
|
||||||
|
class="c-mb-5"
|
||||||
|
col="3"
|
||||||
|
sm="2"
|
||||||
|
:key="key"
|
||||||
|
>
|
||||||
|
<CIcon :height="42" :content="$options.brands[brandName]"/>
|
||||||
|
<div>{{brandName}}</div>
|
||||||
|
</CCol>
|
||||||
|
</template>
|
||||||
|
</CRow>
|
||||||
|
</CCardBody>
|
||||||
|
</CCard>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { iconSet as brands } from '@coreui/icons/brands'
|
||||||
|
export default {
|
||||||
|
name: 'Brands',
|
||||||
|
brands
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user