diff --git a/.obsidian/plugins/customizable-page-header-buttons/main.js b/.obsidian/plugins/customizable-page-header-buttons/main.js index 393c44fe..b86fc3d1 100644 --- a/.obsidian/plugins/customizable-page-header-buttons/main.js +++ b/.obsidian/plugins/customizable-page-header-buttons/main.js @@ -55,4 +55,4 @@ It is MIT-licensed: */ -var J=Object.create;var E=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty;var M=n=>E(n,"__esModule",{value:!0});var Z=(n,i)=>{M(n);for(var t in i)E(n,t,{get:i[t],enumerable:!0})},ee=(n,i,t)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of W(i))!Y.call(n,e)&&e!=="default"&&E(n,e,{get:()=>i[e],enumerable:!(t=Q(i,e))||t.enumerable});return n},T=n=>ee(M(E(n!=null?J(X(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var a=(n,i,t)=>new Promise((e,l)=>{var s=d=>{try{o(t.next(d))}catch(g){l(g)}},c=d=>{try{o(t.throw(d))}catch(g){l(g)}},o=d=>d.done?e(d.value):Promise.resolve(d.value).then(s,c);o((t=t.apply(n,i)).next())});Z(exports,{default:()=>D});var y=T(require("obsidian"));var u=T(require("obsidian"));var K=T(require("obsidian"));var v=T(require("obsidian"));var k=T(require("obsidian"));var q=["add-note-glyph","any-key","audio-file","blocks","bold-glyph","box-glyph","bracket-glyph","broken-link","bullet-list-glyph","bullet-list","calendar-glyph","calendar-with-checkmark","check-in-circle","check-small","checkbox-glyph","checkmark","clock-glyph","clock","cloud","code-glyph","command-glyph","compress-glyph","create-new","cross-in-box","cross","crossed-star","dice-glyph","dice","document","documents","dot-network","double-down-arrow-glyph","double-up-arrow-glyph","down-arrow-with-tail","down-chevron-glyph","down-curly-arrow-glyph","duplicate-glyph","enlarge-glyph","enter","exit-fullscreen","expand-vertically","file-explorer-glyph","filled-pin","folder","forward-arrow","fullscreen","gear","github-glyph","go-to-file","graph-glyph","hashtag","heading-glyph","help","highlight-glyph","horizontal-split","image-file","image-glyph","import-glyph","indent-glyph","info","install","italic-glyph","keyboard-glyph","languages","left-arrow-with-tail","left-arrow","left-chevron-glyph","lines-of-text","link-glyph","link","links-coming-in","links-going-out","logo-crystal","magnifying-glass","merge-files-glyph","merge-files","microphone-filled","microphone","minus-with-circle","navigate-glyph","note-glyph","number-list-glyph","open-elsewhere-glyph","open-vault","pane-layout","paper-plane-glyph","paper-plane","paste-text","paste","paused","pdf-file","pencil","percent-sign-glyph","pin","play-audio-glyph","plus-minus-glyph","plus-with-circle","popup-open","presentation-glyph","presentation","price-tag-glyph","question-mark-glyph","quote-glyph","reading-glasses","redo-glyph","reset","restore-file-glyph","right-arrow-with-tail","right-arrow","right-chevron-glyph","right-triangle","run-command","scissors-glyph","scissors","search-glyph","search","select-all-text","sheets-in-box","split","stacked-levels","star-glyph","star-list","star","stop-audio-glyph","strikethrough-glyph","switch","sync-small","sync","tag-glyph","three-horizontal-bars","tomorrow-glyph","trash","two-blank-pages","undo-glyph","unindent-glyph","up-and-down-arrows","up-arrow-with-tail","up-chevron-glyph","up-curly-arrow-glyph","uppercase-lowercase-a","vault","vertical-split","vertical-three-dots","wand-glyph","wand","workspace-glyph","wrench-screwdriver-glyph","yesterday-glyph"],r="page-header-button",w="titlebar-button",C="titlebar-center",S=[w,r];function te(n){return n.includes(":")?n.split(":")[1].trim():n}function O(){let n=24;return k.Platform.isMobile?n=24:k.Platform.isDesktop&&(n=18),n}function x(n,i,t,e,l,s="a"){let c=te(n),o=l.concat([i]),d=createEl(s,{cls:o,attr:{"aria-label-position":"bottom","aria-label":c}});return(0,k.setIcon)(d,t,e),d}function L(n){for(let i=n.length;i>=0;i--)n[i]&&n[i].remove()}function I(n,i,t){let e=n.getElementsByClassName(`${t} ${r} ${i}`);e[0]&&e[0].remove()}function H(){return document.getElementsByClassName("titlebar-text")[0].getText()}function f(n){let i=document.getElementsByClassName(`${r} ${C}`)[0];i!==void 0&&(i.classList.remove(r,C),i.addClass("titlebar-text"),i.innerHTML=n)}function b(){let i=A().getElementsByClassName(`${r} ${w}`);L(i)}function _(){let n=document.getElementsByClassName("titlebar-text")[0];return n.classList.remove("titlebar-text"),n.addClasses([r,C]),n.innerHTML="",n}function j(){let n=document.getElementsByClassName("workspace-leaf-content");for(let i=0;i0&&L(e)}}function R(n){let i=document.getElementsByClassName("workspace-leaf-content");for(let t=0;t0&&L(i)}function p(){let i=P().getElementsByClassName(r);i.length>0&&L(i)}function F(n){let i=z();I(i,n,w)}function U(n){let i=P();I(i,n,w)}function G(n){let i=A();I(i,n,w)}function z(){return document.getElementsByClassName("titlebar-button-container mod-left")[0]}function P(){return document.getElementsByClassName("titlebar-button-container mod-right")[0]}function A(){return document.getElementsByClassName(`${r} ${C}`)[0]}var m=class extends v.FuzzySuggestModal{constructor(i,t,e,l=-1){super(i.app);this.plugin=i,this.command=t,this.type=e,this.index=l,this.setPlaceholder("Please pick an icon")}cap(i){return i.split(" ").map(e=>e[0].toUpperCase()+e.substring(1)).join(" ")}getItems(){return this.plugin.iconList}getItemText(i){return this.cap(i.replace("lucide-","").replace(/-/gi," "))}renderSuggestion(i,t){t.addClass("CS-icon-container");let e=t.createDiv({cls:"CS-icon"});(0,v.setIcon)(e,i.item),super.renderSuggestion(i,t)}onChooseItem(i){return a(this,null,function*(){let{id:t,name:e}=this.command,{settings:l}=this.plugin,s=0;if(this.type==="page"){let c="both";this.index===-1?c="both":c=l.enabledButtons[this.index].showButtons;let o={id:t,icon:i,name:e,showButtons:c};this.index===-1?l.enabledButtons.push(o):(l.enabledButtons[this.index]=o,new v.Notice("This change will take effect for new panes only."))}else{let c={id:t,icon:i,name:e};if(this.index===-1)if(this.type==="title-left")l.titleLeft.push(c);else if(this.type==="title-right")l.titleRight.push(c);else{let o=l.titleCenter.length;o!==0&&(s=o),l.titleCenter.push(c)}else if(this.type==="title-left")l.titleLeft[this.index]=c;else if(this.type==="title-right")l.titleRight[this.index]=c;else{let o=l.titleCenter.length;o!==0&&(s=o),l.titleCenter[this.index]=c}}yield this.plugin.saveSettings(),this.type==="title-left"?(h(),this.plugin.addLeftTitleBarButtons()):this.type==="title-right"?(p(),this.plugin.addRightTitleBarButtons()):s===0?this.plugin.addInitialCenterTitleBarButtons():l.titleCenter.length===0?f(this.plugin.titlebarText):(b(),this.plugin.addCenterTitleBarButtons()),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)})}};var B=class extends K.FuzzySuggestModal{constructor(i,t){super(i.app);this.plugin=i,this.type=t}pushToSettings(i,t,e){e==="titleRight"||e==="titleLeft"||e==="titleCenter"?i[e].push({id:t.id,icon:t.icon,name:t.name}):i.enabledButtons.push({id:t.id,icon:t.icon,name:t.name,showButtons:"both"})}getItems(){return this.app.commands.listCommands()}getItemText(i){return i.name}onChooseItem(i,t){return a(this,null,function*(){let{settings:e}=this.plugin,l=0;if(i.icon!==void 0){if(this.type==="page")this.pushToSettings(e,i,"enabledSettings");else if(this.type==="title-left")this.pushToSettings(e,i,"titleLeft");else if(this.type==="title-right")this.pushToSettings(e,i,"titleRight");else{let s=this.plugin.settings.titleCenter.length;s!==0&&(l=s),this.pushToSettings(e,i,"titleCenter")}yield this.plugin.saveSettings(),this.type==="title-left"?(h(),this.plugin.addLeftTitleBarButtons()):this.type==="title-right"?(p(),this.plugin.addRightTitleBarButtons()):this.type==="title-center"&&(l===0?this.plugin.addInitialCenterTitleBarButtons():this.plugin.settings.titleCenter.length===0?f(this.plugin.titlebarText):(b(),this.plugin.addCenterTitleBarButtons())),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)}else new m(this.plugin,i,this.type).open()})}};var N=class extends u.PluginSettingTab{constructor(i,t){super(i,t);this.plugin=t,this.plugin.listener=()=>{this.display()},this.containerEl.addClass("page-header-button"),addEventListener("TopBar-addedCommand",this.plugin.listener)}display(){let{containerEl:i}=this,{settings:t}=this.plugin;i.empty(),i.createEl("h3",{text:"Page Header Buttons"}),i.createEl("p",{text:"The buttons are added in the order in which they are shown here. This only takes effect after a reload."}),new u.Setting(i).setName("Show buttons on desktop").setDesc("By default, the buttons will only be shown in Obsidian Mobile. It requires a reload after being toggled to take effect.").addToggle(e=>{e.setValue(t.desktop).onChange(l=>a(this,null,function*(){if(t.desktop=l,yield this.plugin.saveSettings(),this.display(),!l){for(let s of t.enabledButtons)s.showButtons="mobile";yield this.plugin.saveSettings()}}))}),new u.Setting(i).setName("Add Button").setDesc("Add a new button left to the switch edit/preview mode toggle.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"page").open()})}),this.app.plugins.plugins["pane-relief"]&&new u.Setting(i).setName("Pane Relief count").setDesc("Enable to show the pane relief count next to back/forward buttons. Needs a reload to take effect.").addToggle(e=>{e.setValue(t.paneRelief).onChange(l=>a(this,null,function*(){t.paneRelief=l,yield this.plugin.saveSettings()}))});for(let e=0;e{o.addOption("both","Add button for both mobile and desktop.").addOption("mobile","Add button only for mobile.").addOption("desktop","Add button only for desktop.").setValue(l.showButtons).onChange(d=>a(this,null,function*(){l.showButtons=d,t.enabledButtons[e]=l,yield this.plugin.saveSettings(),d==="desktop"&&u.Platform.isMobile?R(l.id):d==="mobile"&&u.Platform.isDesktop&&R(l.id)}))}),e>0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(()=>a(this,null,function*(){t.enabledButtons[e]=t.enabledButtons[e-1],t.enabledButtons[e-1]=l,yield this.plugin.saveSettings(),this.display()}))}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(()=>a(this,null,function*(){t.enabledButtons[e]=t.enabledButtons[e+1],t.enabledButtons[e+1]=l,yield this.plugin.saveSettings(),this.display()}))}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(()=>a(this,null,function*(){t.enabledButtons.remove(l),R(l.id),yield this.plugin.saveSettings(),this.display()}))}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let d=t.enabledButtons.findIndex(g=>g===l);new m(this.plugin,l,"page",d).open()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}if(u.Platform.isDesktopApp){i.createEl("br"),i.createEl("h3",{text:"Titlebar buttons"}),i.createEl("h4",{text:"Left titlebar"}),new u.Setting(i).setName("Add Button").setDesc("Add a new button right to the back/forward buttons.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-left").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(()=>a(this,null,function*(){t.titleLeft[e]=t.titleLeft[e-1],t.titleLeft[e-1]=l,yield this.plugin.saveSettings(),h(),this.plugin.addLeftTitleBarButtons(),this.display()}))}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(()=>a(this,null,function*(){t.titleLeft[e]=t.titleLeft[e+1],t.titleLeft[e+1]=l,yield this.plugin.saveSettings(),h(),this.plugin.addLeftTitleBarButtons(),this.display()}))}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(()=>a(this,null,function*(){t.titleLeft.remove(l),yield this.plugin.saveSettings(),F(l.id),this.display()}))}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let d=t.titleLeft.findIndex(g=>g===l);new m(this.plugin,l,"title-left",d).open(),h(),this.plugin.addLeftTitleBarButtons()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}i.createEl("h4",{text:"Right titlebar"}),new u.Setting(i).setName("Add Button").setDesc("Add a new button left to the minimize/maximize/close buttons.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-right").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(()=>a(this,null,function*(){t.titleRight[e]=t.titleRight[e-1],t.titleRight[e-1]=l,yield this.plugin.saveSettings(),p(),this.plugin.addRightTitleBarButtons(),this.display()}))}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(()=>a(this,null,function*(){t.titleRight[e]=t.titleRight[e+1],t.titleRight[e+1]=l,yield this.plugin.saveSettings(),p(),this.plugin.addRightTitleBarButtons(),this.display()}))}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(()=>a(this,null,function*(){t.titleRight.remove(l),yield this.plugin.saveSettings(),U(l.id),this.display()}))}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let d=t.titleRight.findIndex(g=>g===l);new m(this.plugin,l,"title-right",d).open(),p(),this.plugin.addRightTitleBarButtons()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}i.createEl("h4",{text:"Center titlebar"}),new u.Setting(i).setName("Add Button").setDesc("Add a new button to the center titlebar.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-center").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(()=>a(this,null,function*(){t.titleCenter[e]=t.titleCenter[e-1],t.titleCenter[e-1]=l,yield this.plugin.saveSettings(),b(),this.plugin.addCenterTitleBarButtons(),this.display()}))}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(()=>a(this,null,function*(){t.titleCenter[e]=t.titleCenter[e+1],t.titleCenter[e+1]=l,yield this.plugin.saveSettings(),b(),this.plugin.addCenterTitleBarButtons(),this.display()}))}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(()=>a(this,null,function*(){t.titleCenter.remove(l),yield this.plugin.saveSettings(),this.plugin.settings.titleCenter.length===0?f(this.plugin.titlebarText):G(l.id),this.display()}))}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let d=t.titleCenter.findIndex(g=>g===l);new m(this.plugin,l,"title-center",d).open()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}}}};var V=["lucide-activity","lucide-airplay","lucide-alarm-check","lucide-alarm-clock-off","lucide-alarm-clock","lucide-alarm-minus","lucide-alarm-plus","lucide-album","lucide-alert-circle","lucide-alert-octagon","lucide-alert-triangle","lucide-align-center-horizontal","lucide-align-center","lucide-align-center-vertical","lucide-align-end-horizontal","lucide-align-end-vertical","lucide-align-horizontal-distribute-center","lucide-align-horizontal-distribute-end","lucide-align-horizontal-distribute-start","lucide-align-horizontal-justify-center","lucide-align-horizontal-justify-end","lucide-align-horizontal-justify-start","lucide-align-horizontal-space-around","lucide-align-horizontal-space-between","lucide-align-justify","lucide-align-left","lucide-align-right","lucide-align-start-horizontal","lucide-align-start-vertical","lucide-align-vertical-distribute-center","lucide-align-vertical-distribute-end","lucide-align-vertical-distribute-start","lucide-align-vertical-justify-center","lucide-align-vertical-justify-end","lucide-align-vertical-justify-start","lucide-align-vertical-space-around","lucide-align-vertical-space-between","lucide-anchor","lucide-aperture","lucide-archive","lucide-arrow-big-down","lucide-arrow-big-left","lucide-arrow-big-right","lucide-arrow-big-up","lucide-arrow-down-circle","lucide-arrow-down-left","lucide-arrow-down-right","lucide-arrow-down","lucide-arrow-left-circle","lucide-arrow-left-right","lucide-arrow-left","lucide-arrow-right-circle","lucide-arrow-right","lucide-arrow-up-circle","lucide-arrow-up-left","lucide-arrow-up-right","lucide-arrow-up","lucide-asterisk","lucide-at-sign","lucide-award","lucide-axe","lucide-banknote","lucide-bar-chart-2","lucide-bar-chart","lucide-baseline","lucide-battery-charging","lucide-battery-full","lucide-battery-low","lucide-battery-medium","lucide-battery","lucide-beaker","lucide-bell-minus","lucide-bell-off","lucide-bell-plus","lucide-bell-ring","lucide-bell","lucide-bike","lucide-binary","lucide-bitcoin","lucide-bluetooth-connected","lucide-bluetooth-off","lucide-bluetooth-searching","lucide-bluetooth","lucide-bold","lucide-bookmark-minus","lucide-bookmark-plus","lucide-bookmark","lucide-book-open","lucide-book","lucide-bot","lucide-box-select","lucide-box","lucide-briefcase","lucide-brush","lucide-bug","lucide-building","lucide-bus","lucide-calculator","lucide-calendar","lucide-camera-off","lucide-camera","lucide-carrot","lucide-car","lucide-cast","lucide-check-circle-2","lucide-check-circle","lucide-check-square","lucide-check","lucide-chevron-down","lucide-chevron-first","lucide-chevron-last","lucide-chevron-left","lucide-chevron-right","lucide-chevrons-down","lucide-chevrons-down-up","lucide-chevrons-left","lucide-chevrons-right","lucide-chevrons-up-down","lucide-chevrons-up","lucide-chevron-up","lucide-chrome","lucide-circle-slashed","lucide-circle","lucide-clipboard-check","lucide-clipboard-copy","lucide-clipboard-list","lucide-clipboard","lucide-clipboard-x","lucide-clock-1","lucide-clock-2","lucide-clock-3","lucide-clock-4","lucide-clock-5","lucide-clock-6","lucide-clock-7","lucide-clock-8","lucide-clock-9","lucide-clock-10","lucide-clock-11","lucide-clock-12","lucide-clock","lucide-cloud-drizzle","lucide-cloud-fog","lucide-cloud-hail","lucide-cloud-lightning","lucide-cloud-moon","lucide-cloud-off","lucide-cloud-rain","lucide-cloud-rain-wind","lucide-cloud-snow","lucide-cloud-sun","lucide-cloud","lucide-cloudy","lucide-clover","lucide-code-2","lucide-codepen","lucide-codesandbox","lucide-code","lucide-coffee","lucide-coins","lucide-columns","lucide-command","lucide-compass","lucide-contact","lucide-contrast","lucide-cookie","lucide-copyleft","lucide-copyright","lucide-copy","lucide-corner-down-left","lucide-corner-down-right","lucide-corner-left-down","lucide-corner-left-up","lucide-corner-right-down","lucide-corner-right-up","lucide-corner-up-left","lucide-corner-up-right","lucide-cpu","lucide-credit-card","lucide-crop","lucide-crosshair","lucide-cross","lucide-crown","lucide-currency","lucide-database","lucide-delete","lucide-disc","lucide-divide-circle","lucide-divide-square","lucide-divide","lucide-dollar-sign","lucide-download-cloud","lucide-download","lucide-dribbble","lucide-droplets","lucide-droplet","lucide-drumstick","lucide-edit-2","lucide-edit-3","lucide-edit","lucide-egg","lucide-equal-not","lucide-equal","lucide-euro","lucide-expand","lucide-external-link","lucide-eye-off","lucide-eye","lucide-facebook","lucide-fast-forward","lucide-feather","lucide-figma","lucide-file-check-2","lucide-file-check","lucide-file-code","lucide-file-digit","lucide-file-input","lucide-file-minus-2","lucide-file-minus","lucide-file-output","lucide-file-plus-2","lucide-file-plus","lucide-file-search","lucide-files","lucide-file","lucide-file-text","lucide-file-x-2","lucide-file-x","lucide-film","lucide-filter","lucide-flag","lucide-flag-triangle-left","lucide-flag-triangle-right","lucide-flame","lucide-flashlight-off","lucide-flashlight","lucide-flask-conical","lucide-flask-round","lucide-folder-minus","lucide-folder-open","lucide-folder-plus","lucide-folder","lucide-form-input","lucide-forward","lucide-framer","lucide-frown","lucide-function-square","lucide-gamepad-2","lucide-gamepad","lucide-gauge","lucide-gavel","lucide-gem","lucide-ghost","lucide-gift","lucide-git-branch-plus","lucide-git-branch","lucide-git-commit","lucide-github","lucide-gitlab","lucide-git-merge","lucide-git-pull-request","lucide-glasses","lucide-globe-2","lucide-globe","lucide-grab","lucide-graduation-cap","lucide-grid","lucide-grip-horizontal","lucide-grip-vertical","lucide-hammer","lucide-hand-metal","lucide-hand","lucide-hard-drive","lucide-hard-hat","lucide-hash","lucide-haze","lucide-headphones","lucide-heart","lucide-help-circle","lucide-hexagon","lucide-highlighter","lucide-history","lucide-home","lucide-image-minus","lucide-image-off","lucide-image-plus","lucide-image","lucide-import","lucide-inbox","lucide-indent","lucide-indian-rupee","lucide-infinity","lucide-info","lucide-inspect","lucide-instagram","lucide-italic","lucide-japanese-yen","lucide-keyboard","lucide-key","lucide-landmark","lucide-languages","lucide-laptop-2","lucide-laptop","lucide-lasso-select","lucide-lasso","lucide-layers","lucide-layout-dashboard","lucide-layout-grid","lucide-layout-list","lucide-layout","lucide-layout-template","lucide-library","lucide-life-buoy","lucide-lightbulb-off","lucide-lightbulb","lucide-link-2-off","lucide-link-2","lucide-linkedin","lucide-link","lucide-list-checks","lucide-list-minus","lucide-list-ordered","lucide-list-plus","lucide-list","lucide-list-x","lucide-loader-2","lucide-loader","lucide-locate-fixed","lucide-locate-off","lucide-locate","lucide-lock","lucide-log-in","lucide-log-out","lucide-mail","lucide-map-pin","lucide-map","lucide-maximize-2","lucide-maximize","lucide-megaphone","lucide-meh","lucide-menu","lucide-message-circle","lucide-message-square","lucide-mic-off","lucide-mic","lucide-minimize-2","lucide-minimize","lucide-minus-circle","lucide-minus-square","lucide-minus","lucide-monitor-off","lucide-monitor-speaker","lucide-monitor","lucide-moon","lucide-more-horizontal","lucide-more-vertical","lucide-mountain-snow","lucide-mountain","lucide-mouse-pointer-2","lucide-mouse-pointer-click","lucide-mouse-pointer","lucide-move-diagonal-2","lucide-move-diagonal","lucide-move-horizontal","lucide-move","lucide-move-vertical","lucide-music","lucide-navigation-2","lucide-navigation","lucide-network","lucide-octagon","lucide-option","lucide-outdent","lucide-package-check","lucide-package-minus","lucide-package-plus","lucide-package-search","lucide-package","lucide-package-x","lucide-palette","lucide-palmtree","lucide-paperclip","lucide-pause-circle","lucide-pause-octagon","lucide-pause","lucide-pencil","lucide-pen-tool","lucide-percent","lucide-person-standing","lucide-phone-call","lucide-phone-forwarded","lucide-phone-incoming","lucide-phone-missed","lucide-phone-off","lucide-phone-outgoing","lucide-phone","lucide-pie-chart","lucide-piggy-bank","lucide-pin","lucide-pipette","lucide-plane","lucide-play-circle","lucide-play","lucide-plug-zap","lucide-plus-circle","lucide-plus-square","lucide-plus","lucide-pocket","lucide-podcast","lucide-pointer","lucide-pound-sterling","lucide-power-off","lucide-power","lucide-printer","lucide-qr-code","lucide-quote","lucide-radio-receiver","lucide-radio","lucide-redo","lucide-refresh-ccw","lucide-refresh-cw","lucide-regex","lucide-repeat-1","lucide-repeat","lucide-reply-all","lucide-reply","lucide-rewind","lucide-rocking-chair","lucide-rotate-ccw","lucide-rotate-cw","lucide-rss","lucide-ruler","lucide-russian-ruble","lucide-save","lucide-scale","lucide-scan-line","lucide-scan","lucide-scissors","lucide-screen-share-off","lucide-screen-share","lucide-search","lucide-send","lucide-separator-horizontal","lucide-separator-vertical","lucide-server-crash","lucide-server-off","lucide-server","lucide-settings-2","lucide-settings","lucide-share-2","lucide-share","lucide-sheet","lucide-shield-alert","lucide-shield-check","lucide-shield-close","lucide-shield-off","lucide-shield","lucide-shirt","lucide-shopping-bag","lucide-shopping-cart","lucide-shovel","lucide-shrink","lucide-shuffle","lucide-sidebar-close","lucide-sidebar-open","lucide-sidebar","lucide-sigma","lucide-signal-high","lucide-signal-low","lucide-signal-medium","lucide-signal","lucide-signal-zero","lucide-skip-back","lucide-skip-forward","lucide-skull","lucide-slack","lucide-slash","lucide-sliders","lucide-smartphone-charging","lucide-smartphone","lucide-smile","lucide-snowflake","lucide-sort-asc","lucide-sort-desc","lucide-speaker","lucide-sprout","lucide-square","lucide-star-half","lucide-star","lucide-stop-circle","lucide-stretch-horizontal","lucide-stretch-vertical","lucide-strikethrough","lucide-subscript","lucide-sunrise","lucide-sunset","lucide-sun","lucide-superscript","lucide-swiss-franc","lucide-switch-camera","lucide-table","lucide-tablet","lucide-tag","lucide-target","lucide-tent","lucide-terminal-square","lucide-terminal","lucide-text-cursor-input","lucide-text-cursor","lucide-thermometer-snowflake","lucide-thermometer-sun","lucide-thermometer","lucide-thumbs-down","lucide-thumbs-up","lucide-ticket","lucide-timer-off","lucide-timer-reset","lucide-timer","lucide-toggle-left","lucide-toggle-right","lucide-tornado","lucide-trash-2","lucide-trash","lucide-trello","lucide-trending-down","lucide-trending-up","lucide-triangle","lucide-truck","lucide-tv-2","lucide-tv","lucide-twitch","lucide-twitter","lucide-type","lucide-umbrella","lucide-underline","lucide-undo","lucide-unlink-2","lucide-unlink","lucide-unlock","lucide-upload-cloud","lucide-upload","lucide-user-check","lucide-user-minus","lucide-user-plus","lucide-users","lucide-user","lucide-user-x","lucide-verified","lucide-vibrate","lucide-video-off","lucide-video","lucide-view","lucide-voicemail","lucide-volume-1","lucide-volume-2","lucide-volume","lucide-volume-x","lucide-wallet","lucide-wand","lucide-watch","lucide-waves","lucide-webcam","lucide-wifi-off","lucide-wifi","lucide-wind","lucide-wrap-text","lucide-wrench","lucide-x-circle","lucide-x-octagon","lucide-x-square","lucide-x","lucide-youtube","lucide-zap-off","lucide-zap","lucide-zoom-in","lucide-zoom-out"];var ie={enabledButtons:[],desktop:!1,titleLeft:[],titleRight:[],titleCenter:[],paneRelief:!1},D=class extends y.Plugin{constructor(){super(...arguments);this.iconList=q.concat(V)}addPageHeaderButton(i,t){let{id:e,icon:l,name:s}=t,c=O(),d=x(s,e,l,c,["view-action",r]);this.settings.paneRelief&&(e==="app:go-forward"||e==="app:go-back")&&d.addClass("pane-relief"),i.prepend(d),this.registerDomEvent(d,"click",()=>{setTimeout(()=>this.app.commands.executeCommandById(e),5)})}addLeftTitleBarButton(i,t){let{id:e,icon:l,name:s}=t,o=x(s,e,l,15,S,"div");i.append(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addRightTitleBarButton(i,t){let{id:e,icon:l,name:s}=t,o=x(s,e,l,15,S,"div");i.prepend(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addCenterTitleBarButton(i,t){let{id:e,icon:l,name:s}=t,o=x(s,e,l,15,S,"div");i.append(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addLeftTitleBarButtons(){if(this.settings.titleLeft.length>0){let i=z();for(let t of this.settings.titleLeft)this.addLeftTitleBarButton(i,t)}}addRightTitleBarButtons(){if(this.settings.titleRight.length>0){let i=P();for(let t=this.settings.titleRight.length-1;t>=0;t--)this.addRightTitleBarButton(i,this.settings.titleRight[t])}}addInitialCenterTitleBarButtons(){if(this.settings.titleCenter.length>0){let i=_();for(let t of this.settings.titleCenter)this.addCenterTitleBarButton(i,t)}}addCenterTitleBarButtons(){if(this.settings.titleCenter.length>0){let i=A();for(let t of this.settings.titleCenter)this.addCenterTitleBarButton(i,t)}}onload(){return a(this,null,function*(){console.log("loading Customizable Page Header Plugin"),yield this.loadSettings(),this.addSettingTab(new N(this.app,this)),this.app.workspace.onLayoutReady(()=>{y.Platform.isDesktopApp&&(this.addLeftTitleBarButtons(),this.addRightTitleBarButtons(),this.titlebarText=H(),this.settings.titleCenter.length>0&&this.addInitialCenterTitleBarButtons())}),(y.Platform.isMobile||this.settings.desktop)&&this.registerEvent(this.app.workspace.on("file-open",()=>{let t=document.getElementsByClassName("workspace-leaf mod-active")[0].getElementsByClassName("view-actions")[0];for(let e=this.settings.enabledButtons.length-1;e>=0;e--)(this.settings.enabledButtons[e].showButtons==="both"||this.settings.enabledButtons[e].showButtons==="mobile"&&y.Platform.isMobile||this.settings.enabledButtons[e].showButtons==="desktop"&&y.Platform.isDesktop)&&(t.getElementsByClassName(`view-action page-header-button ${this.settings.enabledButtons[e].id}`)[0]||this.addPageHeaderButton(t,this.settings.enabledButtons[e]))}))})}onunload(){console.log("unloading Customizable Page Header Plugin"),j(),$(),f(this.titlebarText),globalThis.removeEventListener("TopBar-addedCommand",this.listener)}loadSettings(){return a(this,null,function*(){this.settings=Object.assign({},ie,yield this.loadData())})}saveSettings(){return a(this,null,function*(){yield this.saveData(this.settings)})}}; +var V=Object.create;var x=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var D=n=>x(n,"__esModule",{value:!0});var Y=(n,t)=>{D(n);for(var i in t)x(n,i,{get:t[i],enumerable:!0})},Z=(n,t,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Q(t))!X.call(n,e)&&e!=="default"&&x(n,e,{get:()=>t[e],enumerable:!(i=J(t,e))||i.enumerable});return n},v=n=>Z(D(x(n!=null?V(W(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);Y(exports,{default:()=>N});var B=v(require("obsidian"));var d=v(require("obsidian"));var G=v(require("obsidian"));var w=v(require("obsidian"));var C=v(require("obsidian"));var M=["add-note-glyph","any-key","audio-file","blocks","bold-glyph","box-glyph","bracket-glyph","broken-link","bullet-list-glyph","bullet-list","calendar-glyph","calendar-with-checkmark","check-in-circle","check-small","checkbox-glyph","checkmark","clock-glyph","clock","cloud","code-glyph","command-glyph","compress-glyph","create-new","cross-in-box","cross","crossed-star","dice-glyph","dice","document","documents","dot-network","double-down-arrow-glyph","double-up-arrow-glyph","down-arrow-with-tail","down-chevron-glyph","down-curly-arrow-glyph","duplicate-glyph","enlarge-glyph","enter","exit-fullscreen","expand-vertically","file-explorer-glyph","filled-pin","folder","forward-arrow","fullscreen","gear","github-glyph","go-to-file","graph-glyph","hashtag","heading-glyph","help","highlight-glyph","horizontal-split","image-file","image-glyph","import-glyph","indent-glyph","info","install","italic-glyph","keyboard-glyph","languages","left-arrow-with-tail","left-arrow","left-chevron-glyph","lines-of-text","link-glyph","link","links-coming-in","links-going-out","logo-crystal","magnifying-glass","merge-files-glyph","merge-files","microphone-filled","microphone","minus-with-circle","navigate-glyph","note-glyph","number-list-glyph","open-elsewhere-glyph","open-vault","pane-layout","paper-plane-glyph","paper-plane","paste-text","paste","paused","pdf-file","pencil","percent-sign-glyph","pin","play-audio-glyph","plus-minus-glyph","plus-with-circle","popup-open","presentation-glyph","presentation","price-tag-glyph","question-mark-glyph","quote-glyph","reading-glasses","redo-glyph","reset","restore-file-glyph","right-arrow-with-tail","right-arrow","right-chevron-glyph","right-triangle","run-command","scissors-glyph","scissors","search-glyph","search","select-all-text","sheets-in-box","split","stacked-levels","star-glyph","star-list","star","stop-audio-glyph","strikethrough-glyph","switch","sync-small","sync","tag-glyph","three-horizontal-bars","tomorrow-glyph","trash","two-blank-pages","undo-glyph","unindent-glyph","up-and-down-arrows","up-arrow-with-tail","up-chevron-glyph","up-curly-arrow-glyph","uppercase-lowercase-a","vault","vertical-split","vertical-three-dots","wand-glyph","wand","workspace-glyph","wrench-screwdriver-glyph","yesterday-glyph"],u="page-header-button",y="titlebar-button",T="titlebar-center",E=[y,u];function ee(n){return n.includes(":")?n.split(":")[1].trim():n}function q(){let n=24;return C.Platform.isMobile?n=24:C.Platform.isDesktop&&(n=18),n}function k(n,t,i,e,l,s="a"){let c=ee(n),o=l.concat([t]),a=createEl(s,{cls:o,attr:{"aria-label-position":"bottom","aria-label":c}});return(0,C.setIcon)(a,i,e),a}function S(n){for(let t=n.length;t>=0;t--)n[t]&&n[t].remove()}function L(n,t,i){let e=n.getElementsByClassName(`${i} ${u} ${t}`);e[0]&&e[0].remove()}function O(){return document.getElementsByClassName("titlebar-text")[0].getText()}function p(n){let t=document.getElementsByClassName(`${u} ${T}`)[0];t!==void 0&&(t.classList.remove(u,T),t.addClass("titlebar-text"),t.innerHTML=n)}function f(){let t=P().getElementsByClassName(`${u} ${y}`);S(t)}function H(){let n=document.getElementsByClassName("titlebar-text")[0];return n.classList.remove("titlebar-text"),n.addClasses([u,T]),n.innerHTML="",n}function _(){let n=document.getElementsByClassName("workspace-leaf-content");for(let t=0;t0&&S(e)}}function I(n){let t=document.getElementsByClassName("workspace-leaf-content");for(let i=0;i0&&S(t)}function g(){let t=z().getElementsByClassName(u);t.length>0&&S(t)}function $(n){let t=R();L(t,n,y)}function F(n){let t=z();L(t,n,y)}function U(n){let t=P();L(t,n,y)}function R(){return document.getElementsByClassName("titlebar-button-container mod-left")[0]}function z(){return document.getElementsByClassName("titlebar-button-container mod-right")[0]}function P(){return document.getElementsByClassName(`${u} ${T}`)[0]}var h=class extends w.FuzzySuggestModal{constructor(t,i,e,l=-1){super(t.app);this.plugin=t,this.command=i,this.type=e,this.index=l,this.setPlaceholder("Please pick an icon")}cap(t){return t.split(" ").map(e=>e[0].toUpperCase()+e.substring(1)).join(" ")}getItems(){return this.plugin.iconList}getItemText(t){return this.cap(t.replace("lucide-","").replace(/-/gi," "))}renderSuggestion(t,i){i.addClass("CS-icon-container");let e=i.createDiv({cls:"CS-icon"});(0,w.setIcon)(e,t.item),super.renderSuggestion(t,i)}async onChooseItem(t){let{id:i,name:e}=this.command,{settings:l}=this.plugin,s=0;if(this.type==="page"){let c="both";this.index===-1?c="both":c=l.enabledButtons[this.index].showButtons;let o={id:i,icon:t,name:e,showButtons:c};this.index===-1?l.enabledButtons.push(o):(l.enabledButtons[this.index]=o,new w.Notice("This change will take effect for new panes only."))}else{let c={id:i,icon:t,name:e};if(this.index===-1)if(this.type==="title-left")l.titleLeft.push(c);else if(this.type==="title-right")l.titleRight.push(c);else{let o=l.titleCenter.length;o!==0&&(s=o),l.titleCenter.push(c)}else if(this.type==="title-left")l.titleLeft[this.index]=c;else if(this.type==="title-right")l.titleRight[this.index]=c;else{let o=l.titleCenter.length;o!==0&&(s=o),l.titleCenter[this.index]=c}}await this.plugin.saveSettings(),this.type==="title-left"?(r(),this.plugin.addLeftTitleBarButtons()):this.type==="title-right"?(g(),this.plugin.addRightTitleBarButtons()):s===0?this.plugin.addInitialCenterTitleBarButtons():l.titleCenter.length===0?p(this.plugin.titlebarText):(f(),this.plugin.addCenterTitleBarButtons()),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)}};var b=class extends G.FuzzySuggestModal{constructor(t,i){super(t.app);this.plugin=t,this.type=i}pushToSettings(t,i,e){e==="titleRight"||e==="titleLeft"||e==="titleCenter"?t[e].push({id:i.id,icon:i.icon,name:i.name}):t.enabledButtons.push({id:i.id,icon:i.icon,name:i.name,showButtons:"both"})}getItems(){return this.app.commands.listCommands()}getItemText(t){return t.name}async onChooseItem(t,i){let{settings:e}=this.plugin,l=0;if(t.icon!==void 0){if(this.type==="page")this.pushToSettings(e,t,"enabledSettings");else if(this.type==="title-left")this.pushToSettings(e,t,"titleLeft");else if(this.type==="title-right")this.pushToSettings(e,t,"titleRight");else{let s=this.plugin.settings.titleCenter.length;s!==0&&(l=s),this.pushToSettings(e,t,"titleCenter")}await this.plugin.saveSettings(),this.type==="title-left"?(r(),this.plugin.addLeftTitleBarButtons()):this.type==="title-right"?(g(),this.plugin.addRightTitleBarButtons()):this.type==="title-center"&&(l===0?this.plugin.addInitialCenterTitleBarButtons():this.plugin.settings.titleCenter.length===0?p(this.plugin.titlebarText):(f(),this.plugin.addCenterTitleBarButtons())),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)}else new h(this.plugin,t,this.type).open()}};var A=class extends d.PluginSettingTab{constructor(t,i){super(t,i);this.plugin=i,this.plugin.listener=()=>{this.display()},this.containerEl.addClass("page-header-button"),addEventListener("TopBar-addedCommand",this.plugin.listener)}display(){let{containerEl:t}=this,{settings:i}=this.plugin;t.empty(),t.createEl("h3",{text:"Page Header Buttons"}),t.createEl("p",{text:"The buttons are added in the order in which they are shown here. This only takes effect after a reload."}),new d.Setting(t).setName("Show buttons on desktop").setDesc("By default, the buttons will only be shown in Obsidian Mobile. It requires a reload after being toggled to take effect.").addToggle(e=>{e.setValue(i.desktop).onChange(async l=>{if(i.desktop=l,await this.plugin.saveSettings(),this.display(),!l){for(let s of i.enabledButtons)s.showButtons="mobile";await this.plugin.saveSettings()}})}),new d.Setting(t).setName("Add Button").setDesc("Add a new button left to the switch edit/preview mode toggle.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new b(this.plugin,"page").open()})}),this.app.plugins.plugins["pane-relief"]&&new d.Setting(t).setName("Pane Relief count").setDesc("Enable to show the pane relief count next to back/forward buttons. Needs a reload to take effect.").addToggle(e=>{e.setValue(i.paneRelief).onChange(async l=>{i.paneRelief=l,await this.plugin.saveSettings()})}),new d.Setting(t).setName("Button spacing").setDesc("Set the spacing for Page Header buttons.").addButton(e=>{e.setButtonText("Click to go to the Style settings. Requires the Style settings plugin."),e.onClick(l=>this.app.setting.openTabById("obsidian-style-settings"))});for(let e=0;e{o.addOption("both","Add button for both mobile and desktop.").addOption("mobile","Add button only for mobile.").addOption("desktop","Add button only for desktop.").setValue(l.showButtons).onChange(async a=>{l.showButtons=a,i.enabledButtons[e]=l,await this.plugin.saveSettings(),a==="desktop"&&d.Platform.isMobile?I(l.id):a==="mobile"&&d.Platform.isDesktop&&I(l.id)})}),e>0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{i.enabledButtons[e]=i.enabledButtons[e-1],i.enabledButtons[e-1]=l,await this.plugin.saveSettings(),this.display()})}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{i.enabledButtons[e]=i.enabledButtons[e+1],i.enabledButtons[e+1]=l,await this.plugin.saveSettings(),this.display()})}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{i.enabledButtons.remove(l),I(l.id),await this.plugin.saveSettings(),this.display()})}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let a=i.enabledButtons.findIndex(m=>m===l);new h(this.plugin,l,"page",a).open()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}if(d.Platform.isDesktopApp){t.createEl("br"),t.createEl("h3",{text:"Titlebar buttons"}),t.createEl("h4",{text:"Left titlebar"}),new d.Setting(t).setName("Add Button").setDesc("Add a new button right to the back/forward buttons.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new b(this.plugin,"title-left").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{i.titleLeft[e]=i.titleLeft[e-1],i.titleLeft[e-1]=l,await this.plugin.saveSettings(),r(),this.plugin.addLeftTitleBarButtons(),this.display()})}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{i.titleLeft[e]=i.titleLeft[e+1],i.titleLeft[e+1]=l,await this.plugin.saveSettings(),r(),this.plugin.addLeftTitleBarButtons(),this.display()})}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{i.titleLeft.remove(l),await this.plugin.saveSettings(),$(l.id),this.display()})}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let a=i.titleLeft.findIndex(m=>m===l);new h(this.plugin,l,"title-left",a).open(),r(),this.plugin.addLeftTitleBarButtons()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}t.createEl("h4",{text:"Right titlebar"}),new d.Setting(t).setName("Add Button").setDesc("Add a new button left to the minimize/maximize/close buttons.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new b(this.plugin,"title-right").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{i.titleRight[e]=i.titleRight[e-1],i.titleRight[e-1]=l,await this.plugin.saveSettings(),g(),this.plugin.addRightTitleBarButtons(),this.display()})}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{i.titleRight[e]=i.titleRight[e+1],i.titleRight[e+1]=l,await this.plugin.saveSettings(),g(),this.plugin.addRightTitleBarButtons(),this.display()})}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{i.titleRight.remove(l),await this.plugin.saveSettings(),F(l.id),this.display()})}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let a=i.titleRight.findIndex(m=>m===l);new h(this.plugin,l,"title-right",a).open(),g(),this.plugin.addRightTitleBarButtons()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}t.createEl("h4",{text:"Center titlebar"}),new d.Setting(t).setName("Add Button").setDesc("Add a new button to the center titlebar.").addButton(e=>{e.setButtonText("Add Command").onClick(()=>{new b(this.plugin,"title-center").open()})});for(let e=0;e0&&c.addExtraButton(o=>{o.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{i.titleCenter[e]=i.titleCenter[e-1],i.titleCenter[e-1]=l,await this.plugin.saveSettings(),f(),this.plugin.addCenterTitleBarButtons(),this.display()})}),e{o.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{i.titleCenter[e]=i.titleCenter[e+1],i.titleCenter[e+1]=l,await this.plugin.saveSettings(),f(),this.plugin.addCenterTitleBarButtons(),this.display()})}),c.addExtraButton(o=>{o.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{i.titleCenter.remove(l),await this.plugin.saveSettings(),this.plugin.settings.titleCenter.length===0?p(this.plugin.titlebarText):U(l.id),this.display()})}).addExtraButton(o=>{o.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let a=i.titleCenter.findIndex(m=>m===l);new h(this.plugin,l,"title-center",a).open()})}),c.nameEl.prepend(s),c.nameEl.addClass("CS-flex")}}}};var K=["lucide-activity","lucide-airplay","lucide-alarm-check","lucide-alarm-clock-off","lucide-alarm-clock","lucide-alarm-minus","lucide-alarm-plus","lucide-album","lucide-alert-circle","lucide-alert-octagon","lucide-alert-triangle","lucide-align-center-horizontal","lucide-align-center","lucide-align-center-vertical","lucide-align-end-horizontal","lucide-align-end-vertical","lucide-align-horizontal-distribute-center","lucide-align-horizontal-distribute-end","lucide-align-horizontal-distribute-start","lucide-align-horizontal-justify-center","lucide-align-horizontal-justify-end","lucide-align-horizontal-justify-start","lucide-align-horizontal-space-around","lucide-align-horizontal-space-between","lucide-align-justify","lucide-align-left","lucide-align-right","lucide-align-start-horizontal","lucide-align-start-vertical","lucide-align-vertical-distribute-center","lucide-align-vertical-distribute-end","lucide-align-vertical-distribute-start","lucide-align-vertical-justify-center","lucide-align-vertical-justify-end","lucide-align-vertical-justify-start","lucide-align-vertical-space-around","lucide-align-vertical-space-between","lucide-anchor","lucide-aperture","lucide-archive","lucide-arrow-big-down","lucide-arrow-big-left","lucide-arrow-big-right","lucide-arrow-big-up","lucide-arrow-down-circle","lucide-arrow-down-left","lucide-arrow-down-right","lucide-arrow-down","lucide-arrow-left-circle","lucide-arrow-left-right","lucide-arrow-left","lucide-arrow-right-circle","lucide-arrow-right","lucide-arrow-up-circle","lucide-arrow-up-left","lucide-arrow-up-right","lucide-arrow-up","lucide-asterisk","lucide-at-sign","lucide-award","lucide-axe","lucide-banknote","lucide-bar-chart-2","lucide-bar-chart","lucide-baseline","lucide-battery-charging","lucide-battery-full","lucide-battery-low","lucide-battery-medium","lucide-battery","lucide-beaker","lucide-bell-minus","lucide-bell-off","lucide-bell-plus","lucide-bell-ring","lucide-bell","lucide-bike","lucide-binary","lucide-bitcoin","lucide-bluetooth-connected","lucide-bluetooth-off","lucide-bluetooth-searching","lucide-bluetooth","lucide-bold","lucide-bookmark-minus","lucide-bookmark-plus","lucide-bookmark","lucide-book-open","lucide-book","lucide-bot","lucide-box-select","lucide-box","lucide-briefcase","lucide-brush","lucide-bug","lucide-building","lucide-bus","lucide-calculator","lucide-calendar","lucide-camera-off","lucide-camera","lucide-carrot","lucide-car","lucide-cast","lucide-check-circle-2","lucide-check-circle","lucide-check-square","lucide-check","lucide-chevron-down","lucide-chevron-first","lucide-chevron-last","lucide-chevron-left","lucide-chevron-right","lucide-chevrons-down","lucide-chevrons-down-up","lucide-chevrons-left","lucide-chevrons-right","lucide-chevrons-up-down","lucide-chevrons-up","lucide-chevron-up","lucide-chrome","lucide-circle-slashed","lucide-circle","lucide-clipboard-check","lucide-clipboard-copy","lucide-clipboard-list","lucide-clipboard","lucide-clipboard-x","lucide-clock-1","lucide-clock-2","lucide-clock-3","lucide-clock-4","lucide-clock-5","lucide-clock-6","lucide-clock-7","lucide-clock-8","lucide-clock-9","lucide-clock-10","lucide-clock-11","lucide-clock-12","lucide-clock","lucide-cloud-drizzle","lucide-cloud-fog","lucide-cloud-hail","lucide-cloud-lightning","lucide-cloud-moon","lucide-cloud-off","lucide-cloud-rain","lucide-cloud-rain-wind","lucide-cloud-snow","lucide-cloud-sun","lucide-cloud","lucide-cloudy","lucide-clover","lucide-code-2","lucide-codepen","lucide-codesandbox","lucide-code","lucide-coffee","lucide-coins","lucide-columns","lucide-command","lucide-compass","lucide-contact","lucide-contrast","lucide-cookie","lucide-copyleft","lucide-copyright","lucide-copy","lucide-corner-down-left","lucide-corner-down-right","lucide-corner-left-down","lucide-corner-left-up","lucide-corner-right-down","lucide-corner-right-up","lucide-corner-up-left","lucide-corner-up-right","lucide-cpu","lucide-credit-card","lucide-crop","lucide-crosshair","lucide-cross","lucide-crown","lucide-currency","lucide-database","lucide-delete","lucide-disc","lucide-divide-circle","lucide-divide-square","lucide-divide","lucide-dollar-sign","lucide-download-cloud","lucide-download","lucide-dribbble","lucide-droplets","lucide-droplet","lucide-drumstick","lucide-edit-2","lucide-edit-3","lucide-edit","lucide-egg","lucide-equal-not","lucide-equal","lucide-euro","lucide-expand","lucide-external-link","lucide-eye-off","lucide-eye","lucide-facebook","lucide-fast-forward","lucide-feather","lucide-figma","lucide-file-check-2","lucide-file-check","lucide-file-code","lucide-file-digit","lucide-file-input","lucide-file-minus-2","lucide-file-minus","lucide-file-output","lucide-file-plus-2","lucide-file-plus","lucide-file-search","lucide-files","lucide-file","lucide-file-text","lucide-file-x-2","lucide-file-x","lucide-film","lucide-filter","lucide-flag","lucide-flag-triangle-left","lucide-flag-triangle-right","lucide-flame","lucide-flashlight-off","lucide-flashlight","lucide-flask-conical","lucide-flask-round","lucide-folder-minus","lucide-folder-open","lucide-folder-plus","lucide-folder","lucide-form-input","lucide-forward","lucide-framer","lucide-frown","lucide-function-square","lucide-gamepad-2","lucide-gamepad","lucide-gauge","lucide-gavel","lucide-gem","lucide-ghost","lucide-gift","lucide-git-branch-plus","lucide-git-branch","lucide-git-commit","lucide-github","lucide-gitlab","lucide-git-merge","lucide-git-pull-request","lucide-glasses","lucide-globe-2","lucide-globe","lucide-grab","lucide-graduation-cap","lucide-grid","lucide-grip-horizontal","lucide-grip-vertical","lucide-hammer","lucide-hand-metal","lucide-hand","lucide-hard-drive","lucide-hard-hat","lucide-hash","lucide-haze","lucide-headphones","lucide-heart","lucide-help-circle","lucide-hexagon","lucide-highlighter","lucide-history","lucide-home","lucide-image-minus","lucide-image-off","lucide-image-plus","lucide-image","lucide-import","lucide-inbox","lucide-indent","lucide-indian-rupee","lucide-infinity","lucide-info","lucide-inspect","lucide-instagram","lucide-italic","lucide-japanese-yen","lucide-keyboard","lucide-key","lucide-landmark","lucide-languages","lucide-laptop-2","lucide-laptop","lucide-lasso-select","lucide-lasso","lucide-layers","lucide-layout-dashboard","lucide-layout-grid","lucide-layout-list","lucide-layout","lucide-layout-template","lucide-library","lucide-life-buoy","lucide-lightbulb-off","lucide-lightbulb","lucide-link-2-off","lucide-link-2","lucide-linkedin","lucide-link","lucide-list-checks","lucide-list-minus","lucide-list-ordered","lucide-list-plus","lucide-list","lucide-list-x","lucide-loader-2","lucide-loader","lucide-locate-fixed","lucide-locate-off","lucide-locate","lucide-lock","lucide-log-in","lucide-log-out","lucide-mail","lucide-map-pin","lucide-map","lucide-maximize-2","lucide-maximize","lucide-megaphone","lucide-meh","lucide-menu","lucide-message-circle","lucide-message-square","lucide-mic-off","lucide-mic","lucide-minimize-2","lucide-minimize","lucide-minus-circle","lucide-minus-square","lucide-minus","lucide-monitor-off","lucide-monitor-speaker","lucide-monitor","lucide-moon","lucide-more-horizontal","lucide-more-vertical","lucide-mountain-snow","lucide-mountain","lucide-mouse-pointer-2","lucide-mouse-pointer-click","lucide-mouse-pointer","lucide-move-diagonal-2","lucide-move-diagonal","lucide-move-horizontal","lucide-move","lucide-move-vertical","lucide-music","lucide-navigation-2","lucide-navigation","lucide-network","lucide-octagon","lucide-option","lucide-outdent","lucide-package-check","lucide-package-minus","lucide-package-plus","lucide-package-search","lucide-package","lucide-package-x","lucide-palette","lucide-palmtree","lucide-paperclip","lucide-pause-circle","lucide-pause-octagon","lucide-pause","lucide-pencil","lucide-pen-tool","lucide-percent","lucide-person-standing","lucide-phone-call","lucide-phone-forwarded","lucide-phone-incoming","lucide-phone-missed","lucide-phone-off","lucide-phone-outgoing","lucide-phone","lucide-pie-chart","lucide-piggy-bank","lucide-pin","lucide-pipette","lucide-plane","lucide-play-circle","lucide-play","lucide-plug-zap","lucide-plus-circle","lucide-plus-square","lucide-plus","lucide-pocket","lucide-podcast","lucide-pointer","lucide-pound-sterling","lucide-power-off","lucide-power","lucide-printer","lucide-qr-code","lucide-quote","lucide-radio-receiver","lucide-radio","lucide-redo","lucide-refresh-ccw","lucide-refresh-cw","lucide-regex","lucide-repeat-1","lucide-repeat","lucide-reply-all","lucide-reply","lucide-rewind","lucide-rocking-chair","lucide-rotate-ccw","lucide-rotate-cw","lucide-rss","lucide-ruler","lucide-russian-ruble","lucide-save","lucide-scale","lucide-scan-line","lucide-scan","lucide-scissors","lucide-screen-share-off","lucide-screen-share","lucide-search","lucide-send","lucide-separator-horizontal","lucide-separator-vertical","lucide-server-crash","lucide-server-off","lucide-server","lucide-settings-2","lucide-settings","lucide-share-2","lucide-share","lucide-sheet","lucide-shield-alert","lucide-shield-check","lucide-shield-close","lucide-shield-off","lucide-shield","lucide-shirt","lucide-shopping-bag","lucide-shopping-cart","lucide-shovel","lucide-shrink","lucide-shuffle","lucide-sidebar-close","lucide-sidebar-open","lucide-sidebar","lucide-sigma","lucide-signal-high","lucide-signal-low","lucide-signal-medium","lucide-signal","lucide-signal-zero","lucide-skip-back","lucide-skip-forward","lucide-skull","lucide-slack","lucide-slash","lucide-sliders","lucide-smartphone-charging","lucide-smartphone","lucide-smile","lucide-snowflake","lucide-sort-asc","lucide-sort-desc","lucide-speaker","lucide-sprout","lucide-square","lucide-star-half","lucide-star","lucide-stop-circle","lucide-stretch-horizontal","lucide-stretch-vertical","lucide-strikethrough","lucide-subscript","lucide-sunrise","lucide-sunset","lucide-sun","lucide-superscript","lucide-swiss-franc","lucide-switch-camera","lucide-table","lucide-tablet","lucide-tag","lucide-target","lucide-tent","lucide-terminal-square","lucide-terminal","lucide-text-cursor-input","lucide-text-cursor","lucide-thermometer-snowflake","lucide-thermometer-sun","lucide-thermometer","lucide-thumbs-down","lucide-thumbs-up","lucide-ticket","lucide-timer-off","lucide-timer-reset","lucide-timer","lucide-toggle-left","lucide-toggle-right","lucide-tornado","lucide-trash-2","lucide-trash","lucide-trello","lucide-trending-down","lucide-trending-up","lucide-triangle","lucide-truck","lucide-tv-2","lucide-tv","lucide-twitch","lucide-twitter","lucide-type","lucide-umbrella","lucide-underline","lucide-undo","lucide-unlink-2","lucide-unlink","lucide-unlock","lucide-upload-cloud","lucide-upload","lucide-user-check","lucide-user-minus","lucide-user-plus","lucide-users","lucide-user","lucide-user-x","lucide-verified","lucide-vibrate","lucide-video-off","lucide-video","lucide-view","lucide-voicemail","lucide-volume-1","lucide-volume-2","lucide-volume","lucide-volume-x","lucide-wallet","lucide-wand","lucide-watch","lucide-waves","lucide-webcam","lucide-wifi-off","lucide-wifi","lucide-wind","lucide-wrap-text","lucide-wrench","lucide-x-circle","lucide-x-octagon","lucide-x-square","lucide-x","lucide-youtube","lucide-zap-off","lucide-zap","lucide-zoom-in","lucide-zoom-out"];var te={enabledButtons:[],desktop:!1,titleLeft:[],titleRight:[],titleCenter:[],paneRelief:!1},N=class extends B.Plugin{constructor(){super(...arguments);this.iconList=M.concat(K)}addPageHeaderButton(t,i){let{id:e,icon:l,name:s}=i,c=q(),a=k(s,e,l,c,["view-action",u]);this.settings.paneRelief&&(e==="app:go-forward"||e==="app:go-back")&&a.addClass("pane-relief"),t.prepend(a),this.registerDomEvent(a,"click",()=>{setTimeout(()=>this.app.commands.executeCommandById(e),5)})}addLeftTitleBarButton(t,i){let{id:e,icon:l,name:s}=i,o=k(s,e,l,15,E,"div");t.append(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addRightTitleBarButton(t,i){let{id:e,icon:l,name:s}=i,o=k(s,e,l,15,E,"div");t.prepend(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addCenterTitleBarButton(t,i){let{id:e,icon:l,name:s}=i,o=k(s,e,l,15,E,"div");t.append(o),this.registerDomEvent(o,"click",()=>{this.app.commands.executeCommandById(e)})}addLeftTitleBarButtons(){if(this.settings.titleLeft.length>0){let t=R();for(let i of this.settings.titleLeft)this.addLeftTitleBarButton(t,i)}}addRightTitleBarButtons(){if(this.settings.titleRight.length>0){let t=z();for(let i=this.settings.titleRight.length-1;i>=0;i--)this.addRightTitleBarButton(t,this.settings.titleRight[i])}}addInitialCenterTitleBarButtons(){if(this.settings.titleCenter.length>0){let t=H();for(let i of this.settings.titleCenter)this.addCenterTitleBarButton(t,i)}}addCenterTitleBarButtons(){if(this.settings.titleCenter.length>0){let t=P();for(let i of this.settings.titleCenter)this.addCenterTitleBarButton(t,i)}}async onload(){console.log("loading Customizable Page Header Plugin"),await this.loadSettings(),this.addSettingTab(new A(this.app,this)),this.app.workspace.onLayoutReady(()=>{B.Platform.isDesktopApp&&(this.addLeftTitleBarButtons(),this.addRightTitleBarButtons(),this.titlebarText=O(),this.settings.titleCenter.length>0&&this.addInitialCenterTitleBarButtons())}),(B.Platform.isMobile||this.settings.desktop)&&this.registerEvent(this.app.workspace.on("file-open",()=>{let i=document.getElementsByClassName("workspace-leaf mod-active")[0].getElementsByClassName("view-actions")[0];for(let e=this.settings.enabledButtons.length-1;e>=0;e--)(this.settings.enabledButtons[e].showButtons==="both"||this.settings.enabledButtons[e].showButtons==="mobile"&&B.Platform.isMobile||this.settings.enabledButtons[e].showButtons==="desktop"&&B.Platform.isDesktop)&&(i.getElementsByClassName(`view-action page-header-button ${this.settings.enabledButtons[e].id}`)[0]||this.addPageHeaderButton(i,this.settings.enabledButtons[e]))}))}onunload(){console.log("unloading Customizable Page Header Plugin"),_(),j(),p(this.titlebarText),globalThis.removeEventListener("TopBar-addedCommand",this.listener)}async loadSettings(){this.settings=Object.assign({},te,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}}; diff --git a/.obsidian/plugins/customizable-page-header-buttons/manifest.json b/.obsidian/plugins/customizable-page-header-buttons/manifest.json index 9198679d..c66ac00a 100644 --- a/.obsidian/plugins/customizable-page-header-buttons/manifest.json +++ b/.obsidian/plugins/customizable-page-header-buttons/manifest.json @@ -1,7 +1,7 @@ { "id": "customizable-page-header-buttons", "name": "Customizable Page Header and Title Bar", - "version": "4.1.2", + "version": "4.2.0", "minAppVersion": "0.12.19", "description": "This plugin lets you add buttons for executing commands to the page header and on desktop to the title bar.", "author": "kometenstaub", diff --git a/.obsidian/plugins/customizable-page-header-buttons/styles.css b/.obsidian/plugins/customizable-page-header-buttons/styles.css index 1dee3be3..3b02a215 100644 --- a/.obsidian/plugins/customizable-page-header-buttons/styles.css +++ b/.obsidian/plugins/customizable-page-header-buttons/styles.css @@ -21,4 +21,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -.page-header-button.titlebar-center{flex-grow:1;font-size:12px;height:100%;left:0;letter-spacing:.05em;opacity:.8;position:absolute;text-align:center;top:0;width:100%}:not(.is-mobile) .view-actions{align-items:center}:not(.is-mobile) .view-action.pane-relief{display:flex;position:unset}:not(.is-mobile) .view-action.pane-relief.app\:go-back:before,:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{display:inline;font-size:1em;line-height:1;vertical-align:text-top}:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{content:var(--pane-relief-forward-count);padding-left:.4em}:not(.is-mobile) .view-action.pane-relief.app\:go-back:before{content:var(--pane-relief-backward-count);padding-right:.4em}:not(.is-mobile) .pane-relief body:not(.no-svg-replace) svg{vertical-align:top} \ No newline at end of file + +/* @settings + +name: Customizable Page Header and Title Bar +id: customizable-page-header-buttons +settings: + - + id: page-header-spacing-mobile + title: Page Header Button Spacing (mobile) + type: variable-number-slider + default: 12 + min: 0 + max: 30 + step: 1 + format: px + - + id: page-header-spacing-desktop + title: Page Header Button Spacing (desktop) + type: variable-number-slider + default: 8 + min: 0 + max: 30 + step: 1 + format: px +*/ + +.page-header-button.titlebar-center{flex-grow:1;font-size:12px;height:100%;left:0;letter-spacing:.05em;opacity:.8;position:absolute;text-align:center;top:0;width:100%}:not(.is-mobile) .view-actions{align-items:center}:not(.is-mobile) .view-action.pane-relief{display:flex;position:unset}:not(.is-mobile) .view-action.pane-relief.app\:go-back:before,:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{display:inline;font-size:1em;line-height:1;vertical-align:text-top}:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{content:var(--pane-relief-forward-count);padding-left:.4em}:not(.is-mobile) .view-action.pane-relief.app\:go-back:before{content:var(--pane-relief-backward-count);padding-right:.4em}:not(.is-mobile) .view-action:not(:last-child){margin-right:var(--page-header-spacing-desktop)}:not(.is-mobile) .pane-relief body:not(.no-svg-replace) svg{vertical-align:top}.is-mobile .view-action:not(:last-child){margin-right:var(--page-header-spacing-mobile)} \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-activity-history/data.json b/.obsidian/plugins/obsidian-activity-history/data.json index d0ba601d..49479203 100644 --- a/.obsidian/plugins/obsidian-activity-history/data.json +++ b/.obsidian/plugins/obsidian-activity-history/data.json @@ -12,8 +12,8 @@ "checkpointList": [ { "path": "/", - "date": "2022-04-07", - "size": 3710022 + "date": "2022-04-09", + "size": 3712456 } ], "activityHistory": [ @@ -379,6 +379,14 @@ { "date": "2022-04-07", "value": 1026 + }, + { + "date": "2022-04-08", + "value": 1413 + }, + { + "date": "2022-04-09", + "value": 1021 } ] } diff --git a/.obsidian/plugins/obsidian-commits/data.json b/.obsidian/plugins/obsidian-commits/data.json index b19ab6ad..1860dbfc 100644 --- a/.obsidian/plugins/obsidian-commits/data.json +++ b/.obsidian/plugins/obsidian-commits/data.json @@ -3518,14 +3518,24 @@ "size": 1015, "tags": 0, "links": 4 + }, + "00.01 Admin/Calendars/2022-04-08.md": { + "size": 1017, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-04-09.md": { + "size": 1016, + "tags": 0, + "links": 4 } }, "commitTypes": { "/": { "Refactor": 465, - "Create": 353, - "Link": 711, - "Expand": 330 + "Create": 355, + "Link": 713, + "Expand": 332 } }, "dailyCommits": { @@ -3538,14 +3548,14 @@ "5": 6, "6": 16, "7": 119, - "8": 184, + "8": 185, "9": 141, "10": 80, - "11": 73, - "12": 90, + "11": 74, + "12": 92, "13": 168, "14": 115, - "15": 67, + "15": 69, "16": 60, "17": 77, "18": 217, @@ -3562,14 +3572,16 @@ "Tue": 107, "Wed": 183, "Thu": 269, - "Fri": 157, + "Fri": 160, "Sat": 0, - "Sun": 857 + "Sun": 860 } }, "recentCommits": { "/": { "Expanded": [ + " 2022-04-09 ", + " 2022-04-08 ", " 2022-04-07 ", " 2022-04-05 ", " 2022-04-06 ", @@ -3618,11 +3630,11 @@ " 2022-03-26 Fiancailles Eloi ", " Household ", " 2022-03-21 ", - " Configuring Prometheus ", - " Configuring Prometheus ", " Configuring Prometheus " ], "Created": [ + " 2022-04-09 ", + " 2022-04-08 ", " 2022-04-07 ", " 2022-04-06 ", " Kerouac at 100 - The American Scholar ", @@ -3671,9 +3683,7 @@ " What happened to Starbucks How a progressive company lost its way ", " Welcome To The Vice Age How Sex, Drugs And Gambling Help Americans Cope With Covid ", " France and PSG star Jean-Pierre Adams was in a coma for 39 years. His wife never left his side ", - " Sex Pistols Rolling Stone Cover Story on Notorious Punk Band ", - " 2022-03-21 ", - " Prometheus Alertmanager send alerts via Telegram - DPBD90 - Medium " + " Sex Pistols Rolling Stone Cover Story on Notorious Punk Band " ], "Renamed": [ " Kerouac at 100 - The American Scholar ", @@ -3868,6 +3878,8 @@ " On the Road Introduction & Summary " ], "Linked": [ + " 2022-04-09 ", + " 2022-04-08 ", " 2022-04-07 ", " 2022-04-06 ", " Kerouac at 100 - The American Scholar ", @@ -3916,9 +3928,7 @@ " Are Greeting Card Messages Getting Longer A Very Serious Investigation ", " The twitching generation ", " Saint Peter’s Is a Miracle ", - " Louisiana Girls ", - " Tim Cook’s Oscar Moment Didn’t Come Cheap ", - " The death spiral of an American family " + " Louisiana Girls " ], "Removed Tags from": [ " Le Miel de Paris ", diff --git a/.obsidian/plugins/obsidian-reminder-plugin/data.json b/.obsidian/plugins/obsidian-reminder-plugin/data.json index adb1e7c9..9c1fde4d 100644 --- a/.obsidian/plugins/obsidian-reminder-plugin/data.json +++ b/.obsidian/plugins/obsidian-reminder-plugin/data.json @@ -2,14 +2,9 @@ "scanned": true, "reminders": { "05.01 Computer setup/Storage and Syncing.md": [ - { - "title": "[[Storage and Syncing|Storage & Sync]]: Backup Standard Notes (PC)", - "time": "2022-07-01", - "rowNumber": 176 - }, { "title": "Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]]", - "time": "2022-04-07", + "time": "2022-04-10", "rowNumber": 181 }, { @@ -18,9 +13,9 @@ "rowNumber": 185 }, { - "title": "Backup [[Storage and Syncing#Instructions for FV|Folder Vault]]", - "time": "2022-07-01", - "rowNumber": 189 + "title": "[[Storage and Syncing|Storage & Sync]]: Transfer pictures to ED", + "time": "2022-04-15", + "rowNumber": 201 }, { "title": "[[Storage and Syncing|Storage & Sync]]: Backup Volumes to [[Sync|Sync.com]]", @@ -28,9 +23,14 @@ "rowNumber": 195 }, { - "title": "[[Storage and Syncing|Storage & Sync]]: Transfer pictures to ED", - "time": "2022-04-15", - "rowNumber": 201 + "title": "[[Storage and Syncing|Storage & Sync]]: Backup Standard Notes (PC)", + "time": "2022-07-01", + "rowNumber": 176 + }, + { + "title": "Backup [[Storage and Syncing#Instructions for FV|Folder Vault]]", + "time": "2022-07-01", + "rowNumber": 189 } ], "06.01 Finances/hLedger.md": [ @@ -453,33 +453,33 @@ "06.02 Investments/VC Tasks.md": [ { "title": "[[VC Tasks#internet alerts|monitor VC news and publications]]", - "time": "2022-04-08", + "time": "2022-04-15", "rowNumber": 74 } ], "06.02 Investments/Crypto Tasks.md": [ { "title": "[[Crypto Tasks#internet alerts|monitor Crypto news and publications]]", - "time": "2022-04-08", + "time": "2022-04-15", "rowNumber": 74 } ], "06.02 Investments/Equity Tasks.md": [ { "title": "[[Equity Tasks#internet alerts|monitor Equity news and publications]]", - "time": "2022-04-08", + "time": "2022-04-15", "rowNumber": 74 } ], "05.02 Networks/Configuring UFW.md": [ { "title": "[[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix", - "time": "2022-04-09", + "time": "2022-04-10", "rowNumber": 239 }, { "title": "[[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list", - "time": "2022-04-09", + "time": "2022-04-10", "rowNumber": 243 } ], diff --git a/.obsidian/workspace b/.obsidian/workspace index 44f81683..92cae910 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -154,14 +154,14 @@ "active": "32d68c9163680337", "lastOpenFiles": [ "01.02 Home/@Main Dashboard.md", + "00.01 Admin/Calendars/2022-04-09.md", + "00.01 Admin/Calendars/2022-04-08.md", "00.01 Admin/Calendars/2022-04-07.md", "00.01 Admin/Calendars/2022-04-06.md", "00.01 Admin/Calendars/2022-04-05.md", "00.03 News/Kerouac at 100 - The American Scholar.md", "00.01 Admin/Calendars/2022-04-04.md", "00.03 News/He Chased Silicon Valley Dreams Amid the Cannabis Boom. But Did His Ambition Lead to His Murder.md", - "00.03 News/The death spiral of an American family.md", - "00.03 News/How did people sleep in the Middle Ages - Medievalists.net.md", - "05.01 Computer setup/Storage and Syncing.md" + "00.03 News/The death spiral of an American family.md" ] } \ No newline at end of file diff --git a/00.01 Admin/Calendars/2022-04-07.md b/00.01 Admin/Calendars/2022-04-07.md index 9de1bc8e..88af06fc 100644 --- a/00.01 Admin/Calendars/2022-04-07.md +++ b/00.01 Admin/Calendars/2022-04-07.md @@ -13,9 +13,9 @@ Stress: 40 FrontHeadBar: 5 EarHeadBar: 45 BackHeadBar: 35 -Water: 1.7 +Water: 3.2 Coffee: 6 -Steps: +Steps: 5829 Ski: Riding: Racket: diff --git a/00.01 Admin/Calendars/2022-04-08.md b/00.01 Admin/Calendars/2022-04-08.md new file mode 100644 index 00000000..f40a549d --- /dev/null +++ b/00.01 Admin/Calendars/2022-04-08.md @@ -0,0 +1,104 @@ +--- + +Date: 2022-04-08 +DocType: Note +Hierarchy: +TimeStamp: +location: +CollapseMetaTable: Yes +Sleep: 7.5 +Happiness: 90 +Gratefulness: 90 +Stress: 40 +FrontHeadBar: 5 +EarHeadBar: 45 +BackHeadBar: 35 +Water: 1.9 +Coffee: 6 +Steps: 8399 +Ski: +Riding: +Racket: +Football: +title: "Daily Note" +allDay: true +date: 2022-04-08 + +--- + +%% Parent:: [[@Life Admin]] %% + +--- + +[[2022-04-07|<< 🗓 Previous ]]       [[@Main Dashboard|Back]]       [[2022-04-09|🗓 Next >>]] + +--- + +  + +```button +name Record today's health +type command +action MetaEdit: Run MetaEdit +id EditMetaData +``` +^button-2022-04-08Edit + +```button +name Save +type command +action Save current file +id Save +``` +^button-2022-04-08NSave + +  + +# 2022-04-08 + +  + +```ad-abstract +title: Summary +collapse: open +Note Description +``` + +  + +```toc +style: number +``` + +  + +--- + +  + +### Memos + +  + +#### Memos + +This section does serve for quick memos. + +  + + +%% ### %% +  + +--- + +  + +### Notes + +  + +Loret ipsum + +  +  \ No newline at end of file diff --git a/00.01 Admin/Calendars/2022-04-09.md b/00.01 Admin/Calendars/2022-04-09.md new file mode 100644 index 00000000..65c86b90 --- /dev/null +++ b/00.01 Admin/Calendars/2022-04-09.md @@ -0,0 +1,104 @@ +--- + +Date: 2022-04-09 +DocType: Note +Hierarchy: +TimeStamp: +location: +CollapseMetaTable: Yes +Sleep: 8 +Happiness: 90 +Gratefulness: 90 +Stress: 40 +FrontHeadBar: 5 +EarHeadBar: 45 +BackHeadBar: 35 +Water: 2.57 +Coffee: 4 +Steps: +Ski: +Riding: +Racket: +Football: +title: "Daily Note" +allDay: true +date: 2022-04-09 + +--- + +%% Parent:: [[@Life Admin]] %% + +--- + +[[2022-04-08|<< 🗓 Previous ]]       [[@Main Dashboard|Back]]       [[2022-04-10|🗓 Next >>]] + +--- + +  + +```button +name Record today's health +type command +action MetaEdit: Run MetaEdit +id EditMetaData +``` +^button-2022-04-09Edit + +```button +name Save +type command +action Save current file +id Save +``` +^button-2022-04-09NSave + +  + +# 2022-04-09 + +  + +```ad-abstract +title: Summary +collapse: open +Note Description +``` + +  + +```toc +style: number +``` + +  + +--- + +  + +### Memos + +  + +#### Memos + +This section does serve for quick memos. + +  + + +%% ### %% +  + +--- + +  + +### Notes + +  + +Loret ipsum + +  +  \ No newline at end of file diff --git a/05.01 Computer setup/Storage and Syncing.md b/05.01 Computer setup/Storage and Syncing.md index 4449fdbb..25422135 100644 --- a/05.01 Computer setup/Storage and Syncing.md +++ b/05.01 Computer setup/Storage and Syncing.md @@ -179,7 +179,7 @@ The following Apps require a manual backup: - [x] [[Storage and Syncing|Storage & Sync]]: Backup Standard Notes (PC) 🔁 every 3 months on the 1st Friday 📅 2022-01-07 ✅ 2022-01-08 - [x] [[Storage and Syncing|Storage & Sync]]: Backup Standard Notes (PC) 🔁 every 3 months on the 1st Friday 📅 2021-10-03 ✅ 2022-01-03 - [x] Backup Standard Notes (PC) 🔁 every 3 months on the 1st Friday ✅ 2021-10-02 -- [ ] Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] 🔁 every 3 months on the 1st Thursday 📅 2022-04-07 +- [ ] Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] 🔁 every 3 months on the 1st Thursday 📅 2022-04-10 - [x] Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] 🔁 every 3 months on the 1st Thursday 📅 2022-01-06 ✅ 2022-01-08 - [x] Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] 🔁 every 3 months on the 1st Thursday 📅 2021-10-14 ✅ 2022-01-08 - [x] Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] 🔁 every 3 months on the 1st Thursday ✅ 2021-10-13 diff --git a/05.02 Networks/Configuring UFW.md b/05.02 Networks/Configuring UFW.md index 028f1af5..5b5ad567 100644 --- a/05.02 Networks/Configuring UFW.md +++ b/05.02 Networks/Configuring UFW.md @@ -237,11 +237,11 @@ sudo bash /etc/addip4ban/addip4ban.sh #### Ban List Tasks -- [ ] [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix 🔁 every week on Saturday 📅 2022-04-09 +- [ ] [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix 🔁 every week on Saturday 📅 2022-04-10 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix 🔁 every week on Saturday 📅 2022-04-02 ✅ 2022-04-02 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix 🔁 every week on Saturday 📅 2022-03-26 ✅ 2022-03-26 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix 🔁 every week on Saturday 📅 2022-03-19 ✅ 2022-03-18 -- [ ] [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list 🔁 every month on Saturday 📅 2022-04-09 +- [ ] [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list 🔁 every month on Saturday 📅 2022-04-10 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list 🔁 every month on Saturday 📅 2022-04-02 ✅ 2022-04-02 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list 🔁 every month on Saturday 📅 2022-03-26 ✅ 2022-03-26 - [x] [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list 🔁 every month on Saturday 📅 2022-03-19 ✅ 2022-03-18 diff --git a/06.02 Investments/Crypto Tasks.md b/06.02 Investments/Crypto Tasks.md index c0de4751..2fdc9e23 100644 --- a/06.02 Investments/Crypto Tasks.md +++ b/06.02 Investments/Crypto Tasks.md @@ -72,7 +72,8 @@ All tasks and to-dos Crypto-related. [[#^Top|TOP]]   -- [ ] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-04-08 +- [ ] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-04-15 +- [x] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-04-08 ✅ 2022-04-08 - [x] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-04-01 ✅ 2022-04-01 - [x] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-03-25 ✅ 2022-03-25 - [x] [[Crypto Tasks#internet alerts|monitor Crypto news and publications]] 🔁 every week on Friday 📅 2022-03-18 ✅ 2022-03-18 diff --git a/06.02 Investments/Equity Tasks.md b/06.02 Investments/Equity Tasks.md index 6c423078..50a722f8 100644 --- a/06.02 Investments/Equity Tasks.md +++ b/06.02 Investments/Equity Tasks.md @@ -72,7 +72,8 @@ Note summarising all tasks and to-dos for Listed Equity investments. [[#^Top|TOP]]   -- [ ] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-04-08 +- [ ] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-04-15 +- [x] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-04-08 ✅ 2022-04-08 - [x] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-04-01 ✅ 2022-04-01 - [x] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-03-25 ✅ 2022-03-25 - [x] [[Equity Tasks#internet alerts|monitor Equity news and publications]] 🔁 every week on Friday 📅 2022-03-18 ✅ 2022-03-18 diff --git a/06.02 Investments/VC Tasks.md b/06.02 Investments/VC Tasks.md index 8c81886f..d569ccdf 100644 --- a/06.02 Investments/VC Tasks.md +++ b/06.02 Investments/VC Tasks.md @@ -72,7 +72,8 @@ Tasks and to-dos for VC investments. [[#^Top|TOP]]   -- [ ] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-04-08 +- [ ] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-04-15 +- [x] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-04-08 ✅ 2022-04-08 - [x] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-04-01 ✅ 2022-04-01 - [x] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-03-25 ✅ 2022-03-25 - [x] [[VC Tasks#internet alerts|monitor VC news and publications]] 🔁 every week on Friday 📅 2022-03-18 ✅ 2022-03-18