Skip to content

Commit

Permalink
Correct codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hunter-richardson committed Jun 16, 2024
1 parent 9850a52 commit 0da07f3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 45 deletions.
22 changes: 19 additions & 3 deletions src/facies/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { useTheme } from 'vuetify';
import { defineComponent } from 'vue';
import { referretne, referatur } from '../scriptura/referre';
import { transducatur, transduceretne } from '../scriptura/transducere';
import Quaerere from './quaerere.vue';
import Numerare from './numerare.vue';
import Calculare from './calculare.vue';
Expand All @@ -25,7 +26,9 @@
return {
annulus: '',
titulus: { latinus: '', anglicus: '' },
locutionis: referretne() && locutor.locutust(),
locutionis: locutor.locutust(),
referret: referretne(),
transduceret: transduceretne(),
crustula: crustula,
annuli: [
Expand All @@ -50,6 +53,12 @@
}
},
transduc (): void {
if (transduceretne()) {
transducatur(locutor.scribantur());
}
},
coquantur (): void {
this.coque({
nomen: 'assensus',
Expand Down Expand Up @@ -175,7 +184,14 @@
<v-app-bar-title text='StructorVerborum' />
<v-card location='left'>
<template v-if='locutionis'>
<v-btn icon='content_copy' @click='refer()' />
<v-btn-toggle density='compact'>
<template v-if='referret'>
<v-btn icon='content_copy' @click='refer()' />
</template>
<template v-if='transduceret'>
<v-btn icon='file_open' @click='transduc()' />
</template>
</v-btn-toggle>
</template>
<v-avatar image='https://avatars.githubusercontent.com/u/22331463'>
<v-hover>
Expand All @@ -193,7 +209,7 @@
<v-tabs v-model='annulus' align-tabs='center' density='compact' grow hide-slider mandatory>
<template v-for='annulus in annuli'>
<v-tab :value='annulus' selected-class='text-primary' density='compact'
:text='annulus.titula' tile />
:v-bind:key='annulus' :text='annulus.titula' tile />
</template>
</v-tabs>
<v-tabs-window v-model='annulus'>
Expand Down
50 changes: 8 additions & 42 deletions src/facies/loqui.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang='ts'>
import { defineComponent } from 'vue';
import { transducatur, transduceretne } from '../scriptura/transducere';
import { referatur, referretne } from '../scriptura/referre';
import Gustularium from '../scriptura/gustularium';
import Locutor from '../miscella/locutor';
import Cocutor from '../miscella/cocutor';
Expand All @@ -14,57 +12,25 @@
lingua: Cocutor.se.ipse().edatur('lingua'),
gustularium: new Gustularium({}),
verba: locutor.verba,
locutio: locutor.scribantur(),
referret: referretne(),
transduceret: transduceretne()
};
},
methods: {
refer (): Promise<void> {
return new Promise(() => this.gustularium = referatur(this.locutio));
},
transduc (): void {
transducatur(this.locutio);
},
remove (unicum: symbol): void {
this.locutio = locutor.removeatur(unicum);
locutor.removeatur(unicum);
}
}
});
</script>

<template>
<v-snackbar :color='gustularium.color'
:timeout='gustularium.vita'
v-model='gustularium.visibile'>
<v-snackbar :color='gustularium.color' :timeout='gustularium.vita' v-model='gustularium.visibile'>
{ gustularium.nuntium }
</v-snackbar>
<v-expansion-panels>
<v-expansion-panel :title="lingua === 'anglica' ? 'Phrase' : 'Locutio'"
:text='locutio'
collapse-icon='top_panel_close'
expand-icon='menu' max=1>
<v-expansion-panel-title>
<span>Locutio</span>
<v-btn-toggle density='compact'>
<v-btn :readonly='referret'
@click='refer();'
icon='content_copy' />
<v-btn :readonly='transduceret'
@click='transduc();'
icon='file_open' />
</v-btn-toggle>
</v-expansion-panel-title>
<v-expansion-panel-text>
<v-chip-group>
<v-chip v-for='verbum in verba' :key='verbum'
@click:close='remove(verbum.unicum);' close-icon='remove'
:text='verbum.scriptum' selected-class='text-primary' />
</v-chip-group>
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
<v-chip-group>
<template v-for='verbum in verba'>
<v-chip :v-bind:key='verbum' @click:close='remove(verbum.unicum);' close-icon='remove'
:text='verbum.scriptum' selected-class='text-primary' />
</template>
</v-chip-group>
</template>

0 comments on commit 0da07f3

Please sign in to comment.