v1.0.65: default untagged timer entries to Client Books
This commit is contained in:
@@ -6450,7 +6450,7 @@ async function stopTimer(token, entryId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/plugin.ts
|
// src/plugin.ts
|
||||||
var CURRENT_VERSION = "1.0.64";
|
var CURRENT_VERSION = "1.0.65";
|
||||||
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
||||||
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||||
@@ -6542,6 +6542,7 @@ var HARDCODED = {
|
|||||||
timingDbId: "2ec93117da3a80799ee2cf91244ee264",
|
timingDbId: "2ec93117da3a80799ee2cf91244ee264",
|
||||||
projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585"
|
projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585"
|
||||||
};
|
};
|
||||||
|
var DEFAULT_TAG = "Client Books";
|
||||||
async function getGlobal() {
|
async function getGlobal() {
|
||||||
const stored = await plugin_default.settings.getGlobalSettings();
|
const stored = await plugin_default.settings.getGlobalSettings();
|
||||||
return { ...stored, ...HARDCODED };
|
return { ...stored, ...HARDCODED };
|
||||||
@@ -6741,7 +6742,7 @@ var TimerToggle = class extends SingletonAction {
|
|||||||
setRunningEntry(null, null);
|
setRunningEntry(null, null);
|
||||||
this.clearElapsedCheck();
|
this.clearElapsedCheck();
|
||||||
}
|
}
|
||||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag, description);
|
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag || DEFAULT_TAG, description);
|
||||||
setRunningEntry(entryId, ev.action.id);
|
setRunningEntry(entryId, ev.action.id);
|
||||||
this.scheduleElapsedCheck(entryId, ev.action.id, title);
|
this.scheduleElapsedCheck(entryId, ev.action.id, title);
|
||||||
await Promise.all([ev.action.setState(1), ev.action.setTitle(`\u23F1 ${title}`)]);
|
await Promise.all([ev.action.setState(1), ev.action.setTitle(`\u23F1 ${title}`)]);
|
||||||
|
|||||||
Binary file not shown.
+4
-2
@@ -1,4 +1,4 @@
|
|||||||
const CURRENT_VERSION = "1.0.64";
|
const CURRENT_VERSION = "1.0.65";
|
||||||
const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
||||||
const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||||
@@ -125,6 +125,8 @@ const HARDCODED = {
|
|||||||
projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585",
|
projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const DEFAULT_TAG = "Client Books";
|
||||||
|
|
||||||
async function getGlobal(): Promise<GlobalSettings> {
|
async function getGlobal(): Promise<GlobalSettings> {
|
||||||
const stored = await streamDeck.settings.getGlobalSettings<GlobalSettings>();
|
const stored = await streamDeck.settings.getGlobalSettings<GlobalSettings>();
|
||||||
return { ...stored, ...HARDCODED };
|
return { ...stored, ...HARDCODED };
|
||||||
@@ -358,7 +360,7 @@ class TimerToggle extends SingletonAction<TimerSettings> {
|
|||||||
setRunningEntry(null, null);
|
setRunningEntry(null, null);
|
||||||
this.clearElapsedCheck();
|
this.clearElapsedCheck();
|
||||||
}
|
}
|
||||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag, description);
|
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag || DEFAULT_TAG, description);
|
||||||
setRunningEntry(entryId, ev.action.id);
|
setRunningEntry(entryId, ev.action.id);
|
||||||
this.scheduleElapsedCheck(entryId, ev.action.id, title);
|
this.scheduleElapsedCheck(entryId, ev.action.id, title);
|
||||||
await Promise.all([ev.action.setState(1), ev.action.setTitle(`⏱ ${title}`)]);
|
await Promise.all([ev.action.setState(1), ev.action.setTitle(`⏱ ${title}`)]);
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{ "version": "1.0.64" }
|
{ "version": "1.0.65" }
|
||||||
|
|||||||
Reference in New Issue
Block a user