Skip to content

Commit 1821032

Browse files
authored
Merge pull request #63 from sjjian/dev_0_5_0
Dev 0 5 0
2 parents 90a6ae7 + 9dc71f3 commit 1821032

File tree

149 files changed

+6562
-20754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+6562
-20754
lines changed

.cursor/rules/common.mdc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
alwaysApply: true
3+
---
4+
1. 使用中文问答;

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
.idea
33
test.sql
44
.DS_Store
5-
client/lib/l10n/*.dart
5+
client/lib/l10n/*.dart
6+
7+
# Generated files
8+
*.g.dart
9+
*.freezed.dart
10+
.flutter-plugins
11+
.flutter-plugins-dependencies

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub_get:
2+
cd client && flutter pub get
3+
cd pkg/db_driver/impl/mysql && flutter pub get
4+
cd pkg/db_driver/impl/pg && flutter pub get
5+
cd pkg/db_driver && flutter pub get
6+
cd pkg/sql_parser && flutter pub get
7+
cd pkg/sql-editor && flutter pub get
8+
9+
dart_gen_code:
10+
cd client && dart run build_runner build --delete-conflicting-outputs
11+
cd client && flutter pub run flutter_launcher_icons
12+
cd client && flutter gen-l10n --verbose
13+
14+
cd pkg/db_driver/impl/mysql && flutter_rust_bridge_codegen generate

client/.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,17 @@ app.*.map.json
4545
/android/app/release
4646

4747
/pubspec.lock
48-
macos/Podfile.lock
48+
macos/Podfile.lock
49+
50+
# macOS
51+
**/macos/Flutter/GeneratedPluginRegistrant.swift
52+
53+
# Windows
54+
**/windows/flutter/generated_plugin_registrant.cc
55+
**/windows/flutter/generated_plugin_registrant.h
56+
**/windows/flutter/generated_plugins.cmake
57+
58+
# Linux
59+
**/linux/flutter/generated_plugin_registrant.cc
60+
**/linux/flutter/generated_plugin_registrant.h
61+
**/linux/flutter/generated_plugins.cmake

client/analysis_options.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,12 @@ linter:
2424
# avoid_print: false # Uncomment to disable the `avoid_print` rule
2525
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
2626

27+
analyzer:
28+
plugins:
29+
- custom_lint
30+
31+
formatter:
32+
page_width: 120
33+
2734
# Additional information about this file can be found at
2835
# https://dart.dev/guides/language/analysis-options

client/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ targets:
1010
- "lib/screens/**.dart"
1111
- "lib/models/sessions.dart"
1212
- "lib/models/session_sql_result.dart"
13+
- "lib/models/tasks.dart"
1314
- "lib/repositories/**.dart"
1415
- "lib/core/**.dart"

