diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 568bcbd..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,47 +0,0 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-**/ios/Flutter/.last_build_id
-.dart_tool/
-.flutter-plugins
-.flutter-plugins-dependencies
-.packages
-.pub-cache/
-.pub/
-/build/
-
-# Web related
-lib/generated_plugin_registrant.dart
-
-# Symbolication related
-app.*.symbols
-
-# Obfuscation related
-app.*.map.json
-
-# Android Studio will place build artifacts here
-/android/app/debug
-/android/app/profile
-/android/app/release
-.fvm/
\ No newline at end of file
diff --git a/.metadata b/.metadata
deleted file mode 100644
index 77d4f23..0000000
--- a/.metadata
+++ /dev/null
@@ -1,36 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled.
-
-version:
- revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- channel: stable
-
-project_type: app
-
-# Tracks metadata for the flutter migrate command
-migration:
- platforms:
- - platform: root
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- - platform: linux
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- - platform: macos
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- - platform: windows
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
-
- # User provided section
-
- # List of Local paths (relative to this file) that should be
- # ignored by the migrate tool.
- #
- # Files that are not part of the templates will be ignored by default.
- unmanaged_files:
- - 'lib/main.dart'
- - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index d234201..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,53 +0,0 @@
-## v1.0.7
-* 首页任务增加分类
-* 增加国际化相关配置
-* 登录页状态栏适配
-
-## v1.0.6
-* 支持切换账号功能
-* 登录页青龙图标随颜色主题变换
-* apk大小减少2/3,只支持arm架构,不再支持x86
-
-## v1.0.5
-* 优化配置文件编辑功能
-* 优化文本选择样式
-* 增加页面错误toast
-* 修改iOS端app icon
-
-## 1.0.4
-* 增加主题切换功能,各种颜色主题随意切换
-* 修改无法停止任务的bug
-* 修改脚本管理页面json解析失败的bug
-* 修改变更配置文件没有及时刷新UI的bug
-* 增加版本更新提醒功能(需要手机能联通github)
-* 登录页面长按青龙logo可以呼出网络请求日志,再次长按可关闭
-* 打开系统最近任务时展示APP的名称
-* 优化使用体验
-
-## 1.0.3
-
-* 解决2.10.12及以下版本无法登录的问题
-* 适配最新版qinglong 相关接口字段
-* 其他页面排版优化
-
-## 1.0.2
-
-* 支持修改用户名密码(仅限使用用户名密码登录用户)
-* 支持脚本的编辑删除
-* 支持client_id登录之后只启用部分模块
-* 支持两步验证
-
-## 1.0.1
-
-* 增加任务详情页
-* 增加环境变量详情页
-* 环境变量列表使用体验优化
-* 部分页面进入卡顿优化
-* 扩大任务的搜索范围
-* 优化暗黑主题
-* 支持client_id登录
-* 修改bug
-
-## 1.0.0
-
-* 完成基础功能
diff --git a/analysis_options.yaml b/analysis_options.yaml
deleted file mode 100644
index 61b6c4d..0000000
--- a/analysis_options.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-# This file configures the analyzer, which statically analyzes Dart code to
-# check for errors, warnings, and lints.
-#
-# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
-# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
-# invoked from the command line by running `flutter analyze`.
-
-# The following line activates a set of recommended lints for Flutter apps,
-# packages, and plugins designed to encourage good coding practices.
-include: package:flutter_lints/flutter.yaml
-
-linter:
- # The lint rules applied to this project can be customized in the
- # section below to disable rules from the `package:flutter_lints/flutter.yaml`
- # included above or to enable additional rules. A list of all available lints
- # and their documentation is published at
- # https://dart-lang.github.io/linter/lints/index.html.
- #
- # Instead of disabling a lint rule for the entire project in the
- # section below, it can also be suppressed for a single line of code
- # or a specific dart file by using the `// ignore: name_of_lint` and
- # `// ignore_for_file: name_of_lint` syntax on the line or in the file
- # producing the lint.
- rules:
- # avoid_print: false # Uncomment to disable the `avoid_print` rule
- # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
-
-# Additional information about this file can be found at
-# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
deleted file mode 100644
index 6f56801..0000000
--- a/android/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
-
-# Remember to never publicly share your keystore.
-# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
-key.properties
-**/*.keystore
-**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
deleted file mode 100644
index d9436ff..0000000
--- a/android/app/build.gradle
+++ /dev/null
@@ -1,82 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion flutter.compileSdkVersion
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- kotlinOptions {
- jvmTarget = '1.8'
- }
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "work.master.qinglongapp"
- minSdkVersion 21
- targetSdkVersion flutter.targetSdkVersion
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- ndk {
- abiFilters 'armeabi-v7a', 'arm64-v8a'
- }
- }
- signingConfigs {
-
- release {
- storeFile file("qinglong.keystore")
- storePassword "jiangyuesong"
- keyAlias "jiangyuesong"
- keyPassword "jiangyuesong"
-
- // Optional, specify signing versions used
- v1SigningEnabled true
- v2SigningEnabled true
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- }
-
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index dab2770..0000000
--- a/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 59d0476..0000000
--- a/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/app/src/main/kotlin/work/master/qinglong_app/MainActivity.kt b/android/app/src/main/kotlin/work/master/qinglong_app/MainActivity.kt
deleted file mode 100644
index 502b907..0000000
--- a/android/app/src/main/kotlin/work/master/qinglong_app/MainActivity.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package work.master.qinglong_app
-
-import io.flutter.embedding.android.FlutterActivity
-
-class MainActivity: FlutterActivity() {
-}
diff --git a/android/app/src/main/kotlin/work/master/qinglongapp/MainActivity.kt b/android/app/src/main/kotlin/work/master/qinglongapp/MainActivity.kt
deleted file mode 100644
index 15b437b..0000000
--- a/android/app/src/main/kotlin/work/master/qinglongapp/MainActivity.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package work.master.qinglongapp
-
-import io.flutter.embedding.android.FlutterActivity
-
-class MainActivity: FlutterActivity() {
-}
diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png
deleted file mode 100644
index 07112ee..0000000
Binary files a/android/app/src/main/res/drawable-hdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png
deleted file mode 100644
index e7b83a2..0000000
Binary files a/android/app/src/main/res/drawable-mdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-night-v21/background.png b/android/app/src/main/res/drawable-night-v21/background.png
deleted file mode 100644
index 1b5df34..0000000
Binary files a/android/app/src/main/res/drawable-night-v21/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-night-v21/launch_background.xml b/android/app/src/main/res/drawable-night-v21/launch_background.xml
deleted file mode 100644
index 3fe6b2e..0000000
--- a/android/app/src/main/res/drawable-night-v21/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-night/background.png b/android/app/src/main/res/drawable-night/background.png
deleted file mode 100644
index 1b5df34..0000000
Binary files a/android/app/src/main/res/drawable-night/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-night/launch_background.xml b/android/app/src/main/res/drawable-night/launch_background.xml
deleted file mode 100644
index 3fe6b2e..0000000
--- a/android/app/src/main/res/drawable-night/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-v21/background.png b/android/app/src/main/res/drawable-v21/background.png
deleted file mode 100644
index e29b3b5..0000000
Binary files a/android/app/src/main/res/drawable-v21/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
deleted file mode 100644
index 3fe6b2e..0000000
--- a/android/app/src/main/res/drawable-v21/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png
deleted file mode 100644
index 2e1e8b4..0000000
Binary files a/android/app/src/main/res/drawable-xhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png
deleted file mode 100644
index f7f2b26..0000000
Binary files a/android/app/src/main/res/drawable-xxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/splash.png b/android/app/src/main/res/drawable-xxxhdpi/splash.png
deleted file mode 100644
index 0b1ae4d..0000000
Binary files a/android/app/src/main/res/drawable-xxxhdpi/splash.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png
deleted file mode 100644
index e29b3b5..0000000
Binary files a/android/app/src/main/res/drawable/background.png and /dev/null differ
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 3fe6b2e..0000000
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- -
-
-
- -
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index 17e4046..0000000
Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index 3afa7d4..0000000
Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 8a7cdd7..0000000
Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 0b1ae4d..0000000
Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 4f74dc1..0000000
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/android/app/src/main/res/values-night-v31/styles.xml b/android/app/src/main/res/values-night-v31/styles.xml
deleted file mode 100644
index 2c37995..0000000
--- a/android/app/src/main/res/values-night-v31/styles.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
deleted file mode 100644
index 174b2c5..0000000
--- a/android/app/src/main/res/values-night/styles.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values-v31/styles.xml b/android/app/src/main/res/values-v31/styles.xml
deleted file mode 100644
index 37aab1f..0000000
--- a/android/app/src/main/res/values-v31/styles.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index 4e3029c..0000000
--- a/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index dab2770..0000000
--- a/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644
index 4256f91..0000000
--- a/android/build.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.6.10'
- repositories {
- google()
- mavenCentral()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:4.1.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- mavenCentral()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/android/gradle.properties b/android/gradle.properties
deleted file mode 100644
index 94adc3a..0000000
--- a/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index bc6a58a..0000000
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Jun 23 08:50:38 CEST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
deleted file mode 100644
index 44e62bc..0000000
--- a/android/settings.gradle
+++ /dev/null
@@ -1,11 +0,0 @@
-include ':app'
-
-def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
-def properties = new Properties()
-
-assert localPropertiesFile.exists()
-localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
-
-def flutterSdkPath = properties.getProperty("flutter.sdk")
-assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
-apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/apk/app-release-v1.0.6.apk b/apk/app-release-v1.0.6.apk
deleted file mode 100644
index 627f09a..0000000
Binary files a/apk/app-release-v1.0.6.apk and /dev/null differ
diff --git a/apk/app-release-v1.0.8.apk b/apk/app-release-v1.0.8.apk
deleted file mode 100644
index 077d4e0..0000000
Binary files a/apk/app-release-v1.0.8.apk and /dev/null differ
diff --git a/assets/images/add_btn_svip.png b/assets/images/add_btn_svip.png
deleted file mode 100644
index fef251c..0000000
Binary files a/assets/images/add_btn_svip.png and /dev/null differ
diff --git a/assets/images/dark.png b/assets/images/dark.png
deleted file mode 100644
index f48d0dd..0000000
Binary files a/assets/images/dark.png and /dev/null differ
diff --git a/assets/images/faceid.png b/assets/images/faceid.png
deleted file mode 100644
index 6485236..0000000
Binary files a/assets/images/faceid.png and /dev/null differ
diff --git a/assets/images/figure.png b/assets/images/figure.png
deleted file mode 100644
index a44cdb1..0000000
Binary files a/assets/images/figure.png and /dev/null differ
diff --git a/assets/images/icon_a.png b/assets/images/icon_a.png
deleted file mode 100644
index 6f678dd..0000000
Binary files a/assets/images/icon_a.png and /dev/null differ
diff --git a/assets/images/icon_about.png b/assets/images/icon_about.png
deleted file mode 100644
index ce3d4a5..0000000
Binary files a/assets/images/icon_about.png and /dev/null differ
diff --git a/assets/images/icon_add_file.png b/assets/images/icon_add_file.png
deleted file mode 100644
index 94505fc..0000000
Binary files a/assets/images/icon_add_file.png and /dev/null differ
diff --git a/assets/images/icon_app_set.png b/assets/images/icon_app_set.png
deleted file mode 100644
index 2c70174..0000000
Binary files a/assets/images/icon_app_set.png and /dev/null differ
diff --git a/assets/images/icon_b.png b/assets/images/icon_b.png
deleted file mode 100644
index e8401eb..0000000
Binary files a/assets/images/icon_b.png and /dev/null differ
diff --git a/assets/images/icon_check.png b/assets/images/icon_check.png
deleted file mode 100644
index bd07524..0000000
Binary files a/assets/images/icon_check.png and /dev/null differ
diff --git a/assets/images/icon_cron.png b/assets/images/icon_cron.png
deleted file mode 100644
index a03802f..0000000
Binary files a/assets/images/icon_cron.png and /dev/null differ
diff --git a/assets/images/icon_cron_checked.png b/assets/images/icon_cron_checked.png
deleted file mode 100644
index 705f9b3..0000000
Binary files a/assets/images/icon_cron_checked.png and /dev/null differ
diff --git a/assets/images/icon_d.png b/assets/images/icon_d.png
deleted file mode 100644
index 3c2af27..0000000
Binary files a/assets/images/icon_d.png and /dev/null differ
diff --git a/assets/images/icon_default_user.png b/assets/images/icon_default_user.png
deleted file mode 100644
index 09a62ac..0000000
Binary files a/assets/images/icon_default_user.png and /dev/null differ
diff --git a/assets/images/icon_disabled.png b/assets/images/icon_disabled.png
deleted file mode 100644
index 2e06765..0000000
Binary files a/assets/images/icon_disabled.png and /dev/null differ
diff --git a/assets/images/icon_enable.png b/assets/images/icon_enable.png
deleted file mode 100644
index 2ac6a5b..0000000
Binary files a/assets/images/icon_enable.png and /dev/null differ
diff --git a/assets/images/icon_env.png b/assets/images/icon_env.png
deleted file mode 100644
index 66e1dbe..0000000
Binary files a/assets/images/icon_env.png and /dev/null differ
diff --git a/assets/images/icon_env_checked.png b/assets/images/icon_env_checked.png
deleted file mode 100644
index 1ece568..0000000
Binary files a/assets/images/icon_env_checked.png and /dev/null differ
diff --git a/assets/images/icon_fail.png b/assets/images/icon_fail.png
deleted file mode 100644
index e8c79ff..0000000
Binary files a/assets/images/icon_fail.png and /dev/null differ
diff --git a/assets/images/icon_file.png b/assets/images/icon_file.png
deleted file mode 100644
index ad94f24..0000000
Binary files a/assets/images/icon_file.png and /dev/null differ
diff --git a/assets/images/icon_file_checked.png b/assets/images/icon_file_checked.png
deleted file mode 100644
index 54f39de..0000000
Binary files a/assets/images/icon_file_checked.png and /dev/null differ
diff --git a/assets/images/icon_history.png b/assets/images/icon_history.png
deleted file mode 100644
index c89227a..0000000
Binary files a/assets/images/icon_history.png and /dev/null differ
diff --git a/assets/images/icon_idle.png b/assets/images/icon_idle.png
deleted file mode 100644
index 3a812b3..0000000
Binary files a/assets/images/icon_idle.png and /dev/null differ
diff --git a/assets/images/icon_install_fail.png b/assets/images/icon_install_fail.png
deleted file mode 100644
index 07b75e8..0000000
Binary files a/assets/images/icon_install_fail.png and /dev/null differ
diff --git a/assets/images/icon_install_success.png b/assets/images/icon_install_success.png
deleted file mode 100644
index 4beab6a..0000000
Binary files a/assets/images/icon_install_success.png and /dev/null differ
diff --git a/assets/images/icon_login_icon.png b/assets/images/icon_login_icon.png
deleted file mode 100644
index 9740da1..0000000
Binary files a/assets/images/icon_login_icon.png and /dev/null differ
diff --git a/assets/images/icon_other.png b/assets/images/icon_other.png
deleted file mode 100644
index 94c7b06..0000000
Binary files a/assets/images/icon_other.png and /dev/null differ
diff --git a/assets/images/icon_other_bg.png b/assets/images/icon_other_bg.png
deleted file mode 100644
index 4f92b04..0000000
Binary files a/assets/images/icon_other_bg.png and /dev/null differ
diff --git a/assets/images/icon_other_checked.png b/assets/images/icon_other_checked.png
deleted file mode 100644
index 58282f7..0000000
Binary files a/assets/images/icon_other_checked.png and /dev/null differ
diff --git a/assets/images/icon_right.png b/assets/images/icon_right.png
deleted file mode 100644
index d2482dd..0000000
Binary files a/assets/images/icon_right.png and /dev/null differ
diff --git a/assets/images/icon_running.png b/assets/images/icon_running.png
deleted file mode 100644
index 3b26804..0000000
Binary files a/assets/images/icon_running.png and /dev/null differ
diff --git a/assets/images/icon_s.png b/assets/images/icon_s.png
deleted file mode 100644
index b9b5ff0..0000000
Binary files a/assets/images/icon_s.png and /dev/null differ
diff --git a/assets/images/icon_safety.png b/assets/images/icon_safety.png
deleted file mode 100644
index 96a115e..0000000
Binary files a/assets/images/icon_safety.png and /dev/null differ
diff --git a/assets/images/icon_search.png b/assets/images/icon_search.png
deleted file mode 100644
index f4a9d00..0000000
Binary files a/assets/images/icon_search.png and /dev/null differ
diff --git a/assets/images/icon_setting.png b/assets/images/icon_setting.png
deleted file mode 100644
index bea3c72..0000000
Binary files a/assets/images/icon_setting.png and /dev/null differ
diff --git a/assets/images/icon_subsctibe.png b/assets/images/icon_subsctibe.png
deleted file mode 100644
index d8fe88b..0000000
Binary files a/assets/images/icon_subsctibe.png and /dev/null differ
diff --git a/assets/images/icon_success.png b/assets/images/icon_success.png
deleted file mode 100644
index f3b9989..0000000
Binary files a/assets/images/icon_success.png and /dev/null differ
diff --git a/assets/images/icon_task_disable.png b/assets/images/icon_task_disable.png
deleted file mode 100644
index cf64717..0000000
Binary files a/assets/images/icon_task_disable.png and /dev/null differ
diff --git a/assets/images/icon_task_log.png b/assets/images/icon_task_log.png
deleted file mode 100644
index 9b83895..0000000
Binary files a/assets/images/icon_task_log.png and /dev/null differ
diff --git a/assets/images/icon_uncheck.png b/assets/images/icon_uncheck.png
deleted file mode 100644
index 028c457..0000000
Binary files a/assets/images/icon_uncheck.png and /dev/null differ
diff --git a/assets/images/icon_vip_bg.png b/assets/images/icon_vip_bg.png
deleted file mode 100644
index 7173c03..0000000
Binary files a/assets/images/icon_vip_bg.png and /dev/null differ
diff --git a/assets/images/icon_vip_bg_check.png b/assets/images/icon_vip_bg_check.png
deleted file mode 100644
index e562e12..0000000
Binary files a/assets/images/icon_vip_bg_check.png and /dev/null differ
diff --git a/assets/images/js.png b/assets/images/js.png
deleted file mode 100644
index 91d1188..0000000
Binary files a/assets/images/js.png and /dev/null differ
diff --git a/assets/images/json.png b/assets/images/json.png
deleted file mode 100644
index f39a8c4..0000000
Binary files a/assets/images/json.png and /dev/null differ
diff --git a/assets/images/light.png b/assets/images/light.png
deleted file mode 100644
index 669384e..0000000
Binary files a/assets/images/light.png and /dev/null differ
diff --git a/assets/images/loading.png b/assets/images/loading.png
deleted file mode 100644
index 9a9d0d5..0000000
Binary files a/assets/images/loading.png and /dev/null differ
diff --git a/assets/images/login_bg.png b/assets/images/login_bg.png
deleted file mode 100644
index 20f1d39..0000000
Binary files a/assets/images/login_bg.png and /dev/null differ
diff --git a/assets/images/login_tip.png b/assets/images/login_tip.png
deleted file mode 100644
index 4ca3867..0000000
Binary files a/assets/images/login_tip.png and /dev/null differ
diff --git a/assets/images/normal.png b/assets/images/normal.png
deleted file mode 100644
index 52ac4b5..0000000
Binary files a/assets/images/normal.png and /dev/null differ
diff --git a/assets/images/other.png b/assets/images/other.png
deleted file mode 100644
index f8cffc3..0000000
Binary files a/assets/images/other.png and /dev/null differ
diff --git a/assets/images/py.png b/assets/images/py.png
deleted file mode 100644
index 2213506..0000000
Binary files a/assets/images/py.png and /dev/null differ
diff --git a/assets/images/ql.png b/assets/images/ql.png
deleted file mode 100644
index 09bc684..0000000
Binary files a/assets/images/ql.png and /dev/null differ
diff --git a/assets/images/ql_splash.png b/assets/images/ql_splash.png
deleted file mode 100644
index c508382..0000000
Binary files a/assets/images/ql_splash.png and /dev/null differ
diff --git a/assets/images/ql_white.png b/assets/images/ql_white.png
deleted file mode 100644
index 09bc684..0000000
Binary files a/assets/images/ql_white.png and /dev/null differ
diff --git a/assets/images/shell.png b/assets/images/shell.png
deleted file mode 100644
index 9563d70..0000000
Binary files a/assets/images/shell.png and /dev/null differ
diff --git a/assets/images/svip.png b/assets/images/svip.png
deleted file mode 100644
index 2590eb2..0000000
Binary files a/assets/images/svip.png and /dev/null differ
diff --git a/assets/images/svip_logo.png b/assets/images/svip_logo.png
deleted file mode 100644
index bfb314f..0000000
Binary files a/assets/images/svip_logo.png and /dev/null differ
diff --git a/assets/images/ts.png b/assets/images/ts.png
deleted file mode 100644
index 0bc3036..0000000
Binary files a/assets/images/ts.png and /dev/null differ
diff --git a/assets/images/update_bg_app_top.png b/assets/images/update_bg_app_top.png
deleted file mode 100644
index d97da82..0000000
Binary files a/assets/images/update_bg_app_top.png and /dev/null differ
diff --git a/assets/images/update_ic_close.png b/assets/images/update_ic_close.png
deleted file mode 100644
index 29e55e9..0000000
Binary files a/assets/images/update_ic_close.png and /dev/null differ
diff --git a/assets/images/vip.png b/assets/images/vip.png
deleted file mode 100644
index e2e98ff..0000000
Binary files a/assets/images/vip.png and /dev/null differ
diff --git a/assets/images/vip_logo.png b/assets/images/vip_logo.png
deleted file mode 100644
index d8c89f9..0000000
Binary files a/assets/images/vip_logo.png and /dev/null differ
diff --git a/lib/base/base_state_widget.dart b/lib/base/base_state_widget.dart
deleted file mode 100644
index d005ff6..0000000
--- a/lib/base/base_state_widget.dart
+++ /dev/null
@@ -1,83 +0,0 @@
-import 'package:flutter/cupertino.dart';
-import 'package:flutter_riverpod/flutter_riverpod.dart';
-import 'package:qinglong_app/base/ui/lazy_load_state.dart';
-import 'package:qinglong_app/utils/extension.dart';
-import 'base_viewmodel.dart';
-
-class BaseStateWidget extends ConsumerStatefulWidget {
- final Widget Function(WidgetRef context, T value, Widget? child) builder;
- final ProviderBase model;
- final Widget? child;
- final Function(T)? onReady;
- final bool lazyLoad;
-
- const BaseStateWidget({
- Key? key,
- required this.builder,
- required this.model,
- this.child,
- this.onReady,
- this.lazyLoad = false,
- }) : super(key: key);
-
- @override
- _BaseStateWidgetState createState() => _BaseStateWidgetState();
-}
-
-class _BaseStateWidgetState
- extends ConsumerState>
- with LazyLoadState> {
- @override
- Widget build(BuildContext context) {
- var viewModel = ref.watch(widget.model);
- if (viewModel.failedToast != null) {
- WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
- (viewModel.failedToast ?? "").toast();
- viewModel.clearToast();
- });
- }
- if (viewModel.currentState == PageState.CONTENT) {
- return widget.builder(ref, viewModel, widget.child);
- }
-
- if (viewModel.currentState == PageState.LOADING) {
- return Container(
- alignment: Alignment.center,
- child: const CupertinoActivityIndicator(),
- );
- }
-
- if (viewModel.currentState == PageState.FAILED) {
- return Container(
- alignment: Alignment.center,
- child: Text(viewModel.failReason ?? ""),
- );
- }
-
- if (viewModel.currentState == PageState.EMPTY) {
- return Container(
- alignment: Alignment.center,
- child: const Text("暂无数据"),
- );
- }
-
- return Container();
- }
-
- @override
- void onLazyLoad() {
- if (widget.onReady != null && widget.lazyLoad) {
- widget.onReady!(ref.read(widget.model));
- }
- }
-
- @override
- void initState() {
- super.initState();
- WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
- if (widget.onReady != null && !widget.lazyLoad) {
- widget.onReady!(ref.read(widget.model));
- }
- });
- }
-}
diff --git a/lib/base/base_viewmodel.dart b/lib/base/base_viewmodel.dart
deleted file mode 100644
index d8c8642..0000000
--- a/lib/base/base_viewmodel.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-import 'package:flutter/cupertino.dart';
-
-class ViewModel extends ChangeNotifier {}
-
-class BaseViewModel extends ViewModel {
- PageState currentState = PageState.START;
- String? failReason;
- String? failedToast;
-
- void loading({bool notify = false}) {
- failReason = null;
- failedToast = null;
- currentState = PageState.LOADING;
- if (notify) {
- notifyListeners();
- }
- }
-
- void success({bool notify = true}) {
- failReason = null;
- failedToast = null;
- currentState = PageState.CONTENT;
- if (notify) {
- notifyListeners();
- }
- }
-
- void failed(String? reason, {bool notify = false}) {
- currentState = PageState.FAILED;
- failReason = reason;
- failedToast = null;
- if (notify) {
- notifyListeners();
- }
- }
-
- void failToast(String? reason, {bool notify = false}) {
- currentState = PageState.CONTENT;
- failedToast = reason;
- failReason = reason;
- if (notify) {
- notifyListeners();
- }
- }
-
- void clearToast() {
- failedToast = null;
- }
-
- void empty({bool notify = false}) {
- failReason = null;
- failedToast = null;
- currentState = PageState.EMPTY;
- if (notify) {
- notifyListeners();
- }
- }
-}
-
-enum PageState {
- START,
- LOADING,
- EMPTY,
- CONTENT,
- FAILED,
-}
diff --git a/lib/base/http/api.dart b/lib/base/http/api.dart
deleted file mode 100644
index d504dcc..0000000
--- a/lib/base/http/api.dart
+++ /dev/null
@@ -1,466 +0,0 @@
-import 'package:qinglong_app/base/http/http.dart';
-import 'package:qinglong_app/base/http/url.dart';
-import 'package:qinglong_app/main.dart';
-import 'package:qinglong_app/module/config/config_bean.dart';
-import 'package:qinglong_app/module/env/env_bean.dart';
-import 'package:qinglong_app/module/home/system_bean.dart';
-import 'package:qinglong_app/module/login/login_bean.dart';
-import 'package:qinglong_app/module/login/user_bean.dart';
-import 'package:qinglong_app/module/others/dependencies/dependency_bean.dart';
-import 'package:qinglong_app/module/others/login_log/login_log_bean.dart';
-import 'package:qinglong_app/module/others/scripts/script_bean.dart';
-import 'package:qinglong_app/module/others/subscription/subscription_bean.dart';
-import 'package:qinglong_app/module/others/task_log/task_log_bean.dart';
-import 'package:qinglong_app/module/task/task_bean.dart';
-import 'package:qinglong_app/utils/utils.dart';
-
-class Api {
- static Future> system() async {
- return await Http.get(
- Url.system,
- {},
- );
- }
-
- static Future> login(
- String userName,
- String passWord,
- ) async {
- return await Http.post(
- Url.login,
- {
- "username": userName,
- "password": passWord,
- },
- );
- }
-
- static Future> loginOld(
- String userName,
- String passWord,
- ) async {
- return await Http.post(
- Url.loginOld,
- {
- "username": userName,
- "password": passWord,
- },
- );
- }
-
- static Future> loginTwo(
- String userName,
- String passWord,
- String code,
- ) async {
- return await Http.put(
- Url.loginTwo,
- {
- "username": userName,
- "password": passWord,
- "code": code,
- },
- );
- }
-
- static Future> loginByClientId(
- String id,
- String secret,
- ) async {
- return await Http.get(
- Url.loginByClientId,
- {
- "client_id": id,
- "client_secret": secret,
- },
- );
- }
-
- static Future> user() async {
- return await Http.get(
- Url.user,
- null,
- );
- }
-
- static Future>> crons() async {
- return await Http.get>(
- Url.tasks,
- {"searchValue": ""},
- );
- }
-
- static Future> startTasks(List crons) async {
- return await Http.put(
- Url.runTasks,
- crons,
- );
- }
-
- static Future> stopTasks(List crons) async {
- return await Http.put(
- Url.stopTasks,
- crons,
- );
- }
-
- static Future> updatePassword(String name, String password) async {
- return await Http.put(
- Url.updatePassword,
- {
- "username": name,
- "password": password,
- },
- );
- }
-
- static Future> inTimeLog(String cron) async {
- return await Http.get(
- Url.intimeLog(cron),
- null,
- );
- }
-
- static Future> addTask(
- String name,
- String command,
- String cron, {
- int? id,
- String? nId,
- }) async {
- var data = {"name": name, "command": command, "schedule": cron};
-
- if (id != null || nId != null) {
- if (id != null) {
- data["id"] = id;
- } else if (nId != null) {
- data["_id"] = nId;
- }
- return await Http.put(
- Url.addTask,
- data,
- );
- }
- return await Http.post(
- Url.addTask,
- data,
- );
- }
-
- static Future> delTask(String cron) async {
- return await Http.delete(
- Url.addTask,
- [cron],
- );
- }
-
- static Future> pinTask(String cron) async {
- return await Http.put(
- Url.pinTask,
- [cron],
- );
- }
-
- static Future> unpinTask(String cron) async {
- return await Http.put(
- Url.unpinTask,
- [cron],
- );
- }
-
- static Future> enableTask(String cron) async {
- return await Http.put(
- Url.enableTask,
- [cron],
- );
- }
-
- static Future> disableTask(String cron) async {
- return await Http.put(
- Url.disableTask,
- [cron],
- );
- }
-
- static Future>> files() async {
- return await Http.get>(
- Url.files,
- null,
- );
- }
-
- static Future> content(String name) async {
- return await Http.get(
- Url.configContent + name,
- null,
- );
- }
-
- static Future> saveFile(String name, String content) async {
- return await Http.post(
- Url.saveFile,
- {"content": content, "name": name},
- );
- }
-
- static Future>> envs(String search) async {
- return await Http.get>(
- Url.envs,
- {"searchValue": search},
- );
- }
-
- static Future> enableEnv(String id) async {
- return await Http.put(
- Url.enableEnvs,
- [id],
- );
- }
-
- static Future> disableEnv(String id) async {
- return await Http.put(
- Url.disableEnvs,
- [id],
- );
- }
-
- static Future> delEnv(String id) async {
- return await Http.delete(
- Url.delEnv,
- [id],
- );
- }
-
- static Future> addEnv(
- String name,
- String value,
- String remarks, {
- int? id,
- String? nId,
- }) async {
- var data = {
- "value": value,
- "remarks": remarks,
- "name": name,
- };
-
- if (id != null || nId != null) {
- if (id != null) {
- data["id"] = id;
- } else if (nId != null) {
- data["_id"] = nId;
- }
- return await Http.put(
- Url.addEnv,
- data,
- );
- }
- return await Http.post(
- Url.addEnv,
- [data],
- );
- }
-
- static Future> moveEnv(String id, int fromIndex, int toIndex) async {
- return await Http.put(
- Url.envMove(id),
- {"fromIndex": fromIndex, "toIndex": toIndex},
- );
- }
-
- static Future>> loginLog() async {
- return await Http.get>(
- Url.loginLog,
- null,
- );
- }
-
- static Future>> taskLog() async {
- return await Http.get>(Url.taskLog, null, serializationName: Utils.isUpperVersion2_12_2() ? "data" : "dirs");
- }
-
- static Future> taskLogDetail(String name, String path) async {
- if (Utils.isUpperVersion2_13_0()) {
- return await Http.get(
- Url.taskLogDetail + name + "?path=" + path,
- null,
- );
- } else {
- return await Http.get(
- Url.taskLogDetail + path + "/" + name,
- null,
- );
- }
- }
-
- static Future>> scripts() async {
- //2.12.2以及以上版本,脚本路径url做了修改
- return await Http.get>(
- Utils.isUpperVersion2_13_0() ? Url.scripts2 : Url.scripts,
- null,
- );
- }
-
- static Future> updateScript(String name, String path, String content) async {
- return await Http.put(
- Url.scriptDetail,
- {
- "filename": name,
- "path": path,
- "content": content,
- },
- );
- }
-
- static Future> delScript(String name, String path) async {
- return await Http.delete(
- Url.scriptDetail,
- {
- "filename": name,
- "path": path,
- },
- );
- }
-
- static Future> scriptDetail(String name, String? path) async {
- return await Http.get(
- Url.scriptDetail + name,
- {
- "path": path,
- },
- );
- }
-
- static Future>> dependencies(String type) async {
- return await Http.get>(
- Url.dependencies,
- {
- "type": type.toString(),
- },
- );
- }
-
- static Future> dependencyReinstall(String id) async {
- return await Http.put(
- Url.dependencies,
- [id],
- );
- }
-
- static Future> dependencyLog(String id) async {
- return await Http.get(
- Url.dependencies + "/" + id,
- null,
- );
- }
-
- static Future> addDependency(List