diff --git a/src/runtime/components/BitinflowButton.vue b/src/runtime/components/BitinflowButton.vue index a3d0f86..c1e9490 100644 --- a/src/runtime/components/BitinflowButton.vue +++ b/src/runtime/components/BitinflowButton.vue @@ -4,6 +4,10 @@ :class="computedClass" @click="click" > + @@ -16,6 +20,10 @@ export default { name: "BitinflowButton", props: { + icon: { + type: String, + default: null + }, size: { type: String, default: 'md' @@ -59,9 +67,11 @@ export default { .disabled { @apply opacity-50 cursor-not-allowed; } + .loading { @apply opacity-50 cursor-not-allowed; } + .button-text-sm { @apply text-sm; } @@ -97,6 +107,7 @@ export default { .primary-solid { @apply bg-primary-500 hover:bg-primary-600 dark:bg-primary-500 dark:hover:bg-primary-400 text-white; } + .primary-outline { @apply border-primary-500 hover:bg-primary-500 dark:hover:bg-primary-500 dark:border-primary-500 dark:hover:border-primary-500 text-primary-500 hover:text-white; } @@ -104,6 +115,7 @@ export default { .danger-solid { @apply bg-rose-500 hover:bg-rose-600 dark:bg-rose-500 dark:hover:bg-rose-400 text-white; } + .danger-outline { @apply border-rose-500 hover:bg-rose-500 dark:hover:bg-rose-500 dark:border-rose-500 dark:hover:border-rose-500 text-rose-500 hover:text-white; } @@ -111,6 +123,7 @@ export default { .warning-solid { @apply bg-amber-500 hover:bg-amber-600 dark:bg-amber-500 dark:hover:bg-amber-400 text-white; } + .warning-outline { @apply border-amber-500 hover:bg-amber-500 dark:hover:bg-amber-500 dark:border-amber-500 dark:hover:border-amber-500 text-amber-500 hover:text-white; } @@ -118,6 +131,7 @@ export default { .base-solid { @apply bg-white hover:bg-zinc-100 dark:bg-base-700 dark:hover:bg-base-600 text-black dark:text-white; } + .base-outline { @apply border-zinc-100 hover:bg-zinc-100 dark:hover:bg-base-700 dark:border-base-600 dark:hover:border-base-600 text-black dark:text-white; } @@ -125,6 +139,7 @@ export default { .light-solid { @apply bg-zinc-200 hover:bg-zinc-300 dark:bg-base-600 dark:hover:bg-base-500 text-black dark:text-white; } + .light-outline { @apply border-zinc-200 hover:bg-zinc-200 hover:border-zinc-200 dark:hover:bg-base-500 dark:border-base-500 dark:hover:border-base-500 text-black dark:text-white; } diff --git a/src/runtime/components/BitinflowFirstLevelLink.vue b/src/runtime/components/BitinflowFirstLevelLink.vue index 2f91c77..c153a01 100644 --- a/src/runtime/components/BitinflowFirstLevelLink.vue +++ b/src/runtime/components/BitinflowFirstLevelLink.vue @@ -1,7 +1,8 @@ @@ -17,7 +18,29 @@ export default { icon: { type: String, default: 'fa-arrow-up-right-from-square' + }, + to: { + type: String, + default: '/' + } + }, + computed: { + calculateClasses: function () { + return { + 'router-link-active': this.$route.path.includes(this.to) && this.to !== '/', + } } } } + + diff --git a/src/runtime/components/BitinflowFirstLevelMenu.vue b/src/runtime/components/BitinflowFirstLevelMenu.vue index 25672de..92e2135 100644 --- a/src/runtime/components/BitinflowFirstLevelMenu.vue +++ b/src/runtime/components/BitinflowFirstLevelMenu.vue @@ -96,19 +96,19 @@ - + - + - + - + @@ -139,6 +139,12 @@ export default { ], }; }, + mounted() { + // restore dark mode from local storage + if (localStorage.getItem('darkMode') === 'true') { + document.body.classList.add('dark'); + } + }, methods: { toggleMenu() { this.$refs.overlay.classList.toggle('hidden'); @@ -166,7 +172,8 @@ export default { }, 500); }); } - document.body.classList.toggle('dark') + const result = document.body.classList.toggle('dark') + localStorage.setItem('darkMode', result ? 'true' : 'false'); } }, }; diff --git a/src/runtime/components/BitinflowFlex1.vue b/src/runtime/components/BitinflowFlex1.vue new file mode 100644 index 0000000..3a3bc3a --- /dev/null +++ b/src/runtime/components/BitinflowFlex1.vue @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/src/runtime/components/BitinflowFlexAuto.vue b/src/runtime/components/BitinflowFlexAuto.vue index 254c3f6..40e269c 100644 --- a/src/runtime/components/BitinflowFlexAuto.vue +++ b/src/runtime/components/BitinflowFlexAuto.vue @@ -1,12 +1,12 @@ - + diff --git a/src/runtime/components/BitinflowSecondLevelButton.vue b/src/runtime/components/BitinflowSecondLevelButton.vue index 83f16bb..1505a4b 100644 --- a/src/runtime/components/BitinflowSecondLevelButton.vue +++ b/src/runtime/components/BitinflowSecondLevelButton.vue @@ -1,9 +1,9 @@ - diff --git a/src/runtime/components/BitinflowSecondLevelLink.vue b/src/runtime/components/BitinflowSecondLevelLink.vue index b14d7cb..bd4878c 100644 --- a/src/runtime/components/BitinflowSecondLevelLink.vue +++ b/src/runtime/components/BitinflowSecondLevelLink.vue @@ -1,6 +1,7 @@ @@ -23,6 +24,25 @@ export default { type: String, required: true } + }, + computed: { + calculateClasses: function () { + return { + 'router-link-active': this.$route.path.includes(this.to), + } + } } } + + + diff --git a/src/runtime/components/BitinflowSecondLevelMenu.vue b/src/runtime/components/BitinflowSecondLevelMenu.vue index c734c73..72ea15b 100644 --- a/src/runtime/components/BitinflowSecondLevelMenu.vue +++ b/src/runtime/components/BitinflowSecondLevelMenu.vue @@ -1,7 +1,7 @@ @@ -14,11 +14,23 @@ - - + class="bg-zinc-100 dark:bg-base-600 rounded-lg px-4 py-2 h-10 animate-pulse" + /> + + + + No resources found + + + + Click on the Create Resource button below to create your first resource. + + + You don't have any resources yet. + + + + + + + + + + + No resources found + + + + Click on the + Create Resource + button below to create your first resource. + + + You don't have any resources yet. + + + + + + Create Resource + + + + + + + + + + + + {{ columns[key].label }} + + + + + + + + + + + + diff --git a/src/runtime/components/BitinflowTableCheckbox.vue b/src/runtime/components/BitinflowTableCheckbox.vue new file mode 100644 index 0000000..dc67fbf --- /dev/null +++ b/src/runtime/components/BitinflowTableCheckbox.vue @@ -0,0 +1,37 @@ + + + + + + + + + diff --git a/src/runtime/components/BitinflowTableRow.vue b/src/runtime/components/BitinflowTableRow.vue new file mode 100644 index 0000000..b513320 --- /dev/null +++ b/src/runtime/components/BitinflowTableRow.vue @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + +