Skip to content

Commit

Permalink
Merge pull request #8 from eagleon/master
Browse files Browse the repository at this point in the history
fix(release): 解决新版本Logseq的时间UI不更新问题
  • Loading branch information
denvey authored Jan 11, 2024
2 parents ea8f08f + 5e78104 commit b7ce771
Show file tree
Hide file tree
Showing 3 changed files with 978 additions and 3,977 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function main () {

// CommandShortcut
logseq.App.registerCommandShortcut(
{ binding: logseq.settings?.pomodoroTechniqueKeybinding || "alt+o" },
{ binding: logseq.settings?.pomodoroTechniqueKeybinding as string|| "alt+o" },
async () => {
const durationMins = logseq.settings?.pomodoroTimeLength || 25
await logseq.Editor.insertAtEditingCursor(
Expand Down Expand Up @@ -183,7 +183,7 @@ async function main () {
`,
})
}
Promise.resolve(init || logseq.App.queryElementById(keepKey)).then((res) => {
Promise.resolve(init || logseq.UI.queryElementById(keepKey)).then((res) => {
if (res) {
provideUi(isDone, humanTime())
!isDone && setTimeout(() => {
Expand All @@ -202,7 +202,7 @@ async function main () {
const identity = type.split('_')[1]?.trim()
if (!identity) return
if (!durationMins){
durationMins = durationMins || logseq.settings?.pomodoroTimeLength || 25
durationMins = durationMins || logseq.settings?.pomodoroTimeLength as string || "25"
}
const pomoId = 'pomodoro-timer-start_' + identity
if (!startTime?.trim()) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-pomodoro-technique",
"version": "1.0.6",
"version": "1.0.7",
"description": "A joyful pomodoro timer for block task item 🍅",
"author": "denvey",
"license": "MIT",
Expand All @@ -10,8 +10,8 @@
"build": "parcel build --public-url . --no-source-maps index.html"
},
"devDependencies": {
"@logseq/libs": "^0.0.15",
"parcel": "^2.0.0"
"@logseq/libs": "^0.0.17",
"parcel": "^2.11.0"
},
"dependencies": {},
"logseq": {
Expand Down
Loading

0 comments on commit b7ce771

Please sign in to comment.