refactor(tools-equipment): replace flow components with content components

- Update device and material pages to use Content prefixed components instead of Flow
- Add new content components for device and material list/entry functionality
- Maintain same functionality while improving component naming consistency
This commit is contained in:
Khafid Prayoga
2025-09-08 11:17:47 +07:00
parent b0938a2eb6
commit cae8ca73fd
8 changed files with 6 additions and 6 deletions
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
import { z, ZodError } from 'zod'
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const errors = ref({})
const data = ref({
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
import { z, ZodError } from 'zod'
import Action from '~/components/pub/custom-ui/nav-footer/ba-dr-su.vue'
const errors = ref({})
const data = ref({
@@ -35,7 +35,7 @@ const canCreate = hasCreateAccess(roleAccess)
<template>
<div v-if="canCreate">
<FlowDeviceEntry />
<ContentDeviceEntry />
</div>
<Error v-else :status-code="403" />
</template>
@@ -33,7 +33,7 @@ const canRead = hasReadAccess(roleAccess)
<template>
<div>
<div v-if="canRead">
<FlowDeviceList />
<ContentDeviceList />
</div>
<Error v-else :status-code="403" />
</div>
@@ -35,7 +35,7 @@ const canCreate = hasCreateAccess(roleAccess)
<template>
<div v-if="canCreate">
<FlowMaterialEntry />
<ContentMaterialEntry />
</div>
<Error v-else :status-code="403" />
</template>
@@ -33,7 +33,7 @@ const canRead = hasReadAccess(roleAccess)
<template>
<div>
<div v-if="canRead">
<FlowMaterialList />
<ContentMaterialList />
</div>
<Error v-else :status-code="403" />
</div>