Skip to content

Commit

Permalink
v0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
lmm214 committed Sep 19, 2023
1 parent 780d3d1 commit 63effbd
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 105 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Chrome 应用商店:<https://chrome.google.com/webstore/detail/memos-bber/cbhj

## 更新日志

2023.09.19 不兼容更新匹配 Memos v0.15 的 `Access tokens` 模式。

2023.07.16 支持 Memos v0.14.0 `api/v1`,同时兼容之前的 api。

2023.04.29 右键菜单的一系列改进,感谢 @EZForever 的 PR [#17](https://github.com/lmm214/memos-bber/pull/17)
Expand Down
5 changes: 4 additions & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"message": "Save"
},
"placeApiUrl":{
"message": "Memos Open API Link"
"message": "Memos Self Home Url"
},
"placeApiTokens":{
"message": "Memos Access Tokens"
},
"placeContent":{
"message": "Any thoughts..."
Expand Down
5 changes: 4 additions & 1 deletion _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"message": "保存"
},
"placeApiUrl":{
"message": "请填入 Memos Open API 链接"
"message": "请填入 Memos 主页网址"
},
"placeApiTokens":{
"message": "请填入 Memos Access Tokens"
},
"placeContent":{
"message": "现在的想法是..."
Expand Down
5 changes: 1 addition & 4 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,7 @@ input.inputer{border-bottom: 1px solid #ccc;width:75%;}
top: 0.5rem;
}
#blog_info{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;

}

.tip{
Expand Down
1 change: 1 addition & 0 deletions js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ document.getElementById("saveKey").textContent = chrome.i18n.getMessage("saveBtn
document.getElementById("saveTag").textContent = chrome.i18n.getMessage("saveBtn");

document.getElementById("apiUrl").placeholder = chrome.i18n.getMessage("placeApiUrl");
document.getElementById("apiTokens").placeholder = chrome.i18n.getMessage("placeApiTokens");
document.getElementById("content").placeholder = chrome.i18n.getMessage("placeContent");

document.getElementById("lockPrivate").textContent = chrome.i18n.getMessage("lockPrivate");
Expand Down
220 changes: 122 additions & 98 deletions js/oper.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_extName__",
"default_locale": "zh_CN",
"version": "2023.07.17",
"version": "2023.09.19",
"action": {
"default_popup": "popup.html",
"default_icon": "assets/logo_24x24.png",
Expand Down
10 changes: 10 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
placeholder=""
required
/>
<input
id="apiTokens"
class="inputer"
name="apiTokens"
type="text"
value=""
maxlength="245"
placeholder=""
required
/>
<span id="saveKey" class="action-btn confirm-btn"></span>
</div>

Expand Down

0 comments on commit 63effbd

Please sign in to comment.