From 8458da2d7cbbc50bf3c87dca6d5c01be884798d9 Mon Sep 17 00:00:00 2001 From: Hunter Richardson Date: Sun, 23 Jun 2024 14:47:58 -0500 Subject: [PATCH] Correct frontend errors --- src/extensions/string.ts | 5 +++ src/facies/calculare.vue | 14 +++---- src/facies/gustulare.vue | 6 +-- src/facies/inflectere.vue | 46 ++++++++++++++------- src/facies/specere.vue | 77 +++++++++++++++++++++++++---------- src/miscella/enumerationes.ts | 1 - src/praebeunda/verba.ts | 22 +++++++--- 7 files changed, 117 insertions(+), 54 deletions(-) diff --git a/src/extensions/string.ts b/src/extensions/string.ts index 8e7be59..018b9ca 100644 --- a/src/extensions/string.ts +++ b/src/extensions/string.ts @@ -21,6 +21,7 @@ declare global { startsWithVowel(): boolean; removeMacra(): string; capitalize(): string; + isCapitalized(): boolean; } } @@ -50,3 +51,7 @@ String.prototype.removeMacra = function (): string { String.prototype.capitalize = function (): string { return (this.at(0) ?? '').toUpperCase().concat(this.slice(1)); }; + +String.prototype.isCapitalized = function(): boolean { + return /[A-ZĀĒĪŌȲ]/.test(this.at(0) ?? ''); +} diff --git a/src/facies/calculare.vue b/src/facies/calculare.vue index 0fb5235..2b56f18 100644 --- a/src/facies/calculare.vue +++ b/src/facies/calculare.vue @@ -22,11 +22,11 @@ }; const actus: string[][] = [ - [ ' I ', ' C ', ' · ', ' + ' ], - [ ' V ', ' D ', ' : ', ' - ' ], - [ ' X ', ' M ', ' ∴ ', ' • ' ], - [ ' L ', ' | ', ' × ', ' ÷ ' ], - [ ' = ', ' N ', ' S ', ' % ' ] + [ 'I', 'C', '·', '+' ], + [ 'V', 'D', ':', '-' ], + [ 'X', 'M', '∴', '•' ], + [ 'L', '|', '×', '÷' ], + [ '=', 'N', 'S', '%' ] ]; export default defineComponent({ @@ -130,9 +130,9 @@
-
diff --git a/src/facies/gustulare.vue b/src/facies/gustulare.vue index 1c6b88d..6821046 100644 --- a/src/facies/gustulare.vue +++ b/src/facies/gustulare.vue @@ -2,8 +2,7 @@ import { defineComponent } from 'vue' import Gustulus from '../scriptura/gustulus' - defineProps({ gustulus: Gustulus }); - export default defineComponent({ props: [ 'gustulus' ] }) + export default defineComponent({ props: { gustulus: Gustulus } }) diff --git a/src/facies/inflectere.vue b/src/facies/inflectere.vue index a040849..bded4aa 100644 --- a/src/facies/inflectere.vue +++ b/src/facies/inflectere.vue @@ -1,10 +1,13 @@ @@ -81,13 +109,20 @@ + + -