Skip to content

Commit

Permalink
feat: update plugin to 1.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
quanru committed Dec 19, 2023
1 parent 30118fd commit c948936
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .obsidian/appearance.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"Checkboxes",
"DoneTaskInEditingMode"
],
"baseFontSize": 14,
"baseFontSize": 16,
"nativeMenus": false,
"showViewHeader": true,
"translucency": false
Expand Down
92 changes: 46 additions & 46 deletions .obsidian/plugins/obsidian-tasks-plugin/main.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .obsidian/plugins/obsidian-tasks-plugin/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"id": "obsidian-tasks-plugin",
"name": "Tasks",
"version": "5.2.0",
"version": "5.3.0",
"minAppVersion": "1.1.1",
"description": "Task management for Obsidian",
"helpUrl": "https://publish.obsidian.md/tasks/",
"author": "Martin Schenck and Clare Macrae",
"authorUrl": "https://github.com/obsidian-tasks-group",
"fundingUrl": "https://github.com/sponsors/claremacrae",
Expand Down
15 changes: 15 additions & 0 deletions .obsidian/plugins/obsidian-tasks-plugin/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

}

/* Fix indentation of wrapped task lines in Tasks search results, when in Live Preview. */
ul.contains-task-list .task-list-item-checkbox {
margin-inline-start: calc(var(--checkbox-size) * -1.5) !important;
}

.plugin-tasks-query-explanation{
/* Prevent long explanation lines wrapping, so they are more readable,
especially on small screens.
Expand Down Expand Up @@ -72,6 +77,16 @@
text-decoration: none;
}

/* Postpone icon. */
.tasks-postpone {
background-color: transparent;
padding: 0;
font-size: var(--font-text-size);
background-color: transparent;
display: contents;
cursor: pointer;
}

.tasks-list-text {
position: relative;
}
Expand Down
193 changes: 145 additions & 48 deletions .obsidian/plugins/periodic-para/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7514,6 +7514,83 @@ var require_lib = __commonJS({
}
});

// node_modules/.pnpm/debounce@2.0.0/node_modules/debounce/index.js
var require_debounce = __commonJS({
"node_modules/.pnpm/debounce@2.0.0/node_modules/debounce/index.js"(exports, module2) {
function debounce2(function_, wait = 100, options = {}) {
if (typeof function_ !== "function") {
throw new TypeError(`Expected the first parameter to be a function, got \`${typeof function_}\`.`);
}
if (wait < 0) {
throw new RangeError("`wait` must not be negative.");
}
const { immediate } = typeof options === "boolean" ? { immediate: options } : options;
let storedContext;
let storedArguments;
let timeoutId;
let timestamp;
let result;
function later() {
const last = Date.now() - timestamp;
if (last < wait && last >= 0) {
timeoutId = setTimeout(later, wait - last);
} else {
timeoutId = void 0;
if (!immediate) {
const callContext = storedContext;
const callArguments = storedArguments;
storedContext = void 0;
storedArguments = void 0;
result = function_.apply(callContext, callArguments);
}
}
}
const debounced = function(...arguments_) {
if (storedContext && this !== storedContext) {
throw new Error("Debounced method called with different contexts.");
}
storedContext = this;
storedArguments = arguments_;
timestamp = Date.now();
const callNow = immediate && !timeoutId;
if (!timeoutId) {
timeoutId = setTimeout(later, wait);
}
if (callNow) {
const callContext = storedContext;
const callArguments = storedArguments;
storedContext = void 0;
storedArguments = void 0;
result = function_.apply(callContext, callArguments);
}
return result;
};
debounced.clear = () => {
if (!timeoutId) {
return;
}
clearTimeout(timeoutId);
timeoutId = void 0;
};
debounced.flush = () => {
if (!timeoutId) {
return;
}
const callContext = storedContext;
const callArguments = storedArguments;
storedContext = void 0;
storedArguments = void 0;
result = function_.apply(callContext, callArguments);
clearTimeout(timeoutId);
timeoutId = void 0;
};
return debounced;
}
module2.exports.debounce = debounce2;
module2.exports = debounce2;
}
});

// node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js
var require_react_development = __commonJS({
"node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(exports, module2) {
Expand Down Expand Up @@ -39259,10 +39336,7 @@ ${finalRecordContent}
if (!this.app.vault.getAbstractFileByPath(folder)) {
this.app.vault.createFolder(folder);
}
await this.app.vault.adapter.writeBinary(
resourcePath,
Buffer.from(data2)
);
await this.app.vault.adapter.writeBinary(resourcePath, data2);
})
);
return data;
Expand All @@ -39284,6 +39358,7 @@ ${finalRecordContent}

