Merge branch 'main' of git.mstar.dev:mstar/HHS

This commit is contained in:
Melody Becker 2024-12-04 07:36:37 +01:00
commit ba3dd6d4d4
23 changed files with 1700 additions and 21 deletions

View file

@ -1,4 +1,6 @@
[ [
"obsidian-excalidraw-plugin", "obsidian-excalidraw-plugin",
"dataview" "dataview",
"pdf-plus",
"omnisearch"
] ]

150
.obsidian/plugins/mehrmaid/main.js vendored Normal file
View file

@ -0,0 +1,150 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/main.ts
var main_exports = {};
__export(main_exports, {
default: () => Mehrmaid
});
module.exports = __toCommonJS(main_exports);
var import_obsidian2 = require("obsidian");
// src/mermaid.ts
var import_obsidian = require("obsidian");
// src/themes.ts
var THEME_DARK = {
theme: "dark",
"themeVariables": {
"primaryColor": "#BB2528",
"primaryTextColor": "#fff",
"primaryBorderColor": "#7C0000",
"lineColor": "#dadada",
"secondaryColor": "#006100",
"tertiaryColor": "#fff",
"clusterBkg": "#242424",
"clusterBorder": "#2d2d2d",
"nodeBorder": "#dadada"
},
securityLevel: "loose",
startOnLoad: true,
flowchart: {
htmlLabels: true
}
};
var THEME_LIGHT = {
theme: "neutral",
"themeVariables": {
"primaryBorderColor": "#000",
"clusterBorder": "#2d2d2d",
"lineColor": "#000",
"nodeBorder": "#000"
},
securityLevel: "loose",
startOnLoad: true,
flowchart: {
htmlLabels: true
}
};
// src/mermaid.ts
async function renderMarkdown(str, el, ctx, app) {
const markdownRenderChild = new import_obsidian.MarkdownRenderChild(el);
const markdownEl = el.createDiv();
markdownEl.addClass("mehrmaid-markdown-container");
if (ctx && !(typeof ctx == "string")) {
ctx.addChild(markdownRenderChild);
}
await import_obsidian.MarkdownRenderer.render(app, str, markdownEl, ctx.sourcePath, markdownRenderChild);
return markdownEl;
}
async function renderMehrmaid(source, el, ctx) {
var _a;
const mermaid = await (0, import_obsidian.loadMermaid)();
let config = {};
if (document.body.classList.contains("theme-dark")) {
config = THEME_DARK;
source += "\nclassDef primary fill:#8a5cf5";
} else {
config = THEME_LIGHT;
source += "\nclassDef primary fill:#a68afa";
}
mermaid.initialize(config);
mermaid.mermaidAPI.setConfig(config);
let matches = source.match(/"([^"]*?)"/g);
if (matches) {
const promises = [];
for (let match of matches) {
match = match.substring(1, match.length - 1);
promises.push(renderMarkdown(match, el, ctx, this.app));
}
const markdownEls = await Promise.all(promises);
let widths = [];
let heights = [];
for (let markdownEl of markdownEls) {
widths.push(markdownEl.offsetWidth);
heights.push(markdownEl.offsetHeight);
}
el.empty();
for (let i = 0; i < matches.length; i++) {
let match = matches[i];
let markdownEl = markdownEls[i];
let width = widths[i];
width = Math.max(width, 10);
let height = heights[i];
height = Math.max(height, 10);
let id = match.replace(/[^a-zA-Z0-9]/g, "") + i;
source = source.replace(
match,
`<div class="${id} cm-sizer" style="width: ${width}px; height: ${height - 7}px; display: inline-block;"></div>`
);
}
const graphId = "mehrmaid-" + ((_a = ctx.getSectionInfo(el)) == null ? void 0 : _a.lineStart) + "-" + Date.now();
const { svg } = await mermaid.render(graphId, source);
el.insertAdjacentHTML("beforeend", svg);
for (let i = 0; i < markdownEls.length; i++) {
let id = matches[i].replace(/[^a-zA-Z0-9]/g, "") + i;
let markdownEl = markdownEls[i];
let htmlEl = el.getElementsByClassName(id)[0];
htmlEl.appendChild(markdownEl);
}
}
}
// src/main.ts
var Mehrmaid = class extends import_obsidian2.Plugin {
async onload() {
this.app.workspace.onLayoutReady(() => {
this.registerMarkdownCodeBlockProcessor("mehrmaid", async (source, el, ctx) => {
try {
await renderMehrmaid(source, el, ctx);
} catch (e) {
console.error(e);
new import_obsidian2.Notice("Mehrmaid: Error rendering mermaid diagram");
}
});
});
}
};
/* nosourcemap */

View file

@ -0,0 +1,10 @@
{
"id": "mehrmaid",
"name": "Mehrmaid",
"version": "0.0.2",
"minAppVersion": "0.15.0",
"description": "Enables you to put Markdown inside of Mermaid diagrams.",
"author": "huterguier",
"authorUrl": "https://github.com/huterguier",
"isDesktopOnly": false
}

13
.obsidian/plugins/mehrmaid/styles.css vendored Normal file
View file

@ -0,0 +1,13 @@
.block-language-mehrmaid p:first-child {
padding-top: 0;
margin-top: 0;
}
.block-language-mehrmaid p:last-child {
padding-bottom: 0;
margin-bottom: 0;
}
.mehrmaid-markdown-container {
display: inline-block;
}

41
.obsidian/plugins/omnisearch/data.json vendored Normal file
View file

