Sha256: 9fbb6dcc74f4061e1261b1ab606a09017d2044470a96a5fe7166ac2b99c42aa8

Contents?: true

Size: 625 Bytes

Versions: 16

Compression:

Stored size: 625 Bytes

Contents

<template>
  <Rule :id="id"></Rule>
</template>

<script lang="ts">
import { useTitle } from "@vueuse/core"
import { defineComponent, onMounted, watch } from "vue"

import Rule from "@/components/rule/RuleWrapper.vue"

export default defineComponent({
  name: "RuleView",
  components: {
    Rule
  },
  props: {
    id: {
      type: String,
      required: true
    }
  },
  setup(props) {
    const updateTitle = () => {
      useTitle(`Rule:${props.id} - Mihari`)
    }

    onMounted(() => {
      updateTitle()
    })

    watch(
      () => props.id,
      () => {
        updateTitle()
      }
    )
  }
})
</script>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mihari-5.7.0 frontend/src/views/Rule.vue
mihari-5.6.2 frontend/src/views/Rule.vue
mihari-5.6.1 frontend/src/views/Rule.vue
mihari-5.6.0 frontend/src/views/Rule.vue
mihari-5.5.0 frontend/src/views/Rule.vue
mihari-5.4.9 frontend/src/views/Rule.vue
mihari-5.4.8 frontend/src/views/Rule.vue
mihari-5.4.7 frontend/src/views/Rule.vue
mihari-5.4.6 frontend/src/views/Rule.vue
mihari-5.4.5 frontend/src/views/Rule.vue
mihari-5.4.4 frontend/src/views/Rule.vue
mihari-5.4.3 frontend/src/views/Rule.vue
mihari-5.4.2 frontend/src/views/Rule.vue
mihari-5.4.1 frontend/src/views/Rule.vue
mihari-5.4.0 frontend/src/views/Rule.vue
mihari-5.3.2 frontend/src/views/Rule.vue