From 3977cbd88e6c757d696af85171bab4e13b8948e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Micha=C5=82ek?= Date: Thu, 5 Aug 2021 14:57:37 +0200 Subject: [PATCH] Add views to sections: buttons, icons, notifications --- src/_nav.js | 178 +++++------ src/router/index.js | 88 ++++++ src/views/Widgets.vue | 22 ++ src/views/base/Tabs.vue | 55 +++- src/views/buttons/BrandButtons.vue | 81 +++++ src/views/buttons/ButtonDropdowns.vue | 305 ++++++++++++++++++ src/views/buttons/ButtonGroups.vue | 232 ++++++++++++++ src/views/buttons/Buttons.vue | 185 +++++++++++ src/views/icons/Brands.vue | 45 +++ src/views/icons/CoreUIIcons.vue | 44 +++ src/views/icons/Flags.vue | 49 +++ src/views/notifications/Alerts.vue | 82 +++++ src/views/notifications/Badges.vue | 61 ++++ src/views/notifications/Modals.vue | 433 ++++++++++++++++++++++++++ 14 files changed, 1769 insertions(+), 91 deletions(-) create mode 100644 src/views/Widgets.vue create mode 100644 src/views/buttons/BrandButtons.vue create mode 100644 src/views/buttons/ButtonDropdowns.vue create mode 100644 src/views/buttons/ButtonGroups.vue create mode 100644 src/views/buttons/Buttons.vue create mode 100644 src/views/icons/Brands.vue create mode 100644 src/views/icons/CoreUIIcons.vue create mode 100644 src/views/icons/Flags.vue create mode 100644 src/views/notifications/Alerts.vue create mode 100644 src/views/notifications/Badges.vue create mode 100644 src/views/notifications/Modals.vue diff --git a/src/_nav.js b/src/_nav.js index ae945eb2..4f2f6d20 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -119,101 +119,101 @@ export default [ } ] }, - // { - // _name: 'CNavGroup', - // name: 'Buttons', - // route: '/buttons', - // icon: 'cil-cursor', - // children: [ - // { - // _name: 'CNavItem', - // name: 'Buttons', - // to: '/buttons/standard-buttons' - // }, - // { - // _name: 'CNavItem', - // name: 'Button Dropdowns', - // to: '/buttons/dropdowns' - // }, - // { - // _name: 'CNavItem', - // name: 'Button Groups', - // to: '/buttons/button-groups' - // }, - // { - // _name: 'CNavItem', - // name: 'Brand Buttons', - // to: '/buttons/brand-buttons' - // } - // ] - // }, + { + _name: 'CNavGroup', + name: 'Buttons', + route: '/buttons', + icon: 'cil-cursor', + children: [ + { + _name: 'CNavItem', + name: 'Buttons', + to: '/buttons/standard-buttons' + }, + { + _name: 'CNavItem', + name: 'Button Dropdowns', + to: '/buttons/dropdowns' + }, + { + _name: 'CNavItem', + name: 'Button Groups', + to: '/buttons/button-groups' + }, + { + _name: 'CNavItem', + name: 'Brand Buttons', + to: '/buttons/brand-buttons' + } + ] + }, // { // _name: 'CNavItem', // name: 'Charts', // to: '/charts', // icon: 'cil-chart-pie' // }, - // { - // _name: 'CNavGroup', - // name: 'Icons', - // route: '/icons', - // icon: 'cil-star', - // children: [ - // { - // _name: 'CNavItem', - // name: 'CoreUI Icons', - // to: '/icons/coreui-icons', - // badge: { - // color: 'info', - // text: 'NEW' - // } - // }, - // { - // _name: 'CNavItem', - // name: 'Brands', - // to: '/icons/brands' - // }, - // { - // _name: 'CNavItem', - // name: 'Flags', - // to: '/icons/flags' - // } - // ] - // }, - // { - // _name: 'CNavGroup', - // name: 'Notifications', - // route: '/notifications', - // icon: 'cil-bell', - // children: [ - // { - // _name: 'CNavItem', - // name: 'Alerts', - // to: '/notifications/alerts' - // }, - // { - // _name: 'CNavItem', - // name: 'Badges', - // to: '/notifications/badges' - // }, - // { - // _name: 'CNavItem', - // name: 'Modals', - // to: '/notifications/modals' - // } - // ] - // }, - // { - // _name: 'CNavItem', - // name: 'Widgets', - // to: '/widgets', - // icon: 'cil-calculator', - // badge: { - // color: 'primary', - // text: 'NEW', - // shape: 'pill' - // } - // }, + { + _name: 'CNavGroup', + name: 'Icons', + route: '/icons', + icon: 'cil-star', + children: [ + { + _name: 'CNavItem', + name: 'CoreUI Icons', + to: '/icons/coreui-icons', + badge: { + color: 'info', + text: 'NEW' + } + }, + { + _name: 'CNavItem', + name: 'Brands', + to: '/icons/brands' + }, + { + _name: 'CNavItem', + name: 'Flags', + to: '/icons/flags' + } + ] + }, + { + _name: 'CNavGroup', + name: 'Notifications', + route: '/notifications', + icon: 'cil-bell', + children: [ + { + _name: 'CNavItem', + name: 'Alerts', + to: '/notifications/alerts' + }, + { + _name: 'CNavItem', + name: 'Badges', + to: '/notifications/badges' + }, + { + _name: 'CNavItem', + name: 'Modals', + to: '/notifications/modals' + } + ] + }, + { + _name: 'CNavItem', + name: 'Widgets', + to: '/widgets', + icon: 'cil-calculator', + badge: { + color: 'primary', + text: 'NEW', + shape: 'pill' + } + }, // { // _name: 'CSidebarNavDivider', // _class: 'm-2' diff --git a/src/router/index.js b/src/router/index.js index 425f0512..08017f68 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -118,6 +118,94 @@ const routes = [ }, ], }, + { + path: "/buttons", + name: "Buttons", + component: { + render() { + return h(resolveComponent('router-view')) + } + }, + children: [ + { + path: "/buttons/standard-buttons", + name: "Buttons", + component: () => import("@/views/buttons/Buttons.vue"), + }, + { + path: "/buttons/dropdowns", + name: "Button Dropdowns", + component: () => import("@/views/buttons/ButtonDropdowns.vue"), + }, + { + path: "/buttons/button-groups", + name: "Button Groups", + component: () => import("@/views/buttons/ButtonGroups.vue"), + }, + { + path: "/buttons/brand-buttons", + name: "Brand Buttons", + component: () => import("@/views/buttons/BrandButtons.vue"), + }, + ] + }, + { + path: "/icons", + name: "Icons", + component: { + render() { + return h(resolveComponent('router-view')) + } + }, + children: [ + { + path: "/icons/coreui-icons", + name: "CoreUI Icons", + component: () => import("@/views/icons/CoreUIIcons.vue"), + }, + { + path: "/icons/brands", + name: "Brands", + component: () => import("@/views/icons/Brands.vue"), + }, + { + path: "/icons/flags", + name: "Flags", + component: () => import("@/views/icons/Flags.vue"), + }, + ] + }, + { + path: "/notifications", + name: "Notifications", + component: { + render() { + return h(resolveComponent('router-view')) + } + }, + children: [ + { + path: "/notifications/alerts", + name: "Alerts", + component: () => import("@/views/notifications/Alerts.vue"), + }, + { + path: "/notifications/badges", + name: "Badges", + component: () => import("@/views/notifications/Badges.vue"), + }, + { + path: "/notifications/modals", + name: "Modals", + component: () => import("@/views/notifications/Modals.vue"), + }, + ] + }, + { + path: "/widgets", + name: "Widgets", + component: () => import("@/views/Widgets.vue"), + }, ], }, // { diff --git a/src/views/Widgets.vue b/src/views/Widgets.vue new file mode 100644 index 00000000..cf31189c --- /dev/null +++ b/src/views/Widgets.vue @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/src/views/base/Tabs.vue b/src/views/base/Tabs.vue index 3f8cd800..16da3f09 100644 --- a/src/views/base/Tabs.vue +++ b/src/views/base/Tabs.vue @@ -6,8 +6,53 @@ Vue Tabs - - + + + + + Active + + + + + Link + + + + + Link + + + + + + Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown + aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan + helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu + banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. + Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui. + + + Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. + Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson + artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo + enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud + organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia + yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes + anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson + biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente + accusamus tattooed echo park. + + + Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's + organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify + pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy + hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred + pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie + etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl + craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr. + + @@ -18,5 +63,11 @@ \ No newline at end of file diff --git a/src/views/buttons/BrandButtons.vue b/src/views/buttons/BrandButtons.vue new file mode 100644 index 00000000..b05b7f59 --- /dev/null +++ b/src/views/buttons/BrandButtons.vue @@ -0,0 +1,81 @@ + + + \ No newline at end of file diff --git a/src/views/buttons/ButtonDropdowns.vue b/src/views/buttons/ButtonDropdowns.vue new file mode 100644 index 00000000..f4867580 --- /dev/null +++ b/src/views/buttons/ButtonDropdowns.vue @@ -0,0 +1,305 @@ + + + \ No newline at end of file diff --git a/src/views/buttons/ButtonGroups.vue b/src/views/buttons/ButtonGroups.vue new file mode 100644 index 00000000..5f5021b4 --- /dev/null +++ b/src/views/buttons/ButtonGroups.vue @@ -0,0 +1,232 @@ + + + \ No newline at end of file diff --git a/src/views/buttons/Buttons.vue b/src/views/buttons/Buttons.vue new file mode 100644 index 00000000..9b02d9aa --- /dev/null +++ b/src/views/buttons/Buttons.vue @@ -0,0 +1,185 @@ + + + \ No newline at end of file diff --git a/src/views/icons/Brands.vue b/src/views/icons/Brands.vue new file mode 100644 index 00000000..03f277a2 --- /dev/null +++ b/src/views/icons/Brands.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/views/icons/CoreUIIcons.vue b/src/views/icons/CoreUIIcons.vue new file mode 100644 index 00000000..906f3fa9 --- /dev/null +++ b/src/views/icons/CoreUIIcons.vue @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/src/views/icons/Flags.vue b/src/views/icons/Flags.vue new file mode 100644 index 00000000..5e0e35d2 --- /dev/null +++ b/src/views/icons/Flags.vue @@ -0,0 +1,49 @@ + + + \ No newline at end of file diff --git a/src/views/notifications/Alerts.vue b/src/views/notifications/Alerts.vue new file mode 100644 index 00000000..abe76de7 --- /dev/null +++ b/src/views/notifications/Alerts.vue @@ -0,0 +1,82 @@ + + + \ No newline at end of file diff --git a/src/views/notifications/Badges.vue b/src/views/notifications/Badges.vue new file mode 100644 index 00000000..ee46e077 --- /dev/null +++ b/src/views/notifications/Badges.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/src/views/notifications/Modals.vue b/src/views/notifications/Modals.vue new file mode 100644 index 00000000..240a6fdf --- /dev/null +++ b/src/views/notifications/Modals.vue @@ -0,0 +1,433 @@ + + + \ No newline at end of file