diff --git a/src/components/elements/CompactAddressComponent.vue b/src/components/elements/CompactAddressComponent.vue new file mode 100644 index 00000000..68794a42 --- /dev/null +++ b/src/components/elements/CompactAddressComponent.vue @@ -0,0 +1,35 @@ + + diff --git a/src/components/elements/KeywordComponent.vue b/src/components/elements/KeywordComponent.vue index dec80cb1..ee78d41b 100644 --- a/src/components/elements/KeywordComponent.vue +++ b/src/components/elements/KeywordComponent.vue @@ -5,13 +5,10 @@ :key="index" class="Keywords" > -

+

{{ keyword[0] }}

{{ keyword[1] }}

-
@@ -21,41 +18,41 @@ import * as R from "ramda"; import { useCardsRules } from "@/def-composables/useCardRules"; import { onMounted, reactive, watch } from "vue"; -const { rules } = useCardsRules() +const { rules } = useCardsRules(); -const props = withDefaults(defineProps<{ - keywords: Array> -}>(), { - keywords: () => [], -}) +const props = withDefaults( + defineProps<{ + keywords: Array>; + }>(), + { + keywords: () => [], + } +); const initialState: { - keywordDescriptions: Array> + keywordDescriptions: Array>; } = { - keywordDescriptions: new Array>() + keywordDescriptions: new Array>(), }; const state = reactive(initialState); const init = () => { state.keywordDescriptions = R.map( - (keyword) => [keyword, rules.value.definitions[firstLetterToLower(keyword as String)].description], - R.uniq(R.flatten(props.keywords)) - ) -} + (keyword) => [ + keyword, + rules.value.definitions[firstLetterToLower(keyword as String)] + .description, + ], + R.uniq(R.flatten(props.keywords)) + ); +}; const firstLetterToLower = (string: String) => { return string[0].toLowerCase() + string.substring(1); -} +}; watch(props, init); -onMounted(init) - +onMounted(init); - - \ No newline at end of file diff --git a/src/components/elements/ModalInner.vue b/src/components/elements/ModalInner.vue new file mode 100644 index 00000000..623fe87c --- /dev/null +++ b/src/components/elements/ModalInner.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/components/modals/ModalFrame.vue b/src/components/modals/ModalFrame.vue index ff244e7a..a4fbd24e 100644 --- a/src/components/modals/ModalFrame.vue +++ b/src/components/modals/ModalFrame.vue @@ -1,24 +1,15 @@ \ No newline at end of file +