-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
966d3d7
commit 454ff83
Showing
13 changed files
with
356 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,63 @@ | ||
<script lang='ts'> | ||
import { defineComponent } from 'vue'; | ||
import draggable from 'vuedraggable' | ||
import Gustularium from '../scriptura/gustularium'; | ||
import Locutor from '../miscella/locutor'; | ||
import Cocutor from '../miscella/cocutor'; | ||
const locutor: Locutor = Locutor.se.ipse(); | ||
const cocutor: Cocutor = Cocutor.se.ipse(); | ||
const illustre: boolean = cocutor.edatur('facies') === 'illustre'; | ||
const Please = require('pleasejs'); | ||
const ClassifyX = require('classifyx') | ||
export default defineComponent({ | ||
component: { draggable }, | ||
data () { | ||
return { | ||
trahens: false, | ||
pellucidum: ClassifyX({ | ||
opacity: 0.5, | ||
background: Please.make_color({ | ||
value: illustre ? 0.25 : 0.75 | ||
}) | ||
}), | ||
lingua: Cocutor.se.ipse().edatur('lingua'), | ||
gustularium: new Gustularium({}), | ||
verba: locutor.verba, | ||
}; | ||
}, | ||
methods: { | ||
remove (unicum: symbol): void { | ||
locutor.removeatur(unicum); | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<template> | ||
<v-snackbar :color='gustularium.color' :timeout='gustularium.vita' v-model='gustularium.visibile'> | ||
{ gustularium.nuntium } | ||
</v-snackbar> | ||
<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 lang='vue'> | ||
<v-snackbar :color='gustularium.color' :timeout='gustularium.vita' v-model='gustularium.visibile'> | ||
{ gustularium.nuntium } | ||
</v-snackbar> | ||
<v-chip-group id='locutio'> | ||
<draggable v-model='verba' :ghost-class='pellucidum' @start='trahens = true' @end='trahens = false'> | ||
<span :class="'mr-2'.concat(trahens ? 'cursor-grab' : 'cursor-grabbing')"> | ||
<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> | ||
</span> | ||
</draggable> | ||
</v-chip-group> | ||
</template> | ||
|
||
<style lang='css'> | ||
.pellucidum { | ||
opacity: 0.5; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters