Skip to content

Commit

Permalink
fixed heights of UI navigation components using app atr from vurify doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mounir4023 committed Nov 17, 2019
1 parent 207602b commit e623f52
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
12 changes: 8 additions & 4 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="app" >
<v-app dark>

<v-toolbar light>
<v-toolbar app light>
<v-toolbar-title> RIPY </v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
Expand All @@ -24,8 +24,12 @@
</v-toolbar>

<transition name="fade">
<v-content v-if="tab == 1">
<div v-for="d in docs" > {{ d }}</div>
<v-content fluid v-if="tab == 1">
<v-container>
<v-card light>
<p v-for="d in docs"> test </p>
</v-card>
</v-container>
</v-content>
</transition>

Expand All @@ -48,7 +52,7 @@
</transition>


<v-footer light class="pa-4">
<v-footer app light class="pa-4">
<div class="item">
USTHB M2 SII
</div>
Expand Down
9 changes: 4 additions & 5 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

function update_docs(e) {
app.docs = e;
}

var app = new Vue({
el: '#app',
data: {
Expand All @@ -14,9 +10,12 @@ var app = new Vue({
select_tab: function(selected) {
this.tab = selected;
},
update_docs: function(return_data) {
this.docs = return_data;
}
},
mounted: function() {
eel.get_all_docs()(update_docs)
eel.get_all_docs()(this.update_docs)
},
});

Expand Down

This file was deleted.

7 changes: 1 addition & 6 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import eel

testdir = "./dataset_files"
testfile = "ripy1000.cacm"
stopwordsfile = "./stopwords_fr.txt"

manager = DatasetManager(testdir)

@eel.expose
Expand All @@ -16,14 +13,12 @@ def describe_token(token):

@eel.expose
def get_all_docs():
print(manager.files)
return manager.files


############## eel conf ##############

eel.init('assets', allowed_extensions=['.js', '.html', '.css', '.png'])
eel.start('index.html', size=(800,600))
eel.start('index.html', size=(1024,600), position=(150,50))
#eel.start('index.html', mode='default' )
#eel.start('index.html', mode='electron' )

Expand Down

0 comments on commit e623f52

Please sign in to comment.