vault backup: 2025-06-09 00:18:48
This commit is contained in:
parent
ee37b94b09
commit
b7c3be4398
|
@ -0,0 +1,514 @@
|
|||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||||
if you want to view the source visit the plugins github repository
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var obsidian = require('obsidian');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
if (k !== 'default') {
|
||||
var d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: function () { return e[k]; }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
n["default"] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
||||
var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
|
||||
function __extends(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
}
|
||||
|
||||
function __awaiter(thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
}
|
||||
|
||||
function __generator(thisArg, body) {
|
||||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
||||
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||
function step(op) {
|
||||
if (f) throw new TypeError("Generator is already executing.");
|
||||
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
||||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||
switch (op[0]) {
|
||||
case 0: case 1: t = op; break;
|
||||
case 4: _.label++; return { value: op[1], done: false };
|
||||
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||
default:
|
||||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||
if (t[2]) _.ops.pop();
|
||||
_.trys.pop(); continue;
|
||||
}
|
||||
op = body.call(thisArg, _);
|
||||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||
}
|
||||
}
|
||||
|
||||
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
||||
var e = new Error(message);
|
||||
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
||||
};
|
||||
|
||||
var DEFAULT_SETTINGS = {
|
||||
linkPrefix: "",
|
||||
showFileEnding: false,
|
||||
linkFolder: false,
|
||||
embedFile: false
|
||||
};
|
||||
var SUPPORTED_EMBED_FILE_TYPES = [
|
||||
".md",
|
||||
".png",
|
||||
".jpg",
|
||||
".jpeg",
|
||||
".gif",
|
||||
".bmp",
|
||||
".svg",
|
||||
".mp3",
|
||||
".webm",
|
||||
".wav",
|
||||
".m4a",
|
||||
".ogg",
|
||||
".3gp",
|
||||
".flac",
|
||||
".mp4",
|
||||
".webm",
|
||||
".ogv",
|
||||
".pdf",
|
||||
];
|
||||
|
||||
var FileLinkSettingTab = /** @class */ (function (_super) {
|
||||
__extends(FileLinkSettingTab, _super);
|
||||
function FileLinkSettingTab(app, plugin) {
|
||||
var _this = _super.call(this, app, plugin) || this;
|
||||
_this.plugin = plugin;
|
||||
return _this;
|
||||
}
|
||||
FileLinkSettingTab.prototype.display = function () {
|
||||
var _this = this;
|
||||
var containerEl = this.containerEl;
|
||||
containerEl.empty();
|
||||
containerEl.createEl("h2", { text: "Better File Link Settings" });
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("List style for multiple files")
|
||||
.setDesc("Specify the characters shown before every file link.")
|
||||
.addText(function (text) {
|
||||
return text
|
||||
.setPlaceholder("-")
|
||||
.setValue(_this.plugin.settings.linkPrefix)
|
||||
.onChange(function (value) { return __awaiter(_this, void 0, void 0, function () {
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.plugin.settings.linkPrefix = value;
|
||||
return [4 /*yield*/, this.plugin.saveSettings()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
});
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Show file extension")
|
||||
.setDesc("Will show file endings when activated.")
|
||||
.addToggle(function (toggle) {
|
||||
return toggle
|
||||
.setValue(_this.plugin.settings.showFileEnding)
|
||||
.onChange(function () { return __awaiter(_this, void 0, void 0, function () {
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.plugin.settings.showFileEnding = toggle.getValue();
|
||||
return [4 /*yield*/, this.plugin.saveSettings()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
});
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Embed file")
|
||||
.setDesc("Will copy the file to Obsidian and embed it in the note.")
|
||||
.addToggle(function (toggle) {
|
||||
return toggle.setValue(_this.plugin.settings.embedFile).onChange(function () { return __awaiter(_this, void 0, void 0, function () {
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.plugin.settings.embedFile = toggle.getValue();
|
||||
return [4 /*yield*/, this.plugin.saveSettings()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
});
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Link folder instead of file")
|
||||
.setDesc("Link will open the folder where the file is located instead of opening the file itself.")
|
||||
.addToggle(function (toggle) {
|
||||
return toggle.setValue(_this.plugin.settings.linkFolder).onChange(function () { return __awaiter(_this, void 0, void 0, function () {
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this.plugin.settings.linkFolder = toggle.getValue();
|
||||
return [4 /*yield*/, this.plugin.saveSettings()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
});
|
||||
};
|
||||
return FileLinkSettingTab;
|
||||
}(obsidian.PluginSettingTab));
|
||||
|
||||
var FileEmbeder = /** @class */ (function () {
|
||||
function FileEmbeder(settings) {
|
||||
this.settings = settings;
|
||||
}
|
||||
FileEmbeder.prototype.getEmbedMarkdownLink = function (filePath) {
|
||||
var ext = this.getPathInformation(filePath).ext;
|
||||
if (!SUPPORTED_EMBED_FILE_TYPES.includes(ext)) {
|
||||
new obsidian.Notice("Files of this type are not supported for embedding in Obsidian.");
|
||||
}
|
||||
return "!" + this.getMarkdownLink(filePath, false);
|
||||
};
|
||||
FileEmbeder.prototype.copyFile = function (sourcePath, targetDir) {
|
||||
try {
|
||||
fs__namespace.mkdirSync(targetDir, { recursive: true });
|
||||
var filename = path__namespace.basename(sourcePath);
|
||||
var destPath = path__namespace.join(targetDir, filename);
|
||||
fs__namespace.copyFileSync(sourcePath, destPath);
|
||||
return destPath;
|
||||
}
|
||||
catch (err) {
|
||||
console.error("Copy failed:", err);
|
||||
throw new Error("File copy failed: ".concat(err.message));
|
||||
}
|
||||
};
|
||||
FileEmbeder.prototype.getPathInformation = function (filePath) {
|
||||
var normalizedPath = path__namespace.normalize(filePath);
|
||||
var parsedPath = path__namespace.parse(normalizedPath);
|
||||
return {
|
||||
fullPath: normalizedPath,
|
||||
dir: parsedPath.dir,
|
||||
filename: parsedPath.base,
|
||||
name: parsedPath.name,
|
||||
ext: parsedPath.ext
|
||||
};
|
||||
};
|
||||
FileEmbeder.prototype.getMarkdownLink = function (filePath, printPrefix) {
|
||||
var pathInfo = this.getPathInformation(filePath);
|
||||
var prefix = printPrefix ? this.settings.linkPrefix : "";
|
||||
var linkText = pathInfo.name;
|
||||
if (this.settings.linkFolder) {
|
||||
linkText = pathInfo.dir;
|
||||
}
|
||||
if (this.settings.showFileEnding) {
|
||||
linkText = pathInfo.filename;
|
||||
}
|
||||
var linkPath = this.settings.linkFolder
|
||||
? pathInfo.dir
|
||||
: pathInfo.fullPath;
|
||||
return this.formatMarkdownLink(prefix, linkText, linkPath);
|
||||
};
|
||||
FileEmbeder.prototype.formatMarkdownLink = function (prefix, text, path) {
|
||||
var space = prefix && prefix !== "!" ? " " : "";
|
||||
return "".concat(prefix).concat(space, "[").concat(text, "](<file:///").concat(path, ">)\n");
|
||||
};
|
||||
return FileEmbeder;
|
||||
}());
|
||||
|
||||
var FileLinkModal = /** @class */ (function (_super) {
|
||||
__extends(FileLinkModal, _super);
|
||||
function FileLinkModal(app, plugin) {
|
||||
var _this = _super.call(this, app) || this;
|
||||
_this.filePaths = [];
|
||||
_this.plugin = plugin;
|
||||
return _this;
|
||||
}
|
||||
FileLinkModal.prototype.onOpen = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var contentEl, mainContainer, fileSelectionSection, fileButton, checkboxContainer, createCheckboxGroup, checkboxEmbed, checkboxFileFolder, checkboxFileEnding, buttonContainer, submitButton;
|
||||
var _this = this;
|
||||
return __generator(this, function (_a) {
|
||||
contentEl = this.contentEl;
|
||||
mainContainer = contentEl.createEl("div", {
|
||||
cls: "bfl-container"
|
||||
});
|
||||
fileSelectionSection = mainContainer.createEl("div", {
|
||||
cls: "bfl-selection-section"
|
||||
});
|
||||
fileButton = fileSelectionSection.createEl("button", {
|
||||
text: "Select files",
|
||||
cls: "mod-cta"
|
||||
});
|
||||
this.selectedFilesDiv = fileSelectionSection.createEl("div", {
|
||||
cls: "bfl-selected-files"
|
||||
});
|
||||
this.displaySelectedFiles([]);
|
||||
checkboxContainer = mainContainer.createEl("div", {
|
||||
cls: "bfl-checkbox-container"
|
||||
});
|
||||
createCheckboxGroup = function (id, label, initialValue) {
|
||||
var wrapper = checkboxContainer.createEl("div", {
|
||||
cls: "bfl-checkbox-group"
|
||||
});
|
||||
var checkbox = wrapper.createEl("input", {
|
||||
type: "checkbox",
|
||||
attr: {
|
||||
id: id,
|
||||
style: "margin: 0;"
|
||||
}
|
||||
});
|
||||
wrapper.createEl("label", {
|
||||
text: label,
|
||||
attr: {
|
||||
"for": id,
|
||||
style: "margin: 0; user-select: none;"
|
||||
}
|
||||
});
|
||||
checkbox.checked = initialValue;
|
||||
return checkbox;
|
||||
};
|
||||
checkboxEmbed = createCheckboxGroup("embed", "Embed file", this.plugin.settings.embedFile);
|
||||
checkboxFileFolder = createCheckboxGroup("file-folder", "Link folder", this.plugin.settings.linkFolder);
|
||||
checkboxFileEnding = createCheckboxGroup("file-ending", "Show file extension", this.plugin.settings.showFileEnding);
|
||||
buttonContainer = mainContainer.createEl("div", {
|
||||
cls: "button-container",
|
||||
attr: {
|
||||
style: "margin-top: 5px;"
|
||||
}
|
||||
});
|
||||
submitButton = buttonContainer.createEl("button", {
|
||||
text: "Add file link",
|
||||
cls: "mod-cta"
|
||||
});
|
||||
fileButton.addEventListener("click", function () { return __awaiter(_this, void 0, void 0, function () {
|
||||
var d, result, error_1;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
d = require("electron").remote.dialog;
|
||||
_a.label = 1;
|
||||
case 1:
|
||||
_a.trys.push([1, 3, , 4]);
|
||||
return [4 /*yield*/, d.showOpenDialog({
|
||||
properties: ["openFile", "multiSelections"],
|
||||
filters: [{ name: "All Files", extensions: ["*"] }]
|
||||
})];
|
||||
case 2:
|
||||
result = _a.sent();
|
||||
if (!result.canceled && result.filePaths.length > 0) {
|
||||
this.filePaths = result.filePaths;
|
||||
this.displaySelectedFiles(this.filePaths);
|
||||
}
|
||||
return [3 /*break*/, 4];
|
||||
case 3:
|
||||
error_1 = _a.sent();
|
||||
new obsidian.Notice("Error selecting files: " + error_1.message);
|
||||
return [3 /*break*/, 4];
|
||||
case 4: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
}); });
|
||||
submitButton.addEventListener("click", function () {
|
||||
if (_this.filePaths.length > 0) {
|
||||
// Update settings
|
||||
_this.plugin.settings.linkFolder = checkboxFileFolder.checked;
|
||||
_this.plugin.settings.showFileEnding = checkboxFileEnding.checked;
|
||||
_this.plugin.settings.embedFile = checkboxEmbed.checked;
|
||||
var fe_1 = new FileEmbeder(_this.plugin.settings);
|
||||
if (checkboxEmbed.checked) {
|
||||
_this.filePaths.forEach(function (file) {
|
||||
var embedMarkdownLink = fe_1.getEmbedMarkdownLink(file);
|
||||
_this.addAtCursor(embedMarkdownLink);
|
||||
});
|
||||
}
|
||||
else {
|
||||
var linkString_1 = "";
|
||||
_this.filePaths.forEach(function (file) {
|
||||
linkString_1 += fe_1.getMarkdownLink(file, _this.filePaths.length > 1);
|
||||
});
|
||||
_this.addAtCursor(linkString_1);
|
||||
}
|
||||
_this.close();
|
||||
new obsidian.Notice("Added ".concat(_this.filePaths.length, " file link(s)"));
|
||||
}
|
||||
else {
|
||||
new obsidian.Notice("No files selected");
|
||||
}
|
||||
});
|
||||
return [2 /*return*/];
|
||||
});
|
||||
});
|
||||
};
|
||||
FileLinkModal.prototype.displaySelectedFiles = function (files) {
|
||||
this.selectedFilesDiv.empty();
|
||||
if (files.length === 0) {
|
||||
this.selectedFilesDiv.createEl("p", {
|
||||
text: "No files selected",
|
||||
cls: "no-files-message",
|
||||
attr: {
|
||||
style: "color: var(--text-muted); font-style: italic; margin: 0; padding: 8px;"
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
var fileList = this.selectedFilesDiv.createEl("ul", {
|
||||
cls: "selected-files-list",
|
||||
attr: {
|
||||
style: "list-style: none; padding: 0; margin: 0;"
|
||||
}
|
||||
});
|
||||
files.forEach(function (filePath) {
|
||||
var fileName = filePath.split(/[\\/]/).pop() || filePath;
|
||||
fileList.createEl("li", {
|
||||
text: fileName,
|
||||
cls: "selected-file-item",
|
||||
attr: {
|
||||
style: "padding: 4px 8px; border-bottom: 1px solid var(--background-modifier-border);"
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
FileLinkModal.prototype.addAtCursor = function (s) {
|
||||
var markdownView = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView);
|
||||
if (markdownView) {
|
||||
var editor = markdownView.editor;
|
||||
var currentLine = editor.getCursor();
|
||||
editor.replaceRange(s, currentLine, currentLine);
|
||||
}
|
||||
};
|
||||
FileLinkModal.prototype.onClose = function () {
|
||||
var contentEl = this.contentEl;
|
||||
contentEl.empty();
|
||||
};
|
||||
return FileLinkModal;
|
||||
}(obsidian.Modal));
|
||||
|
||||
var FileLink = /** @class */ (function (_super) {
|
||||
__extends(FileLink, _super);
|
||||
function FileLink() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
FileLink.prototype.onload = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var _this = this;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
console.log("loading plugin file-link");
|
||||
return [4 /*yield*/, this.loadSettings()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
this.addSettingTab(new FileLinkSettingTab(this.app, this));
|
||||
this.addCommand({
|
||||
id: "add-file-link",
|
||||
name: "Add File Link",
|
||||
editorCallback: function () {
|
||||
new FileLinkModal(_this.app, _this).open();
|
||||
}
|
||||
});
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
FileLink.prototype.onunload = function () {
|
||||
console.log("unloading plugin file-link");
|
||||
};
|
||||
FileLink.prototype.loadSettings = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var _a, _b, _c, _d;
|
||||
return __generator(this, function (_e) {
|
||||
switch (_e.label) {
|
||||
case 0:
|
||||
_a = this;
|
||||
_c = (_b = Object).assign;
|
||||
_d = [{}, DEFAULT_SETTINGS];
|
||||
return [4 /*yield*/, this.loadData()];
|
||||
case 1:
|
||||
_a.settings = _c.apply(_b, _d.concat([_e.sent()]));
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
FileLink.prototype.saveSettings = function () {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.saveData(this.settings)];
|
||||
case 1:
|
||||
_a.sent();
|
||||
return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return FileLink;
|
||||
}(obsidian.Plugin));
|
||||
|
||||
module.exports = FileLink;
|
||||
|
||||
|
||||
/* nosourcemap */
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"id": "obsidian-file-link",
|
||||
"name": "Better File Link",
|
||||
"version": "1.2.1",
|
||||
"minAppVersion": "1.7.7",
|
||||
"description": "A plugin to add better external file links to notes.",
|
||||
"author": "Marc Julian Schwarz",
|
||||
"authorUrl": "https://www.marc-julian.de",
|
||||
"isDesktopOnly": true
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
.bfl-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.bfl-selection-section {
|
||||
|
||||
}
|
||||
|
||||
.bfl-selected-files {
|
||||
margin-top: 10px;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
|
||||
.bfl-checkbox-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.bfl-checkbox-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
#提纲类
|
||||
- 主旨:整个笔记应该是一种“记忆的呈现”,以及“必要信息“的积累。
|
||||
- 但是所谓的”必要信息“是否还必要值得商榷。因为诸如秘塔这类的搜索只需要很短的时间就可以搜索出答案,笔记中的”必要信息”到底是否还需要?
|
||||
- ==所以笔记更主要负责一种记忆的呈现,让人快速回忆起之前经历的事情以正确的快速复用。本质上是说,笔记中的内容是我已经学会的东西,为了使大脑快速重新激活而准备的材料。==
|
||||
|
||||
- 组成 使用para方法
|
||||
- Project 有时有终的任务叫做项目,笔记中重点记录“过程”,“心得”,“备忘”
|
||||
- 快速信息
|
||||
- 整理
|
||||
- 笔记类整理
|
||||
- [x] 整合老obsidian ✅ 2025-03-02
|
||||
- [ ] 整合Onenote
|
||||
- [x] 整合Wiznote ✅ 2025-04-17
|
||||
- [ ] 文件类整理
|
||||
- [ ] 回忆上次整理的结果
|
||||
- [ ] 整合网盘文件,等待被引用
|
||||
- [ ] 照片整理
|
||||
- [ ] 硬盘
|
||||
- 上班
|
||||
- Area 应该更多是主观输出的内容或者是对内容的再整理,客观的内容放到Resource中
|
||||
- 1 个人管理 Excel
|
||||
- 财物管理
|
||||
- 资金管理
|
||||
- 物品管理
|
||||
- 事务管理
|
||||
- 消费
|
||||
- 电子
|
||||
- 衣
|
||||
- 食
|
||||
- 住
|
||||
- 行
|
||||
- 2 计算机技术
|
||||
- Linux工具
|
||||
- 3 外语
|
||||
- 4 经济学
|
||||
- 5 文学影视艺术
|
||||
- 6 历史人文地理
|
||||
- Resource
|
||||
- 个人相关
|
||||
- 整理获取方法?
|
||||
- Archive 暂时先当作垃圾箱
|
|
@ -0,0 +1,25 @@
|
|||
- 笔记类整理
|
||||
- [ ] 整合老obsidian ✅ 2025-03-02
|
||||
- [ ] 整合Onenote
|
||||
- [ ] 01 个人 ✅ 2025-06-08
|
||||
- [ ] 总体
|
||||
- [ ] 02 技术! 组织结构调整
|
||||
- [ ] 面试八股
|
||||
- [ ] Linux x
|
||||
- [ ] 读书笔记
|
||||
- [ ] 工具使用/Utils
|
||||
- [ ] 编程
|
||||
- [x] 03 外语 ✅ 2025-06-08
|
||||
- [x] 04 经济 ✅ 2025-06-08
|
||||
- [x] 05 文学影视艺术 ✅ 2025-06-08
|
||||
- [x] 06 人文历史地理 ✅ 2025-06-08
|
||||
- [ ] 07 游戏
|
||||
- [ ] 整合Wiznote ✅ 2025-04-17
|
||||
- [ ] 文件类整理
|
||||
- [ ] 回忆上次整理的结果
|
||||
- [ ] 整合网盘文件,等待被引用
|
||||
- [ ] 百度网盘
|
||||
- [ ] 阿里云盘
|
||||
- [ ] 夸克
|
||||
- [ ] 照片整理
|
||||
- [ ] 离线硬盘
|
|
@ -1,2 +1,2 @@
|
|||
- [https://xkczb.jtw.beijing.gov.cn/](https://xkczb.jtw.beijing.gov.cn/)
|
||||
- 18618264842
|
||||
- 18618264842 A@2
|
|
@ -1,13 +1,14 @@
|
|||
- 网盘类
|
||||
- 阿里云盘 2025.5
|
||||
- 百度网盘 2025.5
|
||||
- OneDrive 2025.6
|
||||
- 视频类
|
||||
- Bilibili 2025.6
|
||||
- QQ音乐 2025.5
|
||||
- 购物类
|
||||
- 京东 2025.6
|
||||
- 淘宝 2025.6
|
||||
- 通信
|
||||
- 宽带 2025.6
|
||||
- Bitznet 2025.5
|
||||
|
||||
| 类别 | 名称 | 过期日期 | 价格 |
|
||||
| --- | -------- | ------- | --- |
|
||||
| 网盘 | 阿里云盘 | 2026.5 | |
|
||||
| | 夸克云盘 | 2026.5 | |
|
||||
| | Onedrive | ? | |
|
||||
| | 百度云盘 | 停止 | |
|
||||
| 购物类 | 京东 | 2026.6 | |
|
||||
| | 淘宝 | | |
|
||||
| 通信 | 宽带 | 2026.5 | |
|
||||
| | 云主机 | 2026.1 | |
|
||||
| | 梯子 | 2025.11 | |
|
||||
| 视频类 | Blibili | | |
|
||||
| | QQ音乐 | 随京东 | |
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
- 私行 / 券商 / 信托公司
|
||||
- 私募
|
||||
- 诚奇
|
||||
- 白鹭
|
||||
- 思勰
|
||||
- 结构性存款
|
||||
- 收益凭证
|
||||
- 中证500或者黄金对赌
|
||||
|
||||
- 非标 非标准化产品,场外交易 8%-9%固定收益 目前大家不看好!不能投!
|
||||
- 种类
|
||||
- 房地产 抵质押物
|
||||
- 政府平台 政府信用
|
||||
- 原因
|
||||
- 监管原因,表内不允许投给房地产,所以房地产公司通过信托来发贷款
|
||||
- 家族信托
|
||||
- 门槛 1000万
|
||||
|
||||
- 债券
|
||||
- 市场中性策略
|
||||
- 量化选股
|
||||
- 目标跑赢指数
|
||||
- 量化选股 而非主观选股
|
||||
- 对冲
|
||||
- 沽空股指期权
|
||||
|
||||
- 套利策略
|
||||
- 量化的
|
||||
- 价格波动偏差
|
||||
- 比如期货与现货的价格偏差
|
||||
- CTA策略
|
||||
- 商品投资顾问 开始并不是量化
|
||||
- 流派
|
||||
- 系统化交易
|
||||
- 主观化交易
|
||||
- 分析
|
||||
- 基本面分析
|
||||
- 技术面分析
|
||||
- 道氏理论 定义市场趋势的基本理论模型
|
||||
- 主要趋势
|
||||
- 二级趋势
|
||||
- 短期趋势
|
||||
- 指标理论 利用价值数据计算出的一些数据指标,用以衡量市场情况的理论工具
|
||||
- 均线指标 例如MACD
|
||||
- 波动指标 ATR
|
||||
- 重叠指标
|
||||
- 成交量指标
|
||||
- 波浪理论 认为市场走势不断重复一种模式,每一个周期由5个上升浪和3个下跌浪组成
|
||||
- 理论
|
||||
- 技术指标理论
|
||||
- 信息重演和统计视野
|
||||
- 特点
|
||||
- 与市场价值相关性不高
|
||||
- 小亏巨胜的盈利方式
|
||||
- 策略可以有比较大的容量
|
||||
- 利用市场波动获取利润
|
||||
- 盈利
|
||||
- 来源
|
||||
- 策略信号利润
|
||||
- 降低风险承受概率
|
||||
- 快速策略反应
|
||||
- 交易成本控制
|
||||
- 降低资金成本
|
||||
- 原理
|
||||
- 肥尾效应
|
||||
- 指数增强策略
|
||||
- 雪球
|
||||
- ?
|
|
@ -0,0 +1,21 @@
|
|||
证据里提到最多的信息点有几个:作者是肯·福莱特(几乎每条都提),包含《巨人的陨落》《世界的凛冬》《永恒的边缘》
|
||||
|
||||
- 英国
|
||||
- 党派 自由派/保守派
|
||||
- 宗教 (圣公宗)
|
||||
- 人物
|
||||
- 费茨伯爵家
|
||||
- 菲茨伯爵
|
||||
- 茉黛 菲茨的妹妹
|
||||
- 矿工威廉姆斯家
|
||||
- 艾瑟尔 威廉姆斯
|
||||
- 比利 威廉姆斯
|
||||
- 德国
|
||||
- 人物
|
||||
- 沃尔特 冯 乌尔里希
|
||||
- 罗伯特 冯 乌尔里希(奥地利)
|
||||
- 俄国
|
||||
- 人物
|
||||
- 格雷戈里 别斯科夫
|
||||
- 卡捷琳娜
|
||||
- 列夫 别斯科夫 (去美国了)
|
|
@ -0,0 +1,91 @@
|
|||
- 帖木儿帝国 1370-1507 铁
|
||||
帖木儿 -1405
|
||||
- 突厥人/蒙古人
|
||||
- 娶了黄金家族的女人
|
||||
- 起源于东察合台汗国
|
||||
|
||||
- 打赢金帐汗国 脱脱迷失
|
||||
|
||||
- 打赢印度 1398
|
||||
|
||||
- 打赢奥斯曼 1402
|
||||
|
||||
- 儿子们
|
||||
|
||||
- 贾汗吉尔 死的早
|
||||
|
||||
- 皮儿马黑麻 长子 被指定继承王位
|
||||
|
||||
- 乌马儿 也战死了
|
||||
|
||||
- 米兰沙 是个精神病
|
||||
|
||||
- 哈利勒
|
||||
|
||||
- 镇守大不里士 战死
|
||||
|
||||
- 沙哈鲁 仁慈之主
|
||||
|
||||
|
||||
- 哈利勒
|
||||
|
||||
- 击败了皮儿马黑麻
|
||||
|
||||
- 丢失了帝国西部领土 黑羊王朝
|
||||
|
||||
- 米兰达占死
|
||||
|
||||
- 被沙哈鲁拿走
|
||||
|
||||
- 沙哈鲁 -1447 70岁
|
||||
|
||||
- 击败黑羊王朝
|
||||
|
||||
- 儿子们
|
||||
|
||||
- 乌鲁伯
|
||||
|
||||
- 兀鲁伯
|
||||
|
||||
- 儿子们
|
||||
|
||||
- 阿卜杜拉·迪卜 长子 弑父
|
||||
|
||||
- 阿卜杜拉·迪卜 7个月被暗杀
|
||||
|
||||
- 同期巴芭尔格局
|
||||
|
||||
- 卜赛因
|
||||
|
||||
- 米兰达的孙子
|
||||
|
||||
- 又基本统一了帝国
|
||||
|
||||
- 帮黑羊攻打白羊时被俘虏
|
||||
|
||||
- 巴布尔 (莫卧儿 什叶派 萨菲王朝)
|
||||
|
||||
|
||||
|
||||
- 乌兹别克斯坦汗国 1428-1471 ?
|
||||
|
||||
- 阿布海尔 1412
|
||||
|
||||
- 转化为 -> 布哈拉 希瓦 浩罕
|
||||
|
||||
- 布哈拉汗国 1500 - 1602 [昔班尼王朝简史——前传:蓝帐汗国与阿布海尔汗 - 哔哩哔哩 (bilibili.com)](https://www.bilibili.com/read/cv4799056/)
|
||||
|
||||
- 昔班尼
|
||||
|
||||
- 最后演化为乌兹别克斯坦
|
||||
|
||||
|
||||
- 哈萨克汗国
|
||||
|
||||
- 东察合台汗国
|
||||
|
||||
- 卫拉特
|
||||
|
||||
- 也先
|
||||
|
||||
- 阿失帖木儿
|
|
@ -0,0 +1,157 @@
|
|||
地名
|
||||
|
||||
卢克索 Luxor
|
||||
|
||||
西奈(Sinai)
|
||||
|
||||
阿布·辛拜勒(Abu Simbel)
|
||||
|
||||
时间:
|
||||
|
||||
前王朝时期(约公元前5000—约公元前3150年)
|
||||
|
||||
巴达里文化(约公元前5000—约公元前4000年) Tasian-Badarian 塔萨-巴达里
|
||||
|
||||
涅伽达文化I(约公元前4000—约公元前3600年) Naqada
|
||||
|
||||
涅伽达文化II(约公元前3600—约公元前3200年)
|
||||
|
||||
涅伽达文化III(约公元前3200—约公元前3150年)
|
||||
|
||||
早王朝时期(约公元前3150—约公元前2686年) Early Dynastic Period
|
||||
|
||||
第0王朝(约公元前3150—约公元前3050年)
|
||||
|
||||
第1王朝(约公元前3050—约公元前2890年)
|
||||
|
||||
第2王朝(约公元前2890—约公元前2686年)
|
||||
|
||||
人物和神:
|
||||
|
||||
蝎子王(Scorpion King,约公元前3150年左右)
|
||||
|
||||
那尔迈(Narmer,第1王朝第一位国王据传)
|
||||
|
||||
第2王朝的第一位国王名字叫亥特普塞海姆威(Hotepsekhemwy,又译霍特普塞海姆威)
|
||||
|
||||
文物:
|
||||
|
||||
在希拉康坡里斯除了蝎子王的权标头外,还发现了那尔迈(Narmer,约公元前3100年左右)调色板和那尔迈权标头
|
||||
|
||||
早王朝时期最重要的墓地是阿拜多斯(Abydos)和萨卡拉(Saqara)
|
||||
|
||||
===========================================================================================================================
|
||||
|
||||
古王国时期(约公元前2686—约公元前2181年) The Old Kingdom 金字塔时期
|
||||
|
||||
第3王朝(约公元前2686—约公元前2613年)
|
||||
|
||||
第4王朝(约公元前2613—约公元前2498年)
|
||||
|
||||
第5王朝(约公元前2498—约公元前2345年)
|
||||
|
||||
第6王朝(约公元前2345—约公元前2181年)
|
||||
|
||||
人物:
|
||||
|
||||
第3王朝的最后一个国王是胡尼(Huni,约公元前2637—约公元前2613年在位)
|
||||
|
||||
胡夫(Khufu,约公元前2589—约公元前2566年在位)在历史上以其大金字塔而闻名于世。他是第4王朝的第二个国王。
|
||||
|
||||
他的两个儿子杰德夫拉(Djedefre,约公元前2566—约公元前2558年在位)和哈夫拉(Khafre,约公元前2558—约公元前2532年在位)先后继承了埃及王位
|
||||
|
||||
特悌(Teti,又译特提,约公元前2345—约公元前2333年在位)建立了一个新的王朝,即第6王朝
|
||||
|
||||
珀辟一世(Pepy I,又译佩皮一世,约公元前2332—约公元前2283年在位)是特悌的继承者
|
||||
|
||||
文物
|
||||
|
||||
弯曲的金字塔(Bent Pyramid)。 胡尼修建
|
||||
|
||||
孟考拉也修建了一座金字塔,该金字塔与胡夫大金字塔、哈夫拉金字塔组成了位于吉萨(Giza)3座最著名的金字塔群。
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
第一中间期(约公元前2181—约公元前2040年) The First Intermediate Period
|
||||
|
||||
第7、第8王朝(约公元前2181—约公元前2160年)
|
||||
|
||||
第9、第10王朝(约公元前2160—约公元前2040年)
|
||||
|
||||
=================================================================================================================================
|
||||
|
||||
中王国时期(约公元前2040—约公元前1782年) the Middle Kingdom
|
||||
|
||||
第11王朝(约公元前2134—约公元前1991年)
|
||||
|
||||
第12王朝(约公元前1991—约公元前1782年)
|
||||
|
||||
人物
|
||||
|
||||
统一后的中王国时期是以第11王朝的第四位国王孟图霍特普一世(Mentuhotep I,约公元前2061—约公元前2010年在位)
|
||||
|
||||
孟图霍特普二世(Mentuhotep II,约公元前2010—约公元前1998年在位)
|
||||
|
||||
阿蒙尼姆赫特(Amennemhet I,又译阿蒙涅姆赫特一世,约公元前1991—约公元前1962年在位)发动阴谋活动篡夺了王位,结束了第11王朝。
|
||||
|
||||
阿蒙尼姆赫特一世任命他的儿子塞奴斯里特一世(Senusret I,又译辛努塞尔特一世,约公元前1971—约公元前1926年在位)作为共同执政者
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
第二中间期(约公元前1782—约公元前1570年)
|
||||
|
||||
第13、第14王朝(约公元前1782—约公元前1650年)
|
||||
|
||||
第15、第16王朝(约公元前1663—约公元前1555年)
|
||||
|
||||
第17王朝(约公元前1663—约公元前1570年)
|
||||
|
||||
人物
|
||||
|
||||
文化
|
||||
|
||||
所谓喜克索斯人(Hyksos),即古埃及语“外国统治者”的希腊化转译,
|
||||
|
||||
他们还特别重视塞特神,因为塞特(Seth)神与喜克索斯本民族的巴奥(Baal)神非常相似。
|
||||
|
||||
=================================================================================================================================
|
||||
|
||||
新王国时期(约公元前1570—约公元前1070年)
|
||||
|
||||
第18王朝(约公元前1570—约公元前1293年)
|
||||
|
||||
第19王朝(约公元前1293—约公元前1185年)
|
||||
|
||||
第20王朝(约公元前1185—约公元前1070年)
|
||||
|
||||
第三中间期(约公元前1069—约公元前525年)
|
||||
|
||||
第21王朝(约公元前1069—约公元前945年)
|
||||
|
||||
第22王朝(约公元前945—约公元前715年)
|
||||
|
||||
第23王朝(约公元前818—约公元前715年)
|
||||
|
||||
第24王朝(约公元前727—约公元前720年)
|
||||
|
||||
第25王朝(约公元前747—约公元前656年)
|
||||
|
||||
第26王朝(公元前664—前525年)
|
||||
|
||||
后埃及时期(公元前525—前332年)
|
||||
|
||||
第27王朝(第一波斯王朝)(公元前525—前404年)
|
||||
|
||||
第28王朝(公元前404—前399年)
|
||||
|
||||
第29王朝(公元前399—前380年)
|
||||
|
||||
第30王朝(公元前380—前343年)
|
||||
|
||||
物品:
|
||||
|
||||
纸草(Papyrus)
|
||||
|
||||
其它:
|
||||
|
||||
英文pyramid,德文Pyramide,法文pyramide,都来自古希腊语pyramides,意思是“小麦饼”,因为金字塔的外形与古希腊人经常食用的呈三角形状的面饼非常相似。
|
|
@ -0,0 +1,34 @@
|
|||
曼斯菲尔德 史密斯 卡明爵士 37
|
||||
|
||||
英国人
|
||||
海军
|
||||
军情六处创始人
|
||||
卡明是妻子的姓氏
|
||||
费农凯尔 军情五处/英国安全局
|
||||
|
||||
蒂莫西 德克斯特 勋爵 36
|
||||
美国人
|
||||
幸运之子
|
||||
|
||||
乔治布莱克 33
|
||||
荷兰人
|
||||
军情六处/克格勃
|
||||
伊恩 弗莱明 《007》
|
||||
毛姆 《月亮与六便士》
|
||||
朝鲜被捕
|
||||
|
||||
贝坦尼 1950-2018 17
|
||||
英国人
|
||||
军情五处
|
||||
精希特勒
|
||||
贝尔法斯特
|
||||
|
||||
奥列格 俄国籍的英国间谍 布拉格之春之后
|
||||
尤尔琴科 - 13
|
||||
苏联人
|
||||
克格勃叛逃CIA又回到克格勃 保护埃姆斯
|
||||
奥尔德里奇 埃姆斯 美国人 是苏联潜藏在CIA的特工
|
||||
|
||||
梅特斯基 12
|
||||
美国人
|
||||
疯狂轰炸机
|
44
HOMEPAGE.md
44
HOMEPAGE.md
|
@ -1,9 +1,41 @@
|
|||
[[000整体看板]]
|
||||
常用文件
|
||||
- [[000整体看板]]
|
||||
|
||||
[[工作看板]]
|
||||
- 工作
|
||||
- [[工作看板]]
|
||||
- 工作日记
|
||||
- [[3月日记]]
|
||||
- [[4月日记]]
|
||||
- [[5月日记]]
|
||||
- 项目
|
||||
- [[进度|进度]]
|
||||
|
||||
[[3月日记]]
|
||||
[[4月日记]]
|
||||
[[5月日记]]
|
||||
-----------------------------------------------
|
||||
- 主旨:整个笔记应该是一种“记忆的呈现”,以及“必要信息“的积累。
|
||||
- 但是所谓的”必要信息“是否还必要值得商榷。因为诸如秘塔这类的搜索只需要很短的时间就可以搜索出答案,笔记中的”必要信息”到底是否还需要?
|
||||
- ==所以笔记更主要负责一种记忆的呈现,让人快速回忆起之前经历的事情以正确的快速复用。本质上是说,笔记中的内容是我已经学会的东西,为了使大脑快速重新激活而准备的材料。==
|
||||
- 组成 使用para方法
|
||||
|
||||
[[10-Project/101-vault框架搭建/提纲|提纲]]
|
||||
- Project **有时有终**的任务叫做项目,笔记中重点记录“过程”,“心得”,“备忘”
|
||||
- Area 应该更多是**主观输出**的内容或者是对内容的再整理,客观的内容放到Resource中
|
||||
- 1 个人管理
|
||||
- 财物管理
|
||||
- 资金管理
|
||||
- 物品管理
|
||||
- 事务管理
|
||||
- 消费
|
||||
- 电子
|
||||
- 衣
|
||||
- 食
|
||||
- 住
|
||||
- 行
|
||||
- 2 计算机技术
|
||||
- Linux工具
|
||||
- 3 外语
|
||||
- 4 经济学
|
||||
- 5 文学影视艺术
|
||||
- 6 历史人文地理
|
||||
- Resource **客观收集**,被主观输出应用
|
||||
- 个人相关
|
||||
- 整理获取方法?
|
||||
- Archive 暂时先当作**垃圾箱**或者**垃圾项目**
|
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Reference in New Issue