Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Msg Gemini",
"icons": [
{
"src": "https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/google-gemini-icon.png",
"src": "https://cdn.tiye.me/logo/gemini-icon.png",
"sizes": "512x512"
}
],
Expand Down
1,835 changes: 1,716 additions & 119 deletions calcit.cirru

Large diffs are not rendered by default.

237 changes: 218 additions & 19 deletions compact.cirru

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deps.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{}
:calcit-version |0.9.9
:calcit-version |0.9.11
:dependencies $ {}
|calcit-lang/lilac |main
|calcit-lang/memof |main
Expand Down
20 changes: 20 additions & 0 deletions lib/image.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export function base64ToBlob(base64Data, contentType) {
contentType = contentType || ''; // 默认为空字符串,浏览器会根据base64字符串自动识别
const byteCharacters = atob(base64Data);
const byteArrays = [];

for (let offset = 0; offset < byteCharacters.length; offset += 512) { // 512 是一个块大小,可以根据需求调整
const slice = byteCharacters.slice(offset, offset + 512);

const byteNumbers = new Array(slice.length);
for (let i = 0; i < slice.length; i++) {
byteNumbers[i] = slice.charCodeAt(i);
}

const byteArray = new Uint8Array(byteNumbers);
byteArrays.push(byteArray);
}

const blob = new Blob(byteArrays, { type: contentType });
return blob;
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"dependencies": {
"@calcit/procs": "^0.9.9",
"@google/generative-ai": "^0.24.0",
"axios": "^1.8.4",
"@calcit/procs": "^0.9.11",
"@google/genai": "^0.12.0",
"axios": "^1.9.0",
"cirru-color": "^0.2.4",
"copy-text-to-clipboard": "^3.2.0"
"copy-text-to-clipboard": "^3.2.0",
"openai": "^4.96.2"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^6.2.6"
"vite": "^6.3.4"
},
"scripts": {
"build": "yarn vite build --base ./ && rm -rfv extension/dist && cp -vr dist extension/"
},
"version": "0.0.1"
"version": "0.0.1",
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}
986 changes: 641 additions & 345 deletions yarn.lock

Large diffs are not rendered by default.