client/lib/l10n/app_en.arb

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,5 +330,220 @@
330330
"display_no_instance_and_add_instance_button": "Add now",
331331
"@display_no_instance_and_add_instance_button": {
332332
"description": "No database instance added, please add a database instance first"
333+
},
334+
"scheduled_task": "Scheduled Task",
335+
"@scheduled_task": {
336+
"description": "Scheduled Task"
337+
},
338+
"task_status_pending": "Pending",
339+
"@task_status_pending": {
340+
"description": "Task status pending"
341+
},
342+
"task_status_running": "Running",
343+
"@task_status_running": {
344+
"description": "Task status running"
345+
},
346+
"task_status_completed": "Completed",
347+
"@task_status_completed": {
348+
"description": "Task status completed"
349+
},
350+
"task_status_failed": "Failed",
351+
"@task_status_failed": {
352+
"description": "Task status failed"
353+
},
354+
"task_status_cancelled": "Cancelled",
355+
"@task_status_cancelled": {
356+
"description": "Task status cancelled"
357+
},
358+
"date_today": "Today",
359+
"@date_today": {
360+
"description": "Date format today"
361+
},
362+
"date_yesterday": "Yesterday",
363+
"@date_yesterday": {
364+
"description": "Date format yesterday"
365+
},
366+
"date_monday": "Mon",
367+
"@date_monday": {
368+
"description": "Date format Monday"
369+
},
370+
"date_tuesday": "Tue",
371+
"@date_tuesday": {
372+
"description": "Date format Tuesday"
373+
},
374+
"date_wednesday": "Wed",
375+
"@date_wednesday": {
376+
"description": "Date format Wednesday"
377+
},
378+
"date_thursday": "Thu",
379+
"@date_thursday": {
380+
"description": "Date format Thursday"
381+
},
382+
"date_friday": "Fri",
383+
"@date_friday": {
384+
"description": "Date format Friday"
385+
},
386+
"date_saturday": "Sat",
387+
"@date_saturday": {
388+
"description": "Date format Saturday"
389+
},
390+
"date_sunday": "Sun",
391+
"@date_sunday": {
392+
"description": "Date format Sunday"
393+
},
394+
"error_file_not_found": "File not found: {path}",
395+
"@error_file_not_found": {
396+
"description": "Error message file not found",
397+
"placeholders": {
398+
"path": {
399+
"type": "String"
400+
}
401+
}
402+
},
403+
"error_open_file_failed": "Failed to open file: {error}",
404+
"@error_open_file_failed": {
405+
"description": "Error message open file failed",
406+
"placeholders": {
407+
"error": {
408+
"type": "String"
409+
}
410+
}
411+
},
412+
"error_open_folder_failed": "Failed to open folder: {error}",
413+
"@error_open_folder_failed": {
414+
"description": "Error message open folder failed",
415+
"placeholders": {
416+
"error": {
417+
"type": "String"
418+
}
419+
}
420+
},
421+
"task_column_file_name": "File Name",
422+
"@task_column_file_name": {
423+
"description": "Task table column file name"
424+
},
425+
"task_column_created_at": "Created At",
426+
"@task_column_created_at": {
427+
"description": "Task table column created at"
428+
},
429+
"task_column_status": "Status",
430+
"@task_column_status": {
431+
"description": "Task table column status"
432+
},
433+
"tooltip_open_folder": "Open file location",
434+
"@tooltip_open_folder": {
435+
"description": "Tooltip open file location"
436+
},
437+
"tooltip_delete_task": "Delete task",
438+
"@tooltip_delete_task": {
439+
"description": "Tooltip delete task"
440+
},
441+
"task_no_tasks": "No tasks",
442+
"@task_no_tasks": {
443+
"description": "No tasks message"
444+
},
445+
"task_view_more": "View more",
446+
"@task_view_more": {
447+
"description": "View more tasks link"
448+
},
449+
"task_recent_tasks": "Recent Tasks",
450+
"@task_recent_tasks": {
451+
"description": "Recent tasks header"
452+
},
453+
"export_data_title": "Export Data",
454+
"@export_data_title": {
455+
"description": "Export data dialog title"
456+
},
457+
"export_data_directory_label": "Export Directory",
458+
"@export_data_directory_label": {
459+
"description": "Export data directory label"
460+
},
461+
"export_data_directory_required": "Please select export directory",
462+
"@export_data_directory_required": {
463+
"description": "Export data directory required error message"
464+
},
465+
"export_data_file_name_required": "Please enter file name",
466+
"@export_data_file_name_required": {
467+
"description": "Export data file name required error message"
468+
},
469+
"tooltip_select_directory": "Select directory",
470+
"@tooltip_select_directory": {
471+
"description": "Tooltip select directory"
472+
},
473+
"tooltip_ai_generate_file_name": "Use AI to auto-generate file name and description",
474+
"@tooltip_ai_generate_file_name": {
475+
"description": "Tooltip AI generate file name"
476+
},
477+
"error_llm_agent_not_found": "No available LLM Agent found, please configure in settings first",
478+
"@error_llm_agent_not_found": {
479+
"description": "Error message LLM agent not found"
480+
},
481+
"error_generate_file_name_failed": "Failed to generate file name: {error}",
482+
"@error_generate_file_name_failed": {
483+
"description": "Error message generate file name failed",
484+
"placeholders": {
485+
"error": {
486+
"type": "String"
487+
}
488+
}
489+
},
490+
"error_unknown_error": "Unknown error occurred: {error}",
491+
"@error_unknown_error": {
492+
"description": "Error message unknown error",
493+
"placeholders": {
494+
"error": {
495+
"type": "String"
496+
}
497+
}
498+
},
499+
"export_data_exporting": "Exporting",
500+
"@export_data_exporting": {
501+
"description": "Export data exporting text"
502+
},
503+
"export_data_schema_sql": "schema SQL, SQL as follows:",
504+
"@export_data_schema_sql": {
505+
"description": "Export data schema SQL text"
506+
},
507+
"export_progress_creating_task": "Creating task",
508+
"@export_progress_creating_task": {
509+
"description": "Export progress message creating task"
510+
},
511+
"export_progress_connecting": "Connecting database",
512+
"@export_progress_connecting": {
513+
"description": "Export progress message connecting"
514+
},
515+
"export_progress_executing_query": "Executing query",
516+
"@export_progress_executing_query": {
517+
"description": "Export progress message executing query"
518+
},
519+
"export_progress_opening_file": "Opening file",
520+
"@export_progress_opening_file": {
521+
"description": "Export progress message opening file"
522+
},
523+
"export_progress_exporting": "Exported {rows} rows",
524+
"@export_progress_exporting": {
525+
"description": "Export progress message exporting data",
526+
"placeholders": {
527+
"rows": {
528+
"type": "int",
529+
"format": "decimalPattern"
530+
}
531+
}
532+
},
533+
"export_progress_completed": "Completed",
534+
"@export_progress_completed": {
535+
"description": "Export progress message completed"
536+
},
537+
"error_directory_not_exists": "Dir does not exist. Use folder button to select",
538+
"@error_directory_not_exists": {
539+
"description": "Error message when directory does not exist"
540+
},
541+
"error_directory_no_permission": "No permission. Use folder button to select",
542+
"@error_directory_no_permission": {
543+
"description": "Error message when directory has no permission"
544+
},
545+
"error_directory_no_permission_macos": "No permission. Use folder button to select and authorize",
546+
"@error_directory_no_permission_macos": {
547+
"description": "Error message when directory has no permission on macOS"
333548
}
334549
}

0 commit comments

Comments
 (0)