2020-06-15 11:01:49 +02:00
|
|
|
<template>
|
|
|
|
<div class="container section" v-if="config">
|
|
|
|
<h2 class="title">{{ $t("Rules") }}</h2>
|
|
|
|
<div class="content" v-html="config.rules" v-if="config.rules" />
|
|
|
|
<p v-else>{{ $t("No rules defined yet.") }}</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-11-27 19:27:44 +01:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
2020-06-15 11:01:49 +02:00
|
|
|
import { RULES } from "@/graphql/config";
|
|
|
|
import { IConfig } from "@/types/config.model";
|
2020-06-19 19:27:10 +02:00
|
|
|
import RouteName from "../../router/name";
|
2020-06-15 11:01:49 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
apollo: {
|
|
|
|
config: {
|
|
|
|
query: RULES,
|
|
|
|
},
|
|
|
|
},
|
2021-05-25 16:21:29 +02:00
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("Rules") as string,
|
|
|
|
};
|
|
|
|
},
|
2020-06-15 11:01:49 +02:00
|
|
|
})
|
|
|
|
export default class Rules extends Vue {
|
|
|
|
config!: IConfig;
|
|
|
|
|
|
|
|
RouteName = RouteName;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
main > .container {
|
|
|
|
background: $white;
|
|
|
|
}
|
2020-11-16 10:04:47 +01:00
|
|
|
.content ::v-deep li {
|
2020-06-19 19:27:10 +02:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2020-06-15 11:01:49 +02:00
|
|
|
</style>
|