♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
6379a117c2
commit
0174664163
15 files changed
+47
-47
No files matched your search
@@ -15,7 +15,7 @@ end
|
||||
|
||||
---@type CookieLoginSpec
|
||||
local SPEC = {
|
||||
id = "ext.zhihu",
|
||||
id = "zhihu",
|
||||
title = _("知乎账号"),
|
||||
cookie_title = _("知乎登录 Cookie"),
|
||||
cookie_hint = _("按键盘 F12,点「网络」,刷新网页,复制请求标头里的整段 Cookie"),
|
||||
@@ -44,7 +44,7 @@ Setting.browser = {
|
||||
local function showLogin()
|
||||
require("ui/network/manager"):runWhenConnected(function()
|
||||
require("moonsource_zhihu.qrlogin"):new(function()
|
||||
require("source.auth").ok("ext.zhihu")
|
||||
require("source.auth").ok("zhihu")
|
||||
require("source.registry").reload()
|
||||
require("ui.themes.widgets.toast"):new{ text = _("登录成功"), timeout = 2 }:show()
|
||||
end):start()
|
||||
@@ -59,7 +59,7 @@ function Setting.rows(plugin)
|
||||
}),
|
||||
CookieLogin.browserRow(),
|
||||
CookieLogin.pasteRow(SPEC),
|
||||
require("source.review_setting").row("ext.zhihu", plugin),
|
||||
require("source.review_setting").row("zhihu", plugin),
|
||||
}
|
||||
if loggedIn() then rows[#rows + 1] = CookieLogin.logoutRow(SPEC) end
|
||||
return rows
|
||||
|
||||
Reference in new issue
Block a user