-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): add mobile size and token button
- 新增 页面的移动设备尺寸支持 - 新增 手动更新 Token 按钮
- Loading branch information
Showing
10 changed files
with
115 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from altfe.interface.root import interRoot | ||
|
||
|
||
@interRoot.bind("api/biu/do/update_token/", "PLUGIN") | ||
class doUpdateToken(interRoot): | ||
def run(self, cmd): | ||
try: | ||
self.STATIC.arg.getArgs("update_token", li=["pass"], way="POST") | ||
except: | ||
return {"code": 0, "msg": "missing parameters"} | ||
return { | ||
"code": 1, | ||
"msg": self.CORE.biu.update_token(), | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import json | ||
|
||
import requests | ||
|
||
from altfe.interface.root import interRoot | ||
|
||
|
||
@interRoot.bind("api/biu/get/outdated/", "PLUGIN") | ||
class outdated(interRoot): | ||
def run(self, cmd): | ||
try: | ||
r = json.loads(requests.get("https://biu.tls.moe/d/biuinfo.json", timeout=6).text) | ||
except: | ||
r = self.CORE.biu.biuInfo | ||
return { | ||
"code": 1, | ||
"msg": { | ||
"latest": self.CORE.biu.ver >= r["version"], | ||
"current": self.CORE.biu.format_version(), | ||
"online": r, | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
certifi==2022.9.24 | ||
certifi==2022.12.7 | ||
charset-normalizer==2.1.1 | ||
click==8.1.3 | ||
cloudscraper==1.2.66 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,8 @@ <h2>功能</h2> | |
<input id="settingsIsR18" class="tooltip" placeholder="R18 内容" autocomplete="off" | ||
title="是否展示 R18 内容。on: 开启,off: 遮蔽,gone: 不显示"> | ||
</div> | ||
<p>更多设置请于 <b>config.yml</b> 文件中修改。</p> | ||
<p>若所有操作都没有结果,可以尝试点击<a id="btnUpdateToken" class="tooltip" title="不要频繁点哦" | ||
href="javascript: doUpdateToken();">这里</a>以手动更新 Token 状态。</p> | ||
</section> | ||
</div> | ||
<div class="filters"> | ||
|
@@ -203,12 +204,12 @@ <h2>PixivBiu@<span id="hint-current-verson">Unknown</span></h2> | |
<h2>一些链接</h2> | ||
<ul class="icons"> | ||
<li> | ||
<a target="_blank" href="https://github.com/txperl/PixivBiu" class="icon | ||
brands fa-github"><span class="label">GitHub</span></a> | ||
<a target="_blank" href="https://github.com/txperl/PixivBiu" | ||
class="icon brands fa-github"><span class="label">GitHub</span></a> | ||
</li> | ||
<li> | ||
<a target="_blank" href="https://biu.tls.moe/" class="icon | ||
solid fa-air-freshener"><span class="label">Official</span></a> | ||
<a target="_blank" href="https://biu.tls.moe/" class="icon solid fa-air-freshener"><span | ||
class="label">Official</span></a> | ||
</li> | ||
<li> | ||
<a target="_blank" href="mailto:[email protected]" class="icon solid fa-envelope"><span | ||
|