Skip to content

Commit

Permalink
docs of token display using vcard and vlayout done
Browse files Browse the repository at this point in the history
  • Loading branch information
mounir4023 committed Nov 17, 2019
1 parent e623f52 commit dd40af8
Show file tree
Hide file tree
Showing 3,210 changed files with 57 additions and 12 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified __pycache__/rilib.cpython-37.pyc
Binary file not shown.
39 changes: 32 additions & 7 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<v-app dark>

<v-toolbar app light>
<v-toolbar-title> RIPY </v-toolbar-title>
<v-toolbar-title class="font-weight-black"> RIPY </v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-btn flat v-on:click="select_tab(1)" v-bind:class="{active: tab==1}">Recherche</v-btn>
Expand All @@ -24,10 +24,36 @@
</v-toolbar>

<transition name="fade">
<v-content fluid v-if="tab == 1">
<v-container>
<v-card light>
<p v-for="d in docs"> test </p>
<v-content v-if="tab == 1">
<v-container >
<v-layout>
<v-flex md8 offset-md2>
<p> Quel mot vous êtes entrain de chercher ?</p>
<v-card class="pa-3">
<v-text-field
v-model="token"
label="Mot recherché"
color="#FFEB3B"
append-icon="close"
:append-icon-cb="clear_token">
</v-text-field>
<v-layout>
<v-spacer></v-spacer>
<v-btn light @click="describe_token">Rechercher</v-btn>
<v-spacer></v-spacer>
</v-layout>
</v-card>
<div class="mt-0" v-if="description.length != 0">
<p class="mt-4"> Le mot "{{token}}" apparaît dans les documents suivants:</p>
<v-card class="pa-2 my-2 " v-for="d in description">
<v-layout align-center justify-space-around row fill-height/>
<div class="text-right"> {{d.document}} </div>
<div class="item"> Fréquence: {{d.freq}} </div>
<div class="item"> Poids: {{d.weight}} </div>
</v-layout>
</v-card>
</div>
</v-flex>
</v-card>
</v-container>
</v-content>
Expand Down Expand Up @@ -58,8 +84,7 @@
</div>
<v-spacer></v-spacer>
<div class="item">
By Devnir & LotfiBk

By devNir & LotfiBk
</div>
<v-spacer></v-spacer>
<div class="item">
Expand Down
15 changes: 14 additions & 1 deletion assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,27 @@ var app = new Vue({
tab: 1,
isActive: true,
docs: [ ],
token: "",
description: [ ],
},
methods: {
select_tab: function(selected) {
this.tab = selected;
},
describe_token: function(){
eel.describe_token(this.token)(this.update_description)
},
clear_token: function() {
this.token = "";
this.description = [ ];
},
// eel callbacks
update_docs: function(return_data) {
this.docs = return_data;
}
},
update_description: function(return_data) {
this.description = return_data;
},
},
mounted: function() {
eel.get_all_docs()(this.update_docs)
Expand Down
3 changes: 2 additions & 1 deletion assets/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

.active {
color:red;
background:orange;
//background:#F48FB1;
background:#FFEB3B;
}

.fade-enter-active, .fade-leave-active {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dd40af8

Please sign in to comment.