Skip to content

Commit 4a0d10a

Browse files
authored
Merge pull request #15 from seekrays/fix-i18n
update i18n
2 parents b9a819e + 90a01e3 commit 4a0d10a

File tree

15 files changed

+113
-330
lines changed

15 files changed

+113
-330
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "SeekCode",
33
"private": true,
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

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 = "SeekCode"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "A Tauri App"
55
authors = ["you"]
66
license = ""

src-tauri/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::mcp_server::{
2-
get_server_address, is_server_running, start_server, start_server_with_permissions, stop_server,
2+
get_server_address, is_server_running, start_server_with_permissions, stop_server,
33
};
44
use tauri::Manager;
55
use tauri_plugin_sql::{Migration, MigrationKind};

src-tauri/src/mcp_server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub struct CreateSnippetRequest {
3434
}
3535

3636
#[derive(Debug, serde::Deserialize, schemars::JsonSchema)]
37+
#[allow(dead_code)]
3738
pub struct UpdateSnippetRequest {
3839
#[schemars(description = "ID of the code snippet to update")]
3940
pub id: i64,
@@ -48,6 +49,7 @@ pub struct UpdateSnippetRequest {
4849
}
4950

5051
#[derive(Debug, serde::Deserialize, schemars::JsonSchema)]
52+
#[allow(dead_code)]
5153
pub struct SearchSnippetRequest {
5254
#[schemars(description = "Search keyword to match in title and code content")]
5355
pub query: String,
@@ -81,6 +83,7 @@ pub struct SnippetService {
8183
}
8284

8385
#[derive(Clone)]
86+
#[allow(dead_code)]
8487
pub struct ServerPermissions {
8588
pub allow_query: bool,
8689
pub allow_create: bool,
@@ -557,6 +560,7 @@ pub async fn start_server_with_permissions(
557560
}
558561

559562
// 保持向后兼容的原始启动函数
563+
#[allow(dead_code)]
560564
pub async fn start_server(db_pool: SqlitePool, port: u16) -> Result<SocketAddr> {
561565
start_server_with_permissions(db_pool, port, true, true, false, false).await
562566
}

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": "SeekCode",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"identifier": "com.seekrays.seekcode",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/components/CodeSnippetList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<span
9292
v-if="snippet.tags.length > 3"
9393
class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 dark:bg-gray-600/50 text-gray-500 dark:text-gray-400 flex-shrink-0"
94-
:title="`还有 ${snippet.tags.length - 3} 个标签`"
94+
:title="$t('tags.moreTags', { count: snippet.tags.length - 3 })"
9595
>
9696
+{{ snippet.tags.length - 3 }}
9797
</span>

src/components/PluginSettings.vue

Lines changed: 0 additions & 294 deletions
This file was deleted.

0 commit comments

Comments
 (0)