diff --git a/doccano/server/__init__.py b/doccano/server/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/doccano/server/run_server.py b/doccano/server/run_server.py deleted file mode 100644 index dbe76c9f..00000000 --- a/doccano/server/run_server.py +++ /dev/null @@ -1,34 +0,0 @@ -import os -import tornado.ioloop -import tornado.web -import tornado.httpserver -from tornado.web import url - - -class IndexHandler(tornado.web.RequestHandler): - - def get(self): - self.render('annotation.html') - - def post(self): - pass - - -BASE_DIR = os.path.dirname(__file__) - - -def main(): - application = tornado.web.Application([ - url(r'/', IndexHandler, name='index'), - ], - template_path=os.path.join(BASE_DIR, 'templates'), - static_path=os.path.join(BASE_DIR, 'static'), - ) - http_server = tornado.httpserver.HTTPServer(application) - port = int(os.environ.get('PORT', 8080)) - http_server.listen(port) - tornado.ioloop.IOLoop.instance().start() - - -if __name__ == '__main__': - main() diff --git a/doccano/server/static/bulma.js b/doccano/server/static/bulma.js deleted file mode 100644 index 23ffa0a4..00000000 --- a/doccano/server/static/bulma.js +++ /dev/null @@ -1,10 +0,0 @@ -// The following code is based off a toggle menu by @Bradcomp -// source: https://gist.github.com/Bradcomp/a9ef2ef322a8e8017443b626208999c1 -(function() { - var burger = document.querySelector('.burger'); - var menu = document.querySelector('#'+burger.dataset.target); - burger.addEventListener('click', function() { - burger.classList.toggle('is-active'); - menu.classList.toggle('is-active'); - }); -})(); \ No newline at end of file diff --git a/doccano/server/static/forum.css b/doccano/server/static/forum.css deleted file mode 100644 index 1f54737b..00000000 --- a/doccano/server/static/forum.css +++ /dev/null @@ -1,68 +0,0 @@ -html,body { - font-family: 'Open Sans', serif; - background: #F9F9F9; -} -footer { - background-color: #F2F6FA !important; -} -.topNav { - border-top: 5px solid #3498DB; -} -.topNav .container { - border-bottom: 1px solid #E6EAEE; -} -.container .columns { - margin: 2rem 0; -} -.navbar-menu .navbar-item { - padding: 0 2rem; -} -aside.menu { - padding-top: 3rem; -} -aside.menu .menu-list { - line-height: 1.5; -} -aside.menu .menu-label { - padding-left: 10px; - font-weight: 700; -} -.button.is-primary.is-alt { - background: #00c6ff; - background: -webkit-linear-gradient(to bottom, #0072ff, #00c6ff); - background: linear-gradient(to bottom, #0072ff, #00c6ff); - font-weight: 700; - font-size: 14px; - height: 3rem; - line-height: 2.8; -} -.media-left img { - border-radius: 50%; -} -.media-content p { - font-size: 14px; - line-height: 2.3; - font-weight: 700; - color: #8F99A3; -} -article.post { - margin: 1rem; - padding-bottom: 1rem; - border-bottom: 1px solid #E6EAEE; -} -article.post:last-child { - padding-bottom: 0; - border-bottom: none; -} -.menu-list li{ - padding: 5px; -} - -.tag:not(body).is-grey { - background-color: #eee; - color: #666; -} - -p { - font-family: "游ゴシック体", YuGothic, "YuGothic M", sans-serif; -} \ No newline at end of file diff --git a/doccano/server/static/images/logo.png b/doccano/server/static/images/logo.png deleted file mode 100644 index 31a1a328..00000000 Binary files a/doccano/server/static/images/logo.png and /dev/null differ diff --git a/doccano/server/static/main.js b/doccano/server/static/main.js deleted file mode 100644 index 98d3a2bc..00000000 --- a/doccano/server/static/main.js +++ /dev/null @@ -1,32 +0,0 @@ -Vue.config.debug = true; - -var app4 = new Vue({ - el: '#app', - delimiters: ['[[', ']]'], - data: { - cur: 2, - items: [ - {"id": 10, "labels": [{"text": "Prefecture", "prob": 0.98}, {"text": "Domestic Region", "prob": 0.58}], "text": "北海道(ほっかいどう)は、日本の北部に位置する島[※ 1][※ 2]。また、同島および付随する島を管轄する地方公共団体(道)である。島としての北海道は日本列島を構成する主要4島の一つである。地方公共団体としての北海道は47都道府県中唯一の「道」で、道庁所在地は札幌市。"}, - {"id": 11, "labels": [{"text": "Person", "prob": 0.98}], "text": "安倍 晋三(あべ しんぞう、1954年(昭和29年)9月21日 - )は、日本の政治家。自由民主党所属の衆議院議員(9期)、第90代・第96代・第97代・第98代内閣総理大臣、第21代・第25代自由民主党総裁。"}, - {"id": 12, "labels": [{"text": "Country", "prob": 0.98}, {"text": "Continental Region", "prob": 0.58}], "text": "アメリカ合衆国(アメリカがっしゅうこく、英語: United States of America)、通称アメリカ、米国(べいこく)は、50の州および連邦区から成る連邦共和国である[6][7]。アメリカ本土の48州およびワシントンD.C.は、カナダとメキシコの間の北アメリカ中央に位置する。アラスカ州は北アメリカ北西部の角に位置し、東ではカナダと、西ではベーリング海峡をはさんでロシアと国境を接している。ハワイ州は中部太平洋における島嶼群である。同国は、太平洋およびカリブに5つの有人の海外領土および9つの無人の海外領土を有する。985万平方キロメートル (km2) の総面積は世界第3位または第4位、3億1千7百万人の人口は世界第3位である。同国は世界で最も民族的に多様かつ多文化な国の1つであり、これは多くの国からの大規模な移住の産物とされている[8]。また同国の広大な国土における地理および気候も極めて多様であり、多種多様な野生生物が存在する。"}, - ], - labels: [ - 'Location', 'Organization', 'Person' - ], - guideline: 'annotation text' - }, - methods: { - addLabel: function (label) { - this.items[this.cur]['labels'].push({"text": label, "prob":null}) - }, - deleteLabel: function (index) { - this.items[this.cur]['labels'].splice(index, 1) - }, - nextPage: function () { - this.cur += 1 - }, - prevPage: function () { - this.cur -= 1 - } - } -}) \ No newline at end of file diff --git a/doccano/server/templates/index2.html b/doccano/server/templates/index2.html deleted file mode 100644 index 27a220ce..00000000 --- a/doccano/server/templates/index2.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - Forum - Free Bulma template - - - - - - - - - - - -
-
- -
-
-
- -
-
-

-
- -
-
- - - - [[label.text]] - - [[label.prob]] -
-
-
-

-
-
-
-

- [[items[cur].text]] -

-
-
-
-
-
-
- -
- -
- -
- -
- -
- - -
- - Learn & Classify - - -
-
- -
-
- - - - \ No newline at end of file