add login log

This commit is contained in:
jyuesong
2022-01-18 10:53:52 +08:00
parent a6208ea5f2
commit 8798501737
15 changed files with 725 additions and 151 deletions

View File

@@ -0,0 +1,79 @@
import 'package:json_conversion_annotation/json_conversion_annotation.dart';
/// @author NewTab
@JsonConversion()
class ScriptBean {
String? title;
String? value;
String? key;
double? mtime;
bool? disabled;
List<ScriptChildren>? children;
ScriptBean(
{this.title,
this.value,
this.key,
this.mtime,
this.disabled,
this.children});
ScriptBean.fromJson(Map<String, dynamic> json) {
title = json['title'];
value = json['value'];
key = json['key'];
mtime = json['mtime'];
disabled = json['disabled'];
if (json['children'] != null) {
children = <ScriptChildren>[];
json['children'].forEach((v) {
children!.add(new ScriptChildren.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['value'] = this.value;
data['key'] = this.key;
data['mtime'] = this.mtime;
data['disabled'] = this.disabled;
if (this.children != null) {
data['children'] = this.children!.map((v) => v.toJson()).toList();
}
return data;
}
static ScriptBean jsonConversion(Map<String, dynamic> json) {
return ScriptBean.fromJson(json);
}
}
class ScriptChildren {
String? title;
String? value;
String? key;
double? mtime;
String? parent;
ScriptChildren({this.title, this.value, this.key, this.mtime, this.parent});
ScriptChildren.fromJson(Map<String, dynamic> json) {
title = json['title'];
value = json['value'];
key = json['key'];
mtime = json['mtime'];
parent = json['parent'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['value'] = this.value;
data['key'] = this.key;
data['mtime'] = this.mtime;
data['parent'] = this.parent;
return data;
}
}

View File

@@ -0,0 +1,26 @@
import 'package:flutter/material.dart';
import 'package:qinglong_app/base/ql_app_bar.dart';
/// @author NewTab
class ScriptPage extends StatefulWidget {
const ScriptPage({Key? key}) : super(key: key);
@override
_ScriptPageState createState() => _ScriptPageState();
}
class _ScriptPageState extends State<ScriptPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: QlAppBar(
canBack: true,
backCall: () {
Navigator.of(context).pop();
},
title: "脚本管理",
),
body: Container(),
);
}
}