1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-30 18:36:29 +00:00
bramw_baserow/web-frontend/modules/builder/mixins/elementForm.js
2024-11-28 08:47:54 +00:00

22 lines
621 B
JavaScript

import { resolveColor } from '@baserow/modules/core/utils/colors'
import { ThemeConfigBlockType } from '@baserow/modules/builder/themeConfigBlockTypes'
import form from '@baserow/modules/core/mixins/form'
export default {
inject: ['workspace', 'builder', 'currentPage', 'elementPage', 'mode'],
mixins: [form],
computed: {
themeConfigBlocks() {
return this.$registry.getOrderedList('themeConfigBlock')
},
colorVariables() {
return ThemeConfigBlockType.getAllColorVariables(
this.themeConfigBlocks,
this.builder.theme
)
},
},
methods: {
resolveColor,
},
}