Skip to content

Commit

Permalink
feat: update plugin version to 1.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
linyibing committed Feb 19, 2024
1 parent df9702c commit a28941d
Show file tree
Hide file tree
Showing 21 changed files with 85 additions and 72 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file removed .obsidian/.DS_Store
Binary file not shown.
22 changes: 18 additions & 4 deletions .obsidian/plugins/periodic-para/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8585,7 +8585,7 @@ var require_react_development = __commonJS({
var dispatcher = resolveDispatcher();
return dispatcher.useRef(initialValue);
}
function useEffect53(create, deps) {
function useEffect54(create, deps) {
var dispatcher = resolveDispatcher();
return dispatcher.useEffect(create, deps);
}
Expand Down Expand Up @@ -9367,7 +9367,7 @@ var require_react_development = __commonJS({
exports.useContext = useContext93;
exports.useDebugValue = useDebugValue;
exports.useDeferredValue = useDeferredValue;
exports.useEffect = useEffect53;
exports.useEffect = useEffect54;
exports.useId = useId3;
exports.useImperativeHandle = useImperativeHandle15;
exports.useInsertionEffect = useInsertionEffect3;
Expand Down Expand Up @@ -36154,7 +36154,7 @@ async function createFile(app, options) {
function isDarkTheme() {
var _a;
const el = document.querySelector("body");
return (_a = el == null ? void 0 : el.className.includes("theme-dark")) != null ? _a : false;
return (_a = el == null ? void 0 : el.className.split(" ").includes("theme-dark")) != null ? _a : false;
}
function formatDailyRecord(record) {
const { createdTs, createdAt, content, resourceList } = record;
Expand Down Expand Up @@ -72165,6 +72165,7 @@ var AddTemplate = () => {
const [periodicActiveTab, setPeriodicActiveTab] = (0, import_react71.useState)(DAILY);
const [paraActiveTab, setParaActiveTab] = (0, import_react71.useState)(PROJECT);
const defaultType = (settings == null ? void 0 : settings.usePeriodicNotes) ? PERIODIC : PARA;
const [isDark, setDark] = (0, import_react71.useState)(isDarkTheme());
const [type4, setType] = (0, import_react71.useState)(defaultType);
const [form] = form_default.useForm();
const today = (0, import_dayjs3.default)(new Date());
Expand Down Expand Up @@ -72252,6 +72253,19 @@ var AddTemplate = () => {
tag
});
};
(0, import_react71.useEffect)(() => {
const handleBodyClassChange = () => {
setDark(isDarkTheme());
};
const observer = new MutationObserver(handleBodyClassChange);
observer.observe(document.body, {
attributes: true,
attributeFilter: ["class"]
});
return () => {
observer.disconnect();
};
}, []);
return /* @__PURE__ */ React216.createElement(
config_provider_default,
{
Expand All @@ -72270,7 +72284,7 @@ var AddTemplate = () => {
cellHeight: 30
}
},
algorithm: isDarkTheme() ? theme_default.darkAlgorithm : theme_default.defaultAlgorithm
algorithm: isDark ? theme_default.darkAlgorithm : theme_default.defaultAlgorithm
}
},
/* @__PURE__ */ React216.createElement(
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.9.3",
"version": "1.9.4",
"minAppVersion": "0.15.0",
"description": "Assist in practicing the PARA method with periodic notes and usememos.",
"author": "YiBing Lin",
Expand Down
77 changes: 38 additions & 39 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"type": "split",
"children": [
{
"id": "98412e05242771b5",
"id": "b7007e220a75a8ad",
"type": "tabs",
"children": [
{
"id": "e51918b63a868167",
"id": "0386f0c08dd3720b",
"type": "leaf",
"state": {
"type": "empty",
Expand All @@ -27,7 +27,7 @@
{
"id": "b454898db4c8f945",
"type": "tabs",
"dimension": 42.756183745583044,
"dimension": 42.75618374558305,
"children": [
{
"id": "9110575c83bff6ab",
Expand All @@ -42,7 +42,7 @@
{
"id": "84e30e37024d9f2a",
"type": "tabs",
"dimension": 57.243816254416956,
"dimension": 57.24381625441695,
"children": [
{
"id": "318abbbcd7749f6f",
Expand Down Expand Up @@ -169,49 +169,48 @@
"periodic-para:Periodic PARA": false
}
},
"active": "e51918b63a868167",
"active": "0386f0c08dd3720b",
"lastOpenFiles": [
"0. PeriodicNotes/Templates/Monthly.md",
"0. PeriodicNotes/2023/Monthly/2023-06.md",
"HOME.canvas",
"0. PeriodicNotes/2024/2024.md",
"0. PeriodicNotes/2024/Quarterly/2024-Q1.md",
"0. PeriodicNotes/2024/Monthly/2024-02.md",
"0. PeriodicNotes/2024/Quarterly",
"0. PeriodicNotes/2024/Weekly/2024-W07.md",
"0. PeriodicNotes/2024/Monthly",
"0. PeriodicNotes/2024/Daily/02/2024-02-16.md",
"0. PeriodicNotes/2024/Weekly",
"0. PeriodicNotes/2024/Daily/02",
"0. PeriodicNotes/2024/Daily",
"0. PeriodicNotes/2024",
"5. Express/blogs/Building my second brain 🧠 with Obsidian.md",
"5. Express/README.md",
"-1. Capture/README.md",
"5. Express/blogs",
"5. Express/未命名文件夹",
"-1. Capture/Quality software deserves your hard‑earned cash.md",
"-1. Capture/Predicting The Future.md",
"-1. Capture/Advice for ambitious 19 year olds.md",
"0. PeriodicNotes/2023/Weekly/2023-W22.md",
"0. PeriodicNotes/2023/Daily/06/2023-06-02.md",
"TASK.md",
"0. PeriodicNotes/2023/Weekly/2023-W23.md",
"0. PeriodicNotes/2023/Daily/06/2023-06-01.md",
"4. Archives/parenting-take-a-name/program/package.json",
"4. Archives/parenting-take-a-name/program/nameCandidateList.md",
"4. Archives/parenting-take-a-name/program/index.js",
"4. Archives/parenting-take-a-name/program/README.md",
"4. Archives/parenting-take-a-name/take-a-name.README.md",
"4. Archives/parenting-take-a-name/program",
"4. Archives/parenting-take-a-name/candidate word.md",
"4. Archives/parenting-take-a-name/candidate list.md",
"3. Resources/photography/photography.README.md",
"3. Resources/knowledge-management/knowledge-management.README.md",
"2. Areas/personal-brand/personal-brand.README.md",
"2. Areas/parenting/parenting.README.md",
"2. Areas/parental-relationship/parental-relationship.README.md",
"2. Areas/marriage-relationship/marriage-relationship.README.md",
"1. Projects/personal-brand-wot-sharing-meeting/wot-sharing-meeting.README.md",
"4. Archives/parenting-take-a-name/take-a-name.README.md",
"0. PeriodicNotes/2023/2023.md",
"1. Projects/personal-brand-wot-sharing-meeting/Front-end Engineering Practice of ByteDance.pdf",
"0. PeriodicNotes/2023/Quarterly/2023-Q2.md",
"0. PeriodicNotes/2023/Daily/06/2023-06-11.md",
"0. PeriodicNotes/2023/Quarterly/2023-Q1.md",
"README.md",
"HOME.canvas",
"0. PeriodicNotes/Templates/Yearly.md",
"0. PeriodicNotes/Templates/Quarterly.md",
"0. PeriodicNotes/Templates/Weekly.md",
"0. PeriodicNotes/Templates/Daily.md",
"4. Archives/parenting-take-a-name/baby-name.png",
"4. Archives/parenting-take-a-name/林奕如.png",
"1. Projects/personal-brand-wot-sharing-meeting/speech rehearsal/Verbatim manuscript.md",
"1. Projects/personal-brand-wot-sharing-meeting/speech rehearsal/Tips for Public Speaking.md",
"1. Projects/personal-brand-wot-sharing-meeting/speech rehearsal/Rehearsal Tips.md",
"1. Projects/personal-brand-wot-sharing-meeting/speech rehearsal/Existing problems.md",
"1. Projects/personal-brand-wot-sharing-meeting/speech rehearsal/Possible questions from the audience.md",
"1. Projects/personal-brand-wot-sharing-meeting/previous theme.md",
"1. Projects/personal-brand-wot-sharing-meeting/architecture diagram/Polyrepo.svg",
"1. Projects/personal-brand-wot-sharing-meeting/architecture diagram/Monorepo.svg",
"0. PeriodicNotes/2024/Daily/02",
"0. PeriodicNotes/2024/Daily",
"0. PeriodicNotes/2024",
"0. PeriodicNotes/2022/Quarterly",
"0. PeriodicNotes/2022",
"0. PeriodicNotes/2023/Daily/06",
"0. PeriodicNotes/2023/Weekly",
"1. Projects/parenting-first-birthday-banquet/first-birthday-banquet.README.md",
"4. Archives/parenting-take-a-name/baby-name.png",
"4. Archives/parenting-take-a-name/林奕如.png",
"1. Projects/personal-brand-wot-sharing-meeting/Attachments/PPT 素材/warning.svg",
"1. Projects/personal-brand-wot-sharing-meeting/Attachments/PPT 素材/warning.png",
"1. Projects/personal-brand-wot-sharing-meeting/Attachments/PPT 素材/rollup-logo.svg",
Expand Down
Binary file removed 0. PeriodicNotes/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions 1. Projects/Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
- key result

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ tags:
- key result

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ tags:
- key result

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 2. Areas/Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 2. Areas/Work/Work.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 2. Areas/parenting/parenting.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 2. Areas/personal-brand/personal-brand.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ ArchiveListByTag
```

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Binary file removed 3. Resources/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions 3. Resources/Template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ tags:
---

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 3. Resources/photography/photography.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ tags:
---

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
4 changes: 2 additions & 2 deletions 4. Archives/Template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

## Task
%%Query tasks based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query tasks based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
TaskListByTag
```

## Bullet
%%Query bullets based on the tags field of the [Metadata](https://help.obsidian.md/Editing+and+formatting/Metadata) of the current file, extracted from all the notes%%
%%Query bullets based on the tags field of the [Properties](https://help.obsidian.md/Editing+and+formatting/Properties) of the current file, extracted from all the notes%%
```PeriodicPARA
BulletListByTag
```
Loading

0 comments on commit a28941d

Please sign in to comment.