From 387582e7e294227769ca770441d730a20cfd7d39 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 21 May 2018 16:15:58 +0900 Subject: [PATCH] Update template --- doccano/app/db.sqlite3 | Bin 163840 -> 163840 bytes doccano/app/server/static/annotation.js | 18 ++++++++++++++++-- doccano/app/server/templates/annotation.html | 13 ++++++------- doccano/app/server/urls.py | 3 ++- doccano/app/server/views.py | 14 ++++++++++++++ 5 files changed, 38 insertions(+), 10 deletions(-) diff --git a/doccano/app/db.sqlite3 b/doccano/app/db.sqlite3 index 551b54951ea40b8a3da3668e4a445855785b9a90..302e3104a09898960b9906538f55bdc2092688df 100644 GIT binary patch delta 1093 zcmZWoO^6&t6rP%&%*+O-cNGF5S$raaXnLl1Hfu(6GAQCDAS!rR7E;swy1Qa`)mT-% z!{A}oi%7^p-NU%x!LtVwU2z1#97JTZAd0sv1_V7w0-kdaebwuF&_n-z_3C}!_rBWN zTG-lJc=r^$@!sj@*o{xG-0!jG_T}It3$~Ns1Ll9W^7E}$BWTnZYxH)1`{U7@HNW#< z*8GUQR_#34eGGOw#~ire&;R;_HCWB}&di!O3H8np`faCCueF&!fASW)vsm-12eal6 z1Xd4r`-^W@mtXMP6|dhu$J&<$FZ1#9+;ULEs~B21JD4pUu#*q3_F-l1;_Ax9wF|w$ zGZ)s*KRti^C-#fK)MS-P{Y2-jhxU)(IbLsl!M6L0_oi<@(yUjmpL+#4ghg27L(~Si zM!+x?Qbnk91F=>)*c2hmxH0ge%9KqDtwe;p2d}0$DNAy$g+$;|Psx&; zAq{b+l!md=Su`egB{`6#EKo6||1cLs;cT#fJ)Q2opY84Jzw`Z*4H);r8~nCP3qCuBMw7! z63GV#UNU0J;Uyl5ScIT45lZ&fpW1-STuvNaT4cying)4A9+DL?$xDlz_>*O($VZln zN>`1_@n3STCM+^5HmQB&8uB*^?*0^nn2E8N8**n#G*YfNi6SieDg64ryF56M-4=4$TMp8-!U1a-D#+W!MMmks|=6yQ(mSn zFc_*sM&;^oqYjg_+~|gg?!upuVZ9oWY*@_n$ErfEOv%(yVicjTLR45%*xZ*F95|1 z1&%UpSH8^nP)C4`MT~((jIWXRH1{oT7LIK|IVP6vVk}I5rCDF{-{XI|SukNYzaYpu zW-y`5%EHXasJs1%K9jx!>k0n7{9AxZ=J3mM$g(joFfwwoawtO>Y|I?&x*#SeC+qZ! H^-THzjGsB6 diff --git a/doccano/app/server/static/annotation.js b/doccano/app/server/static/annotation.js index e0a34c75..fdab9250 100644 --- a/doccano/app/server/static/annotation.js +++ b/doccano/app/server/static/annotation.js @@ -97,7 +97,9 @@ var vm = new Vue({ labels: [], guideline: 'Here is the Annotation Guideline Text', total: 0, - remaining: 0 + remaining: 0, + searchQuery: '', + history: [] }, methods: { @@ -149,8 +151,20 @@ var vm = new Vue({ this.cur = Math.max(this.cur - 1, 0); this.remaining += 1; }, - activeLearn: function() { + activeLearn: function () { alert('Active Learning!'); + }, + submit: function () { + console.log('submit' + this.searchQuery); + var self = this; + axios.get('/' + base_url + '/apis/search?keyword=' + this.searchQuery) + .then(function (response) { + console.log('search response'); + self.history = response.data['data']; + }) + .catch(function (error) { + console.log('ERROR!! happend by Backend.') + }); } }, created: function () { diff --git a/doccano/app/server/templates/annotation.html b/doccano/app/server/templates/annotation.html index e5ba562e..796462f5 100644 --- a/doccano/app/server/templates/annotation.html +++ b/doccano/app/server/templates/annotation.html @@ -100,7 +100,7 @@
- + Next @@ -149,7 +149,7 @@

-