This commit is contained in:
SuperSonic 2020-12-19 14:56:55 +08:00
parent eaa371e5be
commit d6f0d6901a
No known key found for this signature in database
GPG key ID: E511B80256C9F20D
6 changed files with 11 additions and 8 deletions

View file

@ -8,9 +8,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
from thrift.protocol import TCompactProtocol
from thrift.transport import THttpClient
from yuuki_core.TalkService import Client, TalkException
from .config import YuukiConfig
from yuuki_core.TalkService import Client, TalkException
# NC HighSpeed Library
try:

View file

@ -9,10 +9,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
import socket
import time
from .yuuki import Yuuki
from yuuki_core.ttypes import Operation
from .tools import YuukiStaticTools, YuukiDynamicTools
from .yuuki import Yuuki
class YuukiPoll:

View file

@ -14,9 +14,10 @@ import sys
import traceback
import requests
from .yuuki import Yuuki
from yuuki_core.ttypes import OpType, MIDType, ContentType, Group, Message
from .yuuki import Yuuki
class YuukiStaticTools:
@staticmethod

View file

@ -7,8 +7,10 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
from bs4 import BeautifulSoup
from ..data import YuukiData
class YuukiWebDataReader:
def __init__(self, yuuki_data: YuukiData):
self.handle = yuuki_data

View file

@ -17,10 +17,10 @@ from flask import Flask, render_template, request, redirect, jsonify
from flask_bootstrap import Bootstrap
from gevent.pywsgi import WSGIServer
from ..yuuki import Yuuki
from ..data import YuukiData
from .reader import YuukiWebDataReader
from ..data import YuukiData
from ..tools import YuukiDynamicTools
from ..yuuki import Yuuki
wa_app = Flask(__name__)

View file

@ -28,9 +28,9 @@
{{ render_nav_item('index') }}
</ul>
{% if authorized %}
<a class="navbar-brand" href="/logout">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Logout</button>
</a>
<a class="navbar-brand" href="/logout">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Logout</button>
</a>
{% endif %}
</div>
</nav>