feat(rhino): add revit mapper UI for category assignment (#41)
* feat: basic structure * feat: categories * feat: selection filter * chore: mock categories * feat: second iteration * docs: comments * feat: create mapper binding interface * feat: register bindings * feat: add Revit Integration button conditionally based on the presence or absence of binding * fix: tooltip * fix: missing method and interface for `getAvailableCategories` * fix: remove hardcoded categories * chore: categories from connector * chore: remaining methods * chore: remove unused method * fix: removing duplicate interfaces * chore: cleanups * fix: add DocumentModelStore dependency for event handling * fix: linting * fix: dropdown * fix: again, linting * chore: don't need the double label * fix: missing label * chore: small tweaks * chore: name * chore(revit-mapper): css * chore(revit-mapper): correct routing * fix(revit-mapper): revit integration buttons --------- Co-authored-by: oguzhankoral <oguzhankoral@gmail.com>
This commit is contained in:
@@ -37,6 +37,18 @@
|
||||
</div>
|
||||
</MenuItem>
|
||||
<div class="border-t border-outline-3 mt-1">
|
||||
<MenuItem v-if="app.$revitMapperBinding" v-slot="{ active }">
|
||||
<button
|
||||
type="button"
|
||||
:class="[
|
||||
active ? 'bg-highlight-1' : '',
|
||||
'my-1 text-body-2xs flex px-2 py-1 text-foreground cursor-pointer transition mx-1 rounded'
|
||||
]"
|
||||
@click="$router.push('/revit-mapper')"
|
||||
>
|
||||
Revit integration
|
||||
</button>
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
v-slot="{ active }"
|
||||
@click="
|
||||
@@ -109,6 +121,8 @@ import { XMarkIcon, Bars3Icon } from '@heroicons/vue/20/solid'
|
||||
import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue'
|
||||
import { useConfigStore } from '~/store/config'
|
||||
|
||||
const app = useNuxtApp()
|
||||
|
||||
const uiConfigStore = useConfigStore()
|
||||
const { isDarkTheme, hasConfigBindings, isDevMode } = storeToRefs(uiConfigStore)
|
||||
const { toggleTheme } = uiConfigStore
|
||||
|
||||
Reference in New Issue
Block a user