@ -0,0 +1,41 @@
{
"useCache": true,
"hideExcluded": false,
"downrankedFoldersFilters": [],
"ignoreDiacritics": true,
"ignoreArabicDiacritics": false,
"indexedFileTypes": [],
"displayTitle": "",
"PDFIndexing": false,
"officeIndexing": false,
"imagesIndexing": false,
"aiImageIndexing": false,
"unsupportedFilesIndexing": "default",
"splitCamelCase": false,
"openInNewPane": false,
"vimLikeNavigationShortcut": false,
"ribbonIcon": true,
"showExcerpt": true,
"maxEmbeds": 5,
"renderLineReturnInExcerpts": true,
"showCreateButton": false,
"highlight": true,
"showPreviousQueryResults": true,
"simpleSearch": false,
"tokenizeUrls": false,
"fuzziness": "1",
"weightBasename": 10,
"weightDirectory": 7,
"weightH1": 6,
"weightH2": 5,
"weightH3": 4,
"weightUnmarkedTags": 2,
"weightCustomProperties": [],
"httpApiEnabled": false,
"httpApiPort": "51361",
"httpApiNotice": true,
"welcomeMessage": "1.21.0",
"verboseLogging": false,
"DANGER_httpHost": null,
"DANGER_forceSaveCache": false
}

109
.obsidian/plugins/omnisearch/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,14 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.25.1",
"minAppVersion": "1.7.2",
"description": "A search engine that just works",
"author": "Simon Cambier",
"authorUrl": "https://github.com/scambier/obsidian-omnisearch",
"fundingUrl": {
"Github": "https://github.com/sponsors/scambier",
"Ko-fi": "https://ko-fi.com/scambier"
},
"isDesktopOnly": false
}

135
.obsidian/plugins/omnisearch/styles.css vendored Normal file
View file

