vault backup: 2025-08-03 11:01:42
This commit is contained in:
1 parent
52c61d3ad8
commit
dc7b44d2ea
39 files changed
+679
-648
No files matched your search
+38
-29
@@ -38354,7 +38354,9 @@ var EN = {
|
||||
TOPBANNER_SOCIAL: "Twitter",
|
||||
TOPBANNER_SOCIAL_HREF: "https://x.com/quan_ru",
|
||||
TOPBANNER_LIFEOS_PRO: "LifeOS Pro",
|
||||
TOPBANNER_LIFEOS_PRO_HREF: "https://lifeos.vip/plugin/life-os-pro.html"
|
||||
TOPBANNER_LIFEOS_PRO_HREF: "https://lifeos.vip/plugin/life-os-pro.html",
|
||||
TOP_BANNER_DEEPASK_AD: "Inject AI Intelligence into LifeOS",
|
||||
TOP_BANNER_DEEPASK_HREF: "https://lifeos.vip/plugin/deepask/deepask.html"
|
||||
};
|
||||
var ZH = {
|
||||
HELP: "\u6253\u5F00\u5B98\u7F51\uFF0C\u5BFB\u6C42\u5E2E\u52A9",
|
||||
@@ -38463,7 +38465,9 @@ var ZH = {
|
||||
TOPBANNER_SOCIAL: "\u5C0F\u7EA2\u4E66",
|
||||
TOPBANNER_SOCIAL_HREF: "https://www.xiaohongshu.com/user/profile/5b06db60f7e8b974ec6ff7fc",
|
||||
TOPBANNER_LIFEOS_PRO: "LifeOS Pro",
|
||||
TOPBANNER_LIFEOS_PRO_HREF: "https://lifeos.vip/zh/plugin/life-os-pro.html"
|
||||
TOPBANNER_LIFEOS_PRO_HREF: "https://lifeos.vip/zh/plugin/life-os-pro.html",
|
||||
TOP_BANNER_DEEPASK_AD: "\u4E3A LifeOS \u6CE8\u5165 AI \u667A\u80FD",
|
||||
TOP_BANNER_DEEPASK_HREF: "https://lifeos.vip/zh/plugin/deepask/deepask.html"
|
||||
};
|
||||
var I18N_MAP = {
|
||||
"en-us": EN,
|
||||
@@ -39079,7 +39083,7 @@ var File = class {
|
||||
dataview.table(
|
||||
["File", "Date"],
|
||||
dataview.pages(from2).filter(
|
||||
(b) => !isInPeriodicNote(b.file.path, this.settings) && !isInTemplateNote(filepath, this.settings) && b.file.path !== filepath
|
||||
(b) => !isInPeriodicNote(b.file.path, this.settings) && !isInTemplateNote(b.file.path, this.settings) && b.file.path !== filepath
|
||||
).sort((b) => b.file.ctime.ts, "desc").map((b) => [
|
||||
b.file.link,
|
||||
`[[${(0, import_dayjs2.default)(b.file.ctime.ts).format("YYYY-MM-DD")}]]`
|
||||
@@ -88919,7 +88923,7 @@ var TopBanner = ({ locale: locale6 }) => {
|
||||
text: i18n.TOPBANNER_SOCIAL
|
||||
}
|
||||
];
|
||||
return /* @__PURE__ */ import_react99.default.createElement(ConfigProvider2, null, /* @__PURE__ */ import_react99.default.createElement("div", { className: "m-top-banner" }, /* @__PURE__ */ import_react99.default.createElement("div", { className: "pro-link" }, /* @__PURE__ */ import_react99.default.createElement("a", { href: i18n.TOPBANNER_LIFEOS_PRO_HREF, target: "_blank", rel: "noopener noreferrer" }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center" }, /* @__PURE__ */ import_react99.default.createElement(DollarOutlined_default2, null), /* @__PURE__ */ import_react99.default.createElement("span", null, i18n.TOPBANNER_LIFEOS_PRO)))), /* @__PURE__ */ import_react99.default.createElement("div", { className: "icon-links" }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center", size: "large" }, iconLinks.map(({ icon, href, text }) => /* @__PURE__ */ import_react99.default.createElement("a", { key: href, href, target: "_blank", rel: "noopener noreferrer", "aria-label": text }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center" }, icon, /* @__PURE__ */ import_react99.default.createElement("span", null, text))))))));
|
||||
return /* @__PURE__ */ import_react99.default.createElement(ConfigProvider2, null, /* @__PURE__ */ import_react99.default.createElement("div", { className: "m-top-banner" }, /* @__PURE__ */ import_react99.default.createElement("div", { className: "banner-content" }, /* @__PURE__ */ import_react99.default.createElement("div", { className: "pro-link" }, /* @__PURE__ */ import_react99.default.createElement("a", { href: i18n.TOPBANNER_LIFEOS_PRO_HREF, target: "_blank", rel: "noopener noreferrer" }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center" }, /* @__PURE__ */ import_react99.default.createElement(DollarOutlined_default2, null), /* @__PURE__ */ import_react99.default.createElement("span", null, i18n.TOPBANNER_LIFEOS_PRO)))), /* @__PURE__ */ import_react99.default.createElement("div", { className: "deepask-ad" }, /* @__PURE__ */ import_react99.default.createElement("a", { href: i18n.TOP_BANNER_DEEPASK_HREF, target: "_blank", rel: "noopener noreferrer" }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center" }, "\u{1F525}", /* @__PURE__ */ import_react99.default.createElement("span", null, i18n.TOP_BANNER_DEEPASK_AD), "\u{1F916}")))), /* @__PURE__ */ import_react99.default.createElement("div", { className: "icon-links" }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center", size: "large" }, iconLinks.map(({ icon, href, text }) => /* @__PURE__ */ import_react99.default.createElement("a", { key: href, href, target: "_blank", rel: "noopener noreferrer", "aria-label": text }, /* @__PURE__ */ import_react99.default.createElement(space_default, { align: "center" }, icon, /* @__PURE__ */ import_react99.default.createElement("span", null, text))))))));
|
||||
};
|
||||
|
||||
// src/component/SettingTab/index.tsx
|
||||
@@ -89255,6 +89259,28 @@ var LifeOS = class extends import_obsidian15.Plugin {
|
||||
constructor(app, manifest) {
|
||||
var _a;
|
||||
super(app, manifest);
|
||||
this.markdownCodeBlockProcessor = (source, el, ctx) => {
|
||||
const view = source.trim();
|
||||
const legacyView = `${view}ByTime`;
|
||||
if (!view) {
|
||||
return renderError(
|
||||
this.app,
|
||||
getI18n(locale5)[`${ERROR_MESSAGE}NO_VIEW_PROVIDED`],
|
||||
el.createEl("div"),
|
||||
ctx.sourcePath
|
||||
);
|
||||
}
|
||||
if (!Object.keys(this.views).includes(view) && !Object.keys(this.views).includes(legacyView)) {
|
||||
return renderError(
|
||||
this.app,
|
||||
`${getI18n(locale5)[`${ERROR_MESSAGE}NO_VIEW_EXISTED`]}: ${view}`,
|
||||
el.createEl("div"),
|
||||
ctx.sourcePath
|
||||
);
|
||||
}
|
||||
const callback = this.views[view] || this.views[legacyView];
|
||||
return callback(view, el, ctx);
|
||||
};
|
||||
this.initCreateNoteView = async () => {
|
||||
const leafs = this.app.workspace.getLeavesOfType(CREATE_NOTE);
|
||||
if (leafs.length > 0) {
|
||||
@@ -89324,34 +89350,17 @@ var LifeOS = class extends import_obsidian15.Plugin {
|
||||
callback: () => openOfficialSite(locale5)
|
||||
});
|
||||
this.loadHelpers();
|
||||
this.loadDailyRecord();
|
||||
this.loadGlobalHelpers();
|
||||
this.loadViews();
|
||||
try {
|
||||
this.registerMarkdownCodeBlockProcessor("LifeOS", this.markdownCodeBlockProcessor);
|
||||
this.registerMarkdownCodeBlockProcessor("PeriodicPARA", this.markdownCodeBlockProcessor);
|
||||
} catch (error) {
|
||||
logMessage(error, 2 /* error */);
|
||||
return;
|
||||
}
|
||||
this.loadDailyRecord();
|
||||
this.addSettingTab(new SettingTabView(this.app, this.settings, this, localeMap2[locale5]));
|
||||
const handler = (source, el, ctx) => {
|
||||
const view = source.trim();
|
||||
const legacyView = `${view}ByTime`;
|
||||
if (!view) {
|
||||
return renderError(
|
||||
this.app,
|
||||
getI18n(locale5)[`${ERROR_MESSAGE}NO_VIEW_PROVIDED`],
|
||||
el.createEl("div"),
|
||||
ctx.sourcePath
|
||||
);
|
||||
}
|
||||
if (!Object.keys(this.views).includes(view) && !Object.keys(this.views).includes(legacyView)) {
|
||||
return renderError(
|
||||
this.app,
|
||||
`${getI18n(locale5)[`${ERROR_MESSAGE}NO_VIEW_EXISTED`]}: ${view}`,
|
||||
el.createEl("div"),
|
||||
ctx.sourcePath
|
||||
);
|
||||
}
|
||||
const callback = this.views[view] || this.views[legacyView];
|
||||
return callback(view, el, ctx);
|
||||
};
|
||||
this.registerMarkdownCodeBlockProcessor("LifeOS", handler);
|
||||
this.registerMarkdownCodeBlockProcessor("PeriodicPARA", handler);
|
||||
}
|
||||
loadDailyRecord() {
|
||||
if (this.settings.usePeriodicNotes && this.settings.useDailyRecord) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "periodic-para",
|
||||
"name": "LifeOS",
|
||||
"version": "1.21.6",
|
||||
"version": "1.21.7",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Life management system(Assist in practicing the PARA method with periodic notes and usememos).",
|
||||
"author": "YiBing Lin",
|
||||
|
||||
+25
-1
@@ -134,11 +134,17 @@
|
||||
}
|
||||
|
||||
/* src/component/TopBanner/index.less */
|
||||
.m-top-banner .banner-content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.m-top-banner .pro-link {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.m-top-banner .pro-link a {
|
||||
display: flex;
|
||||
@@ -146,12 +152,30 @@
|
||||
text-decoration: none;
|
||||
height: 40px;
|
||||
}
|
||||
.m-top-banner .deepask-ad {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.m-top-banner .deepask-ad a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
height: 40px;
|
||||
border-radius: 4px;
|
||||
padding: 0 12px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.m-top-banner .icon-links {
|
||||
overflow: scroll;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.m-top-banner .icon-links::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.m-top-banner .icon-links a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user