forked from mohuishou/notion-blog-actions
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236292,7 +236292,7 @@ function defaultCallback(err) { | |
* @Author: Dorad, [email protected] | ||
* @Date: 2023-04-18 22:07:58 +02:00 | ||
* @LastEditors: Dorad, [email protected] | ||
* @LastEditTime: 2023-04-19 15:37:35 +02:00 | ||
* @LastEditTime: 2023-04-19 16:10:00 +02:00 | ||
* @FilePath: \src\customTransformer.js | ||
* @Description: | ||
* | ||
|
@@ -236423,7 +236423,7 @@ async function link_preview_github(url) { | |
else if (info.state === "open") data.state_icon = STATE_SVG.issue.opened; | ||
else if (info.state === "closed") data.state_icon = STATE_SVG.issue.closed; | ||
} | ||
if (data.state_icon) data.state_icon = `${data.state_icon}<span style="margin-left:3px;margin-right:3px">•</span>#${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`; | ||
if (data.state_icon) data.state_icon = `${data.state_icon} #${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`; | ||
// type: path[2], state: from info.state | ||
data.title = info.title + " " + (data.state_icon ? data.state_icon : "") + capitalizeFirstLetter(info.state); // 图标, 状态 | ||
data.avatar = info.user.avatar_url; | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: Dorad, [email protected] | ||
* @Date: 2023-04-18 22:07:58 +02:00 | ||
* @LastEditors: Dorad, [email protected] | ||
* @LastEditTime: 2023-04-19 15:37:35 +02:00 | ||
* @LastEditTime: 2023-04-19 16:10:00 +02:00 | ||
* @FilePath: \src\customTransformer.js | ||
* @Description: | ||
* | ||
|
@@ -133,7 +133,7 @@ async function link_preview_github(url) { | |
else if (info.state === "open") data.state_icon = STATE_SVG.issue.opened; | ||
else if (info.state === "closed") data.state_icon = STATE_SVG.issue.closed; | ||
} | ||
if (data.state_icon) data.state_icon = `${data.state_icon}<span style="margin-left:3px;margin-right:3px">•</span>#${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`; | ||
if (data.state_icon) data.state_icon = `${data.state_icon} #${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`; | ||
// type: path[2], state: from info.state | ||
data.title = info.title + " " + (data.state_icon ? data.state_icon : "") + capitalizeFirstLetter(info.state); // 图标, 状态 | ||
data.avatar = info.user.avatar_url; | ||
|