mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 03:46:10 +08:00
rename
This commit is contained in:
parent
90adaaa51c
commit
4f968c1f16
@ -64,7 +64,7 @@ jobs:
|
|||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- "src/plugins/nonebot_hk_reporter/admin_page/dist/"
|
- "src/plugins/nonebot_bison/admin_page/dist/"
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/python:3.9
|
- image: cimg/python:3.9
|
||||||
|
@ -23,7 +23,7 @@ from .token_manager import token_manager as tm
|
|||||||
from .jwt import load_jwt
|
from .jwt import load_jwt
|
||||||
from ..plugin_config import plugin_config
|
from ..plugin_config import plugin_config
|
||||||
|
|
||||||
URL_BASE = '/hk_reporter/'
|
URL_BASE = '/bison/'
|
||||||
GLOBAL_CONF_URL = f'{URL_BASE}api/global_conf'
|
GLOBAL_CONF_URL = f'{URL_BASE}api/global_conf'
|
||||||
AUTH_URL = f'{URL_BASE}api/auth'
|
AUTH_URL = f'{URL_BASE}api/auth'
|
||||||
SUBSCRIBE_URL = f'{URL_BASE}api/subs'
|
SUBSCRIBE_URL = f'{URL_BASE}api/subs'
|
||||||
@ -76,7 +76,7 @@ def register_router_fastapi(driver: Driver, socketio):
|
|||||||
async def _add_group_subs(groupNumber: str, req: AddSubscribeReq):
|
async def _add_group_subs(groupNumber: str, req: AddSubscribeReq):
|
||||||
return await add_group_sub(group_number=groupNumber, platform_name=req.platformName,
|
return await add_group_sub(group_number=groupNumber, platform_name=req.platformName,
|
||||||
target=req.target, target_name=req.targetName, cats=req.categories, tags=req.tags)
|
target=req.target, target_name=req.targetName, cats=req.categories, tags=req.tags)
|
||||||
app.mount(URL_BASE, StaticFiles(directory=static_path, html=True), name="hk_reporter")
|
app.mount(URL_BASE, StaticFiles(directory=static_path, html=True), name="bison")
|
||||||
templates = Jinja2Templates(directory=static_path)
|
templates = Jinja2Templates(directory=static_path)
|
||||||
|
|
||||||
@app.get(f'{URL_BASE}{{rest_path:path}}')
|
@app.get(f'{URL_BASE}{{rest_path:path}}')
|
||||||
@ -110,5 +110,5 @@ async def send_token(bot: "Bot", event: PrivateMessageEvent, state: T_State):
|
|||||||
await get_token.finish('你不是管理员')
|
await get_token.finish('你不是管理员')
|
||||||
else:
|
else:
|
||||||
token = tm.get_user_token((event.get_user_id(), event.sender.nickname))
|
token = tm.get_user_token((event.get_user_id(), event.sender.nickname))
|
||||||
await get_token.finish(f'请访问: {plugin_config.hk_reporter_outer_url}auth/{token}')
|
await get_token.finish(f'请访问: {plugin_config.bison_outer_url}auth/{token}')
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
<html>
|
|
||||||
<h1>
|
|
||||||
请使用release中的代码或者手动编译前端,否则将无法使用管理后台功能。
|
|
||||||
</h1>
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user