历史记录功能
Some checks failed
Flask 提示词大师 - CI/CD 流水线 / 代码质量检查 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 单元测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 集成测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 构建Docker镜像 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到测试环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到生产环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署监控系统 (push) Has been cancelled

This commit is contained in:
2026-03-04 21:47:16 +08:00
parent 4973b90d91
commit b4fca4a338
245 changed files with 3558 additions and 26770 deletions

View File

@@ -1,6 +1,7 @@
#Sun Mar 01 23:33:43 CST 2026
#Mon Mar 02 00:18:46 CST 2026
com.example.promptoptimizer.app-main-5\:/drawable/edit_bg.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\edit_bg.xml
com.example.promptoptimizer.app-main-5\:/drawable/ic_launcher_foreground.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_launcher_foreground.xml
com.example.promptoptimizer.app-main-5\:/mipmap-anydpi-v26/ic_launcher.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\mipmap-anydpi-v26\\ic_launcher.xml
com.example.promptoptimizer.app-main-5\:/mipmap-anydpi-v26/ic_launcher_round.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\mipmap-anydpi-v26\\ic_launcher_round.xml
com.example.promptoptimizer.app-packageDebugResources-2\:/layout/activity_main.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\activity_main.xml
com.example.promptoptimizer.app-packageDebugResources-2\:/layout/activity_settings.xml=D\:\\AndroidProject\\aitsc\\exampleAiApp01\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\activity_settings.xml

View File

@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#F8FAFC</color>
<color name="primary">#1E3A8A</color>
<string name="app_name">提示词智能优化</string>
<string name="btn_copy">复制提示词</string>
<string name="btn_generate">生成专家提示词</string>
<string name="error_empty">请输入您的需求</string>
<string name="error_network">网络请求失败,请检查网络后重试</string>
<string name="hint_input">请描述您的需求,系统将进行专业分析并生成高质量提示词</string>
<string name="label_intent">需求分析</string>
<string name="label_prompt">生成的专家提示词</string>
<string name="label_result">生成结果</string>
<string name="loading">正在分析需求并生成专业提示词…</string>
<string name="toast_copied">已复制到剪贴板</string>
<style name="Theme.PromptOptimizer" parent="Theme.Material3.Light.NoActionBar">
<item name="colorPrimary">#1E3A8A</item>
<item name="colorPrimaryVariant">#3B82F6</item>
<item name="colorOnPrimary">#FFFFFF</item>
</style>
</resources>

View File

@@ -3,4 +3,4 @@
<item name="colorPrimary">#1E3A8A</item>
<item name="colorPrimaryVariant">#3B82F6</item>
<item name="colorOnPrimary">#FFFFFF</item>
</style></file></source></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\build\generated\res\resValues\debug"/></dataSet><mergedItems/></merger>
</style></file><file name="activity_settings" path="D:\AndroidProject\aitsc\exampleAiApp01\app\src\main\res\layout\activity_settings.xml" qualifiers="" type="layout"/></source></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="D:\AndroidProject\aitsc\exampleAiApp01\app\build\generated\res\resValues\debug"/></dataSet><mergedItems/></merger>

View File

@@ -12,14 +12,27 @@
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="提示词智能优化"
android:textSize="22sp"
android:textStyle="bold"
android:textColor="#1E3A8A"
android:layout_marginBottom="16dp" />
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="提示词智能优化(本地)"
android:textSize="22sp"
android:textStyle="bold"
android:textColor="#1E3A8A" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnSettings"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置" />
</LinearLayout>
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"

View File

@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="本地模型配置"
android:textSize="20sp"
android:textStyle="bold"
android:layout_marginBottom="24dp" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="API 地址Ollama 默认 http://10.0.2.2:11434/v1/"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
android:layout_marginBottom="16dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etBaseUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textUri" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="模型名称(如 qwen2:0.5b、llama2"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
android:layout_marginBottom="24dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etModel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnSave"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="保存" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="说明:\n1. 请先在电脑安装 Ollama运行 ollama run qwen2:0.5b\n2. 模拟器访问宿主机用 10.0.2.2,真机用电脑局域网 IP\n3. 例如http://192.168.1.100:11434/v1/"
android:textSize="12sp"
android:textColor="#666666"
android:lineSpacingExtra="4dp" />
</LinearLayout>
</ScrollView>