new: icloud manual
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import '../../core/persistant_store.dart';
|
||||
|
||||
class DockerStore extends PersistentStore<String> {
|
||||
DockerStore() : super('docker');
|
||||
|
||||
String? fetch(String id) {
|
||||
return box.get(id);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ import 'package:toolbox/core/persistant_store.dart';
|
||||
|
||||
/// It stores whether is the first time of some.
|
||||
class FirstStore extends PersistentStore<bool> {
|
||||
FirstStore() : super('first');
|
||||
|
||||
/// Add Snippet `Install ServerBoxMonitor`
|
||||
late final iSSBM = StoreProperty(box, 'installMonitorSnippet', true);
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ class _MapHistory {
|
||||
}
|
||||
|
||||
class HistoryStore extends PersistentStore {
|
||||
HistoryStore() : super('history');
|
||||
|
||||
/// Paths that user has visited by 'Locate' button
|
||||
late final sftpGoPath = _ListHistory(box: box, name: 'sftpPath');
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ import '../../core/persistant_store.dart';
|
||||
import '../model/server/private_key_info.dart';
|
||||
|
||||
class PrivateKeyStore extends PersistentStore<PrivateKeyInfo> {
|
||||
PrivateKeyStore() : super('key');
|
||||
|
||||
void put(PrivateKeyInfo info) {
|
||||
box.put(info.id, info);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ import '../../core/persistant_store.dart';
|
||||
import '../model/server/server_private_info.dart';
|
||||
|
||||
class ServerStore extends PersistentStore<ServerPrivateInfo> {
|
||||
ServerStore() : super('server');
|
||||
|
||||
void put(ServerPrivateInfo info) {
|
||||
box.put(info.id, info);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ import '../model/app/net_view.dart';
|
||||
import '../res/default.dart';
|
||||
|
||||
class SettingStore extends PersistentStore {
|
||||
SettingStore() : super('setting');
|
||||
|
||||
/// Convert all settings into json
|
||||
Map<String, dynamic> toJson() => {for (var e in box.keys) e: box.get(e)};
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@ import '../../core/persistant_store.dart';
|
||||
import '../model/server/snippet.dart';
|
||||
|
||||
class SnippetStore extends PersistentStore<Snippet> {
|
||||
SnippetStore() : super('snippet');
|
||||
|
||||
void put(Snippet snippet) {
|
||||
box.put(snippet.name, snippet);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user