Skip to content

Commit

Permalink
feat: update plugin version to 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
linyibing committed Mar 3, 2024
1 parent 8f44719 commit 4a12178
Show file tree
Hide file tree
Showing 7 changed files with 298 additions and 189 deletions.
392 changes: 244 additions & 148 deletions .obsidian/plugins/periodic-para/main.js

Large diffs are not rendered by default.

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.10.3",
"version": "1.11.1",
"minAppVersion": "0.15.0",
"description": "Assist in practicing the PARA method with periodic notes and usememos.",
"author": "YiBing Lin",
Expand Down
31 changes: 20 additions & 11 deletions .obsidian/plugins/periodic-para/styles.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,48 @@
/* src/main.less */
.periodic-para {
/* src/component/CreateNote/index.less */
.periodic-para-create-note {
overflow: hidden !important;
}
.periodic-para button:not(.ant-btn) {
.periodic-para-create-note button:not(.ant-btn) {
background-color: unset;
box-shadow: unset;
}
.periodic-para .ant-btn-primary {
.periodic-para-create-note .ant-btn-primary {
color: #fff;
background-color: var(--interactive-accent);
box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}
.periodic-para .ant-tabs-nav::before {
.periodic-para-create-note .ant-tabs-nav {
margin: 8px 0;
}
.periodic-para-create-note .ant-tabs-nav::before {
border: 0;
}
.periodic-para .ant-form-item .ant-form-item-label > label {
.periodic-para-create-note .ant-form-item .ant-form-item-label > label {
height: 39.09px;
}
.periodic-para .ant-form-item .ant-picker {
.periodic-para-create-note .ant-form-item .ant-picker {
visibility: hidden;
}
.periodic-para .ant-form-item .ant-picker-dropdown {
.periodic-para-create-note .ant-form-item .ant-picker-dropdown {
display: flex;
justify-content: center;
position: relative;
inset: -45px auto auto 0px !important;
inset: -40px auto auto 0px !important;
}
.periodic-para .ant-form-item .ant-picker-dropdown .ant-picker-panel-container {
.periodic-para-create-note .ant-form-item .ant-picker-dropdown .ant-picker-panel-container {
border-radius: 0;
box-shadow: unset;
transition: unset;
}
.periodic-para .ant-form-item .ant-picker-dropdown .ant-picker-header {
.periodic-para-create-note .ant-form-item .ant-picker-dropdown .ant-picker-header {
border: 0;
}
.periodic-para-create-note .ant-form-item .ant-picker-dropdown .ant-picker-body {
padding: 0 18px;
}
.periodic-para-create-note .ant-form-item .ant-picker-dropdown .ant-picker-header-view {
line-height: 30px;
}
.is-phone .periodic-para button {
width: unset;
}
Expand Down
15 changes: 14 additions & 1 deletion .obsidian/plugins/templater-obsidian/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,12 @@ function arraymove(arr, fromIndex, toIndex) {
function get_active_file(app2) {
return app2.workspace.activeEditor?.file ?? app2.workspace.getActiveFile();
}
function get_folder_path_from_file_path(path) {
const path_separator = path.lastIndexOf("/");
if (path_separator !== -1)
return path.slice(0, path_separator);
return "";
}

// src/settings/suggesters/FileSuggester.ts
var FileSuggestMode;
Expand Down Expand Up @@ -2663,7 +2669,10 @@ var InternalModuleHooks = class extends InternalModule {
}
generate_on_all_templates_executed() {
return (callback_function) => {
const event_ref = app.workspace.on("templater:all-templates-executed", () => callback_function());
const event_ref = app.workspace.on("templater:all-templates-executed", async () => {
await delay(1);
callback_function();
});
if (event_ref) {
this.event_refs.push(event_ref);
}
Expand Down Expand Up @@ -3583,6 +3592,10 @@ var Templater = class {
const extension = template instanceof import_obsidian12.TFile ? template.extension || "md" : "md";
const created_note = await errorWrapper(async () => {
const path = app.vault.getAvailablePath((0, import_obsidian12.normalizePath)(`${folder?.path ?? ""}/${filename ?? "Untitled"}`), extension);
const folder_path = get_folder_path_from_file_path(path);
if (folder_path && !app.vault.getAbstractFileByPathInsensitive(folder_path)) {
await app.vault.createFolder(folder_path);
}
return app.vault.create(path, "");
}, `Couldn't create ${extension} file.`);
if (created_note == null) {
Expand Down
2 changes: 1 addition & 1 deletion .obsidian/plugins/templater-obsidian/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "templater-obsidian",
"name": "Templater",
"version": "2.2.1",
"version": "2.2.2",
"description": "Create and use templates",
"minAppVersion": "1.5.0",
"author": "SilentVoid",
Expand Down
43 changes: 17 additions & 26 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@
"type": "split",
"children": [
{
"id": "e1dcbd9476b552e3",
"id": "8453b20b3359f4bb",
"type": "tabs",
"children": [
{
"id": "0ae97260506f4037",
"id": "23a813c64064d41f",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "0. PeriodicNotes/Templates/Daily.md",
"mode": "source",
"backlinks": true,
"source": false
}
"type": "empty",
"state": {}
}
}
]
Expand All @@ -32,7 +27,7 @@
{
"id": "b454898db4c8f945",
"type": "tabs",
"dimension": 36.69790915645277,
"dimension": 43.96186440677966,
"children": [
{
"id": "9110575c83bff6ab",
Expand All @@ -47,7 +42,7 @@
{
"id": "84e30e37024d9f2a",
"type": "tabs",
"dimension": 63.30209084354722,
"dimension": 56.03813559322034,
"children": [
{
"id": "318abbbcd7749f6f",
Expand Down Expand Up @@ -97,7 +92,7 @@
}
],
"direction": "horizontal",
"width": 377.50312423706055
"width": 315.5
},
"right": {
"id": "e909704c2c67d329",
Expand All @@ -113,7 +108,6 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "0. PeriodicNotes/Templates/Daily.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -124,9 +118,7 @@
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "0. PeriodicNotes/Templates/Daily.md"
}
"state": {}
}
},
{
Expand All @@ -135,7 +127,6 @@
"state": {
"type": "backlink",
"state": {
"file": "0. PeriodicNotes/Templates/Daily.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand Down Expand Up @@ -167,19 +158,20 @@
},
"left-ribbon": {
"hiddenItems": {
"switcher:打开快速切换": false,
"graph:查看关系图谱": false,
"canvas:新建白板": false,
"daily-notes:打开/创建今天的日记": false,
"command-palette:打开命令面板": false,
"random-note:开始漫游笔记": false,
"workspaces:管理工作区布局": false,
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"command-palette:Open command palette": false,
"random-note:Open random note": false,
"workspaces:Manage workspace layouts": false,
"templater-obsidian:Templater": false,
"periodic-para:Periodic PARA": false
}
},
"active": "0ae97260506f4037",
"active": "23a813c64064d41f",
"lastOpenFiles": [
"0. PeriodicNotes/Templates/Daily.md",
"0. PeriodicNotes/Templates/Quarterly.md",
"1. Projects/personal-brand-wot-sharing-meeting/wot-sharing-meeting.README.md",
"0. PeriodicNotes/2023/Weekly/2023-W23.md",
Expand Down Expand Up @@ -216,7 +208,6 @@
"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/architecture diagram/Polyrepo.svg",
"1. Projects/personal-brand-wot-sharing-meeting/architecture diagram/Monorepo.svg",
"4. Archives/parenting-take-a-name/baby-name.png",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [📧Email](mailto:[email protected])
- [🤖AI LifeOS Coach](https://ciciai.com/bot/VVdcRTYZ)

## Donations
## Buy me a cup of coffee ☕️

If this plugin do help you, please buy me a cup of coffee on [buymeacoffee](https://www.buymeacoffee.com/leyang).

Expand Down

0 comments on commit 4a12178

Please sign in to comment.