update: lint

This commit is contained in:
windingwind 2024-08-28 22:05:49 +08:00
parent 0af915935b
commit ba50c9d7df
6 changed files with 19 additions and 14 deletions

View File

@ -8,12 +8,12 @@ jobs:
send_message:
runs-on: ubuntu-latest
steps:
- name: Send Telegram Message
run: |
msg_text='
📢 A new release of ${{ github.repository }} is published: ${{ github.event.release.tag_name }}
Release Name: ${{ github.event.release.name }}
Description: ${{ github.event.release.body }}
You can check updates in Zotero to get the latest version, or view on GitHub: ${{ github.event.release.html_url }}'
curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_BOT_TOKEN }}/sendMessage' \
-d "chat_id=${{ secrets.TG_CHAT_ID }}&text=${msg_text}&reply_to_message_id=${{ secrets.TG_MSG_ID }}"
- name: Send Telegram Message
run: |
msg_text='
📢 A new release of ${{ github.repository }} is published: ${{ github.event.release.tag_name }}
Release Name: ${{ github.event.release.name }}
Description: ${{ github.event.release.body }}
You can check updates in Zotero to get the latest version, or view on GitHub: ${{ github.event.release.html_url }}'
curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_BOT_TOKEN }}/sendMessage' \
-d "chat_id=${{ secrets.TG_CHAT_ID }}&text=${msg_text}&reply_to_message_id=${{ secrets.TG_MSG_ID }}"

View File

@ -197,7 +197,7 @@ Simply click on the corresponding export button in the toolbar and follow the pr
### LLM Integration
The [Zotero-GPT](https://github.com/MuiseDestiny/zotero-gpt) plugin provides GPT Integration. If you also have Better Notes installed, you can wake up its chatting pane in the note editor and insert/modify content in the note.
The [Zotero-GPT](https://github.com/MuiseDestiny/zotero-gpt) plugin provides GPT Integration. If you also have Better Notes installed, you can wake up its chatting pane in the note editor and insert/modify content in the note.
### Action Workflow

View File

@ -107,7 +107,7 @@
</div>
<div
class="footer-container"
style="justify-content: flex-start; padding: 10px; gap: 8px;"
style="justify-content: flex-start; padding: 10px; gap: 8px"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<button id="refresh" data-l10n-id="refresh"></button>

View File

@ -173,7 +173,7 @@
</div>
<div
class="footer-container"
style="justify-content: flex-start; padding: 10px; gap: 8px;"
style="justify-content: flex-start; padding: 10px; gap: 8px"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<button id="create" data-l10n-id="create"></button>

View File

@ -17,7 +17,7 @@ export async function initEditorToolbar(editor: Zotero.EditorInstance) {
// Link creator
registerEditorToolbarElement(
editor,
toolbar,
toolbar,
"start",
ztoolkit.UI.createElement(_document, "button", {
classList: ["toolbar-button"],

View File

@ -420,7 +420,12 @@ async function copyEmbeddedImagesInHTML(
targetNote?: Zotero.Item,
refNotes: Zotero.Item[] = [],
) {
ztoolkit.log("parseEmbeddedImagesInHTML", html, targetNote?.getNoteTitle(), refNotes.length);
ztoolkit.log(
"parseEmbeddedImagesInHTML",
html,
targetNote?.getNoteTitle(),
refNotes.length,
);
if (!targetNote) {
return html;
}