mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-22 06:15:45 +00:00
42 lines
999 B
Vue
42 lines
999 B
Vue
<template>
|
|
<div class="row q-gutter-sm q-mt-sm">
|
|
<ChainTiers
|
|
v-for="tier in productionChains"
|
|
:key="tier.tierName"
|
|
:title="tier.tierName"
|
|
:col-width="tier.width"
|
|
>
|
|
<ProductionChain
|
|
v-for="chain in tier.productionChains"
|
|
:key="chain.productionChain"
|
|
:production-chain="chain.productionChain"
|
|
:mermaid-definition="chain.mermaidDefinition"
|
|
></ProductionChain>
|
|
</ChainTiers>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onMounted } from 'vue';
|
|
import mermaid from 'mermaid';
|
|
|
|
// Production Chain Data
|
|
import { productionChains } from './production-chains';
|
|
|
|
// Components
|
|
import ChainTiers from 'components/ChainTiers.vue';
|
|
import ProductionChain from 'components/ProductionChain.vue';
|
|
|
|
onMounted(() => {
|
|
mermaid.initialize({
|
|
startOnLoad: false,
|
|
logLevel: 'fatal',
|
|
securityLevel: 'loose',
|
|
theme: 'neutral',
|
|
flowchart: { htmlLabels: true }
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss"></style>
|