mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add setting
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
Binary file not shown.
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
@@ -341,6 +341,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
PRODUCT_NAME = "";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
@@ -421,6 +422,7 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
PRODUCT_NAME = "";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
};
|
};
|
||||||
@@ -469,6 +471,7 @@
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
PRODUCT_NAME = "";
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
@@ -1,49 +1,49 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Qinglong App</string>
|
<string>青龙</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>青龙</string>
|
<string>青龙</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>UILaunchStoryboardName</key>
|
<key>UILaunchStoryboardName</key>
|
||||||
<string>LaunchScreen</string>
|
<string>LaunchScreen</string>
|
||||||
<key>UIMainStoryboardFile</key>
|
<key>UIMainStoryboardFile</key>
|
||||||
<string>Main</string>
|
<string>Main</string>
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<array>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>UIStatusBarHidden</key>
|
<key>UIStatusBarHidden</key>
|
||||||
<false/>
|
<false/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/scheduler.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:qinglong_app/base/sp_const.dart';
|
import 'package:qinglong_app/base/sp_const.dart';
|
||||||
import 'package:qinglong_app/utils/codeeditor_theme.dart';
|
import 'package:qinglong_app/utils/codeeditor_theme.dart';
|
||||||
@@ -14,8 +15,9 @@ class ThemeViewModel extends ChangeNotifier {
|
|||||||
ThemeColors themeColor = LightThemeColors();
|
ThemeColors themeColor = LightThemeColors();
|
||||||
|
|
||||||
ThemeViewModel() {
|
ThemeViewModel() {
|
||||||
bool dartMode = SpUtil.getBool(sp_Theme, defValue: false);
|
var brightness = SchedulerBinding.instance!.window.platformBrightness;
|
||||||
changeThemeReal(dartMode, false);
|
bool isDarkMode = brightness == Brightness.dark;
|
||||||
|
changeThemeReal(isDarkMode, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isInDartMode() {
|
bool isInDartMode() {
|
||||||
|
|||||||
12
lib/module/env/add_env_page.dart
vendored
12
lib/module/env/add_env_page.dart
vendored
@@ -58,7 +58,13 @@ class _AddEnvPageState extends ConsumerState<AddEnvPage> {
|
|||||||
horizontal: 15,
|
horizontal: 15,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text("提交"),
|
child: Text(
|
||||||
|
"提交",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 16,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -185,7 +191,9 @@ class _AddEnvPageState extends ConsumerState<AddEnvPage> {
|
|||||||
envBean.name = _nameController.text;
|
envBean.name = _nameController.text;
|
||||||
envBean.value = _valueController.text;
|
envBean.value = _valueController.text;
|
||||||
envBean.remarks = _remarkController.text;
|
envBean.remarks = _remarkController.text;
|
||||||
HttpResponse<NullResponse> response = await Api.addEnv(_nameController.text, _valueController.text, _remarkController.text, id: envBean.sId);
|
HttpResponse<NullResponse> response = await Api.addEnv(
|
||||||
|
_nameController.text, _valueController.text, _remarkController.text,
|
||||||
|
id: envBean.sId);
|
||||||
|
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
successDialog(context, "操作成功").then((value) {
|
successDialog(context, "操作成功").then((value) {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class _HomePageState extends ConsumerState<HomePage> {
|
|||||||
child: Icon(
|
child: Icon(
|
||||||
CupertinoIcons.add,
|
CupertinoIcons.add,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -68,6 +69,7 @@ class _HomePageState extends ConsumerState<HomePage> {
|
|||||||
child: Icon(
|
child: Icon(
|
||||||
CupertinoIcons.add,
|
CupertinoIcons.add,
|
||||||
size: 20,
|
size: 20,
|
||||||
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -82,7 +84,13 @@ class _HomePageState extends ConsumerState<HomePage> {
|
|||||||
horizontal: 15,
|
horizontal: 15,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text("编辑"),
|
child: Text(
|
||||||
|
"编辑",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 16,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -56,7 +56,13 @@ class _AddTaskPageState extends ConsumerState<AddTaskPage> {
|
|||||||
horizontal: 15,
|
horizontal: 15,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text("提交"),
|
child: Text(
|
||||||
|
"提交",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 16,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -189,7 +195,9 @@ class _AddTaskPageState extends ConsumerState<AddTaskPage> {
|
|||||||
taskBean.name = _nameController.text;
|
taskBean.name = _nameController.text;
|
||||||
taskBean.command = _commandController.text;
|
taskBean.command = _commandController.text;
|
||||||
taskBean.schedule = _cronController.text;
|
taskBean.schedule = _cronController.text;
|
||||||
HttpResponse<TaskDetailBean> response = await Api.addTask(_nameController.text, _commandController.text, _cronController.text, id: taskBean.sId);
|
HttpResponse<TaskDetailBean> response = await Api.addTask(
|
||||||
|
_nameController.text, _commandController.text, _cronController.text,
|
||||||
|
id: taskBean.sId);
|
||||||
|
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
successDialog(context, "操作成功").then((value) {
|
successDialog(context, "操作成功").then((value) {
|
||||||
@@ -197,7 +205,7 @@ class _AddTaskPageState extends ConsumerState<AddTaskPage> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
failDialog(context, response.message ??"");
|
failDialog(context, response.message ?? "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -397,29 +397,31 @@ class TaskItemCell extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logCron(BuildContext context, WidgetRef ref) {
|
logCron(BuildContext context, WidgetRef ref) {
|
||||||
showCupertinoDialog(
|
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
|
||||||
builder: (BuildContext context) {
|
showCupertinoDialog(
|
||||||
return CupertinoAlertDialog(
|
builder: (BuildContext context) {
|
||||||
title: Text(
|
return CupertinoAlertDialog(
|
||||||
"${bean.name}运行日志",
|
title: Text(
|
||||||
maxLines: 1,
|
"${bean.name}运行日志",
|
||||||
style: const TextStyle(overflow: TextOverflow.ellipsis),
|
maxLines: 1,
|
||||||
),
|
style: const TextStyle(overflow: TextOverflow.ellipsis),
|
||||||
content: InTimeLogPage(bean.sId!, bean.status == 0),
|
|
||||||
actions: [
|
|
||||||
CupertinoDialogAction(
|
|
||||||
child: Text(
|
|
||||||
"知道了",
|
|
||||||
style: TextStyle(color: Theme.of(context).primaryColor),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
],
|
content: InTimeLogPage(bean.sId!, bean.status == 0),
|
||||||
);
|
actions: [
|
||||||
},
|
CupertinoDialogAction(
|
||||||
context: context);
|
child: Text(
|
||||||
|
"知道了",
|
||||||
|
style: TextStyle(color: Theme.of(context).primaryColor),
|
||||||
|
),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
},
|
||||||
|
context: context);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
more(BuildContext context, WidgetRef ref) {
|
more(BuildContext context, WidgetRef ref) {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ flutter_native_splash:
|
|||||||
# parameters from above. If the image_dark parameter is specified, color_dark or
|
# parameters from above. If the image_dark parameter is specified, color_dark or
|
||||||
# background_image_dark must be specified. color_dark and background_image_dark cannot both be
|
# background_image_dark must be specified. color_dark and background_image_dark cannot both be
|
||||||
# set.
|
# set.
|
||||||
color_dark: "#2E312E"
|
color_dark: "#000000"
|
||||||
# background_image_dark: "assets/dark-background.png"
|
# background_image_dark: "assets/dark-background.png"
|
||||||
# image_dark: assets/splash-invert.png
|
# image_dark: assets/splash-invert.png
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ body, html {
|
|||||||
body {
|
body {
|
||||||
margin:0;
|
margin:0;
|
||||||
height:100%;
|
height:100%;
|
||||||
background: #2E312E;
|
background: #000000;
|
||||||
|
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user