vault backup: 2024-04-25 00:10:34

This commit is contained in:
grabbit 2024-04-25 00:10:34 +08:00
parent 6d6cce9cba
commit 33ea9e6159
6 changed files with 112886 additions and 7 deletions

View File

@ -22,5 +22,6 @@
"obsidian-tasks-plugin", "obsidian-tasks-plugin",
"recent-files-obsidian", "recent-files-obsidian",
"templater-obsidian", "templater-obsidian",
"awesome-reader" "awesome-reader",
"copilot"
] ]

112559
.obsidian/plugins/copilot/main.js vendored Normal file

File diff suppressed because it is too large Load Diff

14
.obsidian/plugins/copilot/manifest.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"id": "copilot",
"name": "Copilot",
"version": "2.5.2",
"minAppVersion": "0.15.0",
"description": "A ChatGPT Copilot in Obsidian.",
"author": "Logan Yang",
"authorUrl": "https://twitter.com/logancyang",
"fundingUrl": {
"Buy Me a Coffee": "https://www.buymeacoffee.com/logancyang",
"GitHub Sponsor": "https://github.com/sponsors/logancyang"
},
"isDesktopOnly": true
}

305
.obsidian/plugins/copilot/styles.css vendored Normal file
View File

@ -0,0 +1,305 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.button-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.button-container .mod-cta {
flex: 1; /* Make buttons take equal width */
margin: 25px; /* Adds some space between buttons */
}
.warning-message {
background-color: black;
color: orange;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
border: 1px solid orange;
font-weight: bolder;
text-align: center;
}
.copilot-setting-item-name {
font-weight: bold;
display: block;
color: var(--inline-title-color);
margin-top: 20px;
margin-bottom: 10px;
}
.copilot-setting-item-description {
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.copilot-setting-item-control {
width: 50%; /* Adjust the width as needed */
max-width: 100%; /* Ensures it doesn't exceed the parent width */
}
.copilot-setting-item-control::placeholder {
color: gray; /* Set the color you want for the placeholder text */
opacity: 0.5; /* Adjust for lighter appearance */
}
.copilot-setting-item-control[type="range"] {
width: 70%;
}
.chat-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden; /* Fix overflow and can't scroll up */
}
.bottom-container {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
width: 100%;
flex: 0 0 auto;
box-sizing: border-box;
}
.chat-icons-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 8px 8px 0;
order: 1;
gap: 8px;
flex-wrap: wrap;
}
.icon-scaler {
transform: scale(1.6);
}
.tooltip-text {
visibility: hidden;
opacity: 0;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 100%;
left: 50%;
margin-bottom: 4px;
transform: translateX(-50%);
transition: opacity 0.3s;
}
.select-wrapper {
position: relative;
display: inline-block;
}
.select-wrapper:hover .tooltip-text,
.chat-icon-button:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
.chat-icon-button {
display: flex;
justify-content: center;
align-items: center;
width: 32px;
height: 32px;
background-color: transparent;
border: none;
cursor: pointer;
position: relative;
}
.chat-icon-selection {
color: var(--inline-title-color);
}
.chat-input-container {
display: flex;
padding: 8px;
box-sizing: border-box;
flex-grow: 1;
width: 100%;
order: 2;
}
.chat-input-container textarea {
width: 100%;
margin-right: 8px;
margin-bottom: 8px;
resize: none;
overflow: auto;
min-height: 60px;
max-height: 200px;
box-sizing: border-box;
}
.chat-input-container textarea::placeholder {
color: var(--inline-title-color);
opacity: 0.5;
}
.chat-input-container button {
padding: 8px;
margin: 8px;
}
.chat-messages {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
flex: 1;
overflow-y: auto;
padding: 8px;
width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: calc(var(--font-text-size) - 2px);
box-sizing: border-box;
scroll-behavior: smooth;
margin-top: auto;
user-select: text;
}
.message-container {
display: flex;
width: 100%;
margin: 0;
}
.message {
display: flex;
padding: 8px;
margin-bottom: 4px;
border-radius: 4px;
position: relative;
}
.message-icon {
width: 24px;
margin-right: 8px;
color: var(--inline-title-color);
grid-area: icon;
}
.message-content {
white-space: pre-wrap;
line-height: 1.5;
grid-area: content;
max-width: 95%;
word-break: break-word;
}
.message-content pre, .message-content p {
margin: 0;
padding: 0;
}
.message-content ol, .message-content ul {
list-style: none;
padding-left: 20px;
margin: 0;
}
.message-content li {
margin: 0;
width: 100%;
padding-left: 10px;
display: inline;
position: relative;
}
.message-content li::before {
content: counter(list-item, decimal) ".";
counter-increment: list-item;
position: absolute;
left: -20px;
}
.message-content li:has(> p) {
display: flex;
flex-direction: column;
}
.message-content li:has(> p)::before {
align-self: flex-start;
margin-top: 0; /* Adjust this value to align the pseudo-element vertically */
}
.copy-message-button {
width: 24px;
height: 24px;
padding: 4px;
font-size: 12px;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
}
.user-message {
width: 95%;
color: var(--inline-title-color);
}
.bot-message {
width: 95%;
}
.copilot-command-modal {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.copilot-command-input-container {
width: 90%;
margin: auto;
}
.copilot-command-input-container input,
.copilot-command-input-container textarea {
display: block;
width: 100%;
margin-top: 10px;
}
.copilot-command-input-container textarea {
height: 150px;
resize: vertical;
}
.copilot-command-save-btn-container {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.copilot-command-save-btn {
margin-top: 15px;
}

View File

@ -1 +1 @@
{"history":{"2023-07-28":{"words":5,"characters":54,"sentences":0,"pages":0,"files":5,"footnotes":0,"citations":0,"totalWords":673,"totalCharacters":4463,"totalSentences":28,"totalFootnotes":1628,"totalCitations":1628,"totalPages":2.1999999999999997},"2023-07-29":{"words":327,"characters":1836,"sentences":2,"pages":1.1,"files":9,"footnotes":0,"citations":0,"totalWords":1082,"totalCharacters":10236,"totalSentences":35,"totalFootnotes":0,"totalCitations":0,"totalPages":3.5},"2023-07-30":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-08-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2672,"totalCharacters":43999,"totalSentences":37,"totalFootnotes":0,"totalCitations":0,"totalPages":8.8},"2023-08-19":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-09-03":{"words":500,"characters":1088,"sentences":23,"pages":1.7,"files":11,"footnotes":0,"citations":0,"totalWords":3049,"totalCharacters":44853,"totalSentences":59,"totalFootnotes":31924,"totalCitations":31924,"totalPages":10.099999999999994},"2023-09-05":{"words":5,"characters":10,"sentences":0,"pages":0,"files":11,"footnotes":0,"citations":0,"totalWords":3054,"totalCharacters":44863,"totalSentences":59,"totalFootnotes":504,"totalCitations":504,"totalPages":10.100000000000001},"2023-09-09":{"words":3801,"characters":5678,"sentences":65,"pages":12.7,"files":16,"footnotes":0,"citations":0,"totalWords":7695,"totalCharacters":58444,"totalSentences":135,"totalFootnotes":0,"totalCitations":0,"totalPages":25.599999999999998},"2023-09-10":{"words":64,"characters":114,"sentences":2,"pages":0.19999999999999996,"files":17,"footnotes":0,"citations":0,"totalWords":7916,"totalCharacters":63690,"totalSentences":137,"totalFootnotes":6481,"totalCitations":6481,"totalPages":26.3},"2023-10-25":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7918,"totalCharacters":65864,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-11-22":{"words":0,"characters":0,"sentences":0,"pages":0,"files":17,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63694,"totalSentences":138,"totalFootnotes":135,"totalCitations":135,"totalPages":26.3},"2023-12-06":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63693,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-12-12":{"words":195,"characters":1233,"sentences":0,"pages":0.6000000000000001,"files":18,"footnotes":0,"citations":0,"totalWords":8112,"totalCharacters":64926,"totalSentences":138,"totalFootnotes":1361,"totalCitations":1361,"totalPages":26.9},"2024-01-26":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.400000000000002},"2024-02-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.400000000000002},"2024-03-24":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.4},"2024-04-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.4},"2024-04-05":{"words":54,"characters":120,"sentences":0,"pages":0.2,"files":19,"footnotes":0,"citations":0,"totalWords":8616,"totalCharacters":65856,"totalSentences":146,"totalFootnotes":275,"totalCitations":275,"totalPages":28.6},"2024-04-12":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8617,"totalCharacters":65857,"totalSentences":147,"totalFootnotes":0,"totalCitations":0,"totalPages":28.6},"2024-04-14":{"words":0,"characters":0,"sentences":0,"pages":0,"files":20,"footnotes":0,"citations":0,"totalWords":8617,"totalCharacters":65857,"totalSentences":147,"totalFootnotes":0,"totalCitations":0,"totalPages":28.6}},"modifiedFiles":{}} {"history":{"2023-07-28":{"words":5,"characters":54,"sentences":0,"pages":0,"files":5,"footnotes":0,"citations":0,"totalWords":673,"totalCharacters":4463,"totalSentences":28,"totalFootnotes":1628,"totalCitations":1628,"totalPages":2.1999999999999997},"2023-07-29":{"words":327,"characters":1836,"sentences":2,"pages":1.1,"files":9,"footnotes":0,"citations":0,"totalWords":1082,"totalCharacters":10236,"totalSentences":35,"totalFootnotes":0,"totalCitations":0,"totalPages":3.5},"2023-07-30":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-08-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2672,"totalCharacters":43999,"totalSentences":37,"totalFootnotes":0,"totalCitations":0,"totalPages":8.8},"2023-08-19":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":2549,"totalCharacters":43764,"totalSentences":36,"totalFootnotes":0,"totalCitations":0,"totalPages":8.4},"2023-09-03":{"words":500,"characters":1088,"sentences":23,"pages":1.7,"files":11,"footnotes":0,"citations":0,"totalWords":3049,"totalCharacters":44853,"totalSentences":59,"totalFootnotes":31924,"totalCitations":31924,"totalPages":10.099999999999994},"2023-09-05":{"words":5,"characters":10,"sentences":0,"pages":0,"files":11,"footnotes":0,"citations":0,"totalWords":3054,"totalCharacters":44863,"totalSentences":59,"totalFootnotes":504,"totalCitations":504,"totalPages":10.100000000000001},"2023-09-09":{"words":3801,"characters":5678,"sentences":65,"pages":12.7,"files":16,"footnotes":0,"citations":0,"totalWords":7695,"totalCharacters":58444,"totalSentences":135,"totalFootnotes":0,"totalCitations":0,"totalPages":25.599999999999998},"2023-09-10":{"words":64,"characters":114,"sentences":2,"pages":0.19999999999999996,"files":17,"footnotes":0,"citations":0,"totalWords":7916,"totalCharacters":63690,"totalSentences":137,"totalFootnotes":6481,"totalCitations":6481,"totalPages":26.3},"2023-10-25":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7918,"totalCharacters":65864,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-11-22":{"words":0,"characters":0,"sentences":0,"pages":0,"files":17,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63694,"totalSentences":138,"totalFootnotes":135,"totalCitations":135,"totalPages":26.3},"2023-12-06":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":7917,"totalCharacters":63693,"totalSentences":138,"totalFootnotes":0,"totalCitations":0,"totalPages":26.3},"2023-12-12":{"words":195,"characters":1233,"sentences":0,"pages":0.6000000000000001,"files":18,"footnotes":0,"citations":0,"totalWords":8112,"totalCharacters":64926,"totalSentences":138,"totalFootnotes":1361,"totalCitations":1361,"totalPages":26.9},"2024-01-26":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.400000000000002},"2024-02-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.400000000000002},"2024-03-24":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.4},"2024-04-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8562,"totalCharacters":65736,"totalSentences":146,"totalFootnotes":0,"totalCitations":0,"totalPages":28.4},"2024-04-05":{"words":54,"characters":120,"sentences":0,"pages":0.2,"files":19,"footnotes":0,"citations":0,"totalWords":8616,"totalCharacters":65856,"totalSentences":146,"totalFootnotes":275,"totalCitations":275,"totalPages":28.6},"2024-04-12":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8617,"totalCharacters":65857,"totalSentences":147,"totalFootnotes":0,"totalCitations":0,"totalPages":28.6},"2024-04-14":{"words":0,"characters":0,"sentences":0,"pages":0,"files":20,"footnotes":0,"citations":0,"totalWords":8617,"totalCharacters":65857,"totalSentences":147,"totalFootnotes":0,"totalCitations":0,"totalPages":28.6},"2024-04-25":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":8617,"totalCharacters":65857,"totalSentences":147,"totalFootnotes":0,"totalCitations":0,"totalPages":28.6}},"modifiedFiles":{}}

