vault backup: 2025-10-14 08:06:55
This commit is contained in:
26 files changed
+54647
-53999
No files matched your search
+106
-110
@@ -3,9 +3,9 @@ THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||||
if you want to view the source visit the plugins github repository
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
'use strict'
|
||||
|
||||
var obsidian = require("obsidian");
|
||||
var obsidian = require('obsidian')
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
@@ -27,31 +27,31 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
||||
return value instanceof P
|
||||
? value
|
||||
: new P(function (resolve) {
|
||||
resolve(value);
|
||||
});
|
||||
resolve(value)
|
||||
})
|
||||
}
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) {
|
||||
try {
|
||||
step(generator.next(value));
|
||||
step(generator.next(value))
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
reject(e)
|
||||
}
|
||||
}
|
||||
function rejected(value) {
|
||||
try {
|
||||
step(generator["throw"](value));
|
||||
step(generator['throw'](value))
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
reject(e)
|
||||
}
|
||||
}
|
||||
function step(result) {
|
||||
result.done
|
||||
? resolve(result.value)
|
||||
: adopt(result.value).then(fulfilled, rejected);
|
||||
: adopt(result.value).then(fulfilled, rejected)
|
||||
}
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next())
|
||||
})
|
||||
}
|
||||
|
||||
// Generated from: https://api.github.com/emojis
|
||||
@@ -1911,33 +1911,33 @@ const emoji = JSON.parse(`{
|
||||
":zombie_man:": "🧟♂",
|
||||
":zombie_woman:": "🧟♀",
|
||||
":zzz:": "💤"
|
||||
}`);
|
||||
}`)
|
||||
|
||||
class EmojiMarkdownPostProcessor {
|
||||
static emojiReplace(shortcode, el) {
|
||||
var _a;
|
||||
var _a
|
||||
if (
|
||||
typeof el.tagName === "string" &&
|
||||
(el.tagName.indexOf("CODE") !== -1 || el.tagName.indexOf("MJX") !== -1)
|
||||
typeof el.tagName === 'string' &&
|
||||
(el.tagName.indexOf('CODE') !== -1 || el.tagName.indexOf('MJX') !== -1)
|
||||
) {
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
if (el.hasChildNodes()) {
|
||||
el.childNodes.forEach((child) => this.emojiReplace(shortcode, child));
|
||||
el.childNodes.forEach((child) => this.emojiReplace(shortcode, child))
|
||||
} else {
|
||||
el.textContent = el.textContent.replace(
|
||||
shortcode,
|
||||
(_a = emoji[shortcode]) !== null && _a !== void 0 ? _a : shortcode,
|
||||
);
|
||||
(_a = emoji[shortcode]) !== null && _a !== void 0 ? _a : shortcode
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
EmojiMarkdownPostProcessor.emojiProcessor = (el) => {
|
||||
var _a;
|
||||
(_a = el.innerText.match(/[:][^\s:][^ \n:]*[:]/g)) === null || _a === void 0
|
||||
var _a
|
||||
;(_a = el.innerText.match(/[:][^\s:][^ \n:]*[:]/g)) === null || _a === void 0
|
||||
? void 0
|
||||
: _a.forEach((e) => EmojiMarkdownPostProcessor.emojiReplace(e, el));
|
||||
};
|
||||
: _a.forEach((e) => EmojiMarkdownPostProcessor.emojiReplace(e, el))
|
||||
}
|
||||
|
||||
const DEFAULT_SETTINGS = {
|
||||
immediateReplace: true,
|
||||
@@ -1945,148 +1945,144 @@ const DEFAULT_SETTINGS = {
|
||||
historyPriority: true,
|
||||
historyLimit: 100,
|
||||
history: [],
|
||||
};
|
||||
}
|
||||
class EmojiPluginSettingTab extends obsidian.PluginSettingTab {
|
||||
constructor(app, plugin) {
|
||||
super(app, plugin);
|
||||
this.plugin = plugin;
|
||||
super(app, plugin)
|
||||
this.plugin = plugin
|
||||
}
|
||||
display() {
|
||||
let { containerEl } = this;
|
||||
containerEl.empty();
|
||||
containerEl.createEl("h2", { text: "Emoji Shortcodes Plugin" });
|
||||
let { containerEl } = this
|
||||
containerEl.empty()
|
||||
containerEl.createEl('h2', { text: 'Emoji Shortcodes Plugin' })
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Immediate Emoji Replace")
|
||||
.setName('Immediate Emoji Replace')
|
||||
.setDesc(
|
||||
"If this is turned on, Emoji shortcodes will be immediately replaced after typing. Otherwise they are still stored as a shortcode and you only see the Emoji in Preview Mode.",
|
||||
'If this is turned on, Emoji shortcodes will be immediately replaced after typing. Otherwise they are still stored as a shortcode and you only see the Emoji in Preview Mode.'
|
||||
)
|
||||
.addToggle((cb) => {
|
||||
cb.setValue(this.plugin.settings.immediateReplace).onChange((value) =>
|
||||
__awaiter(this, void 0, void 0, function* () {
|
||||
this.plugin.settings.immediateReplace = value;
|
||||
yield this.plugin.saveSettings();
|
||||
}),
|
||||
);
|
||||
});
|
||||
this.plugin.settings.immediateReplace = value
|
||||
yield this.plugin.saveSettings()
|
||||
})
|
||||
)
|
||||
})
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Emoji Suggester")
|
||||
.setName('Emoji Suggester')
|
||||
.setDesc(
|
||||
"If this is turned on, a Suggester will appear everytime you type : followed by a letter. This will help you insert Emojis. (Doesn't work on mobile)",
|
||||
"If this is turned on, a Suggester will appear everytime you type : followed by a letter. This will help you insert Emojis. (Doesn't work on mobile)"
|
||||
)
|
||||
.addToggle((cb) => {
|
||||
cb.setValue(this.plugin.settings.suggester).onChange((value) =>
|
||||
__awaiter(this, void 0, void 0, function* () {
|
||||
this.plugin.settings.suggester = value;
|
||||
yield this.plugin.saveSettings();
|
||||
}),
|
||||
);
|
||||
});
|
||||
this.plugin.settings.suggester = value
|
||||
yield this.plugin.saveSettings()
|
||||
})
|
||||
)
|
||||
})
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Use History Priority")
|
||||
.setDesc("Suggester gives priority to recently used emoji.")
|
||||
.setName('Use History Priority')
|
||||
.setDesc('Suggester gives priority to recently used emoji.')
|
||||
.addToggle((cb) => {
|
||||
cb.setValue(this.plugin.settings.historyPriority).onChange((value) =>
|
||||
__awaiter(this, void 0, void 0, function* () {
|
||||
this.plugin.settings.historyPriority = value;
|
||||
yield this.plugin.saveSettings();
|
||||
this.display();
|
||||
}),
|
||||
);
|
||||
});
|
||||
this.plugin.settings.historyPriority = value
|
||||
yield this.plugin.saveSettings()
|
||||
this.display()
|
||||
})
|
||||
)
|
||||
})
|
||||
if (this.plugin.settings.historyPriority) {
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("History Limit")
|
||||
.setClass("ES-sub-setting")
|
||||
.setName('History Limit')
|
||||
.setClass('ES-sub-setting')
|
||||
.addText((cb) => {
|
||||
cb.setPlaceholder(String(DEFAULT_SETTINGS.historyLimit))
|
||||
.setValue(String(this.plugin.settings.historyLimit))
|
||||
.onChange((value) =>
|
||||
__awaiter(this, void 0, void 0, function* () {
|
||||
this.plugin.settings.historyLimit =
|
||||
value !== "" ? Number(value) : DEFAULT_SETTINGS.historyLimit;
|
||||
yield this.plugin.saveSettings();
|
||||
}),
|
||||
);
|
||||
});
|
||||
value !== '' ? Number(value) : DEFAULT_SETTINGS.historyLimit
|
||||
yield this.plugin.saveSettings()
|
||||
})
|
||||
)
|
||||
})
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Clear History")
|
||||
.setClass("ES-sub-setting")
|
||||
.setName('Clear History')
|
||||
.setClass('ES-sub-setting')
|
||||
.addButton((cb) => {
|
||||
cb.setButtonText("Clear").onClick(() =>
|
||||
cb.setButtonText('Clear').onClick(() =>
|
||||
__awaiter(this, void 0, void 0, function* () {
|
||||
this.plugin.settings.history = [];
|
||||
yield this.plugin.saveSettings();
|
||||
}),
|
||||
);
|
||||
});
|
||||
this.plugin.settings.history = []
|
||||
yield this.plugin.saveSettings()
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
new obsidian.Setting(containerEl)
|
||||
.setName("Donate")
|
||||
.setName('Donate')
|
||||
.setDesc(
|
||||
"If you like this Plugin, consider donating to support continued development:",
|
||||
'If you like this Plugin, consider donating to support continued development:'
|
||||
)
|
||||
.addButton((bt) => {
|
||||
bt.buttonEl.outerHTML = `<a href="https://ko-fi.com/phibr0"><img src="https://uploads-ssl.webflow.com/5c14e387dab576fe667689cf/61e11e22d8ff4a5b4a1b3346_Supportbutton-1.png"></a>`;
|
||||
});
|
||||
bt.buttonEl.outerHTML = `<a href="https://ko-fi.com/phibr0"><img src="https://uploads-ssl.webflow.com/5c14e387dab576fe667689cf/61e11e22d8ff4a5b4a1b3346_Supportbutton-1.png"></a>`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
class EmojiShortcodesPlugin extends obsidian.Plugin {
|
||||
onload() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.loadSettings();
|
||||
this.addSettingTab(new EmojiPluginSettingTab(this.app, this));
|
||||
this.registerEditorSuggest(new EmojiSuggester(this));
|
||||
yield this.loadSettings()
|
||||
this.addSettingTab(new EmojiPluginSettingTab(this.app, this))
|
||||
this.registerEditorSuggest(new EmojiSuggester(this))
|
||||
this.registerMarkdownPostProcessor(
|
||||
EmojiMarkdownPostProcessor.emojiProcessor,
|
||||
);
|
||||
EmojiMarkdownPostProcessor.emojiProcessor
|
||||
)
|
||||
//this.registerMarkdownPostProcessor(DefinitionListPostProcessor.definitionListProcessor);
|
||||
});
|
||||
})
|
||||
}
|
||||
loadSettings() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
this.settings = Object.assign(
|
||||
{},
|
||||
DEFAULT_SETTINGS,
|
||||
yield this.loadData(),
|
||||
);
|
||||
this.updateEmojiList();
|
||||
});
|
||||
this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData())
|
||||
this.updateEmojiList()
|
||||
})
|
||||
}
|
||||
saveSettings() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.saveData(this.settings);
|
||||
this.updateEmojiList();
|
||||
});
|
||||
yield this.saveData(this.settings)
|
||||
this.updateEmojiList()
|
||||
})
|
||||
}
|
||||
updateEmojiList() {
|
||||
const set = new Set(this.settings.history);
|
||||
const set = new Set(this.settings.history)
|
||||
this.emojiList = [
|
||||
...this.settings.history,
|
||||
...Object.keys(emoji).filter((e) => !set.has(e)),
|
||||
];
|
||||
]
|
||||
}
|
||||
updateHistory(suggestion) {
|
||||
if (!this.settings.historyPriority) return;
|
||||
const set = new Set([suggestion, ...this.settings.history]);
|
||||
const history = [...set].slice(0, this.settings.historyLimit);
|
||||
this.settings = Object.assign(this.settings, { history });
|
||||
this.saveSettings();
|
||||
if (!this.settings.historyPriority) return
|
||||
const set = new Set([suggestion, ...this.settings.history])
|
||||
const history = [...set].slice(0, this.settings.historyLimit)
|
||||
this.settings = Object.assign(this.settings, { history })
|
||||
this.saveSettings()
|
||||
}
|
||||
}
|
||||
class EmojiSuggester extends obsidian.EditorSuggest {
|
||||
constructor(plugin) {
|
||||
super(plugin.app);
|
||||
this.plugin = plugin;
|
||||
super(plugin.app)
|
||||
this.plugin = plugin
|
||||
}
|
||||
onTrigger(cursor, editor, _) {
|
||||
var _a;
|
||||
var _a
|
||||
if (this.plugin.settings.suggester) {
|
||||
const sub = editor.getLine(cursor.line).substring(0, cursor.ch);
|
||||
const sub = editor.getLine(cursor.line).substring(0, cursor.ch)
|
||||
const match =
|
||||
(_a = sub.match(/:\S+$/)) === null || _a === void 0
|
||||
? void 0
|
||||
: _a.first();
|
||||
: _a.first()
|
||||
if (match) {
|
||||
return {
|
||||
end: cursor,
|
||||
@@ -2095,22 +2091,22 @@ class EmojiSuggester extends obsidian.EditorSuggest {
|
||||
line: cursor.line,
|
||||
},
|
||||
query: match,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return null
|
||||
}
|
||||
getSuggestions(context) {
|
||||
let emoji_query = context.query.replace(":", "").toLowerCase();
|
||||
return this.plugin.emojiList.filter((p) => p.includes(emoji_query));
|
||||
let emoji_query = context.query.replace(':', '').toLowerCase()
|
||||
return this.plugin.emojiList.filter((p) => p.includes(emoji_query))
|
||||
}
|
||||
renderSuggestion(suggestion, el) {
|
||||
const outer = el.createDiv({ cls: "ES-suggester-container" });
|
||||
const outer = el.createDiv({ cls: 'ES-suggester-container' })
|
||||
outer
|
||||
.createDiv({ cls: "ES-shortcode" })
|
||||
.setText(suggestion.replace(/:/g, ""));
|
||||
.createDiv({ cls: 'ES-shortcode' })
|
||||
.setText(suggestion.replace(/:/g, ''))
|
||||
//@ts-expect-error
|
||||
outer.createDiv({ cls: "ES-emoji" }).setText(emoji[suggestion]);
|
||||
outer.createDiv({ cls: 'ES-emoji' }).setText(emoji[suggestion])
|
||||
}
|
||||
selectSuggestion(suggestion) {
|
||||
if (this.context) {
|
||||
@@ -2119,13 +2115,13 @@ class EmojiSuggester extends obsidian.EditorSuggest {
|
||||
? emoji[suggestion]
|
||||
: `${suggestion} `,
|
||||
this.context.start,
|
||||
this.context.end,
|
||||
);
|
||||
this.plugin.updateHistory(suggestion);
|
||||
this.context.end
|
||||
)
|
||||
this.plugin.updateHistory(suggestion)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = EmojiShortcodesPlugin;
|
||||
module.exports = EmojiShortcodesPlugin
|
||||
|
||||
/* nosourcemap */
|
||||
+23778
-23473
File diff suppressed because it is too large.
Load diff
+77
-77
@@ -46,7 +46,7 @@ div.excalidraw-svg-right {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
button.ToolIcon_type_button[title="Export"] {
|
||||
button.ToolIcon_type_button[title='Export'] {
|
||||
display: none;
|
||||
}
|
||||
.excalidraw-prompt-div {
|
||||
@@ -276,17 +276,17 @@ label.color-input-container > input {
|
||||
.excalidraw button {
|
||||
width: auto;
|
||||
}
|
||||
.excalidraw input[type="color"] {
|
||||
.excalidraw input[type='color'] {
|
||||
height: 1.65rem;
|
||||
width: 1.65rem;
|
||||
}
|
||||
.excalidraw input[type="color"]::-webkit-color-swatch {
|
||||
.excalidraw input[type='color']::-webkit-color-swatch {
|
||||
height: 1.65rem;
|
||||
}
|
||||
.excalidraw input[type="color"]::-webkit-color-swatch-wrapper {
|
||||
.excalidraw input[type='color']::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
.excalidraw-settings input[type="text"] {
|
||||
.excalidraw-settings input[type='text'] {
|
||||
min-width: 10em;
|
||||
}
|
||||
div.excalidraw-draginfo {
|
||||
@@ -409,10 +409,10 @@ hr.excalidraw-setting-hr {
|
||||
}
|
||||
}
|
||||
.excalidraw .canvas-node .ex-md-font-hand-drawn {
|
||||
--font-text: "Virgil";
|
||||
--font-text: 'Virgil';
|
||||
}
|
||||
.excalidraw .canvas-node .ex-md-font-code {
|
||||
--font-text: "Cascadia";
|
||||
--font-text: 'Cascadia';
|
||||
}
|
||||
.excalidraw__embeddable-container .workspace-leaf,
|
||||
.excalidraw__embeddable-container .workspace-leaf .view-content {
|
||||
@@ -512,7 +512,7 @@ textarea.excalidraw-wysiwyg {
|
||||
height: 8rem;
|
||||
width: 8rem;
|
||||
}
|
||||
.excalidraw .color-picker-content input[type="color"] {
|
||||
.excalidraw .color-picker-content input[type='color'] {
|
||||
filter: var(--theme-filter);
|
||||
}
|
||||
.ExcTextField__input input::placeholder {
|
||||
@@ -573,7 +573,7 @@ textarea.excalidraw-wysiwyg {
|
||||
font-family: Assistant;
|
||||
font-weight: 400;
|
||||
src: url(https://unpkg.com/@zsviczian/excalidraw@0.17.6-2/dist/excalidraw-assets/Assistant-Regular.woff2)
|
||||
format("woff2");
|
||||
format('woff2');
|
||||
style: normal;
|
||||
display: swap;
|
||||
}
|
||||
@@ -581,7 +581,7 @@ textarea.excalidraw-wysiwyg {
|
||||
font-family: Assistant;
|
||||
font-weight: 500;
|
||||
src: url(https://unpkg.com/@zsviczian/excalidraw@0.17.6-2/dist/excalidraw-assets/Assistant-Medium.woff2)
|
||||
format("woff2");
|
||||
format('woff2');
|
||||
style: normal;
|
||||
display: swap;
|
||||
}
|
||||
@@ -589,7 +589,7 @@ textarea.excalidraw-wysiwyg {
|
||||
font-family: Assistant;
|
||||
font-weight: 600;
|
||||
src: url(https://unpkg.com/@zsviczian/excalidraw@0.17.6-2/dist/excalidraw-assets/Assistant-SemiBold.woff2)
|
||||
format("woff2");
|
||||
format('woff2');
|
||||
style: normal;
|
||||
display: swap;
|
||||
}
|
||||
@@ -597,7 +597,7 @@ textarea.excalidraw-wysiwyg {
|
||||
font-family: Assistant;
|
||||
font-weight: 700;
|
||||
src: url(https://unpkg.com/@zsviczian/excalidraw@0.17.6-2/dist/excalidraw-assets/Assistant-Bold.woff2)
|
||||
format("woff2");
|
||||
format('woff2');
|
||||
style: normal;
|
||||
display: swap;
|
||||
}
|
||||
@@ -657,11 +657,11 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .ToolIcon .ToolIcon__icon:active svg {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.excalidraw .ToolIcon .ToolIcon__icon[aria-disabled="true"] {
|
||||
.excalidraw .ToolIcon .ToolIcon__icon[aria-disabled='true'] {
|
||||
background: initial;
|
||||
border: none;
|
||||
}
|
||||
.excalidraw .ToolIcon .ToolIcon__icon[aria-disabled="true"] svg {
|
||||
.excalidraw .ToolIcon .ToolIcon__icon[aria-disabled='true'] svg {
|
||||
color: var(--color-disabled);
|
||||
}
|
||||
.excalidraw .ToolIcon--plain {
|
||||
@@ -786,10 +786,10 @@ textarea.excalidraw-wysiwyg {
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .unlocked-icon {
|
||||
:root[dir='ltr'] .excalidraw .unlocked-icon {
|
||||
left: 2px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .unlocked-icon {
|
||||
:root[dir='rtl'] .excalidraw .unlocked-icon {
|
||||
right: 2px;
|
||||
}
|
||||
.excalidraw .App-toolbar-container .ToolIcon__icon {
|
||||
@@ -1020,7 +1020,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border-radius: var(--radius);
|
||||
bottom: -1px;
|
||||
box-shadow: 0 0 0 1px var(--color-gray-30);
|
||||
content: "";
|
||||
content: '';
|
||||
filter: var(--theme-filter);
|
||||
left: -1px;
|
||||
position: absolute;
|
||||
@@ -1046,7 +1046,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border: 3px solid var(--focus-highlight-color);
|
||||
border-radius: calc(var(--radius) + 1px);
|
||||
bottom: -4px;
|
||||
content: "";
|
||||
content: '';
|
||||
left: -4px;
|
||||
position: absolute;
|
||||
right: -4px;
|
||||
@@ -1094,10 +1094,10 @@ textarea.excalidraw-wysiwyg {
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
||||
position: absolute;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker {
|
||||
:root[dir='ltr'] .excalidraw .color-picker {
|
||||
left: -5.5px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker {
|
||||
:root[dir='rtl'] .excalidraw .color-picker {
|
||||
right: -5.5px;
|
||||
}
|
||||
.excalidraw .color-picker-control-container {
|
||||
@@ -1112,10 +1112,10 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .color-picker-popover-container {
|
||||
margin-top: -0.25rem;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-popover-container {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-popover-container {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-popover-container {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-popover-container {
|
||||
margin-left: -3rem;
|
||||
}
|
||||
.excalidraw .color-picker-triangle {
|
||||
@@ -1127,21 +1127,21 @@ textarea.excalidraw-wysiwyg {
|
||||
top: 10px;
|
||||
width: 0;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-triangle {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-triangle {
|
||||
left: -14px;
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-triangle {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-triangle {
|
||||
right: -14px;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.excalidraw .color-picker-triangle-shadow {
|
||||
border-color: transparent transparent rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-triangle-shadow {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-triangle-shadow {
|
||||
left: -14px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-triangle-shadow {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-triangle-shadow {
|
||||
right: -16px;
|
||||
}
|
||||
.excalidraw .color-picker-content {
|
||||
@@ -1224,10 +1224,10 @@ textarea.excalidraw-wysiwyg {
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
|
||||
position: relative;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-hash {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-hash {
|
||||
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-hash {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-hash {
|
||||
border-left: 0;
|
||||
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
|
||||
border-right: 1px solid var(--default-border-color);
|
||||
@@ -1275,10 +1275,10 @@ textarea.excalidraw-wysiwyg {
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.25rem;
|
||||
width: 100%;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-input {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-input {
|
||||
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-input {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-input {
|
||||
border-left: 1px solid var(--default-border-color);
|
||||
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
|
||||
border-right: 0;
|
||||
@@ -1356,7 +1356,7 @@ textarea.excalidraw-wysiwyg {
|
||||
}
|
||||
.excalidraw .color-picker-label-swatch:after {
|
||||
background: var(--swatch-color);
|
||||
content: "";
|
||||
content: '';
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
@@ -1368,10 +1368,10 @@ textarea.excalidraw-wysiwyg {
|
||||
font-size: 0.7em;
|
||||
position: absolute;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .color-picker-keybinding {
|
||||
:root[dir='ltr'] .excalidraw .color-picker-keybinding {
|
||||
right: 2px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .color-picker-keybinding {
|
||||
:root[dir='rtl'] .excalidraw .color-picker-keybinding {
|
||||
left: 2px;
|
||||
}
|
||||
.excalidraw--mobile.excalidraw .color-picker-keybinding {
|
||||
@@ -1384,7 +1384,7 @@ textarea.excalidraw-wysiwyg {
|
||||
color: #fff;
|
||||
}
|
||||
.excalidraw
|
||||
.color-picker-swatch[aria-label="transparent"]
|
||||
.color-picker-swatch[aria-label='transparent']
|
||||
.color-picker-keybinding {
|
||||
color: #aaa;
|
||||
}
|
||||
@@ -1392,7 +1392,7 @@ textarea.excalidraw-wysiwyg {
|
||||
color: #d4d4d4;
|
||||
}
|
||||
.excalidraw.theme--dark
|
||||
.color-picker-swatch[aria-label="transparent"]
|
||||
.color-picker-swatch[aria-label='transparent']
|
||||
.color-picker-keybinding,
|
||||
.excalidraw.theme--dark
|
||||
.color-picker-type-elementBackground
|
||||
@@ -1474,7 +1474,7 @@ textarea.excalidraw-wysiwyg {
|
||||
padding: 0.5rem;
|
||||
position: absolute;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .picker {
|
||||
:root[dir='rtl'] .excalidraw .picker {
|
||||
padding: 0.4rem;
|
||||
}
|
||||
.excalidraw .picker button,
|
||||
@@ -1531,10 +1531,10 @@ textarea.excalidraw-wysiwyg {
|
||||
font-size: 0.7em;
|
||||
position: absolute;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .picker-keybinding {
|
||||
:root[dir='ltr'] .excalidraw .picker-keybinding {
|
||||
right: 2px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .picker-keybinding {
|
||||
:root[dir='rtl'] .excalidraw .picker-keybinding {
|
||||
left: 2px;
|
||||
}
|
||||
.excalidraw--mobile.excalidraw .picker-keybinding {
|
||||
@@ -1546,14 +1546,14 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .picker-type-elementBackground .picker-keybinding {
|
||||
color: #fff;
|
||||
}
|
||||
.excalidraw .picker-swatch[aria-label="transparent"] .picker-keybinding {
|
||||
.excalidraw .picker-swatch[aria-label='transparent'] .picker-keybinding {
|
||||
color: #aaa;
|
||||
}
|
||||
.excalidraw .picker-type-elementStroke .picker-keybinding {
|
||||
color: #d4d4d4;
|
||||
}
|
||||
.excalidraw.theme--dark
|
||||
.picker-swatch[aria-label="transparent"]
|
||||
.picker-swatch[aria-label='transparent']
|
||||
.picker-keybinding,
|
||||
.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding {
|
||||
color: #000;
|
||||
@@ -1757,7 +1757,7 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .Avatar:before {
|
||||
border-radius: 100%;
|
||||
bottom: -3px;
|
||||
content: "";
|
||||
content: '';
|
||||
left: -3px;
|
||||
position: absolute;
|
||||
right: -3px;
|
||||
@@ -2551,7 +2551,7 @@ textarea.excalidraw-wysiwyg {
|
||||
}
|
||||
.excalidraw .library-menu-control-buttons--at-bottom:before {
|
||||
background: var(--sidebar-border-color);
|
||||
content: "";
|
||||
content: '';
|
||||
height: 1px;
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
@@ -2953,7 +2953,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border-bottom-left-radius: var(--border-radius-lg) !important;
|
||||
border-top-left-radius: var(--border-radius-lg) !important;
|
||||
}
|
||||
:root[dir="rtl"] .zoom-out-button {
|
||||
:root[dir='rtl'] .zoom-out-button {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.zoom-out-button .ToolIcon__icon {
|
||||
@@ -2964,7 +2964,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border-bottom-right-radius: var(--border-radius-lg) !important;
|
||||
border-top-right-radius: var(--border-radius-lg) !important;
|
||||
}
|
||||
:root[dir="rtl"] .zoom-in-button {
|
||||
:root[dir='rtl'] .zoom-in-button {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.zoom-in-button .ToolIcon__icon {
|
||||
@@ -2976,7 +2976,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border-right: 0 !important;
|
||||
border-top-left-radius: var(--border-radius-lg) !important;
|
||||
}
|
||||
:root[dir="rtl"] .undo-redo-buttons .undo-button-container button {
|
||||
:root[dir='rtl'] .undo-redo-buttons .undo-button-container button {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.undo-redo-buttons .undo-button-container button .ToolIcon__icon {
|
||||
@@ -2987,7 +2987,7 @@ textarea.excalidraw-wysiwyg {
|
||||
border-bottom-right-radius: var(--border-radius-lg) !important;
|
||||
border-top-right-radius: var(--border-radius-lg) !important;
|
||||
}
|
||||
:root[dir="rtl"] .undo-redo-buttons .redo-button-container button {
|
||||
:root[dir='rtl'] .undo-redo-buttons .redo-button-container button {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.undo-redo-buttons .redo-button-container button .ToolIcon__icon {
|
||||
@@ -3158,7 +3158,7 @@ textarea.excalidraw-wysiwyg {
|
||||
width: 100%;
|
||||
}
|
||||
.excalidraw .context-menu-item.checkmark:before {
|
||||
content: "✓";
|
||||
content: '✓';
|
||||
left: 6px;
|
||||
margin-bottom: 1px;
|
||||
position: absolute;
|
||||
@@ -3349,7 +3349,7 @@ textarea.excalidraw-wysiwyg {
|
||||
width: 204px;
|
||||
z-index: var(--zIndex-layerUI);
|
||||
}
|
||||
:root[dir="rtl"] .exc-stats {
|
||||
:root[dir='rtl'] .exc-stats {
|
||||
left: 12px;
|
||||
right: auto;
|
||||
}
|
||||
@@ -3519,7 +3519,7 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .UserList__more:before {
|
||||
border-radius: 100%;
|
||||
bottom: -3px;
|
||||
content: "";
|
||||
content: '';
|
||||
left: -3px;
|
||||
position: absolute;
|
||||
right: -3px;
|
||||
@@ -3723,14 +3723,14 @@ textarea.excalidraw-wysiwyg {
|
||||
width: calc(var(--right-sidebar-width) - var(--space-factor) * 2);
|
||||
z-index: 5;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .sidebar {
|
||||
:root[dir='rtl'] .excalidraw .sidebar {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
.excalidraw .sidebar--docked {
|
||||
box-shadow: none;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .sidebar {
|
||||
:root[dir='rtl'] .excalidraw .sidebar {
|
||||
border-left: 0;
|
||||
border-right: 1px solid var(--sidebar-border-color);
|
||||
}
|
||||
@@ -3746,7 +3746,7 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .sidebar__header:after {
|
||||
background: var(--sidebar-border-color);
|
||||
bottom: -1px;
|
||||
content: "";
|
||||
content: '';
|
||||
height: 1px;
|
||||
position: absolute;
|
||||
width: calc(100% - 1.5rem);
|
||||
@@ -3833,17 +3833,17 @@ textarea.excalidraw-wysiwyg {
|
||||
flex-direction: column;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
.excalidraw .sidebar-tabs-root [role="tabpanel"] {
|
||||
.excalidraw .sidebar-tabs-root [role='tabpanel'] {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
outline: none;
|
||||
}
|
||||
.excalidraw .sidebar-tabs-root [role="tabpanel"][data-state="inactive"] {
|
||||
.excalidraw .sidebar-tabs-root [role='tabpanel'][data-state='inactive'] {
|
||||
display: none !important;
|
||||
}
|
||||
.excalidraw .sidebar-tabs-root [role="tablist"] {
|
||||
.excalidraw .sidebar-tabs-root [role='tablist'] {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
||||
@@ -3860,7 +3860,7 @@ textarea.excalidraw-wysiwyg {
|
||||
--button-hover-color: var(--color-primary);
|
||||
--button-hover-border: var(--color-primary);
|
||||
}
|
||||
.excalidraw .sidebar-tab-trigger[data-state="active"] {
|
||||
.excalidraw .sidebar-tab-trigger[data-state='active'] {
|
||||
--button-bg: var(--color-primary);
|
||||
--button-hover-bg: var(--color-primary-darker);
|
||||
--button-hover-color: var(--color-icon-white);
|
||||
@@ -4477,7 +4477,7 @@ textarea.excalidraw-wysiwyg {
|
||||
margin: 0;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.excalidraw .ttd-dialog-tab-trigger[data-state="active"] {
|
||||
.excalidraw .ttd-dialog-tab-trigger[data-state='active'] {
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
}
|
||||
.excalidraw .ttd-dialog-triggers {
|
||||
@@ -4940,7 +4940,7 @@ textarea.excalidraw-wysiwyg {
|
||||
background: var(--Switch-thumb-background);
|
||||
border-radius: 100%;
|
||||
box-sizing: border-box;
|
||||
content: "";
|
||||
content: '';
|
||||
display: block;
|
||||
height: 10px;
|
||||
left: 4px;
|
||||
@@ -5294,23 +5294,23 @@ textarea.excalidraw-wysiwyg {
|
||||
.excalidraw .layer-ui__wrapper .zen-mode-transition {
|
||||
transition: transform 0.5s ease-in-out;
|
||||
}
|
||||
:root[dir="ltr"]
|
||||
:root[dir='ltr']
|
||||
.excalidraw
|
||||
.layer-ui__wrapper
|
||||
.zen-mode-transition.transition-left {
|
||||
transform: translate(-999px);
|
||||
}
|
||||
:root[dir="ltr"]
|
||||
:root[dir='ltr']
|
||||
.excalidraw
|
||||
.layer-ui__wrapper
|
||||
.zen-mode-transition.transition-right,
|
||||
:root[dir="rtl"]
|
||||
:root[dir='rtl']
|
||||
.excalidraw
|
||||
.layer-ui__wrapper
|
||||
.zen-mode-transition.transition-left {
|
||||
transform: translate(999px);
|
||||
}
|
||||
:root[dir="rtl"]
|
||||
:root[dir='rtl']
|
||||
.excalidraw
|
||||
.layer-ui__wrapper
|
||||
.zen-mode-transition.transition-right {
|
||||
@@ -5339,10 +5339,10 @@ textarea.excalidraw-wysiwyg {
|
||||
opacity 0.5s;
|
||||
visibility: hidden;
|
||||
}
|
||||
[dir="ltr"] .excalidraw .layer-ui__wrapper .disable-zen-mode {
|
||||
[dir='ltr'] .excalidraw .layer-ui__wrapper .disable-zen-mode {
|
||||
right: 1rem;
|
||||
}
|
||||
[dir="rtl"] .excalidraw .layer-ui__wrapper .disable-zen-mode {
|
||||
[dir='rtl'] .excalidraw .layer-ui__wrapper .disable-zen-mode {
|
||||
left: 1rem;
|
||||
}
|
||||
.excalidraw .layer-ui__wrapper .disable-zen-mode:hover {
|
||||
@@ -5514,10 +5514,10 @@ textarea.excalidraw-wysiwyg {
|
||||
padding: 3px;
|
||||
position: absolute;
|
||||
}
|
||||
:root[dir="ltr"] .excalidraw .CollabButton-collaborators {
|
||||
:root[dir='ltr'] .excalidraw .CollabButton-collaborators {
|
||||
right: -5px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .CollabButton-collaborators {
|
||||
:root[dir='rtl'] .excalidraw .CollabButton-collaborators {
|
||||
left: -5px;
|
||||
}
|
||||
.excalidraw .ExcalidrawLogo {
|
||||
@@ -5601,7 +5601,7 @@ textarea.excalidraw-wysiwyg {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .welcome-screen-decor-hint--help {
|
||||
:root[dir='rtl'] .excalidraw .welcome-screen-decor-hint--help {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
@@ -5611,7 +5611,7 @@ textarea.excalidraw-wysiwyg {
|
||||
transform: scaleX(-1) rotate(80deg);
|
||||
width: 85px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .welcome-screen-decor-hint--help svg {
|
||||
:root[dir='rtl'] .excalidraw .welcome-screen-decor-hint--help svg {
|
||||
transform: rotate(80deg);
|
||||
}
|
||||
.excalidraw .welcome-screen-decor-hint--toolbar {
|
||||
@@ -5634,7 +5634,7 @@ textarea.excalidraw-wysiwyg {
|
||||
height: 78px;
|
||||
width: 38px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .welcome-screen-decor-hint--toolbar svg {
|
||||
:root[dir='rtl'] .excalidraw .welcome-screen-decor-hint--toolbar svg {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.excalidraw .welcome-screen-decor-hint--menu {
|
||||
@@ -5652,7 +5652,7 @@ textarea.excalidraw-wysiwyg {
|
||||
height: 94px;
|
||||
width: 41px;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .welcome-screen-decor-hint--menu svg {
|
||||
:root[dir='rtl'] .excalidraw .welcome-screen-decor-hint--menu svg {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
@@ -6188,8 +6188,8 @@ body.excalidraw-cursor-resize a:hover {
|
||||
.excalidraw .panelColumn .buttonList label {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.excalidraw .panelColumn .buttonList input[type="button"],
|
||||
.excalidraw .panelColumn .buttonList input[type="radio"] {
|
||||
.excalidraw .panelColumn .buttonList input[type='button'],
|
||||
.excalidraw .panelColumn .buttonList input[type='radio'] {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
@@ -6450,7 +6450,7 @@ body.excalidraw-cursor-resize a:hover {
|
||||
padding-inline-end: 1.5rem;
|
||||
padding-inline-start: 0.5rem;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .dropdown-select {
|
||||
:root[dir='rtl'] .excalidraw .dropdown-select {
|
||||
background-position:
|
||||
left 0.7rem top 50%,
|
||||
0 0;
|
||||
@@ -6576,7 +6576,7 @@ body.excalidraw-cursor-resize a:hover {
|
||||
bottom: calc(80px + var(--sab, 0));
|
||||
z-index: -1;
|
||||
}
|
||||
:root[dir="rtl"] .excalidraw .rtl-mirror {
|
||||
:root[dir='rtl'] .excalidraw .rtl-mirror {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
.excalidraw .zen-mode-visibility {
|
||||
@@ -6609,7 +6609,7 @@ body.excalidraw-cursor-resize a:hover {
|
||||
.excalidraw input.is-redacted {
|
||||
-webkit-text-security: disc;
|
||||
}
|
||||
.excalidraw input[type="text"],
|
||||
.excalidraw input[type='text'],
|
||||
.excalidraw textarea:not(.excalidraw-wysiwyg) {
|
||||
background-color: var(--input-bg-color);
|
||||
border: 1.5px solid var(--input-border-color);
|
||||
@@ -6618,11 +6618,11 @@ body.excalidraw-cursor-resize a:hover {
|
||||
padding: 0.75rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.excalidraw input[type="text"]:not(:focus):hover,
|
||||
.excalidraw input[type='text']:not(:focus):hover,
|
||||
.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover {
|
||||
border-color: var(--color-brand-hover);
|
||||
}
|
||||
.excalidraw input[type="text"]:focus,
|
||||
.excalidraw input[type='text']:focus,
|
||||
.excalidraw textarea:not(.excalidraw-wysiwyg):focus {
|
||||
border-color: var(--color-brand-hover);
|
||||
outline: none;
|
||||
|
||||
+6869
-6896
File diff suppressed because it is too large.
Load diff
+16593
-16272
File diff suppressed because it is too large.
Load diff
+89
-89
@@ -8,16 +8,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="git-view"] .button-border {
|
||||
.workspace-leaf-content[data-type='git-view'] .button-border {
|
||||
border: 2px solid var(--interactive-accent);
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="git-view"] .view-content {
|
||||
.workspace-leaf-content[data-type='git-view'] .view-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="git-history-view"] .view-content {
|
||||
.workspace-leaf-content[data-type='git-history-view'] .view-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@@ -67,10 +67,10 @@
|
||||
width: 11px;
|
||||
}
|
||||
|
||||
.git-tools .type[data-type="M"] {
|
||||
.git-tools .type[data-type='M'] {
|
||||
color: orange;
|
||||
}
|
||||
.git-tools .type[data-type="D"] {
|
||||
.git-tools .type[data-type='D'] {
|
||||
color: red;
|
||||
}
|
||||
.git-tools .buttons {
|
||||
@@ -97,15 +97,15 @@
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-d-none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-wrapper {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-header {
|
||||
background-color: var(--background-primary);
|
||||
border-bottom: 1px solid var(--interactive-accent);
|
||||
font-family: var(--font-monospace);
|
||||
@@ -113,19 +113,19 @@
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-header,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-stats {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-stats {
|
||||
font-size: 14px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-lines-added {
|
||||
border: 1px solid #b4e2b4;
|
||||
border-radius: 5px 0 0 5px;
|
||||
color: #399839;
|
||||
@@ -134,7 +134,7 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-lines-deleted {
|
||||
border: 1px solid #e9aeae;
|
||||
border-radius: 0 5px 5px 0;
|
||||
color: #c33;
|
||||
@@ -144,7 +144,7 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-name-wrapper {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
@@ -155,19 +155,19 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-name {
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-wrapper {
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 3px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-collapse {
|
||||
-webkit-box-pack: end;
|
||||
-ms-flex-pack: end;
|
||||
-webkit-box-align: center;
|
||||
@@ -182,30 +182,30 @@
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-collapse.d2h-selected {
|
||||
background-color: #c8e1ff;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-collapse-input {
|
||||
margin: 0 4px 0 0;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-diff-table {
|
||||
border-collapse: collapse;
|
||||
font-family: Menlo, Consolas, monospace;
|
||||
font-size: 13px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-files-diff {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-diff {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-side-diff {
|
||||
display: inline-block;
|
||||
margin-bottom: -8px;
|
||||
margin-right: -4px;
|
||||
@@ -214,12 +214,12 @@
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line {
|
||||
padding: 0 8em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-line {
|
||||
display: inline-block;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
@@ -229,11 +229,11 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-line {
|
||||
padding: 0 4.5em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line-ctn {
|
||||
word-wrap: normal;
|
||||
background: none;
|
||||
display: inline-block;
|
||||
@@ -247,26 +247,26 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
||||
.theme-light .workspace-leaf-content[data-type='diff-view'] .d2h-code-line del,
|
||||
.theme-light
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-code-side-line
|
||||
del {
|
||||
background-color: #ffb6ba;
|
||||
}
|
||||
|
||||
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
||||
.theme-dark .workspace-leaf-content[data-type='diff-view'] .d2h-code-line del,
|
||||
.theme-dark
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-code-side-line
|
||||
del {
|
||||
background-color: #8d232881;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line del,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line ins,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-line del,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-line ins {
|
||||
border-radius: 0.2em;
|
||||
display: inline-block;
|
||||
margin-top: -1px;
|
||||
@@ -274,25 +274,25 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
||||
.theme-light .workspace-leaf-content[data-type='diff-view'] .d2h-code-line ins,
|
||||
.theme-light
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-code-side-line
|
||||
ins {
|
||||
background-color: #97f295;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
|
||||
.theme-dark .workspace-leaf-content[data-type='diff-view'] .d2h-code-line ins,
|
||||
.theme-dark
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-code-side-line
|
||||
ins {
|
||||
background-color: #1d921996;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line-prefix {
|
||||
word-wrap: normal;
|
||||
background: none;
|
||||
display: inline;
|
||||
@@ -300,12 +300,12 @@
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .line-num1 {
|
||||
.workspace-leaf-content[data-type='diff-view'] .line-num1 {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .line-num1,
|
||||
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
|
||||
.workspace-leaf-content[data-type='diff-view'] .line-num1,
|
||||
.workspace-leaf-content[data-type='diff-view'] .line-num2 {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
@@ -314,11 +314,11 @@
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
|
||||
.workspace-leaf-content[data-type='diff-view'] .line-num2 {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-linenumber {
|
||||
background-color: var(--background-primary);
|
||||
border: solid var(--background-modifier-border);
|
||||
border-width: 0 1px;
|
||||
@@ -332,11 +332,11 @@
|
||||
width: 7.5em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
|
||||
content: "\200b";
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-linenumber:after {
|
||||
content: '\200b';
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-linenumber {
|
||||
background-color: var(--background-primary);
|
||||
border: solid var(--background-modifier-border);
|
||||
border-width: 0 1px;
|
||||
@@ -353,165 +353,165 @@
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-diff-tbody tr {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
|
||||
content: "\200b";
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-linenumber:after {
|
||||
content: '\200b';
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-emptyplaceholder,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-emptyplaceholder {
|
||||
background-color: var(--background-primary);
|
||||
border-color: var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-line-prefix,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-linenumber,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-linenumber,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-emptyplaceholder {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-linenumber,
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-code-side-linenumber {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
|
||||
.theme-light .workspace-leaf-content[data-type='diff-view'] .d2h-del {
|
||||
background-color: #fee8e9;
|
||||
border-color: #e9aeae;
|
||||
}
|
||||
|
||||
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
|
||||
.theme-light .workspace-leaf-content[data-type='diff-view'] .d2h-ins {
|
||||
background-color: #dfd;
|
||||
border-color: #b4e2b4;
|
||||
}
|
||||
|
||||
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
|
||||
.theme-dark .workspace-leaf-content[data-type='diff-view'] .d2h-del {
|
||||
background-color: #521b1d83;
|
||||
border-color: #691d1d73;
|
||||
}
|
||||
|
||||
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
|
||||
.theme-dark .workspace-leaf-content[data-type='diff-view'] .d2h-ins {
|
||||
background-color: rgba(30, 71, 30, 0.5);
|
||||
border-color: #13501381;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-info {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-info {
|
||||
background-color: var(--background-primary);
|
||||
border-color: var(--background-modifier-border);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.theme-light
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-file-diff
|
||||
.d2h-del.d2h-change {
|
||||
background-color: #fdf2d0;
|
||||
}
|
||||
|
||||
.theme-dark
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-file-diff
|
||||
.d2h-del.d2h-change {
|
||||
background-color: #55492480;
|
||||
}
|
||||
|
||||
.theme-light
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-file-diff
|
||||
.d2h-ins.d2h-change {
|
||||
background-color: #ded;
|
||||
}
|
||||
|
||||
.theme-dark
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-file-diff
|
||||
.d2h-ins.d2h-change {
|
||||
background-color: rgba(37, 78, 37, 0.418);
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list-wrapper {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list-wrapper a {
|
||||
color: #3572b0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"]
|
||||
.workspace-leaf-content[data-type='diff-view']
|
||||
.d2h-file-list-wrapper
|
||||
a:visited {
|
||||
color: #3572b0;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-header {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list-header {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-title {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list-title {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-line {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list-line {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list {
|
||||
display: block;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list > li {
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li:last-child {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-list > li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-file-switch {
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-icon {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-icon {
|
||||
fill: currentColor;
|
||||
margin-right: 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-deleted {
|
||||
color: #c33;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-added {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-added {
|
||||
color: #399839;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-changed {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-changed {
|
||||
color: #d0b44c;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-moved {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-moved {
|
||||
color: #3572b0;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-tag {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-tag {
|
||||
background-color: var(--background-primary);
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
@@ -521,19 +521,19 @@
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-deleted-tag {
|
||||
border: 2px solid #c33;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-added-tag {
|
||||
border: 1px solid #399839;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-changed-tag {
|
||||
border: 1px solid #d0b44c;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
|
||||
.workspace-leaf-content[data-type='diff-view'] .d2h-moved-tag {
|
||||
border: 1px solid #3572b0;
|
||||
}
|
||||
|
||||
|
||||
+5641
-5590
File diff suppressed because it is too large.
Load diff
+5
-5
@@ -14,13 +14,13 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container {
|
||||
[data-type='advanced-tables-toolbar'] .nav-buttons-container {
|
||||
column-gap: 0.2rem;
|
||||
margin: 0.2rem 0 0.2rem 0;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container::before {
|
||||
[data-type='advanced-tables-toolbar'] .nav-buttons-container::before {
|
||||
min-width: 2.6rem;
|
||||
line-height: var(--advanced-tables-helper-size);
|
||||
font-size: var(--nav-item-size);
|
||||
@@ -28,12 +28,12 @@
|
||||
color: var(--nav-item-color);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"] .nav-buttons-container > * {
|
||||
[data-type='advanced-tables-toolbar'] .nav-buttons-container > * {
|
||||
height: var(--advanced-tables-helper-size);
|
||||
line-height: var(--advanced-tables-helper-size);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"]
|
||||
[data-type='advanced-tables-toolbar']
|
||||
.nav-buttons-container
|
||||
.nav-action-button {
|
||||
width: var(--advanced-tables-helper-size);
|
||||
@@ -44,7 +44,7 @@
|
||||
border-radius: var(--radius-s);
|
||||
}
|
||||
|
||||
[data-type="advanced-tables-toolbar"]
|
||||
[data-type='advanced-tables-toolbar']
|
||||
.nav-buttons-container
|
||||
.nav-action-button:hover {
|
||||
background-color: var(--nav-item-background-hover);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
}
|
||||
+45
-42
@@ -1,29 +1,32 @@
|
||||
import { viteBundler } from "@vuepress/bundler-vite";
|
||||
import { defaultTheme } from "@vuepress/theme-default";
|
||||
import { slimsearchPlugin } from "@vuepress/plugin-slimsearch";
|
||||
import { plausiblePlugin } from "./plausible";
|
||||
import { mermaidPlugin } from "./mermaid";
|
||||
import { shikiPlugin } from "@vuepress/plugin-shiki";
|
||||
import { defineUserConfig } from "vuepress";
|
||||
import { searchPlugin } from "@vuepress/plugin-search";
|
||||
import { viteBundler } from '@vuepress/bundler-vite'
|
||||
import { defaultTheme } from '@vuepress/theme-default'
|
||||
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch'
|
||||
import { plausiblePlugin } from './plausible'
|
||||
import { mermaidPlugin } from './mermaid'
|
||||
import { shikiPlugin } from '@vuepress/plugin-shiki'
|
||||
import { defineUserConfig } from 'vuepress'
|
||||
import { searchPlugin } from '@vuepress/plugin-search'
|
||||
|
||||
export default defineUserConfig({
|
||||
bundler: viteBundler(),
|
||||
lang: "de-CH",
|
||||
title: "Wiki Mint System",
|
||||
description: "Strukturierte Wissensdatenbank der Mint System GmbH. ",
|
||||
head: [["link", { rel: "icon", href: "/icon.png" }]],
|
||||
pagePatterns: ["**/*.md", "!.vuepress", "!node_modules"],
|
||||
lang: 'de-CH',
|
||||
title: 'Wiki Mint System',
|
||||
description: 'Strukturierte Wissensdatenbank der Mint System GmbH. ',
|
||||
head: [['link', { rel: 'icon', href: '/icon.png' }]],
|
||||
pagePatterns: ['**/*.md', '!.vuepress', '!node_modules'],
|
||||
theme: defaultTheme({
|
||||
logo: "/icon.png",
|
||||
repo: "mint-system/wiki",
|
||||
docsBranch: "main",
|
||||
logo: '/icon.png',
|
||||
repo: 'mint-system/wiki',
|
||||
docsBranch: 'main',
|
||||
editLink: false,
|
||||
navbar: [
|
||||
{ text: "Home", link: "/" },
|
||||
{ text: "Glossary", link: "/glossary" },
|
||||
{ text: "Mint System", link: "https://www.mint-system.ch" },
|
||||
{ text: "Chat", link: "https://matrix.to/#/#allgemein:mint-system.ch" },
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Glossary', link: '/glossary' },
|
||||
{ text: 'Mint System', link: 'https://www.mint-system.ch' },
|
||||
{
|
||||
text: 'Chat',
|
||||
link: 'https://matrix.to/#/#allgemein:mint-system.ch',
|
||||
},
|
||||
],
|
||||
}),
|
||||
plugins: [
|
||||
@@ -35,32 +38,32 @@ export default defineUserConfig({
|
||||
maxSuggestions: 10,
|
||||
}),
|
||||
plausiblePlugin({
|
||||
domain: "wiki.mint-system.ch",
|
||||
domain: 'wiki.mint-system.ch',
|
||||
}),
|
||||
mermaidPlugin(),
|
||||
shikiPlugin({
|
||||
theme: "catppuccin-latte",
|
||||
theme: 'catppuccin-latte',
|
||||
langs: [
|
||||
"bash",
|
||||
"yml",
|
||||
"yaml",
|
||||
"json",
|
||||
"css",
|
||||
"html",
|
||||
"xml",
|
||||
"groovy",
|
||||
"py",
|
||||
"python",
|
||||
"sql",
|
||||
"powershell",
|
||||
"txt",
|
||||
"csv",
|
||||
"mermaid",
|
||||
"md",
|
||||
"markdown",
|
||||
"toml",
|
||||
"php",
|
||||
'bash',
|
||||
'yml',
|
||||
'yaml',
|
||||
'json',
|
||||
'css',
|
||||
'html',
|
||||
'xml',
|
||||
'groovy',
|
||||
'py',
|
||||
'python',
|
||||
'sql',
|
||||
'powershell',
|
||||
'txt',
|
||||
'csv',
|
||||
'mermaid',
|
||||
'md',
|
||||
'markdown',
|
||||
'toml',
|
||||
'php',
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
})
|
||||
+13
-13
@@ -1,26 +1,26 @@
|
||||
import { path } from "@vuepress/utils";
|
||||
import { path } from '@vuepress/utils'
|
||||
|
||||
const name = "@mint-system/plugin-mermaid";
|
||||
const name = '@mint-system/plugin-mermaid'
|
||||
|
||||
const mermaidPlugin = () => {
|
||||
return {
|
||||
name,
|
||||
clientConfigFile: path.resolve(__dirname, "mermaidClient.js"),
|
||||
clientConfigFile: path.resolve(__dirname, 'mermaidClient.js'),
|
||||
extendsMarkdown: (md) => {
|
||||
const defaultFence = md.renderer.rules.fence;
|
||||
const defaultFence = md.renderer.rules.fence
|
||||
|
||||
md.renderer.rules.fence = (tokens, idx, options, env, self) => {
|
||||
const token = tokens[idx];
|
||||
const code = token.content.trim();
|
||||
const token = tokens[idx]
|
||||
const code = token.content.trim()
|
||||
|
||||
if (token.info === "mermaid") {
|
||||
return `<pre style="background-color:#fff;" class="mermaid">${md.utils.escapeHtml(code)}</pre>`;
|
||||
if (token.info === 'mermaid') {
|
||||
return `<pre style="background-color:#fff;" class="mermaid">${md.utils.escapeHtml(code)}</pre>`
|
||||
}
|
||||
|
||||
return defaultFence(tokens, idx, options, env, self);
|
||||
};
|
||||
return defaultFence(tokens, idx, options, env, self)
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export { mermaidPlugin };
|
||||
export { mermaidPlugin }
|
||||
@@ -1,13 +1,13 @@
|
||||
import { defineClientConfig } from "@vuepress/client";
|
||||
import mermaid from "mermaid";
|
||||
import { defineClientConfig } from '@vuepress/client'
|
||||
import mermaid from 'mermaid'
|
||||
|
||||
export default defineClientConfig({
|
||||
enhance({ router }) {
|
||||
if (!__VUEPRESS_SSR__) {
|
||||
mermaid.initialize({ startOnLoad: true });
|
||||
mermaid.initialize({ startOnLoad: true })
|
||||
router.afterEach(() => {
|
||||
mermaid.contentLoaded();
|
||||
});
|
||||
mermaid.contentLoaded()
|
||||
})
|
||||
}
|
||||
},
|
||||
});
|
||||
})
|
||||
@@ -1,15 +1,15 @@
|
||||
import { path } from "@vuepress/utils";
|
||||
import { path } from '@vuepress/utils'
|
||||
|
||||
const name = "@mint-system/plugin-plausible";
|
||||
const name = '@mint-system/plugin-plausible'
|
||||
|
||||
const plausiblePlugin = ({ domain }) => {
|
||||
return {
|
||||
name,
|
||||
clientConfigFile: path.resolve(__dirname, "plausibleClient.js"),
|
||||
clientConfigFile: path.resolve(__dirname, 'plausibleClient.js'),
|
||||
define: {
|
||||
__PLAUSIBLE_OPTIONS__: { domain },
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export { plausiblePlugin };
|
||||
export { plausiblePlugin }
|
||||
@@ -1,15 +1,15 @@
|
||||
import { defineClientConfig } from "@vuepress/client";
|
||||
import { defineClientConfig } from '@vuepress/client'
|
||||
|
||||
const { domain = undefined } = __PLAUSIBLE_OPTIONS__;
|
||||
const { domain = undefined } = __PLAUSIBLE_OPTIONS__
|
||||
|
||||
export default defineClientConfig({
|
||||
enhance({ router }) {
|
||||
if (!__VUEPRESS_SSR__) {
|
||||
var script = document.createElement("script");
|
||||
script.defer = true;
|
||||
script.dataset.domain = domain;
|
||||
script.src = "https://plausible.io/js/script.js";
|
||||
document.getElementsByTagName("head")[0].appendChild(script);
|
||||
var script = document.createElement('script')
|
||||
script.defer = true
|
||||
script.dataset.domain = domain
|
||||
script.src = 'https://plausible.io/js/script.js'
|
||||
document.getElementsByTagName('head')[0].appendChild(script)
|
||||
}
|
||||
},
|
||||
});
|
||||
})
|
||||
@@ -23,13 +23,12 @@ During container start this error is thrown:
|
||||
Comment out the user env vars.
|
||||
|
||||
```yml
|
||||
|
||||
---
|
||||
image: "{{ keycloak_image }}"
|
||||
image: '{{ keycloak_image }}'
|
||||
restart_policy: unless-stopped
|
||||
recreate: yes
|
||||
env:
|
||||
# KEYCLOAK_USER: "{{ keycloak_user }}"
|
||||
# KEYCLOAK_PASSWORD: "{{ keycloak_password }}"
|
||||
DB_VENDOR: "{{ keycloak_db_type }}"
|
||||
DB_VENDOR: '{{ keycloak_db_type }}'
|
||||
```
|
||||
@@ -58,7 +58,7 @@ touch cron_log/__manifest__.py
|
||||
|
||||
Copy the content of another `__manifest__.py` file in the repo and adjust it.
|
||||
|
||||
****manifest**.py**
|
||||
\***\*manifest**.py\*\*
|
||||
|
||||
```python
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
@@ -43,7 +43,7 @@ Here is an example of what the module structure might look like:
|
||||
}
|
||||
```
|
||||
|
||||
****init**.py**
|
||||
\***\*init**.py\*\*
|
||||
|
||||
```python
|
||||
# empty
|
||||
@@ -69,7 +69,7 @@ Here is an example of what the module structure might look like:
|
||||
}
|
||||
```
|
||||
|
||||
****init**.py**
|
||||
\***\*init**.py\*\*
|
||||
|
||||
```
|
||||
# empty
|
||||
|
||||
@@ -8,7 +8,7 @@ section: policy
|
||||
|
||||
# Richtlinie - Website
|
||||
|
||||
Die Mint System GmbH braucht einen modernen und professionellen Webauftritt. Der Webauftritt umfasst Seiteninhalte wie Angebote, Referenzen, Über uns, Kontakt, Blog und Partner. Die Inhalte können [statisch](https://www.keycdn.com/support/difference-between-static-and-dynamic "https://www.keycdn.com/support/difference-between-static-and-dynamic") bereitgestellt werden.
|
||||
Die Mint System GmbH braucht einen modernen und professionellen Webauftritt. Der Webauftritt umfasst Seiteninhalte wie Angebote, Referenzen, Über uns, Kontakt, Blog und Partner. Die Inhalte können [statisch](https://www.keycdn.com/support/difference-between-static-and-dynamic 'https://www.keycdn.com/support/difference-between-static-and-dynamic') bereitgestellt werden.
|
||||
|
||||
Als Framework soll Odoo zum Einsatz kommen. Die Erstellung von Website ist ein umfangreiches Odoo Modul. Damit wir dieses verstehen und unseren Kunden vermittlen können, ist es äusserst sinnvoll dieses auch selber anzuwenden.
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@ metadata:
|
||||
spec:
|
||||
parameters:
|
||||
service:
|
||||
majorVersion: "18"
|
||||
majorVersion: '18'
|
||||
size:
|
||||
plan: plus-4
|
||||
backup:
|
||||
schedule: "30 23 * * *"
|
||||
schedule: '30 23 * * *'
|
||||
retention: 12
|
||||
writeConnectionSecretToRef:
|
||||
name: odoo-creds
|
||||
|
||||
+9
-9
@@ -17,24 +17,24 @@ kind: meeting
|
||||
---
|
||||
|
||||
```js quickadd
|
||||
const enteredParticipants = [];
|
||||
let participant = "";
|
||||
const enteredParticipants = []
|
||||
let participant = ''
|
||||
|
||||
// Keep prompting until user enters empty string
|
||||
while (participant !== null) {
|
||||
participant = await this.quickAddApi.inputPrompt(
|
||||
"Enter participant name (leave empty to finish):",
|
||||
);
|
||||
'Enter participant name (leave empty to finish):'
|
||||
)
|
||||
|
||||
if (participant && participant.trim() !== "") {
|
||||
enteredParticipants.push(participant.trim());
|
||||
if (participant && participant.trim() !== '') {
|
||||
enteredParticipants.push(participant.trim())
|
||||
} else {
|
||||
break;
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
const participantsYaml = enteredParticipants.map((p) => ` - ${p}`).join("\n");
|
||||
this.variables.participants = participantsYaml;
|
||||
const participantsYaml = enteredParticipants.map((p) => ` - ${p}`).join('\n')
|
||||
this.variables.participants = participantsYaml
|
||||
```
|
||||
|
||||
# {{NAME}}
|
||||
|
||||
+10
-10
@@ -8,7 +8,7 @@ section: template
|
||||
|
||||
# Template Weely
|
||||
|
||||
`````markdown
|
||||
````markdown
|
||||
---
|
||||
date: {{DATE}}
|
||||
participants:
|
||||
@@ -18,16 +18,16 @@ kind: weekly
|
||||
|
||||
```js quickadd
|
||||
const selectedParticipants = await this.quickAddApi.checkboxPrompt([
|
||||
"Kurt",
|
||||
"Ulrich",
|
||||
"Marcus",
|
||||
"Janik",
|
||||
"Gerit",
|
||||
]);
|
||||
'Kurt',
|
||||
'Ulrich',
|
||||
'Marcus',
|
||||
'Janik',
|
||||
'Gerit',
|
||||
])
|
||||
|
||||
const participantsYaml = selectedParticipants.map((p) => ` - ${p}`).join("\n");
|
||||
const participantsYaml = selectedParticipants.map((p) => ` - ${p}`).join('\n')
|
||||
|
||||
this.variables.participants = participantsYaml;
|
||||
this.variables.participants = participantsYaml
|
||||
```
|
||||
|
||||
# {{NAME}}
|
||||
@@ -35,4 +35,4 @@ this.variables.participants = participantsYaml;
|
||||
```
|
||||
|
||||
```
|
||||
`````
|
||||
````
|
||||
+18
-18
@@ -24,15 +24,15 @@ Here are some examples.
|
||||
For localhost setup:
|
||||
|
||||
```yml
|
||||
local_user: "debian"
|
||||
local_key_file: "/home/debian/.ssh/id_ed25519"
|
||||
local_interface: "0.0.0.0"
|
||||
local_port: "8080"
|
||||
ssh_user: "debian"
|
||||
ssh_server: "jump.example.com"
|
||||
remote_ssh_port: "2222"
|
||||
remote_server: "remote.example.com"
|
||||
remote_port: "80"
|
||||
local_user: 'debian'
|
||||
local_key_file: '/home/debian/.ssh/id_ed25519'
|
||||
local_interface: '0.0.0.0'
|
||||
local_port: '8080'
|
||||
ssh_user: 'debian'
|
||||
ssh_server: 'jump.example.com'
|
||||
remote_ssh_port: '2222'
|
||||
remote_server: 'remote.example.com'
|
||||
remote_port: '80'
|
||||
```
|
||||
|
||||
```mermaid
|
||||
@@ -50,15 +50,15 @@ graph TD
|
||||
For remote server setup:
|
||||
|
||||
```yml
|
||||
local_user: "autossh"
|
||||
local_key_file: "/home/autossh/.ssh/id_ed25519"
|
||||
local_interface: "localhost"
|
||||
local_port: "22"
|
||||
ssh_user: "autossh"
|
||||
ssh_server: "jump.example.com"
|
||||
remote_ssh_port: "2222"
|
||||
remote_server: "0.0.0.0"
|
||||
remote_port: "2223"
|
||||
local_user: 'autossh'
|
||||
local_key_file: '/home/autossh/.ssh/id_ed25519'
|
||||
local_interface: 'localhost'
|
||||
local_port: '22'
|
||||
ssh_user: 'autossh'
|
||||
ssh_server: 'jump.example.com'
|
||||
remote_ssh_port: '2222'
|
||||
remote_server: '0.0.0.0'
|
||||
remote_port: '2223'
|
||||
```
|
||||
|
||||
```mermaid
|
||||
|
||||
+71
-71
@@ -1,36 +1,36 @@
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const yaml = require("js-yaml");
|
||||
const matter = require("gray-matter");
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const yaml = require('js-yaml')
|
||||
const matter = require('gray-matter')
|
||||
|
||||
// Function to evaluate filters recursively
|
||||
function evaluateFilters(filters, fileObj, mdFile) {
|
||||
if (filters.and) {
|
||||
return filters.and.every((filter) =>
|
||||
evaluateFilter(filter, fileObj, mdFile),
|
||||
);
|
||||
evaluateFilter(filter, fileObj, mdFile)
|
||||
)
|
||||
} else if (filters.or) {
|
||||
return filters.or.some((filter) => evaluateFilter(filter, fileObj, mdFile));
|
||||
return filters.or.some((filter) => evaluateFilter(filter, fileObj, mdFile))
|
||||
}
|
||||
return true;
|
||||
return true
|
||||
}
|
||||
|
||||
// Function to evaluate a single filter (can be string or nested object)
|
||||
function evaluateFilter(filter, fileObj, mdFile) {
|
||||
if (typeof filter === "string") {
|
||||
return evaluateFilterString(filter, fileObj, mdFile);
|
||||
} else if (typeof filter === "object" && filter !== null) {
|
||||
if (typeof filter === 'string') {
|
||||
return evaluateFilterString(filter, fileObj, mdFile)
|
||||
} else if (typeof filter === 'object' && filter !== null) {
|
||||
// Handle nested and/or conditions
|
||||
return evaluateFilters(filter, fileObj, mdFile);
|
||||
return evaluateFilters(filter, fileObj, mdFile)
|
||||
}
|
||||
return true;
|
||||
return true
|
||||
}
|
||||
|
||||
// Function to evaluate a filter string
|
||||
function evaluateFilterString(filter, fileObj, mdFile) {
|
||||
try {
|
||||
const filterFn = new Function(
|
||||
"fileObj",
|
||||
'fileObj',
|
||||
`
|
||||
// File properties
|
||||
const file = {
|
||||
@@ -73,105 +73,105 @@ function evaluateFilterString(filter, fileObj, mdFile) {
|
||||
kind.valueOf = () => get('kind');
|
||||
|
||||
return ${filter};
|
||||
`,
|
||||
);
|
||||
return filterFn(fileObj);
|
||||
`
|
||||
)
|
||||
return filterFn(fileObj)
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`Error evaluating filter '${filter}' for file '${mdFile}':`,
|
||||
error,
|
||||
);
|
||||
return false;
|
||||
error
|
||||
)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// Get all .md files in the current directory
|
||||
const mdFiles = fs
|
||||
.readdirSync(".")
|
||||
.filter((file) => file.endsWith(".md") && !file.endsWith(".base.md"));
|
||||
.readdirSync('.')
|
||||
.filter((file) => file.endsWith('.md') && !file.endsWith('.base.md'))
|
||||
|
||||
// Get all .base files in the bases directory
|
||||
const baseFiles = fs
|
||||
.readdirSync("./bases")
|
||||
.filter((file) => file.endsWith(".base"));
|
||||
.readdirSync('./bases')
|
||||
.filter((file) => file.endsWith('.base'))
|
||||
|
||||
// Process each base file
|
||||
baseFiles.forEach((baseFile) => {
|
||||
// Read the base file
|
||||
const baseContent = fs.readFileSync(path.join("./bases", baseFile), "utf8");
|
||||
const baseData = yaml.load(baseContent);
|
||||
const baseContent = fs.readFileSync(path.join('./bases', baseFile), 'utf8')
|
||||
const baseData = yaml.load(baseContent)
|
||||
|
||||
// Get the base name without extension
|
||||
const baseName = path.basename(baseFile, ".base");
|
||||
const baseName = path.basename(baseFile, '.base')
|
||||
|
||||
// Process each view in the base file
|
||||
baseData.views.forEach((view) => {
|
||||
// Create a list of objects with attributes from markdown files
|
||||
const tableData = [];
|
||||
const tableData = []
|
||||
|
||||
// Process each markdown file
|
||||
mdFiles.forEach((mdFile) => {
|
||||
// Read the markdown file
|
||||
const mdContent = fs.readFileSync(mdFile, "utf8");
|
||||
const { data: frontmatter } = matter(mdContent);
|
||||
const mdContent = fs.readFileSync(mdFile, 'utf8')
|
||||
const { data: frontmatter } = matter(mdContent)
|
||||
|
||||
// Create an object with file attributes
|
||||
const fileObj = {
|
||||
"file.name": path.basename(mdFile, ".md"),
|
||||
"file.ext": "md",
|
||||
'file.name': path.basename(mdFile, '.md'),
|
||||
'file.ext': 'md',
|
||||
...frontmatter,
|
||||
};
|
||||
}
|
||||
|
||||
// Check if the file matches the filters
|
||||
let matches = true;
|
||||
let matches = true
|
||||
|
||||
// Handle filters (evaluate the filter strings as JavaScript)
|
||||
if (view.filters) {
|
||||
matches = evaluateFilters(view.filters, fileObj, mdFile);
|
||||
matches = evaluateFilters(view.filters, fileObj, mdFile)
|
||||
}
|
||||
|
||||
if (matches) {
|
||||
// Add the file object to the table data
|
||||
tableData.push(fileObj);
|
||||
tableData.push(fileObj)
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
// Sort the table data
|
||||
if (view.sort) {
|
||||
view.sort.forEach((sortRule) => {
|
||||
const property = sortRule.property;
|
||||
const direction = sortRule.direction || "ASC";
|
||||
const property = sortRule.property
|
||||
const direction = sortRule.direction || 'ASC'
|
||||
|
||||
tableData.sort((a, b) => {
|
||||
let aVal = a[property];
|
||||
let bVal = b[property];
|
||||
let aVal = a[property]
|
||||
let bVal = b[property]
|
||||
|
||||
// Convert values to strings for comparison
|
||||
if (Array.isArray(aVal)) {
|
||||
aVal = aVal.join(", ");
|
||||
aVal = aVal.join(', ')
|
||||
} else {
|
||||
aVal = String(aVal || "");
|
||||
aVal = String(aVal || '')
|
||||
}
|
||||
|
||||
if (Array.isArray(bVal)) {
|
||||
bVal = bVal.join(", ");
|
||||
bVal = bVal.join(', ')
|
||||
} else {
|
||||
bVal = String(bVal || "");
|
||||
bVal = String(bVal || '')
|
||||
}
|
||||
|
||||
if (direction === "DESC") {
|
||||
return bVal.localeCompare(aVal);
|
||||
if (direction === 'DESC') {
|
||||
return bVal.localeCompare(aVal)
|
||||
} else {
|
||||
return aVal.localeCompare(bVal);
|
||||
return aVal.localeCompare(bVal)
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// Get the column names from the order array or from the data
|
||||
let columnNames = view.order || [];
|
||||
let columnNames = view.order || []
|
||||
if (columnNames.length === 0 && tableData.length > 0) {
|
||||
columnNames = Object.keys(tableData[0]);
|
||||
columnNames = Object.keys(tableData[0])
|
||||
}
|
||||
|
||||
// Generate the markdown table
|
||||
@@ -181,36 +181,36 @@ section: bases
|
||||
---
|
||||
|
||||
# ${baseName}
|
||||
`;
|
||||
`
|
||||
|
||||
// Add the header row
|
||||
markdownTable += `| ${columnNames.join(" | ")} |
|
||||
`;
|
||||
markdownTable += `| ${columnNames.map(() => "---").join(" | ")} |
|
||||
`;
|
||||
markdownTable += `| ${columnNames.join(' | ')} |
|
||||
`
|
||||
markdownTable += `| ${columnNames.map(() => '---').join(' | ')} |
|
||||
`
|
||||
|
||||
// Add the data rows
|
||||
tableData.forEach((row) => {
|
||||
const rowValues = columnNames.map((column) => {
|
||||
const value = row[column];
|
||||
if (column === "file.name") {
|
||||
const value = row[column]
|
||||
if (column === 'file.name') {
|
||||
// Create a link for file.name
|
||||
return `[[${value}]]`;
|
||||
return `[[${value}]]`
|
||||
} else if (Array.isArray(value)) {
|
||||
// Join array values
|
||||
return value.join(", ");
|
||||
return value.join(', ')
|
||||
} else {
|
||||
// Return the value as string or empty string if undefined
|
||||
return value || "";
|
||||
return value || ''
|
||||
}
|
||||
});
|
||||
markdownTable += `| ${rowValues.join(" | ")} |
|
||||
`;
|
||||
});
|
||||
})
|
||||
markdownTable += `| ${rowValues.join(' | ')} |
|
||||
`
|
||||
})
|
||||
|
||||
// Write the markdown table to a file
|
||||
const outputFileName = `Liste ${baseName}.md`;
|
||||
fs.writeFileSync(outputFileName, markdownTable);
|
||||
console.log(`Generated "${outputFileName}"`);
|
||||
});
|
||||
});
|
||||
const outputFileName = `Liste ${baseName}.md`
|
||||
fs.writeFileSync(outputFileName, markdownTable)
|
||||
console.log(`Generated "${outputFileName}"`)
|
||||
})
|
||||
})
|
||||
Generated
+920
-920
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user