aaa
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-01 23:56:28 +08:00
parent 90f3103de3
commit 8e750f5bee
1095 changed files with 99308 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<corners android:radius="4dp"/>
<stroke android:width="1dp" android:color="#E2E8F0"/>
</shape>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#1E3A8A"
android:pathData="M54,40 L68,54 L54,68 L40,54 Z" />
</vector>

View File

@@ -0,0 +1,153 @@
<?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:fillViewport="true"
android:background="#F8FAFC">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="提示词智能优化"
android:textSize="22sp"
android:textStyle="bold"
android:textColor="#1E3A8A"
android:layout_marginBottom="16dp" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:cardCornerRadius="8dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请描述您的需求"
android:textSize="14sp"
android:textColor="#333333"
android:layout_marginBottom="8dp" />
<EditText
android:id="@+id/etInput"
android:layout_width="match_parent"
android:layout_height="120dp"
android:gravity="top|start"
android:padding="12dp"
android:background="@drawable/edit_bg"
android:inputType="textMultiLine"
android:minLines="3"
android:hint="@string/hint_input" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnGenerate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/btn_generate" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone"
android:layout_marginVertical="24dp" />
<TextView
android:id="@+id/tvLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/loading"
android:visibility="gone"
android:layout_marginBottom="24dp" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/cardResult"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:cardCornerRadius="8dp"
app:cardElevation="2dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_result"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginBottom="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_intent"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginBottom="4dp" />
<TextView
android:id="@+id/tvIntent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:background="#F1F5F9"
android:textSize="13sp"
android:lineSpacingExtra="4dp"
android:layout_marginBottom="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/label_prompt"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginBottom="4dp" />
<TextView
android:id="@+id/tvPrompt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:background="#F1F5F9"
android:textSize="13sp"
android:lineSpacingExtra="4dp"
android:fontFamily="monospace" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btnCopy"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/btn_copy" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@@ -0,0 +1,21 @@
<?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>