@ -0,0 +1,135 @@
.omnisearch-modal {
}
.omnisearch-result {
white-space: normal;
display: flex;
flex-direction: row;
/* justify-content: space-between; */
flex-wrap: nowrap;
}
.omnisearch-result__title-container {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 5px;
flex-wrap: wrap;
}
.omnisearch-result__title {
white-space: pre-wrap;
align-items: center;
display: flex;
gap: 5px;
}
.omnisearch-result__title > span {
}
.omnisearch-result__folder-path {
font-size: 0.75rem;
align-items: center;
display: flex;
gap: 5px;
color: var(--text-muted);
}
.omnisearch-result__extension {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__counter {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__body {
white-space: normal;
font-size: small;
word-wrap: normal;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
color: var(--text-muted);
margin-inline-start: 0.5em;
}
.omnisearch-result__embed {
margin-left: 1em;
}
.omnisearch-result__image-container {
flex-basis: 20%;
text-align: end;
}
.omnisearch-highlight {
}
.omnisearch-default-highlight {
text-decoration: underline;
text-decoration-color: var(--text-highlight-bg);
text-decoration-thickness: 3px;
text-underline-offset: -1px;
text-decoration-skip-ink: none;
}
.omnisearch-input-container {
display: flex;
align-items: center;
flex-direction: row;
gap: 5px;
}
.omnisearch-result__icon {
display: inline-block;
vertical-align: middle;
width: 16px;
height: 16px;
margin-right: 4px;
}
.omnisearch-result__icon svg {
width: 100%;
height: 100%;
}
.omnisearch-result__icon--emoji {
font-size: 16px;
vertical-align: middle;
margin-right: 4px;
}
@media only screen and (max-width: 600px) {
.omnisearch-input-container {
flex-direction: column;
}
.omnisearch-input-container__buttons {
display: flex;
flex-direction: row;
width: 100%;
padding: 0 1em 0 1em;
gap: 1em;
}
.omnisearch-input-container__buttons > button {
flex-grow: 1;
}
}
@media only screen and (min-width: 600px) {
.omnisearch-input-container__buttons {
margin-inline-end: 1em;
}
}
.omnisearch-input-field {
position: relative;
flex-grow: 1;
}

319
.obsidian/plugins/pdf-plus/data.json vendored Normal file
View file

@ -0,0 +1,319 @@
{
"displayTextFormats": [
{
"name": "Title & page",
"template": "{{file.basename}}, p.{{pageLabel}}"
},
{
"name": "Page",
"template": "p.{{pageLabel}}"
},
{
"name": "Text",
"template": "{{text}}"
},
{
"name": "Emoji",
"template": "📖"
},
{
"name": "None",
"template": ""
}
],
"defaultDisplayTextFormatIndex": 0,
"syncDisplayTextFormat": true,
"syncDefaultDisplayTextFormat": false,
"copyCommands": [
{
"name": "Quote",
"template": "> ({{linkWithDisplay}})\n> {{selection}}\n"
},
{
"name": "Link",
"template": "{{linkWithDisplay}}"
},
{
"name": "Embed",
"template": "!{{link}}"
},
{
"name": "Callout",
"template": "> [!{{calloutType}}|{{color}}] {{linkWithDisplay}}\n> {{text}}\n"
},
{
"name": "Quote in callout",
"template": "> [!{{calloutType}}|{{color}}] {{linkWithDisplay}}\n> > {{text}}\n> \n> "
}
],
"useAnotherCopyTemplateWhenNoSelection": false,
"copyTemplateWhenNoSelection": "{{linkToPageWithDisplay}}",
"trimSelectionEmbed": false,
"embedMargin": 50,
"noSidebarInEmbed": true,
"noSpreadModeInEmbed": true,
"embedUnscrollable": false,
"singleTabForSinglePDF": true,
"highlightExistingTab": false,
"existingTabHighlightOpacity": 0.5,
"existingTabHighlightDuration": 0.75,
"paneTypeForFirstPDFLeaf": "left",
"openLinkNextToExistingPDFTab": true,
"openPDFWithDefaultApp": false,
"openPDFWithDefaultAppAndObsidian": true,
"focusObsidianAfterOpenPDFWithDefaultApp": true,
"syncWithDefaultApp": false,
"dontActivateAfterOpenPDF": true,
"dontActivateAfterOpenMD": true,
"highlightDuration": 0.75,
"noTextHighlightsInEmbed": false,
"noAnnotationHighlightsInEmbed": true,
"persistentTextHighlightsInEmbed": true,
"persistentAnnotationHighlightsInEmbed": false,
"highlightBacklinks": true,
"selectionBacklinkVisualizeStyle": "highlight",
"dblclickEmbedToOpenLink": true,
"highlightBacklinksPane": true,
"highlightOnHoverBacklinkPane": true,
"backlinkHoverColor": "",
"colors": {
"Yellow": "#ffd000",
"Red": "#ea5252",
"Note": "#086ddd",
"Important": "#bb61e5"
},
"defaultColor": "",
"defaultColorPaletteItemIndex": 0,
"syncColorPaletteItem": true,
"syncDefaultColorPaletteItem": false,
"colorPaletteInToolbar": true,
"noColorButtonInColorPalette": true,
"colorPaletteInEmbedToolbar": false,
"quietColorPaletteTooltip": false,
"showStatusInToolbar": true,
"highlightColorSpecifiedOnly": false,
"doubleClickHighlightToOpenBacklink": true,
"hoverHighlightAction": "preview",
"paneTypeForFirstMDLeaf": "right",
"singleMDLeafInSidebar": true,
"alwaysUseSidebar": true,
"ignoreExistingMarkdownTabIn": [],
"defaultColorPaletteActionIndex": 4,
"syncColorPaletteAction": true,
"syncDefaultColorPaletteAction": false,
"proxyMDProperty": "PDF",
"hoverPDFLinkToOpen": false,
"ignoreHeightParamInPopoverPreview": true,
"filterBacklinksByPageDefault": true,
"showBacklinkToPage": true,
"enableHoverPDFInternalLink": true,
"recordPDFInternalLinkHistory": true,
"alwaysRecordHistory": true,
"renderMarkdownInStickyNote": false,
"enablePDFEdit": false,
"author": "",
"writeHighlightToFileOpacity": 0.2,
"defaultWriteFileToggle": false,
"syncWriteFileToggle": true,
"syncDefaultWriteFileToggle": false,
"enableAnnotationDeletion": true,
"warnEveryAnnotationDelete": false,
"warnBacklinkedAnnotationDelete": true,
"enableAnnotationContentEdit": true,
"enableEditEncryptedPDF": false,
"pdfLinkColor": "#04a802",
"pdfLinkBorder": false,
"replaceContextMenu": true,
"showContextMenuOnMouseUpIf": "Mod",
"contextMenuConfig": [
{
"id": "action",
"visible": true
},
{
"id": "selection",
"visible": true
},
{
"id": "write-file",
"visible": true
},
{
"id": "annotation",
"visible": true
},
{
"id": "modify-annotation",
"visible": true
},
{
"id": "link",
"visible": true
},
{
"id": "text",
"visible": true
},
{
"id": "search",
"visible": true
},
{
"id": "speech",
"visible": true
},
{
"id": "page",
"visible": true
},
{
"id": "settings",
"visible": true
}
],
"selectionProductMenuConfig": [
"color",
"copy-format",
"display"
],
"writeFileProductMenuConfig": [
"color",
"copy-format",
"display"
],
"annotationProductMenuConfig": [
"copy-format",
"display"
],
"updateColorPaletteStateFromContextMenu": true,
"mobileCopyAction": "pdf-plus",
"showContextMenuOnTablet": false,
"executeBuiltinCommandForOutline": true,
"executeBuiltinCommandForZoom": true,
"executeFontSizeAdjusterCommand": true,
"closeSidebarWithShowCommandIfExist": true,
"autoHidePDFSidebar": false,
"defaultSidebarView": 1,
"outlineDrag": true,
"outlineContextMenu": true,
"outlineLinkDisplayTextFormat": "{{file.basename}}, {{text}}",
"outlineLinkCopyFormat": "{{linkWithDisplay}}",
"recordHistoryOnOutlineClick": true,
"popoverPreviewOnOutlineHover": true,
"thumbnailDrag": true,
"thumbnailContextMenu": true,
"thumbnailLinkDisplayTextFormat": "{{file.basename}}, p.{{pageLabel}}",
"thumbnailLinkCopyFormat": "{{linkWithDisplay}}",
"recordHistoryOnThumbnailClick": true,
"popoverPreviewOnThumbnailHover": true,
"annotationPopupDrag": true,
"showAnnotationPopupOnHover": true,
"useCallout": true,
"calloutType": "PDF",
"calloutIcon": "highlighter",
"highlightBacklinksInEmbed": false,
"highlightBacklinksInHoverPopover": false,
"highlightBacklinksInCanvas": true,
"clickPDFInternalLinkWithModifierKey": true,
"clickOutlineItemWithModifierKey": true,
"clickThumbnailWithModifierKey": true,
"focusEditorAfterAutoPaste": true,
"clearSelectionAfterAutoPaste": true,
"respectCursorPositionWhenAutoPaste": true,
"autoCopy": false,
"autoFocus": false,
"autoPaste": false,
"autoFocusTarget": "last-active-and-open-then-last-paste",
"autoPasteTarget": "last-active-and-open-then-last-paste",
"openAutoFocusTargetIfNotOpened": true,
"howToOpenAutoFocusTargetIfNotOpened": "right",
"closeHoverEditorWhenLostFocus": true,
"closeSidebarWhenLostFocus": false,
"openAutoFocusTargetInEditingView": true,
"executeCommandWhenTargetNotIdentified": true,
"commandToExecuteWhenTargetNotIdentified": "switcher:open",
"autoPasteTargetDialogTimeoutSec": 20,
"autoCopyToggleRibbonIcon": true,
"autoCopyIconName": "highlighter",
"autoFocusToggleRibbonIcon": true,
"autoFocusIconName": "zap",
"autoPasteToggleRibbonIcon": true,
"autoPasteIconName": "clipboard-paste",
"viewSyncFollowPageNumber": true,
"viewSyncPageDebounceInterval": 0.3,
"openAfterExtractPages": true,
"howToOpenExtractedPDF": "tab",
"warnEveryPageDelete": false,
"warnBacklinkedPageDelete": true,
"extractPageInPlace": false,
"askExtractPageInPlace": true,
"pageLabelUpdateWhenInsertPage": "keep",
"pageLabelUpdateWhenDeletePage": "keep",
"pageLabelUpdateWhenExtractPage": "keep",
"askPageLabelUpdateWhenInsertPage": true,
"askPageLabelUpdateWhenDeletePage": true,
"askPageLabelUpdateWhenExtractPage": true,
"copyOutlineAsListFormat": "{{linkWithDisplay}}",
"copyOutlineAsListDisplayTextFormat": "{{text}}",
"copyOutlineAsHeadingsFormat": "{{text}}\n\n{{linkWithDisplay}}",
"copyOutlineAsHeadingsDisplayTextFormat": "p.{{pageLabel}}",
"copyOutlineAsHeadingsMinLevel": 2,
"newFileNameFormat": "",
"newFileTemplatePath": "",
"newPDFLocation": "current",
"newPDFFolderPath": "",
"rectEmbedStaticImage": false,
"rectImageFormat": "file",
"rectImageExtension": "webp",
"zoomToFitRect": false,
"rectEmbedResolution": 100,
"includeColorWhenCopyingRectLink": true,
"backlinkIconSize": 50,
"showBacklinkIconForSelection": false,
"showBacklinkIconForAnnotation": false,
"showBacklinkIconForOffset": true,
"showBacklinkIconForRect": false,
"showBoundingRectForBacklinkedAnnot": false,
"hideReplyAnnotation": false,
"searchLinkHighlightAll": "true",
"searchLinkCaseSensitive": "true",
"searchLinkMatchDiacritics": "default",
"searchLinkEntireWord": "false",
"dontFitWidthWhenOpenPDFLink": true,
"preserveCurrentLeftOffsetWhenOpenPDFLink": false,
"defaultZoomValue": "page-width",
"scrollModeOnLoad": 0,
"spreadModeOnLoad": 0,
"hoverableDropdownMenuInToolbar": true,
"zoomLevelInputBoxInToolbar": true,
"popoverPreviewOnExternalLinkHover": true,
"actionOnCitationHover": "pdf-plus-bib-popover",
"enableBibInEmbed": false,
"enableBibInHoverPopover": false,
"enableBibInCanvas": true,
"copyAsSingleLine": true,
"removeWhitespaceBetweenCJChars": true,
"dummyFileFolderPath": "",
"externalURIPatterns": [
".*\\.pdf$",
"https://arxiv.org/pdf/.*"
],
"modifierToDropExternalPDFToCreateDummy": [
"Shift"
],
"vim": false,
"vimrcPath": "",
"vimVisualMotion": true,
"vimScrollSize": 40,
"vimLargerScrollSizeWhenZoomIn": true,
"vimContinuousScrollSpeed": 1.2,
"vimSmoothScroll": true,
"vimHlsearch": true,
"vimIncsearch": true,
"enableVimInContextMenu": true,
"enableVimOutlineMode": true,
"vimSmoothOutlineMode": true,
"vimHintChars": "hjklasdfgyuiopqwertnmzxcvb",
"vimHintArgs": "all",
"PATH": ""
}

127
.obsidian/plugins/pdf-plus/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,15 @@
{
"id": "pdf-plus",
"name": "PDF++",
"version": "0.40.13",
"minAppVersion": "1.5.8",
"description": "The most Obsidian-native PDF annotation tool ever.",
"author": "Ryota Ushio",
"authorUrl": "https://github.com/RyotaUshio",
"fundingUrl": {
"GitHub Sponsor": "https://github.com/sponsors/RyotaUshio",
"Buy Me a Coffee": "https://www.buymeacoffee.com/ryotaushio",
"Ko-fi": "https://ko-fi.com/ryotaushio"
},
"isDesktopOnly": false
}

609
.obsidian/plugins/pdf-plus/styles.css vendored Normal file
View file

@ -0,0 +1,609 @@
/* @settings
name: PDF++
id: pdf-plus
settings:
-
id: pdf-highlight
title: Highlights
type: heading
level: 2
-
id: pdf-plus-highlight-opacity
title: Highlight opacity
type: variable-number-slider
min: 0
max: 1
step: 0.01
default: 0.2
-
id: pdf-plus-highlight-padding-vertical-em
title: Highlight padding (top & bottom)
description: Boldness of highlights (em)
type: variable-number-slider
min: 0
max: 1
step: 0.01
default: 0.05
format: em
-
id: pdf-plus-highlight-padding-horizontal-em
title: Highlight padding (left & right)
description: Boldness of highlights (em)
type: variable-number-slider
min: 0
max: 1
step: 0.01
default: 0.05
format: em
-
id: pdf-rect
title: Rectanglular selection
type: heading
level: 2
-
id: pdf-plus-rect-highlight-opacity
title: Rectangle highlight opacity
type: variable-number-slider
min: 0
max: 1
step: 0.01
default: 1
-
id: pdf-plus-rect-highlight-border-width
title: Rectangle highlight border width (px)
type: variable-number-slider
min: 1
max: 10
step: 1
default: 2
format: px
-
id: pdf-toolbar
title: PDF toolbars
type: heading
level: 2
-
id: hide-pdf-embed-toolbar
title: Hide toolbar in PDF embeds with a page specified
type: class-toggle
default: true
-
id: hide-pdf-toolbar-in-hover-editor
title: Hide PDF toolbar in Hover Editor
type: class-toggle
default: true
-
id: pdf-sidebar
title: PDF sidebars
type: heading
level: 2
-
id: pdf-plus-sidebar-width
title: Sidebar width (px)
type: variable-number-slider
min: 100
max: 1000
step: 10
default: 140
format: px
-
id: pdf-plus-vim
title: Vim keybindings
type: heading
level: 2
-
id: pdf-plus-vim-hin
title: Hint mode
type: heading
level: 3
-
id: pdf-plus-vim-hint-inverted
title: Inverted color scheme
type: class-toggle
default: false
*/
:root {
--pdf-plus-highlight-padding-default-em: 0.05em;
}
.hide-pdf-embed-toolbar .pdf-embed[src*="#"] .pdf-toolbar,
.hide-pdf-embed-toolbar .popover.hover-popover.hover-editor .pdf-embed[src*="#"] .pdf-toolbar {
display: none;
}
.hide-pdf-toolbar-in-hover-editor .popover.hover-popover.hover-editor .view-content>.pdf-toolbar {
display: none !important;
}
/* When hovering over a highlighted text in PDF viewer, highlight the corresponding item in backlink pane */
.backlink-pane .search-result-file-match.hovered-backlink,
.backlink-pane .search-result-file-matches:has(.better-search-views-tree) .better-search-views-file-match.hovered-backlink:not(:hover) {
background-color: var(--text-selection);
}
.setting-item.no-border,
.pdf-plus-settings.vertical-tab-content .setting-item.no-border {
border-top: none;
&.small-padding {
padding-top: 0;
}
}
.setting-item-control input.error {
border-color: var(--background-modifier-error);
}
.setting-item-description.error {
color: var(--background-modifier-error);
}
.is-mobile,
.is-tablet {
.pdf-plus-color-palette .pdf-plus-color-palette-item-inner {
width: calc(var(--swatch-width) * 0.85);
height: calc(var(--swatch-width) * 0.85);
}
}
.pdf-plus-color-palette {
user-select: none;
-webkit-user-select: none;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
.pdf-plus-color-palette-item {
/* Avoid text selections to be cleared when tapping on a color palette item on the mobile app */
/* https://github.com/RyotaUshio/obsidian-pdf-plus/issues/169 */
user-select: none;
.pdf-plus-color-palette-item-inner {
width: var(--swatch-width);
height: var(--swatch-width);
border-radius: 50%;
border: var(--input-border-width) solid var(--background-modifier-border);
}
}
.pdf-plus-color-palette-status-container {
padding: var(--size-2-2) var(--size-2-3);
color: var(--text-muted);
font-size: var(--font-ui-small);
text-wrap: nowrap;
}
}
.menu .menu-item.pdf-plus-color-menu-item {
padding-left: 0;
.pdf-plus-color-indicator {
border-radius: 50%;
border-width: 0;
height: var(--size-4-3);
width: var(--size-4-3);
}
}
.pdf-toolbar .clickable-icon.is-disabled {
background-color: inherit;
&>svg {
color: var(--text-faint);
}
}
/* .pdf-page-input, */
.pdf-zoom-level-input {
width: 6ch;
text-align: right;
font-variant-numeric: tabular-nums;
}
.pdf-zoom-level-percent {
white-space: nowrap;
margin-right: var(--size-4-1);
font-size: var(--font-ui-small);
font-variant-numeric: tabular-nums;
}
.pdf-plus-settings.vertical-tab-content {
--pdf-plus-settings-header-height: var(--size-4-12);
padding-top: 0;
padding-left: 0;
padding-right: 0;
}
.pdf-plus-settings.vertical-tab-content .header-container {
position: sticky;
top: 0;
z-index: 10;
height: var(--pdf-plus-settings-header-height);
line-height: var(--pdf-plus-settings-header-height);
text-align: center;
background-color: var(--background-secondary);
border-bottom: 1px solid var(--divider-color);
padding: 0 var(--size-4-4);
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
display: flex;
justify-content: space-between;
align-items: center;
.header {
line-height: normal;
.header-title {
display: none;
}
}
}
.pdf-plus-settings.vertical-tab-content .content {
padding-top: var(--size-4-8);
padding-bottom: var(--size-4-16);
padding-left: var(--size-4-12);
padding-right: var(--size-4-12);
}
.pdf-plus-settings.vertical-tab-content .spacer {
height: var(--pdf-plus-settings-header-height);
}
.pdf-plus-settings.vertical-tab-content .top-note {
min-height: var(--pdf-plus-settings-header-height);
color: var(--text-muted);
font-size: var(--font-ui-smaller);
}
.pdf-plus-settings .setting-item-description,
.pdf-plus-modal .setting-item-description {
&>p:first-child {
margin-top: 0;
}
&>p:last-child {
margin-bottom: 0;
}
}
.pdf-plus-settings .ignore-split-setting.setting-item {
padding-top: 0;
}
.annotationLayer .popupContent {
&>p:first-child {
margin-top: 0;
}
&>p:last-child {
margin-bottom: 0;
}
}
.pdf-plus-backlink-highlight-layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
transform-origin: 0 0;
pointer-events: none;
}
.pdf-plus-backlink-highlight-layer .pdf-plus-backlink {
position: absolute;
pointer-events: auto;
}
.pdf-plus-backlink-highlight-layer .pdf-plus-backlink.pdf-plus-backlink-selection {
box-sizing: content-box;
cursor: text;
}
.pdf-plus-backlink-highlight-layer .rect-highlight {
background-color: rgb(var(--text-highlight-bg-rgb));
border-radius: var(--radius-m);
opacity: 0.2;
}
body:not(.pdf-plus-backlink-selection-underline) .pdf-plus-backlink-highlight-layer .pdf-plus-backlink.pdf-plus-backlink-selection {
background-color: rgb(from var(--pdf-plus-color) r g b / var(--pdf-plus-highlight-opacity, 0.2));
padding: var(--pdf-plus-highlight-padding-vertical-em, var(--pdf-plus-highlight-padding-default-em)) var(--pdf-plus-highlight-padding-horizontal-em, var(--pdf-plus-highlight-padding-default-em));
margin: calc(var(--pdf-plus-highlight-padding-vertical-em, var(--pdf-plus-highlight-padding-default-em)) * -1) calc(var(--pdf-plus-highlight-padding-horizontal-em, var(--pdf-plus-highlight-padding-default-em)) * -1);
border-radius: 0.1em;
}
body.pdf-plus-backlink-selection-underline {
.pdf-plus-backlink-highlight-layer .pdf-plus-backlink.pdf-plus-backlink-selection {
padding: 0;
margin: 0;
opacity: 1.0;
border-radius: 0;
}
.pdf-plus-backlink-highlight-layer[data-main-rotation="0"] .pdf-plus-backlink.pdf-plus-backlink-selection {
border-bottom: 0.1em solid var(--pdf-plus-color);
}
.pdf-plus-backlink-highlight-layer[data-main-rotation="90"] .pdf-plus-backlink.pdf-plus-backlink-selection {
border-right: 0.1em solid var(--pdf-plus-color);
}
.pdf-plus-backlink-highlight-layer[data-main-rotation="180"] .pdf-plus-backlink.pdf-plus-backlink-selection {
border-top: 0.1em solid var(--pdf-plus-color);
}
.pdf-plus-backlink-highlight-layer[data-main-rotation="270"] .pdf-plus-backlink.pdf-plus-backlink-selection {
border-left: 0.1em solid var(--pdf-plus-color);
}
}
.pdf-plus-backlink-highlight-layer .pdf-plus-backlink.pdf-plus-backlink-fit-r {
border: dashed rgb(from var(--pdf-plus-rect-color) r g b / var(--pdf-plus-rect-highlight-opacity, 1)) var(--pdf-plus-rect-highlight-border-width, 2px);
}
.pdf-plus-backlink-icon {
position: absolute;
--icon-size: 100%;
}
[data-main-rotation="90"] .pdf-plus-backlink-icon {
transform: rotate(270deg);
}
[data-main-rotation="180"] .pdf-plus-backlink-icon {
transform: rotate(180deg);
}
[data-main-rotation="270"] .pdf-plus-backlink-icon {
transform: rotate(90deg);
}
.pdf-plus-annotation-edit-modal {
.desc {
margin-bottom: var(--size-4-4);
}
.preview-container {
background: var(--background-modifier-form-field);
border: var(--input-border-width) solid var(--background-modifier-border);
border-radius: var(--input-radius);
padding: var(--size-4-1) var(--size-4-2);
text-align: left;
&>p:first-child {
margin-top: 0;
}
&>p:last-child {
margin-bottom: 0;
}
}
/* Arrange two children of .setting-item, namely .setting-item-info and .setting-item-contrl, vertically */
.setting-item:last-child:has(textarea) {
display: flex;
flex-direction: column;
justify-content: left;
align-items: flex-start;
.setting-item-control {
width: 100%;
padding-top: var(--size-4-2);
}
}
}
.popupWrapper {
--pdf-popup-width: 310px;
}
.pdf-plus-annotation-icon-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-right: calc(var(--size-4-1) * -1);
margin-left: calc(var(--size-2-1) * -1);
.clickable-icon {
margin-right: 0;
margin-left: 0;
}
}
.pdf-plus-draggable .popup {
cursor: default;
}
#pdf-plus-funding {
display: flex;
flex-direction: column;
justify-content: left;
align-items: flex-end;
.setting-item-control {
padding-top: var(--size-4-4);
}
}
#pdf-plus-funding-icon-info-container {
display: flex;
flex-direction: row;
/* justify-content: left; */
align-items: center;
}
#pdf-plus-funding-icon {
margin-right: var(--size-4-4);
}
.page-label-range:first-of-type {
margin-top: var(--size-4-4);
}
.page-label-range:not(:first-of-type) {
margin-top: var(--size-4-9);
}
.pdf-plus-page-label-modal {
z-index: var(--he-popover-layer-inactive, var(--layer-popover));
.page-labels-loading {
color: var(--text-muted);
text-align: center;
margin: var(--size-4-4);
}
}
.pdf-plus-restore-default-modal {
user-select: text;
}
.pdf-content-container {
--sidebar-width: var(--pdf-plus-sidebar-width, 140px);
}
body {
--container-pdf-cropped-width: var(--line-width);
--container-pdf-cropped-max-width: var(--max-width);
}
.internal-embed.pdf-cropped-embed {
width: var(--container-pdf-cropped-width);
max-width: var(--container-pdf-cropped-max-width);
img {
cursor: text !important;
max-width: 100%;
}
}
.popover.hover-popover>.pdf-cropped-embed img {
max-height: 100%;
max-width: 100%;
height: auto;
}
.pdf-plus-selecting * {
cursor: crosshair !important;
.textLayer {
user-select: none;
}
}
.pdf-container .pdf-plus-select-box {
position: absolute;
z-index: 1000;
border: dashed var(--background-modifier-border) 2px;
background-color: hsla(var(--interactive-accent-hsl), 0.15);
}
/* From Obsidian's app.css (.annotationLayer .mod-focused / .annotationLayer .boundingRect)*/
.pdf-plus-annotation-bounding-rect {
background-color: rgba(var(--text-highlight-bg-rgb), 0.1);
border-radius: var(--radius-s);
box-shadow: var(--shadow-s);
box-sizing: content-box;
margin: calc(var(--size-4-2) * -1);
border: var(--size-4-1) solid rgba(var(--text-highlight-bg-rgb), 0.8);
padding: var(--size-4-1);
z-index: 0;
/* Avoid preventing annotation click */
position: absolute;
pointer-events: none;
}
.popover.hover-popover.pdf-plus-bib-popover {
--popover-width: 400px;
--pdf-plus-bib-metadata-font-size: var(--font-ui-small);
.pdf-plus-bib {
padding: var(--size-4-3);
font-size: var(--font-ui-medium);
/* Make text inside citation hover selectable (https://github.com/RyotaUshio/obsidian-pdf-plus/issues/252) */
-moz-user-select: text;
-webkit-user-select: text;
user-select: text;
.bib-title {
font-weight: bold;
padding-bottom: var(--size-4-2);
}
.bib-author-year {
color: var(--text-muted);
text-align: left;
font-size: var(--pdf-plus-bib-metadata-font-size);
}
.bib-container-title {
color: var(--text-muted);
font-style: italic;
text-align: left;
font-size: var(--pdf-plus-bib-metadata-font-size);
}
.button-container {
margin-top: 1em;
display: flex;
justify-content: space-between;
gap: var(--size-4-2);
flex-wrap: wrap;
}
}
}
.pdf-plus-vim-command {
border-top: 1px solid var(--background-modifier-border);
/* height: var(--size-4-8); */
font-family: monospace;
input {
background: transparent;
border: none;
outline: none;
font-family: monospace;
white-space: pre;
width: 90%;
}
}
.page.pdf-plus-vim-hint-mode [data-pdf-plus-vim-hint]::after {
content: attr(data-pdf-plus-vim-hint);
color: var(--pdf-plus-vim-hint-color);
text-transform: uppercase;
font-size: var(--font-ui-medium);
font-weight: bold;
background-color: var(--pdf-plus-vim-hint-background-color);
border: var(--size-2-1) solid hsl(var(--accent-h), var(--accent-s), var(--accent-l));
border-radius: 10%;
padding: 0 var(--size-2-2);
position: relative;
left: 0;
top: 0;
z-index: 9999;
}
body {
--pdf-plus-vim-hint-color: var(--text-normal);
--pdf-plus-vim-hint-background-color: var(--background-primary);
}
body.pdf-plus-vim-hint-inverted {
--pdf-plus-vim-hint-color: var(--text-on-accent);
--pdf-plus-vim-hint-background-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
}

