From 7374f1c83bb40d73aea082831e45b3c4e9d37cb7 Mon Sep 17 00:00:00 2001 From: minimo-io Date: Wed, 19 Oct 2022 14:50:31 -0300 Subject: [PATCH] app v0.1 done --- mo-lunfardo/lunfardo.js | 8 +++----- mo-lunfardo/test.html | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/mo-lunfardo/lunfardo.js b/mo-lunfardo/lunfardo.js index 786fd05..8a7a177 100644 --- a/mo-lunfardo/lunfardo.js +++ b/mo-lunfardo/lunfardo.js @@ -6,10 +6,7 @@ const App = Vue.createApp({ return { placeholder: 'Buscá che...', searchQuery: '', - wordsJson: { - 'word-1': { "title": "sonamos", "description": "pop. ¡Estamos perdidos!"}, - 'word-2': { "title": "percanta", "description": "(pop.) Mujer (LCV.), amante (LCV.), querida (LCV.), concubina."}, - } + wordsJson: [] } }, methods:{ @@ -34,7 +31,8 @@ const App = Vue.createApp({ }, filteredList() { if (!this.searchQuery) { - return this.listValues; + //return this.listValues.slice(0, 10); + return this.listValues.slice(0, 5); } return this.listValues diff --git a/mo-lunfardo/test.html b/mo-lunfardo/test.html index 03a2d99..4fe41e7 100644 --- a/mo-lunfardo/test.html +++ b/mo-lunfardo/test.html @@ -10,7 +10,7 @@
-
+
@@ -19,14 +19,24 @@

Estas buscando «{{ searchQuery }}»

-
{{ countWords }} palabras
+
{{ countWords }} palabras
+
+ Ingresá tu búsqueda en cuadro de arriba y encontrala entre mas de {{ countWords }} palabras del lunfardo. +
+

Algunos ejemplos de términos lunfardos

  • {{ data.title }}: {{ data.description }}
-
+ +