This commit is contained in:
❀ » Cato Sweeney. ❀ » Console@the.bb
2026-09-03 17:14:31 +08:00
parent d013e370e9
commit dec274b1af
2878 changed files with 86019 additions and 17 deletions

View File

@@ -0,0 +1,18 @@
#Thu Sep 03 16:17:32 CST 2026
com.stec.cmd.app-main-5\:/drawable/ic_launcher_background.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_launcher_background.xml
com.stec.cmd.app-main-5\:/drawable/ic_launcher_foreground.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_launcher_foreground.xml
com.stec.cmd.app-main-5\:/drawable/ic_nav_collect.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_nav_collect.xml
com.stec.cmd.app-main-5\:/drawable/ic_nav_home.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_nav_home.xml
com.stec.cmd.app-main-5\:/drawable/ic_nav_mine.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_nav_mine.xml
com.stec.cmd.app-main-5\:/drawable/ic_nav_stats.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_nav_stats.xml
com.stec.cmd.app-main-5\:/drawable/ic_nav_task.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\drawable\\ic_nav_task.xml
com.stec.cmd.app-main-5\:/menu/bottom_nav_menu.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\menu\\bottom_nav_menu.xml
com.stec.cmd.app-main-5\:/mipmap-anydpi-v26/ic_launcher.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\mipmap-anydpi-v26\\ic_launcher.xml
com.stec.cmd.app-main-5\:/mipmap-anydpi-v26/ic_launcher_round.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\mipmap-anydpi-v26\\ic_launcher_round.xml
com.stec.cmd.app-main-5\:/xml/network_security_config.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\xml\\network_security_config.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/activity_main.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\activity_main.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/fragment_change_password.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\fragment_change_password.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/fragment_config.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\fragment_config.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/fragment_login.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\fragment_login.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/fragment_mine.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\fragment_mine.xml
com.stec.cmd.app-packageDebugResources-2\:/layout/fragment_placeholder.xml=C\:\\Users\\Administrator\\m-stecmd\\app\\build\\intermediates\\packaged_res\\debug\\packageDebugResources\\layout\\fragment_placeholder.xml

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns1="http://schemas.android.com/tools">
<color name="brand_background">#F7F9FC</color>
<color name="brand_on_primary">#FFFFFF</color>
<color name="brand_primary">#1E6FD9</color>
<color name="brand_surface">#FFFFFF</color>
<color name="launcher_background">#1E6FD9</color>
<color name="login_error">#B3261E</color>
<string name="action_back">返回</string>
<string name="action_save">保存</string>
<string name="app_name">监测数据不落地</string>
<string name="change_password_confirm_hint">确认新密码</string>
<string name="change_password_new_hint">新密码(至少 6 位)</string>
<string name="change_password_old_hint">原密码</string>
<string name="change_password_submit">提交修改</string>
<string name="change_password_success">密码已修改,请使用新密码重新登录</string>
<string name="change_password_title">修改登录密码</string>
<string name="config_base_url_hint">服务器地址(如 https://jcd.stec.p-q.co</string>
<string name="config_note">配置仅保存在本机(加密存储),不会随代码库分发;密钥变更后在此更新即可,无需换包。</string>
<string name="config_saved">配置已保存</string>
<string name="config_secret_key_hint">SecretKey接口调用秘钥</string>
<string name="config_system_code_hint">SystemCode供应商编码</string>
<string name="config_title">服务器与密钥配置</string>
<string name="login_countdown_fmt">%1$ds 后重发</string>
<string name="login_mode_account">账号密码</string>
<string name="login_mode_sms">短信验证码</string>
<string name="login_name_hint">登录账号</string>
<string name="login_password_hint">登录密码</string>
<string name="login_phone_hint">手机号(国内 11 位)</string>
<string name="login_send_code">获取验证码</string>
<string name="login_sms_code_hint">短信验证码</string>
<string name="login_submit">登 录</string>
<string name="login_subtitle">上海城建勘测院 · 监测数据不落地平台</string>
<string name="login_title">登录</string>
<string name="mine_account_fmt">账号:%1$s</string>
<string name="mine_change_password">修改登录密码</string>
<string name="mine_config_missing">尚未配置服务器地址与密钥,无法登录</string>
<string name="mine_config_ready">服务器与密钥已配置</string>
<string name="mine_dept_fmt">部门:%1$s</string>
<string name="mine_go_config">去配置</string>
<string name="mine_login">登录</string>
<string name="mine_logout">退出登录</string>
<string name="mine_logout_confirm">确定退出当前账号?</string>
<string name="mine_not_logged_in">未登录</string>
<string name="mine_open_config">服务器与密钥配置</string>
<string name="mine_phone_fmt">手机号:%1$s</string>
<string name="mine_refresh">刷新用户信息</string>
<string name="mine_title">我的</string>
<string name="mine_unknown_user">未知用户</string>
<string name="placeholder_hint">占位页 —— 业务功能按 S1S4 计划经 FeatureMount 挂载</string>
<string name="tab_collect">采集</string>
<string name="tab_home">首页</string>
<string name="tab_mine">我的</string>
<string name="tab_stats">统计</string>
<string name="tab_task">任务</string>
<style name="Theme.SteCmd" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimary">@color/brand_primary</item>
<item name="colorOnPrimary">@color/brand_on_primary</item>
<item name="android:colorBackground">@color/brand_background</item>
<item name="colorSurface">@color/brand_surface</item>
<item name="android:statusBarColor">@color/brand_background</item>
<item name="android:windowLightStatusBar" ns1:targetApi="m">true</item>
</style>
<style name="Theme.SteCmd.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/launcher_background</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
<item name="postSplashScreenTheme">@style/Theme.SteCmd</item>
</style>
</resources>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorSurface"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
</LinearLayout>

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 修改登录密码页M1-042.3.1):成功后本地登出,需用新密码重登 -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/brand_background"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_back"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_back" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/change_password_title"
android:textColor="?attr/colorOnSurface"
android:textSize="24sp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_old_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:hint="@string/change_password_old_hint"
android:imeOptions="actionNext"
android:inputType="textPassword"
android:maxLines="1" />
<EditText
android:id="@+id/et_new_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:hint="@string/change_password_new_hint"
android:imeOptions="actionNext"
android:inputType="textPassword"
android:maxLines="1" />
<EditText
android:id="@+id/et_confirm_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:hint="@string/change_password_confirm_hint"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:maxLines="1" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/change_password_submit" />
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:indeterminate="true"
android:visibility="gone" />
<TextView
android:id="@+id/tv_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textColor="?attr/colorError"
android:textSize="14sp" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 服务器与密钥配置页M1-06仅存本机 DataStore不入代码库M7-04 -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/brand_background"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_back"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_back" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/config_title"
android:textColor="?attr/colorOnSurface"
android:textSize="24sp"
android:textStyle="bold" />
<EditText
android:id="@+id/et_base_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:hint="@string/config_base_url_hint"
android:imeOptions="actionNext"
android:inputType="textUri"
android:maxLines="1" />
<EditText
android:id="@+id/et_secret_key"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:hint="@string/config_secret_key_hint"
android:imeOptions="actionNext"
android:inputType="text"
android:maxLines="1" />
<EditText
android:id="@+id/et_system_code"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:hint="@string/config_system_code_hint"
android:imeOptions="actionDone"
android:inputType="text"
android:maxLines="1" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_save"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/action_save" />
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:indeterminate="true"
android:visibility="gone" />
<TextView
android:id="@+id/tv_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textColor="?attr/colorError"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:alpha="0.6"
android:text="@string/config_note"
android:textSize="12sp" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 登录页M1-01 账号密码 / M1-02 获取验证码 / M1-03 验证码登录) -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/brand_background"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_back"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_back" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/login_title"
android:textColor="?attr/colorOnSurface"
android:textSize="24sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:alpha="0.7"
android:text="@string/login_subtitle"
android:textSize="14sp" />
<RadioGroup
android:id="@+id/radio_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rb_account"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="@string/login_mode_account" />
<RadioButton
android:id="@+id/rb_sms"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/login_mode_sms" />
</RadioGroup>
<!-- 账号密码模式 -->
<LinearLayout
android:id="@+id/group_account"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:orientation="vertical">
<EditText
android:id="@+id/et_login_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/login_name_hint"
android:imeOptions="actionNext"
android:inputType="text"
android:maxLines="1" />
<EditText
android:id="@+id/et_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:hint="@string/login_password_hint"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:maxLines="1" />
</LinearLayout>
<!-- 短信验证码模式 -->
<LinearLayout
android:id="@+id/group_sms"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:orientation="vertical"
android:visibility="gone">
<EditText
android:id="@+id/et_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/login_phone_hint"
android:imeOptions="actionNext"
android:inputType="phone"
android:maxLength="11"
android:maxLines="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<EditText
android:id="@+id/et_sms_code"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/login_sms_code_hint"
android:inputType="number"
android:maxLength="6"
android:maxLines="1" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_send_code"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:text="@string/login_send_code" />
</LinearLayout>
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/login_submit" />
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:indeterminate="true"
android:visibility="gone" />
<TextView
android:id="@+id/tv_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textColor="?attr/colorError"
android:textSize="14sp" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 「我的」业务页M1-05 用户信息 / M1-06 配置入口 / M1-04 改密入口 / M1-07 退出登录) -->
<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:background="@color/brand_background"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_back"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_back" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/mine_title"
android:textColor="?attr/colorOnSurface"
android:textSize="24sp"
android:textStyle="bold" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/card_user"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:cardBackgroundColor="@color/brand_surface"
app:cardCornerRadius="12dp"
app:cardElevation="1dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mine_not_logged_in"
android:textColor="?attr/colorOnSurface"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_dept"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:alpha="0.8"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:alpha="0.8"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:alpha="0.8"
android:textSize="14sp" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
<TextView
android:id="@+id/tv_config_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:alpha="0.7"
android:textSize="13sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_go_config"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/mine_go_config"
android:visibility="gone" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_login_or_logout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@string/mine_login" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_change_password"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/mine_change_password" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_open_config"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/mine_open_config" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_refresh"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/mine_refresh" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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="24dp">
<TextView
android:id="@+id/module_tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textStyle="bold"
android:textColor="?attr/colorPrimary"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/hint"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintVertical_chainStyle="packed" />
<TextView
android:id="@+id/hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textSize="14sp"
android:alpha="0.7"
app:layout_constraintTop_toBottomOf="@id/module_tag"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>