View file

@ -7,20 +7,6 @@
"id": "16f08ed269e522f4", "id": "16f08ed269e522f4",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{
"id": "ff26353664f95c88",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "ArbeitsplatzZeug/Präsentation Bios-Uefi.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "Präsentation Bios-Uefi"
}
},
{ {
"id": "890b89bee7b547bc", "id": "890b89bee7b547bc",
"type": "leaf", "type": "leaf",
@ -35,6 +21,7 @@
"title": "L24-12-02" "title": "L24-12-02"
} }
} }
<<<<<<< HEAD
], ],
"currentTab": 1 "currentTab": 1
}, },
@ -56,6 +43,26 @@
}, },
"icon": "lucide-file-text", "icon": "lucide-file-text",
"title": "AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert" "title": "AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert"
=======
]
},
{
"id": "9e83997c8f7589ca",
"type": "tabs",
"children": [
{
"id": "1cc07db6098bf8e9",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "ArbeitsplatzZeug/Präsentation Bios-Uefi.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "Präsentation Bios-Uefi"
>>>>>>> 856985bffc3cfc3107a477727a246c62a030bc99
} }
} }
] ]
@ -204,8 +211,9 @@
"omnisearch:Omnisearch": false "omnisearch:Omnisearch": false
} }
}, },
"active": "890b89bee7b547bc", "active": "1cc07db6098bf8e9",
"lastOpenFiles": [ "lastOpenFiles": [
<<<<<<< HEAD
"Gemeinschaftskunde/AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert.pdf", "Gemeinschaftskunde/AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert.pdf",
"Gemeinschaftskunde/L24-12-02.md", "Gemeinschaftskunde/L24-12-02.md",
"LF3-Netzwerke/L24-12-02.md", "LF3-Netzwerke/L24-12-02.md",
@ -219,13 +227,18 @@
"LF5-JavaShit/Struktogramm_Grundlagen.pdf", "LF5-JavaShit/Struktogramm_Grundlagen.pdf",
"ArbeitsplatzZeug/Planung.md", "ArbeitsplatzZeug/Planung.md",
"ArbeitsplatzZeug/uefi infos.md", "ArbeitsplatzZeug/uefi infos.md",
=======
"ArbeitsplatzZeug/bios-uefi infos.md",
>>>>>>> 856985bffc3cfc3107a477727a246c62a030bc99
"ArbeitsplatzZeug/Präsentation Bios-Uefi.md", "ArbeitsplatzZeug/Präsentation Bios-Uefi.md",
"ArbeitsplatzZeug/PC_systemLayers.jpg",
"ArbeitsplatzZeug/SoftwareLayers.png",
"ArbeitsplatzZeug/Planung.md",
"ArbeitsplatzZeug/uefi infos.md",
"LF1-Unternehmen/L24-11-28.md", "LF1-Unternehmen/L24-11-28.md",
"LF1-Unternehmen/L24-10-10.md", "LF1-Unternehmen/L24-10-10.md",
"LF1-Unternehmen/L24-11-26.md", "LF1-Unternehmen/L24-11-26.md",
"ArbeitsplatzZeug/SoftwareLayers.png",
"ArbeitsplatzZeug/Uefi-Bios-Präsentation-Idee.md", "ArbeitsplatzZeug/Uefi-Bios-Präsentation-Idee.md",
"ArbeitsplatzZeug/PC_systemLayers.jpg",
"LF5-databases/Drawing 2024-11-26 11.15.51.excalidraw.md", "LF5-databases/Drawing 2024-11-26 11.15.51.excalidraw.md",
"LF5-databases/A24-11-24 Selektionen.sql", "LF5-databases/A24-11-24 Selektionen.sql",
"LF5-databases/A24-11-24 Projektionen.sql", "LF5-databases/A24-11-24 Projektionen.sql",

View file

@ -1,4 +1,54 @@
# Bios/Uefi # Bios/Uefi
--- ---
## Gliederung ## Gliederung
- - Allgemein
- Probleme BIOS
- UEFI
- Geschichte
- Vorteile & Features
---
### Allgemein
![[PC_systemLayers.jpg]]
---
### Allgemein
- 2. Softwareebene
- Hardwareinitialisierung
- Funktionalitätscheck
- Start des Bootloaders
- CPU Microcode
- API für Hardware
---
### BIOS
![[BIOS.png]]
---
### BIOS
- Basic Input Output System
- MBR
- 8 / 16 Bit
- Assembly
- Fragmentiert
- Minimale API
---
### UEFI
- 1990 Intel unzufrieden mit Bios
- 1998 Intel Boot Initiative
- 2004 Tiano
- 2005 Spec an UEFI Forum übergeben
---
### UEFI
![[UEFI-Beispiel.jpeg]]
---
### UEFI
- Unified Extensible Firmware Interface
- MBR & GPT
- 32 / 64 Bit
- C
- CSM (Compatibility Support Module)
- Stark erweitere API
---
# Fragen

View file

@ -6,7 +6,6 @@
- Hardware Konfiguration - Hardware Konfiguration
- CPU Microcode Updates - CPU Microcode Updates
- Minimale API für Hardware-Zugriff - Minimale API für Hardware-Zugriff
## BIOS ## BIOS
- BIOS / Basic Input/Output System - BIOS / Basic Input/Output System
- Nur MBR - Nur MBR
@ -41,4 +40,5 @@
- Boot & Runtime Services - Boot & Runtime Services
- Boot services nur für Firmware und bevor OS (Beendet durch `ExitBootServices()`) - Boot services nur für Firmware und bevor OS (Beendet durch `ExitBootServices()`)
- Backwards Compatibility via CSM (Compatibility Support Module) - Backwards Compatibility via CSM (Compatibility Support Module)
- Viele mittlerweile wichtige Features, z.B. Secure Boot - Viele mittlerweile wichtige Features, z.B. Secure Boot
- Stark verbessertes UI

Binary file not shown.

View file

@ -0,0 +1,3 @@
[[AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert.pdf#page=1&selection=36,0,42,40|AB_Mediennutzung_Why-the-modern-world...bilingual_erweitert, p.1]]
Moderne Smartphones sind leistungsfähige Sammlungen von allen möglichen erdenkbaren Diensten, sei es Telefonate, Textnachrichten via SMS, Mail, WhatsApp oder ähnlichen Diensten, Spiele, Social Media Plattformen wie X (früher Twitter), Instagramm oder ähnlichen. Dadurch ermöglichen sie ein Verhalten, bei dem jeder in der Lage ist, alle möglichen, für den Alltag genutzten Dienste sofort selber zu nutzen, wofür es früher dediziertes Personal gab. Dies, in Kombination mit der ständigen Verfügbarkeit der Geräte, erzeugt das Potential für eine Arbeitslast, welche in der Form für das menschliche Gehirn sehr ungeeignet ist. Diese Nicht-Eignung entsteht dabei dadurch, dass das Gehirn effektiv nicht mehrere Aufgaben auf einmal abarbeiten kann und stattdessen konstant zwischen den verschiedenen Aufgaben wechseln muss. Dadurch, unter anderem auch durch sozialen Druck, sorgt diese Kombination dafür, dass man auf all den Diensten permanent erreichbar und aktiv sein muss, unbedacht der Tatsache, dass dies die Arbeitslast von mehreren Personen auf eine Weise kombiniert, für die das menschliche Gehirn denkbar ungeeignet ist. Im Endeffekt erhöht das den Druck auf die individuellen Personen enorm, ohne, durch die erwähnte Uneignung, die Produktivität auch nur minimal zu steigern.

View file

@ -0,0 +1,8 @@
# Bestellverfahren
## Bestellpunktverfahren
- Sobald Mindestbestand unterschritten, sende Bestellung
- Mindestbestand so gewählt, dass Lieferung vor Unterschreitung des Sicherheitsbestandes ankommt
- Bestellmenge liegt unterhalb Maximalkapazität
- Sicherheitsbestand gibt Sicherheit, dass man bei Unfällen kurze Verzögerungen gut übersteht
## Bestellrythmusverfahren
- Bestellzeitpunkte und Menge vordefiniert, kaum bis keine Anpassung

Binary file not shown.

View file

@ -0,0 +1,23 @@
# Aufgaben
## Aufgabe 1
Welche der folgenden Aussagen trifft zu?
• ~~Der Adressbereich von IPv6 ist zehnmal so groß wie der Adressbereich von IPv4.~~
• IPv4 und IPv6 können auf Netzgeräten parallel betrieben werden.
• ~~IPv4 hat 232 möglich IP-Adressen.~~
• ~~IPv6 hat 2128 möglich IP-Adressen.~~
• Bei IPv4 gibt es Adressen, die nicht weltweit genutzt werden können.
• Bei IPv6 gibt es Adressen, die nicht weltweit genutzt werden können.
## Aufgabe 2
Folgende IPv6-Adressen sollen zusammengefasst bzw. ausführlich geschrieben werden:
• 2001:abcd:6f:: -> `2001:abcd:006f:0000:0000:0000:0000:0000`
• 2001:abc:3de:41d::1 -> `2001:0abc:03de:041d:0000:0000:0000:0001`
• 2001:effe:3567:2d::1234 -> `2001:effe:2567:002d:0000:0000:0000:1234`
• 2001:1234:003d:04ff:0000:0000:0000:0000 -> `2001:1234:3d:4ff::`
• 2001:012f:0000:0000:0012:0000:0000:0000 -> `2001:12f:0:0:12::`
• 2001:abad:03db:0000:0000:0000:0000:0001 -> `2001:abad:3db::1`
## Aufgabe 3
- `FE80::/10` -> `FEBF::`
- `FC::/7` -> `FDFF::`
- `2000::/3` -> `3FFF::`

38
LF5-JavaShit/L24-11-29.md Normal file
View file

@ -0,0 +1,38 @@
# Struktogramme
Englisch: Structograms
## Füllregeln
### Allgemeingültigkeit
- Keine sprachspezifischen Besonderheiten
- So allgemein wie nur irgendwie möglich
### Deklaration
- Erklärung, welche Variable was für einen Typ hat
- Variablen in 1. Block
- Konstanten in 1. Block
- Nur Prozedur
- Namenregeln:
- int -> GZ (Ganzzahl)
- float -> FKZ (Fließkommazahl)
- char -> Zeichen
- string -> Text
- bool -> bool
### Exklusivität
- Jede Anweisung ein Block
- Name über jedes Struktogramm
### Erweitertes Struktogramm
- Variablen und Konstanten werden in 1. Block deklariert
### Variablen Wertzuweisung
- `ziel <- Wert` || `ziel := Wert`
### Eintrittsblock
- Programmname
- Variablendeklaration
- Konstanten
# Test Themen
- Variablen Typen
- Namenskonventionen
- Deklaration Initialisierung
- System.out
- Concat
- Fehlersuche
- Conditionals

Binary file not shown.