Skip to content

Commit e43510b

Browse files
committed
release: v0.12.0
1 parent 95cfc3c commit e43510b

File tree

10 files changed

+13
-18
lines changed

10 files changed

+13
-18
lines changed

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "note-gen"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
description = "A Tauri App"
55
authors = ["codexu"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "NoteGen",
4-
"version": "0.11.0",
4+
"version": "0.12.0",
55
"identifier": "com.codexu.NoteGen",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/app/core/image/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default function Page() {
3737
filename,
3838
repo: RepoNames.image,
3939
path
40+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4041
}).catch((err) => {
41-
console.log(err);
4242
fileUploader.status ='failed'
4343
const newFiles = files.splice(index, 1, fileUploader)
4444
setFiles(newFiles)

src/app/core/record/mark/control-scan.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function ControlScan() {
8989
if (e.state === 'Pressed') {
9090
await createScreenShot()
9191
}
92-
}).catch(e => console.log(e))
92+
}).catch(() => {})
9393
}
9494

9595
async function linstenRegister(key?: string) {
@@ -107,7 +107,7 @@ export function ControlScan() {
107107
if (e.state === 'Pressed') {
108108
await createScreenShot()
109109
}
110-
}).catch(e => console.log(e))
110+
}).catch(() => {})
111111
}
112112

113113
useEffect(() => {

src/app/core/record/mark/control-text.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function ControlText() {
6969
if (e.state === 'Pressed') {
7070
quickRecord()
7171
}
72-
}).catch(e => console.log(e))
72+
}).catch(() => {})
7373
}
7474

7575
async function linstenRegister(key?: string) {
@@ -87,7 +87,7 @@ export function ControlText() {
8787
if (e.state === 'Pressed') {
8888
quickRecord()
8989
}
90-
}).catch(e => console.log(e))
90+
}).catch(() => {})
9191
}
9292

9393
useEffect(() => {

src/app/core/setting/ai/model-select.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export default function ModelSelect() {
1212
const [list, setList] = useState<OpenAI.Models.Model[]>([])
1313

1414
async function initModelList() {
15-
console.log('initModelList')
1615
const models = await getModels()
17-
console.log(models)
1816
setList(models)
1917
}
2018

src/components/pin-toggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function PinToggle() {
4242
if (e.state === 'Pressed') {
4343
await setPin()
4444
}
45-
}).catch(e => console.log(e))
45+
}).catch(() => {})
4646
}
4747

4848
async function linstenRegister(key?: string) {
@@ -60,7 +60,7 @@ export function PinToggle() {
6060
if (e.state === 'Pressed') {
6161
await setPin()
6262
}
63-
}).catch(e => console.log(e))
63+
}).catch(() => {})
6464
}
6565

6666
useEffect(() => {

src/lib/ai.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ export async function checkAiStatus() {
384384

385385
if (!baseURL || !aiType) return false
386386

387-
console.log(baseURL);
388-
389387
// 创建 OpenAI 客户端
390388
const openai = await createOpenAIClient()
391389

src/lib/github.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ export async function deleteFile({ path, sha, repo }: { path: string, sha: strin
211211
return data;
212212
}
213213
throw new Error('删除文件失败');
214+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
214215
} catch (error) {
215-
console.log(error);
216216
return false
217217
}
218218
}
@@ -224,7 +224,6 @@ export async function getFileCommits({ path, repo }: { path: string, repo: RepoN
224224

225225
const githubUsername = await store.get('githubUsername')
226226
path = path.replace(/\s/g, '_')
227-
console.log(path);
228227

229228
// 获取代理设置
230229
const proxyUrl = await store.get<string>('proxy')
@@ -255,8 +254,8 @@ export async function getFileCommits({ path, repo }: { path: string, repo: RepoN
255254
}
256255

257256
throw new Error('获取提交记录失败');
257+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
258258
} catch (error) {
259-
console.log(error);
260259
return false
261260
}
262261
}
@@ -375,8 +374,8 @@ export async function createSyncRepo(name: string, isPrivate?: boolean) {
375374
const data = await response.json() as GithubRepoInfo;
376375
return data;
377376
}
377+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
378378
} catch (error) {
379-
console.log(error);
380379
return undefined;
381380
}
382381
}

0 commit comments

Comments
 (0)