Alerts
2 years ago
BoxActions
2 years ago
PaymentsPage
2 years ago
TableColumns
2 years ago
VuiBoxes
2 years ago
ActionsWithFilters.vue
2 years ago
ChooseAction.vue
2 years ago
ClearFiltersButton.vue
2 years ago
DetailsTableWithStore.vue
2 years ago
EntriesList.vue
2 years ago
EntriesTable.vue
2 years ago
EntriesTableSkeleton.vue
2 years ago
EntryColumnList.vue
2 years ago
EntryColumnsTable.vue
2 years ago
FormBuilderPage.vue
2 years ago
PageActions.vue
2 years ago
PostBoxContainer.vue
2 years ago
PostBoxGrid.vue
2 years ago
PostBoxSimple.vue
2 years ago
PostBoxSkeleton.vue
2 years ago
PostBoxTable.vue
2 years ago
SideBarBoxes.vue
2 years ago
TablePagination.vue
2 years ago
SideBarBoxes.vue
54 lines
| 1 | <template> |
| 2 | <div class="jfb-content-sidebar" v-if="boxes.length"> |
| 3 | <template v-for="(box, index) in boxes"> |
| 4 | <DashboardPanel |
| 5 | :config="box" |
| 6 | :key="index" |
| 7 | v-if="'panel' === box.type" |
| 8 | > |
| 9 | <template v-if="$slots[ 'icon-' + box.slug ]" #icon> |
| 10 | <slot :name="'icon-' + box.slug"></slot> |
| 11 | </template> |
| 12 | <template v-if="$scopedSlots['content-' + box.slug]" #default> |
| 13 | <slot :name="'content-' + box.slug" v-bind="box"></slot> |
| 14 | </template> |
| 15 | </DashboardPanel> |
| 16 | <DashboardBanner |
| 17 | :config="box" |
| 18 | :key="index" |
| 19 | v-else-if="'banner' === box.type" |
| 20 | > |
| 21 | </DashboardBanner> |
| 22 | </template> |
| 23 | </div> |
| 24 | </template> |
| 25 | |
| 26 | <script> |
| 27 | import DashboardPanel from './VuiBoxes/DashboardPanel'; |
| 28 | import DashboardBanner from './VuiBoxes/DashboardBanner'; |
| 29 | import "./VuiBoxes/banners.scss"; |
| 30 | |
| 31 | const { i18n, GetIncoming } = JetFBMixins; |
| 32 | |
| 33 | export default { |
| 34 | name: 'SideBarBoxes', |
| 35 | components: { DashboardPanel, DashboardBanner }, |
| 36 | mixins: [ i18n, GetIncoming ], |
| 37 | data: () => ({ |
| 38 | boxes: [] |
| 39 | }), |
| 40 | created() { |
| 41 | this.boxes = this.getIncoming( 'boxes' ); |
| 42 | } |
| 43 | |
| 44 | }; |
| 45 | </script> |
| 46 | |
| 47 | <style lang="scss"> |
| 48 | .jfb-content-sidebar { |
| 49 | width: 300px; |
| 50 | display: flex; |
| 51 | flex-direction: column; |
| 52 | gap: 2em; |
| 53 | } |
| 54 | </style> |