vault backup: 2022-06-12 16:21:05
Affected files: .obsidian/community-plugins.json .obsidian/plugins/oz-image-plugin/main.js .obsidian/plugins/oz-image-plugin/manifest.json .obsidian/plugins/oz-image-plugin/styles.css .obsidian/workspace 02. PARA/03. Resources(資源)/git/submodule.md attachments/20220608152709_git_submodule.png
This commit is contained in:
3
.obsidian/community-plugins.json
vendored
3
.obsidian/community-plugins.json
vendored
@@ -5,5 +5,6 @@
|
|||||||
"todoist-sync-plugin",
|
"todoist-sync-plugin",
|
||||||
"obsidian-columns",
|
"obsidian-columns",
|
||||||
"obsidian-tasks-plugin",
|
"obsidian-tasks-plugin",
|
||||||
"obsidian-git"
|
"obsidian-git",
|
||||||
|
"oz-image-plugin"
|
||||||
]
|
]
|
||||||
329
.obsidian/plugins/oz-image-plugin/main.js
vendored
Normal file
329
.obsidian/plugins/oz-image-plugin/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
.obsidian/plugins/oz-image-plugin/manifest.json
vendored
Normal file
10
.obsidian/plugins/oz-image-plugin/manifest.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "oz-image-plugin",
|
||||||
|
"name": "Ozan's Image in Editor Plugin",
|
||||||
|
"version": "2.1.1",
|
||||||
|
"minAppVersion": "0.13.14",
|
||||||
|
"description": "View Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.",
|
||||||
|
"author": "Ozan Tellioglu",
|
||||||
|
"authorUrl": "https://ozan.pl/aboutme/",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
||||||
270
.obsidian/plugins/oz-image-plugin/styles.css
vendored
Normal file
270
.obsidian/plugins/oz-image-plugin/styles.css
vendored
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
.CodeMirror-linewidget img {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-dark img[alt$='#invert'],
|
||||||
|
.theme-dark div.oz-image-widget > img[alt$='#invert'],
|
||||||
|
.theme-dark div.oz-image-widget-cm6 > img[alt$='#invert'] {
|
||||||
|
filter: invert(1) hue-rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-transclusion-widget,
|
||||||
|
.oz-transclusion-widget-cm6 {
|
||||||
|
padding: 3px 3px 3px 19px;
|
||||||
|
border: 0.7px solid var(--text-muted);
|
||||||
|
max-height: 600px;
|
||||||
|
overflow: auto;
|
||||||
|
border-radius: 7px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-coffee-div {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Line Numbers In Editor CodeBlock Renders */
|
||||||
|
pre[class*='language-'].line-numbers {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 3.8em;
|
||||||
|
counter-reset: linenumber;
|
||||||
|
}
|
||||||
|
pre[class*='language-'].line-numbers > code {
|
||||||
|
position: relative;
|
||||||
|
white-space: inherit;
|
||||||
|
}
|
||||||
|
.line-numbers .line-numbers-rows {
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
top: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
left: -3.8em;
|
||||||
|
width: 3em; /* works for line-numbers below 1000 lines */
|
||||||
|
letter-spacing: -1px;
|
||||||
|
border-right: 1px solid #999;
|
||||||
|
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
.line-numbers-rows > span {
|
||||||
|
display: block;
|
||||||
|
counter-increment: linenumber;
|
||||||
|
}
|
||||||
|
.line-numbers-rows > span:before {
|
||||||
|
content: counter(linenumber);
|
||||||
|
color: #999;
|
||||||
|
display: block;
|
||||||
|
padding-right: 0.8em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mermaid-error-information {
|
||||||
|
color: red;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-modal-center {
|
||||||
|
text-align: center;
|
||||||
|
margin: 20px 10px 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-modal-title {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-mathjax-block {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-image-widget > img,
|
||||||
|
.oz-image-widget-cm6 > img {
|
||||||
|
-webkit-user-drag: none;
|
||||||
|
user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.oz-transclusion-widget pre,
|
||||||
|
div.oz-transclusion-widget-cm6 pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-transclusion-widget > *,
|
||||||
|
.oz-transclusion-widget-cm6 > * {
|
||||||
|
user-select: text !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Rich Link Cards */
|
||||||
|
/* Credit: https://github.com/dhamaniasad/obsidian-rich-links */
|
||||||
|
.oz-rich-link-card {
|
||||||
|
border: 1px solid var(--background-modifier-border);
|
||||||
|
border-radius: 3px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: var(--background-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-card-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-image-container {
|
||||||
|
height: 100px;
|
||||||
|
width: 35%;
|
||||||
|
min-width: 120px;
|
||||||
|
overflow: hidden;
|
||||||
|
border-right: 1px solid var(--background-modifier-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-image {
|
||||||
|
background-position: center center;
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding-bottom: 100px;
|
||||||
|
background-color: var(--background-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-card-text {
|
||||||
|
padding: 4px;
|
||||||
|
width: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-card-title {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0 0 4px 0;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
color: var(--text-normal);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-card-description {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0;
|
||||||
|
color: var(--text-muted);
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-rich-link-href {
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0;
|
||||||
|
color: var(--text-faint);
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-in-editor-settings-main-header {
|
||||||
|
text-align: center !important;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-in-editor-cm-header {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-in-editor-editor-header {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sizing for CM5 and CM6 */
|
||||||
|
|
||||||
|
div.oz-image-widget > img[alt$='#small'],
|
||||||
|
div.oz-image-widget-cm6 > img[alt$='#small'] {
|
||||||
|
max-width: 75% !important;
|
||||||
|
min-width: 200pt !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.oz-image-widget > img[alt$='#x-small'],
|
||||||
|
div.oz-image-widget-cm6 > img[alt$='#x-small'] {
|
||||||
|
max-width: 50% !important;
|
||||||
|
min-width: 100pt !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.oz-image-widget > img[alt$='#xx-small'],
|
||||||
|
div.oz-image-widget-cm6 > img[alt$='#xx-small'] {
|
||||||
|
max-width: 25% !important;
|
||||||
|
min-width: 50pt !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style For CM6 */
|
||||||
|
|
||||||
|
div.oz-image-widget-cm6,
|
||||||
|
div.oz-custom-html-widget-cm6,
|
||||||
|
div.oz-pdf-widget-cm6 {
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.oz-image-widget-cm6 + br,
|
||||||
|
div.oz-custom-html-widget-cm6 + br,
|
||||||
|
div.oz-pdf-widget-cm6 + br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-line div.oz-transclusion-widget-cm6 {
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-line div.oz-transclusion-widget-cm6 * {
|
||||||
|
margin-block-start: 0px !important;
|
||||||
|
margin-block-end: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Legacy Admonition */
|
||||||
|
|
||||||
|
.oz-admonition {
|
||||||
|
margin: 1.5em 0;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
border-left: 0.3rem solid rgb(var(--oz-admonition-color));
|
||||||
|
border-radius: 0.1rem;
|
||||||
|
box-shadow: 0 0.2rem 0.5rem rgb(44, 43, 43);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-admonition-title {
|
||||||
|
position: relative;
|
||||||
|
padding: 15px 5px 15px 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
background-color: rgba(var(--oz-admonition-color), 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-admonition-title-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
margin-top: 0 !important;
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-admonition-content-holder {
|
||||||
|
position: relative;
|
||||||
|
padding-top: 15px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-admonition-content {
|
||||||
|
margin: 10px 15px;
|
||||||
|
position: relative;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oz-admonition-title-markdown {
|
||||||
|
text-transform: capitalize;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
46
.obsidian/workspace
vendored
46
.obsidian/workspace
vendored
@@ -9,7 +9,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "00. TOP/01. TODO.md",
|
"file": "02. PARA/03. Resources(資源)/Obsidian.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": true
|
"source": true
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "00. TOP/01. TODO.md",
|
"file": "02. PARA/03. Resources(資源)/Obsidian.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@@ -80,6 +80,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "f94af359d1970a2d",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "outline",
|
||||||
|
"state": {
|
||||||
|
"file": "02. PARA/03. Resources(資源)/Obsidian.md"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "a0240ced26011060",
|
||||||
|
"type": "tabs",
|
||||||
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "18b9707a37e1188a",
|
"id": "18b9707a37e1188a",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
@@ -90,28 +106,24 @@
|
|||||||
"useHierarchy": true
|
"useHierarchy": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "f94af359d1970a2d",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "outline",
|
|
||||||
"state": {
|
|
||||||
"file": "00. TOP/01. TODO.md"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 300,
|
"width": 300
|
||||||
"collapsed": true
|
|
||||||
},
|
},
|
||||||
"active": "cfe19fa2de06a1e6",
|
"active": "cfe19fa2de06a1e6",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"00. TOP/01. TODO.md",
|
"02. PARA/03. Resources(資源)/Obsidian.md",
|
||||||
"00. TOP/00. Inbox.md",
|
"attachments/Pasted image 20201206094618.png",
|
||||||
"01. Daily/2022-06-06(週一).md"
|
"attachments/para_example.png",
|
||||||
|
"attachments/Dicker Max_001.jpg",
|
||||||
|
"attachments/92709501_101757388184474_261941160505769984_o.jpg",
|
||||||
|
"attachments/2018-10-0912.49.30.png",
|
||||||
|
"attachments/2018-10-13_02.jpg",
|
||||||
|
"attachments/2018-10-13_01.jpg",
|
||||||
|
"attachments/2018-10-06_02.jpg",
|
||||||
|
"attachments/2018-10-06_01.jpg"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
git submodule add <repository> [<local_path>]
|
git submodule add <repository> [<local_path>]
|
||||||
```
|
```
|
||||||
新增之後,用 git status 會發現多了兩個東西需要 commit:
|
新增之後,用 git status 會發現多了兩個東西需要 commit:
|
||||||
![[Pasted image 20220608152709.png]]
|
![[20220608152709_git_submodule.png|450]]
|
||||||
|
|
||||||
第一個檔案 .gitmodules,裡面紀錄 submodule 的對應關係,內容大概像這樣:
|
第一個檔案 .gitmodules,裡面紀錄 submodule 的對應關係,內容大概像這樣:
|
||||||
```
|
```
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user