From 473c69869d1cd99df84402a2d5f4e3dd622b3558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Sun, 30 Oct 2022 14:15:45 +0100 Subject: [PATCH] Initial commit --- .gitignore | 1 + README.md | 76 +++++++++++++++++++ components/Button.vue | 21 ++++++ components/Card.vue | 15 ++++ components/CardBody.vue | 15 ++++ components/CardHeader.vue | 17 +++++ components/Container.vue | 15 ++++ components/FirstLevelLink.vue | 20 +++++ components/FirstLevelMenu.vue | 105 +++++++++++++++++++++++++++ components/FlexAuto.vue | 15 ++++ components/FloatingBanner.vue | 44 +++++++++++ components/HeroCard.vue | 15 ++++ components/ScreenScrollContainer.vue | 15 ++++ components/SecondLevelLink.vue | 17 +++++ components/SecondLevelMenu.vue | 43 +++++++++++ components/ThirdLevelMenu.vue | 62 ++++++++++++++++ composables/app.js | 8 ++ package.json | 11 +++ 18 files changed, 515 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 components/Button.vue create mode 100644 components/Card.vue create mode 100644 components/CardBody.vue create mode 100644 components/CardHeader.vue create mode 100644 components/Container.vue create mode 100644 components/FirstLevelLink.vue create mode 100644 components/FirstLevelMenu.vue create mode 100644 components/FlexAuto.vue create mode 100644 components/FloatingBanner.vue create mode 100644 components/HeroCard.vue create mode 100644 components/ScreenScrollContainer.vue create mode 100644 components/SecondLevelLink.vue create mode 100644 components/SecondLevelMenu.vue create mode 100644 components/ThirdLevelMenu.vue create mode 100644 composables/app.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b27eb7 --- /dev/null +++ b/README.md @@ -0,0 +1,76 @@ +# bitinflow UI Kit + +## Goal + +The main goal of this package is to provide a clean & simple usage of common components in bitinflow brand. + +## Example Skeleton + +This example skeleton provides the default ui experience for dashboards, featuring first-, second- & +third-level menus. + +```html + + + +``` \ No newline at end of file diff --git a/components/Button.vue b/components/Button.vue new file mode 100644 index 0000000..032f907 --- /dev/null +++ b/components/Button.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/components/Card.vue b/components/Card.vue new file mode 100644 index 0000000..18f0c19 --- /dev/null +++ b/components/Card.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/CardBody.vue b/components/CardBody.vue new file mode 100644 index 0000000..3b3704f --- /dev/null +++ b/components/CardBody.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/CardHeader.vue b/components/CardHeader.vue new file mode 100644 index 0000000..b0255c9 --- /dev/null +++ b/components/CardHeader.vue @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/components/Container.vue b/components/Container.vue new file mode 100644 index 0000000..a10b8f6 --- /dev/null +++ b/components/Container.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/FirstLevelLink.vue b/components/FirstLevelLink.vue new file mode 100644 index 0000000..0d8d505 --- /dev/null +++ b/components/FirstLevelLink.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/components/FirstLevelMenu.vue b/components/FirstLevelMenu.vue new file mode 100644 index 0000000..475e2fd --- /dev/null +++ b/components/FirstLevelMenu.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/components/FlexAuto.vue b/components/FlexAuto.vue new file mode 100644 index 0000000..0b58933 --- /dev/null +++ b/components/FlexAuto.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/FloatingBanner.vue b/components/FloatingBanner.vue new file mode 100644 index 0000000..537021b --- /dev/null +++ b/components/FloatingBanner.vue @@ -0,0 +1,44 @@ + + + + + \ No newline at end of file diff --git a/components/HeroCard.vue b/components/HeroCard.vue new file mode 100644 index 0000000..40dc254 --- /dev/null +++ b/components/HeroCard.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/ScreenScrollContainer.vue b/components/ScreenScrollContainer.vue new file mode 100644 index 0000000..07eb75e --- /dev/null +++ b/components/ScreenScrollContainer.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/components/SecondLevelLink.vue b/components/SecondLevelLink.vue new file mode 100644 index 0000000..757273b --- /dev/null +++ b/components/SecondLevelLink.vue @@ -0,0 +1,17 @@ + + + \ No newline at end of file diff --git a/components/SecondLevelMenu.vue b/components/SecondLevelMenu.vue new file mode 100644 index 0000000..b053f41 --- /dev/null +++ b/components/SecondLevelMenu.vue @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/components/ThirdLevelMenu.vue b/components/ThirdLevelMenu.vue new file mode 100644 index 0000000..ef78089 --- /dev/null +++ b/components/ThirdLevelMenu.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/composables/app.js b/composables/app.js new file mode 100644 index 0000000..339cf2e --- /dev/null +++ b/composables/app.js @@ -0,0 +1,8 @@ +import {useMenuStore} from "~/stores/menu"; + +export const useMenu = (data) => { + const menu = useMenuStore() + if (data.thirdLevelLinks) { + menu.updateThirdLevelLinks(data.thirdLevelLinks) + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..8950732 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "@bitinflow/ui", + "version": "0.0.1", + "description": "Bitinflow UI Kit", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "René Preuß ", + "license": "Apache-2.0" +}