// src/SettingTab.ts
var import_obsidian11 = require("obsidian");
var import_debounce = __toESM(require_debounce());
var DEFAULT_SETTINGS = {
periodicNotesPath: "PeriodicNotes",
projectsPath: "1. Projects",
Expand Down Expand Up @@ -39318,28 +39393,36 @@ var SettingTab = class extends import_obsidian11.PluginSettingTab {
);
if (this.plugin.settings.usePeriodicNotes) {
new import_obsidian11.Setting(containerEl).setName("Periodic Notes Folder:").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.periodicNotesPath).setValue(this.plugin.settings.periodicNotesPath).onChange(async (value) => {
this.plugin.settings.periodicNotesPath = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.periodicNotesPath).setValue(this.plugin.settings.periodicNotesPath).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.periodicNotesPath = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Habit Header:").setDesc("Where the Habit module is in a daily note").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.habitHeader).setValue(this.plugin.settings.habitHeader).onChange(async (value) => {
this.plugin.settings.habitHeader = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.habitHeader).setValue(this.plugin.settings.habitHeader).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.habitHeader = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Project List Header:").setDesc("Where the Project List is in a daily note").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.projectListHeader).setValue(this.plugin.settings.projectListHeader).onChange(async (value) => {
this.plugin.settings.projectListHeader = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.projectListHeader).setValue(this.plugin.settings.projectListHeader).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.projectListHeader = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Area List Header:").setDesc("Where the Area List is in a quarterly note").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.areaListHeader).setValue(this.plugin.settings.areaListHeader).onChange(async (value) => {
this.plugin.settings.areaListHeader = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.areaListHeader).setValue(this.plugin.settings.areaListHeader).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.areaListHeader = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Daily Record").setDesc("Sync daily record by remote API").addToggle(
(toggle) => toggle.setValue(this.plugin.settings.useDailyRecord).onChange(async (value) => {
Expand All @@ -39350,22 +39433,28 @@ var SettingTab = class extends import_obsidian11.PluginSettingTab {
);
if (this.plugin.settings.useDailyRecord) {
new import_obsidian11.Setting(containerEl).setName("Header:").setDesc("Where the Daily Record module is in a daily note").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordHeader).setValue(this.plugin.settings.dailyRecordHeader).onChange(async (value) => {
this.plugin.settings.dailyRecordHeader = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordHeader).setValue(this.plugin.settings.dailyRecordHeader).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.dailyRecordHeader = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("API:").setDesc("The daily record API").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordAPI).setValue(this.plugin.settings.dailyRecordAPI).onChange(async (value) => {
this.plugin.settings.dailyRecordAPI = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordAPI).setValue(this.plugin.settings.dailyRecordAPI).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.dailyRecordAPI = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Token:").setDesc("The token of your API").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordToken).setValue(this.plugin.settings.dailyRecordToken).onChange(async (value) => {
this.plugin.settings.dailyRecordToken = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.dailyRecordToken).setValue(this.plugin.settings.dailyRecordToken).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.dailyRecordToken = value;
await this.plugin.saveSettings();
}, 500)
)
);
}
}
Expand All @@ -39379,28 +39468,36 @@ var SettingTab = class extends import_obsidian11.PluginSettingTab {
);
if (this.plugin.settings.usePARANotes) {
new import_obsidian11.Setting(containerEl).setName("Projects Folder:").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.projectsPath).setValue(this.plugin.settings.projectsPath).onChange(async (value) => {
this.plugin.settings.projectsPath = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.projectsPath).setValue(this.plugin.settings.projectsPath).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.projectsPath = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Areas Folder:").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.areasPath).setValue(this.plugin.settings.areasPath).onChange(async (value) => {
this.plugin.settings.areasPath = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.areasPath).setValue(this.plugin.settings.areasPath).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.areasPath = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Resources Folder:").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.resourcesPath).setValue(this.plugin.settings.resourcesPath).onChange(async (value) => {
this.plugin.settings.resourcesPath = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.resourcesPath).setValue(this.plugin.settings.resourcesPath).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.resourcesPath = value;
await this.plugin.saveSettings();
}, 500)
)
);
new import_obsidian11.Setting(containerEl).setName("Archives Folder:").addText(
(text) => text.setPlaceholder(DEFAULT_SETTINGS.archivesPath).setValue(this.plugin.settings.archivesPath).onChange(async (value) => {
this.plugin.settings.archivesPath = value;
await this.plugin.saveSettings();
})
(text) => text.setPlaceholder(DEFAULT_SETTINGS.archivesPath).setValue(this.plugin.settings.archivesPath).onChange(
(0, import_debounce.default)(async (value) => {
this.plugin.settings.archivesPath = value;
await this.plugin.saveSettings();
}, 500)
)
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion .obsidian/plugins/periodic-para/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "periodic-para",
"name": "Periodic PARA",
"version": "1.7.3",
"version": "1.7.5",
"minAppVersion": "0.15.0",
"description": "Assist in practicing the PARA method with periodic notes and usememos.",
"author": "YiBing Lin",
Expand Down
8 changes: 8 additions & 0 deletions .obsidian/plugins/periodic-para/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
position: relative;
inset: -20px auto auto 0px !important;
}
.periodic-para .ant-picker-dropdown .ant-picker-cell::before {
height: 30px;
}
.periodic-para .ant-picker-dropdown .ant-picker-cell .ant-picker-cell-inner {
line-height: 30px;
min-width: 30px;
height: 30px;
}
.is-phone .periodic-para button {
width: unset;
}
6 changes: 3 additions & 3 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"id": "d32bd3e9f2db57a0",
"type": "tabs",
"dimension": 43.0795847750865,
"dimension": 41.54818325434439,
"children": [
{
"id": "e2f9ecf537a853a4",
Expand All @@ -56,7 +56,7 @@
{
"id": "90362f6f602f507d",
"type": "tabs",
"dimension": 56.92041522491349,
"dimension": 58.451816745655606,
"children": [
{
"id": "318abbbcd7749f6f",
Expand Down Expand Up @@ -177,7 +177,7 @@
"periodic-para:Periodic PARA": false
}
},
"active": "1ae82b8d469273d8",
"active": "9110575c83bff6ab",
"lastOpenFiles": [
"3. Resources/EnglishLearning/README.md",
"2. Areas/Life/Life.README.md",
Expand Down

0 comments on commit c948936

Please sign in to comment.