mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Address Obsidian review warnings.
This commit is contained in:
parent
89dceda21c
commit
6ed8bc8357
8 changed files with 42 additions and 105 deletions
|
|
@ -115,7 +115,7 @@ export abstract class BaseAIFileService implements IAIFileService {
|
|||
}
|
||||
|
||||
protected createFormData(displayName: string | undefined, mimeType: string, boundary: string, bytes: Uint8Array<ArrayBuffer>, additionalFields?: Record<string, string>): ArrayBuffer {
|
||||
const parts: Uint8Array[] = [];
|
||||
const parts: Uint8Array<ArrayBuffer>[] = [];
|
||||
const encoder = new TextEncoder();
|
||||
|
||||
// Add the file field
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export abstract class StringTools {
|
|||
|
||||
public static toBytes(input: string): Uint8Array<ArrayBuffer> {
|
||||
const binaryString = atob(input);
|
||||
const bytes = new Uint8Array(binaryString.length);
|
||||
const bytes = new Uint8Array(new ArrayBuffer(binaryString.length));
|
||||
for (let i = 0; i < binaryString.length; i++) {
|
||||
bytes[i] = binaryString.charCodeAt(i);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,6 +278,7 @@ body {
|
|||
var(--background-modifier-border-hover) 50%,
|
||||
var(--background-primary) 40%
|
||||
);
|
||||
counter-reset: katexEqnNo mmlEqnNo;
|
||||
}
|
||||
|
||||
/* ============================== */
|
||||
|
|
@ -396,9 +397,9 @@ a[data-footnote-backref] {
|
|||
/* ============================== */
|
||||
|
||||
.katex {
|
||||
font: normal 1.21em KaTeX_Main, "Times New Roman", serif;
|
||||
font: normal 1.21em "KaTeX_Main", "Times New Roman", Times, serif;
|
||||
line-height: 1.2;
|
||||
text-indent: 0;
|
||||
text-indent: 0px;
|
||||
text-rendering: auto;
|
||||
}
|
||||
|
||||
|
|
@ -446,21 +447,17 @@ a[data-footnote-backref] {
|
|||
font-family: KaTeX_Main;
|
||||
}
|
||||
|
||||
.katex .textsf {
|
||||
font-family: KaTeX_SansSerif;
|
||||
}
|
||||
|
||||
.katex .texttt {
|
||||
font-family: KaTeX_Typewriter;
|
||||
}
|
||||
|
||||
.katex .mathnormal {
|
||||
font-family: KaTeX_Math;
|
||||
font-family: "KaTeX_Math", "Times New Roman", Times, serif;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.katex .mathit {
|
||||
font-family: KaTeX_Main;
|
||||
font-family: "KaTeX_Main", "Times New Roman", Times, serif;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
|
@ -469,7 +466,7 @@ a[data-footnote-backref] {
|
|||
}
|
||||
|
||||
.katex .mathbf {
|
||||
font-family: KaTeX_Main;
|
||||
font-family: "KaTeX_Main", "Times New Roman", Times, serif;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
|
@ -482,16 +479,16 @@ a[data-footnote-backref] {
|
|||
.katex .amsrm,
|
||||
.katex .mathbb,
|
||||
.katex .textbb {
|
||||
font-family: KaTeX_AMS;
|
||||
font-family: "KaTeX_AMS", "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.katex .mathcal {
|
||||
font-family: KaTeX_Caligraphic;
|
||||
font-family: "KaTeX_Caligraphic", "Lucida Calligraphy", "Brush Script MT", cursive;
|
||||
}
|
||||
|
||||
.katex .mathfrak,
|
||||
.katex .textfrak {
|
||||
font-family: KaTeX_Fraktur;
|
||||
font-family: "KaTeX_Fraktur", "Lucida Blackletter", fantasy;
|
||||
}
|
||||
|
||||
.katex .mathboldfrak,
|
||||
|
|
@ -501,16 +498,17 @@ a[data-footnote-backref] {
|
|||
}
|
||||
|
||||
.katex .mathtt {
|
||||
font-family: KaTeX_Typewriter;
|
||||
font-family: "KaTeX_Typewriter", "Courier New", Courier, monospace;
|
||||
}
|
||||
|
||||
.katex .mathscr,
|
||||
.katex .textscr {
|
||||
font-family: KaTeX_Script;
|
||||
font-family: "KaTeX_Script", "Lucida Handwriting", "Segoe Script", cursive;
|
||||
}
|
||||
|
||||
.katex .mathsf {
|
||||
font-family: KaTeX_SansSerif;
|
||||
.katex .mathsf,
|
||||
.katex .textsf {
|
||||
font-family: "KaTeX_SansSerif", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.katex .mathboldsf,
|
||||
|
|
@ -980,59 +978,6 @@ a[data-footnote-backref] {
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
body {
|
||||
counter-reset: katexEqnNo mmlEqnNo;
|
||||
}
|
||||
|
||||
/* ============================== */
|
||||
/* KaTeX Font Fallbacks */
|
||||
/* For Obsidian, we'll use system fonts as fallbacks */
|
||||
/* ============================== */
|
||||
|
||||
.katex {
|
||||
font-family: "KaTeX_Main", "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.katex .mathit,
|
||||
.katex .mathnormal {
|
||||
font-family: "KaTeX_Math", "Times New Roman", Times, serif;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.katex .mathbf {
|
||||
font-family: "KaTeX_Main", "Times New Roman", Times, serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.katex .amsrm,
|
||||
.katex .mathbb,
|
||||
.katex .textbb {
|
||||
font-family: "KaTeX_AMS", "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.katex .mathcal {
|
||||
font-family: "KaTeX_Caligraphic", "Lucida Calligraphy", "Brush Script MT", cursive;
|
||||
}
|
||||
|
||||
.katex .mathfrak,
|
||||
.katex .textfrak {
|
||||
font-family: "KaTeX_Fraktur", "Lucida Blackletter", fantasy;
|
||||
}
|
||||
|
||||
.katex .mathtt {
|
||||
font-family: "KaTeX_Typewriter", "Courier New", Courier, monospace;
|
||||
}
|
||||
|
||||
.katex .mathscr,
|
||||
.katex .textscr {
|
||||
font-family: "KaTeX_Script", "Lucida Handwriting", "Segoe Script", cursive;
|
||||
}
|
||||
|
||||
.katex .mathsf,
|
||||
.katex .textsf {
|
||||
font-family: "KaTeX_SansSerif", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
/* ============================== */
|
||||
/* Additional Markdown Styles */
|
||||
/* ============================== */
|
||||
|
|
@ -1284,7 +1229,8 @@ body {
|
|||
|
||||
/* Abbreviations */
|
||||
.message-bubble.assistant abbr[title] {
|
||||
text-decoration: underline dotted;
|
||||
text-decoration-line: underline;
|
||||
text-decoration-style: dotted;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
|
|
@ -1378,22 +1324,22 @@ body {
|
|||
|
||||
@media print {
|
||||
.message-bubble.assistant {
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
||||
.message-bubble.assistant a {
|
||||
color: #0969da;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.message-bubble.assistant pre,
|
||||
.message-bubble.assistant code {
|
||||
background-color: #f6f8fa;
|
||||
color: #000;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
||||
.hljs {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
|
@ -12,12 +12,14 @@
|
|||
/* File header background */
|
||||
.d2h-file-header {
|
||||
height: 35px;
|
||||
padding: 0 !important;
|
||||
background-color: var(--background-primary) !important;
|
||||
border-color: var(--background-modifier-border) !important;
|
||||
}
|
||||
|
||||
/* File name container */
|
||||
.d2h-file-name-wrapper {
|
||||
padding-left: 8px !important;
|
||||
background-color: var(--background-primary-alt) !important;
|
||||
}
|
||||
|
||||
|
|
@ -136,14 +138,6 @@
|
|||
background-color: var(--background-secondary) !important;
|
||||
}
|
||||
|
||||
.d2h-file-header {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.d2h-file-name-wrapper {
|
||||
padding-left: 8px !important;
|
||||
}
|
||||
|
||||
/* Text colors */
|
||||
.d2h-file-header,
|
||||
.d2h-file-name,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import esbuild from "esbuild";
|
||||
import process from "process";
|
||||
import builtins from "builtin-modules";
|
||||
import { builtinModules as builtins } from "node:module";
|
||||
import { copyFileSync, mkdirSync, existsSync, readdirSync, statSync, readFileSync, writeFileSync, unlinkSync, watch as fsWatch } from "fs";
|
||||
import { join } from "path";
|
||||
import esbuildSvelte from "esbuild-svelte";
|
||||
|
|
|
|||
|
|
@ -1 +1,11 @@
|
|||
{"id":"vaultkeeper-ai","name":"Vaultkeeper AI","version":"1.3.4","minAppVersion":"1.9.14","description":"Multi-AI assistant. Read, search, create, and edit notes with multiple AI providers.","author":"Andy-Stack","authorUrl":"https://github.com/Andy-Stack","fundingUrl":"https://buymeacoffee.com/andy.stack","isDesktopOnly":false}
|
||||
{
|
||||
"id": "vaultkeeper-ai",
|
||||
"name": "Vaultkeeper AI",
|
||||
"version": "1.3.4",
|
||||
"minAppVersion": "1.9.14",
|
||||
"description": "Multi-AI assistant. Read, search, create, and edit notes with multiple AI providers.",
|
||||
"author": "Andy-Stack",
|
||||
"authorUrl": "https://github.com/Andy-Stack",
|
||||
"fundingUrl": "https://buymeacoffee.com/andy.stack",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
15
package-lock.json
generated
15
package-lock.json
generated
|
|
@ -48,11 +48,11 @@
|
|||
"@typescript-eslint/eslint-plugin": "8.59.3",
|
||||
"@typescript-eslint/parser": "8.59.3",
|
||||
"@vitest/ui": "^4.1.6",
|
||||
"builtin-modules": "5.2.0",
|
||||
"esbuild": "^0.28.0",
|
||||
"esbuild-svelte": "^0.9.5",
|
||||
"eslint": "^10.4.0",
|
||||
"eslint-plugin-obsidianmd": "^0.3.0",
|
||||
"globals": "^14.0.0",
|
||||
"happy-dom": "^20.9.0",
|
||||
"obsidian": "latest",
|
||||
"svelte": "^5.55.7",
|
||||
|
|
@ -3044,19 +3044,6 @@
|
|||
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/builtin-modules": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.2.0.tgz",
|
||||
"integrity": "sha512-02yxLeyxF4dNl6SlY6/5HfRSrSdZ/sCPoxy2kZNP5dZZX8LSAD9aE2gtJIUgWrsQTiMPl3mxESyrobSwvRGisQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.20"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/bytes": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@
|
|||
"@typescript-eslint/eslint-plugin": "8.59.3",
|
||||
"@typescript-eslint/parser": "8.59.3",
|
||||
"@vitest/ui": "^4.1.6",
|
||||
"builtin-modules": "5.2.0",
|
||||
"esbuild": "^0.28.0",
|
||||
"esbuild": "^0.28.0",
|
||||
"esbuild-svelte": "^0.9.5",
|
||||
"eslint": "^10.4.0",
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
||||
"eslint-plugin-obsidianmd": "^0.3.0",
|
||||
"globals": "^14.0.0",
|
||||
"happy-dom": "^20.9.0",
|
||||
"obsidian": "latest",
|
||||
"svelte": "^5.55.7",
|
||||
|
|
|
|||
Loading…
Reference in a new issue