Skip to content

Commit

Permalink
Merge branch 'release/1.1.4.6025'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin committed Jun 26, 2020
2 parents 7aa2181 + d534d7d commit c37ea3d
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 89 deletions.
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "__MSG_extension_name__",
"default_locale" : "en",
"version" : "1.1.4.6022",
"version" : "1.1.4.6025",
"short_name" : "SimpRead",
"description" : "__MSG_extension_desc__",
"homepage_url" : "http://ksria.com/simpread",
Expand Down
2 changes: 1 addition & 1 deletion src/module/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ urls = {
},

badges: {
version: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAUCAYAAAAN+ioeAAAAAXNSR0IArs4c6QAABR5JREFUWIXtmV1Mk1cYx3+nfd++tmtxm1YpYYNMR4YkpkYzQULIhpJJNCoOP4BEgiFsqUKi82J3ZpFMk0UIF1yQ6RiBwO42h0GncRGyG4cIF6uYScKMm3TdpkBXoF9nF4R3VAGFodTFf3KSpn3O8/E/5/m/5z0V+/btSzCZTKeFEO8Cdp5jDLk6FzuFKESQXoG84g/4jiiqqtYCu6WUi53Xf0as1SDADmLvEsWmKMCWWEtwvojVOoRgiyKljFvsRBYKsUo0kjglZpObB2K5lhdEPyMYpJQs1mhoaEBRlKcao2ZtG22b7tC26Q4pVueC2U6O3Qkf0LbpDqm2DbPaLeqO3rx5Mw6HAyHEgvibrpbiL3MI+SJ8Xd5F6O/IrLt+LrYAr1veJE3L4Je/bhP0zW4/I9H5+flYrVYaGxsBsFqt1NTU4HK5GB8fJyUlhQMHDpCYmIjX66WpqYmenh4AWltbaWpqIi8vj6tXr2K321m/fj1msxmv18vhw4cBuHz5MqWlpQSDQdatW0dxcTHLli2jv7+f+vp6PB6P7q+xsZHt27cDcObMGbq6uh7JebpaXllrmvgg0H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xOp/fdaKGIzS+XHtwdLJrOS7nzJmD9vZ2GX/0kWCOTOo6MQS7ngTr6507dwrB+ppy+vRp0dmJ7HYS4FiH4ITgqD106JBh27t3r3zynC8tLZUfIddZWVlCMHXeDVpaWuSHxDWPDxLs+HzEWxfzDPzky6/R0t2DyYo0rvky31PnIHWKfSyJGpuQh3kZxciua8RbX2WLPbqmEelc/y/uRXm/jElBq9rrfXOx2D+6WiPk6HEkmHE/jzajracXv0srEfuHpdUosN1V+11+aQ1HaBxp9uBL5BlI8LJ08uRJOYfpI8EcfdQpeg5HNAnW1zrB+poSGRkpNdmBe/bskY50rEPQzts6xzNH8927d43Ru2DBAqSlpaGkpAQ5OTlykSLBep6/v7/sy/P/7NmzQrDj8xEecbnPoEbotIgYFLZ1olJdaK51PcLM7DLxUexjSdSY+Fx4fZ6M6IrbMDd/g2hbK0KLrwnBetyL8jzUyF19Lhm31D5l6oL0N2sl2hWRehwJHorLxMKzcSjveICqBz3IbGqVs1ziXlLDERq7wR5z587FlClTDPBipPsmTpwoL1LXdTtH5qRJk4z1/PnzZazqawrrsN7kyZNlMtjXdPwOej5jCY5j3UedFzl+8mI2bdo0w8e6zKOP+z2vNuF+IWc4FGGmw/+CKfCfMB36GO5nksQ+am/wsDjTX47CXXWtu+ok07EImILDhz6PR8KkLkN63AvzlD5WnZmmvx6Xff6UakHyzZpncf7P4txPxUuMKfD4UO2oVCPu/9VwhEbCXjco38Y+zsJEgt4QgirrYVX/JGP3pTe24Deffvlaa2gcv68bEyZMwLexj7MYdT77zUF1u5uaFG6qM92CTmDUF+bXWoMEt3DEuhLczmW5Br7KbibBoby8uBK+py4xrgC381kh/EOHh3poktzGy40rQIvJ+G4jNrNNO5ch/2XnvyqleyAtV3GuAAAAAElFTkSuQmCC",
Expand Down
21 changes: 17 additions & 4 deletions src/module/authorize.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,12 @@ export default class Auth extends React.Component {
}).fail( error => failed( error, yuque.id, yuque.name ));
break;
case "notion":
notion.Auth( ( result, error ) => {
notion.Auth( ( result, error, warn ) => {
if ( error ) failed( error, notion.id, notion.name );
else success( notion.id, notion.name, { access_token: notion.access_token, folder_id: notion.folder_id });
else {
warn != "" && new Notify().Render({ type: 2, content: `请注意:授权时出现了问题导致 <b>仅成功授权了</b> 您的第一个 Notion Page 虽然不影响导出服务,但建议提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809"><b>Issues</b></a>`, state: "holdon" });
success( notion.id, notion.name, { access_token: notion.access_token, folder_id: notion.folder_id, save_image: notion.save_image, type: notion.type });
}
});
break;
case "youdao":
Expand Down Expand Up @@ -321,8 +324,15 @@ export default class Auth extends React.Component {
}

notionChange() {
exp.notion.Auth( ( result, error ) => {
this.setState({ secret: storage.secret, notion: exp.notion.blocks });
const notify = new Notify().Render({ state: "loading", content: `正在获取 Notion Page ,请稍等` });
exp.notion.Auth( ( result, error, warn ) => {
notify.complete();
if ( error ) new Notify().Render({ type: 2, content: `Notion.so 并未提供 API 所以会出现 <b>获取失败的情况</b>,如发生此问题,请提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809">Issues</a>`, state: "holdon" });
else {
warn != "" && new Notify().Render({ type: 2, content: `请注意:获取时出现了问题导致 <b>仅成功获取了</b> 您的第一个 Notion Page 虽然不影响导出服务,但建议提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809"><b>Issues</b></a>`, state: "holdon" });
warn == "" && new Notify().Render( 1, "获取成功,请选择导出的 Notion Page" );
this.setState({ secret: storage.secret, notion: exp.notion.blocks });
}
});
}

Expand Down Expand Up @@ -537,8 +547,11 @@ export default class Auth extends React.Component {
label="是否使用 Notion.so 作为图床?"
desc="由于 Notion 并未公开 API 所以此方式较慢。"
onChange={ (s)=>this.save( "notion_save_image", s ) } />

<span className="desc" style={{ "margin-top": "8px", "text-align": "left" }}>注意:由于 Notion.so 暂未提供 API 所以会出现 <b>授权</b><b>获取 Notion Page</b> 失败的情况,如遇到此情况,请提 <a target="_blank" href="https://github.com/Kenshin/simpread/issues/809"><b>Issues</b></a></span>
</div>}
</div>

<div className="version-tips" data-version="1.1.4" data-hits="youdao">
<Switch width="100%" checked={ this.state.secret.youdao.access_token != "" ? true : false }
thumbedColor="#3F51B5" trackedColor="#7986CB" waves="md-waves-effect"
Expand Down
Loading

0 comments on commit c37ea3d

Please sign in to comment.