View File

@ -201,12 +201,11 @@
} }
} }
], ],
"currentTab": 4 "currentTab": 6
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 318.5, "width": 432.5
"collapsed": true
}, },
"left-ribbon": { "left-ribbon": {
"hiddenItems": { "hiddenItems": {
@ -222,10 +221,11 @@
"obsidian-excalidraw-plugin:Create new drawing": false, "obsidian-excalidraw-plugin:Create new drawing": false,
"table-editor-obsidian:Advanced Tables Toolbar": false, "table-editor-obsidian:Advanced Tables Toolbar": false,
"obsidian-advanced-slides:Show Slide Preview": false, "obsidian-advanced-slides:Show Slide Preview": false,
"notion-like-tables:Create new loom": false "notion-like-tables:Create new loom": false,
"copilot:Copilot Chat": false
} }
}, },
"active": "fd326d27e27daf28", "active": "d7130abc846688ac",
"lastOpenFiles": [ "lastOpenFiles": [
"Projects - rabbit's/software/HomeLab/HomeLab.md", "Projects - rabbit's/software/HomeLab/HomeLab.md",
"Projects - rabbit's/software/HomeLab/Hardware & Infrastructure & Services.md", "Projects - rabbit's/software/HomeLab/Hardware & Infrastructure & Services.md",