NandHyf 1 year ago
commit
926a77af4b

+ 80 - 0
Controller.py

@@ -0,0 +1,80 @@
+# @author:nandHyf
+import Stateful
+
+class Command:
+    def __init__(self, obj, command) -> None:
+        self.obj = obj
+        self.Command = command
+        self.focusMode = False
+
+
+    def app_help():
+        pass
+
+
+    def app_exit():
+        exit()
+
+
+    def app_export(self):
+        pass
+
+    
+    def list_board(self):
+        pass
+    
+
+    def list_event(self):
+        pass
+
+
+    def select_board(self):
+        print(self.obj + "is selected")
+        self.focusMode = True
+
+
+    def Command_add():
+        pass
+
+
+    def Command_edit():
+        pass
+
+
+    def Command_move():
+        pass
+
+
+    def Command_delete():
+        pass
+
+
+    def Command_archive():
+        pass
+
+
+    def Command_back2home():
+        pass
+
+
+    def Command_get_info():
+        pass
+    
+
+    def Command_get_num():
+        pass
+
+
+class Trigger():
+    def __init__(self) -> None:
+        pass
+
+
+class Board(Command):
+    def __init__(self) -> None:
+        super().__init__()
+
+
+class Event(Command):
+    def __init__(self) -> None:
+        super().__init__()

+ 84 - 0
Stateful.py

@@ -0,0 +1,84 @@
+# @author:hyf
+class Command:
+    def __init__(self, obj, command) -> None:
+        self.focusMode = False
+        self.obj = obj
+        self.Command = command
+
+
+    def app_help():
+        pass
+
+
+    def app_exit():
+        exit()
+
+
+    def app_export(self):
+        pass
+
+    
+    def list_board(self):
+        pass
+    
+
+    def list_event(self):
+        pass
+
+
+    def select_board(self):
+        print(self.obj + "is selected")
+        self.focusMode = True
+
+
+    def Command_add():
+        pass
+
+
+    def Command_edit():
+        pass
+
+
+    def Command_move():
+        pass
+
+
+    def Command_delete():
+        pass
+
+
+    def Command_archive():
+        pass
+
+
+    def Command_back2home():
+        pass
+
+
+    def Command_get_info():
+        pass
+    
+
+    def Command_get_num():
+        pass
+
+
+class Trigger():
+    def __init__(self) -> None:
+        pass
+
+
+class Board(Command):
+    def __init__(self) -> None:
+        super().__init__()
+
+
+class Event(Command):
+    def __init__(self) -> None:
+        super().__init__()
+
+# class WithMd():
+
+# class WithCsv():
+
+# class WithMysql():

+ 1 - 0
View.py

@@ -0,0 +1 @@
+# @author:nandHyf

+ 2 - 0
config.md

@@ -0,0 +1,2 @@
+[basic]
+lang = "zh-cn"

+ 0 - 0
export_examples/README


+ 0 - 0
export_examples/export_example.csv


+ 0 - 0
export_examples/export_example.md


+ 48 - 0
export_examples/export_example.toml

@@ -0,0 +1,48 @@
+[boardUid_1]
+boardUid.boardName = ''
+boardUid.description = ''
+# boardUid.creator = ''
+boardUid.createdTime = 2023-09-20T03:42:27Z
+
+boardUid.includedNum = 10
+boardUid.stackingNum = 1
+boardUid.workingNum = 2
+boardUid.stuckedNum = 0
+boardUid.doneNum = 3
+boardUid.archivedNum = 4
+
+
+# <eventName1>
+tag0.eventUid.name = ''
+tag0.eventUid.description = ''
+# tag0.eventUid.creator = ''
+tag0.eventUid.createdTime = 2023-09-20T05:14:44Z
+tag0.eventUid.createdTag = ''
+# tag0.eventUid.ddlTime = ''
+# tag0.eventUid.alarmTime = ''
+tag0.eventUid.currentTag = ''
+# tag0.eventUid.stackingTime =
+# tag0.eventUid.workingTime = 
+tag0.eventUid.stuckedTime = 2023-09-20T05:16:23Z
+tag0.eventUid.doneTime = 2023-09-20T05:17:47Z
+tag0.eventUid.archivedTime = 2023-09-20T05:18:34Z
+
+
+# <evnetName2>
+tag1.eventUid.name = ''
+tag1.eventUid.description = ''
+# tag1.eventUid.creator = ''
+tag1.eventUid.createdTime = 2023-09-20T05:19:44Z
+tag1.eventUid.createdTag = ''
+# tag1.eventUid.ddlTime = ''
+# tag1.eventUid.alarmTime = ''
+tag1.eventUid.currentTag = ''
+# tag1.eventUid.stackingTime =
+# tag1.eventUid.workingTime = 
+tag1.eventUid.stuckedTime = 2023-09-20T05:21:23Z
+tag1.eventUid.doneTime = 2023-09-20T05:22:47Z
+tag1.eventUid.archivedTime = 2023-09-20T05:23:34Z
+
+
+[boardUid_2]
+# etc...

+ 48 - 0
export_examples/export_example.txt

@@ -0,0 +1,48 @@
+[boardUid_1]
+boardUid.boardName = ''
+boardUid.description = ''
+# boardUid.creator = ''
+boardUid.createdTime = 2023-09-20T03:42:27Z
+
+boardUid.includedNum = 10
+boardUid.stackingNum = 1
+boardUid.workingNum = 2
+boardUid.stuckedNum = 0
+boardUid.doneNum = 3
+boardUid.archivedNum = 4
+
+
+# <eventName1>
+tag0.eventUid.name = ''
+tag0.eventUid.description = ''
+# tag0.eventUid.creator = ''
+tag0.eventUid.createdTime = 2023-09-20T05:14:44Z
+tag0.eventUid.createdTag = ''
+# tag0.eventUid.ddlTime = ''
+# tag0.eventUid.alarmTime = ''
+tag0.eventUid.currentTag = ''
+# tag0.eventUid.stackingTime =
+# tag0.eventUid.workingTime = 
+tag0.eventUid.stuckedTime = 2023-09-20T05:16:23Z
+tag0.eventUid.doneTime = 2023-09-20T05:17:47Z
+tag0.eventUid.archivedTime = 2023-09-20T05:18:34Z
+
+
+# <evnetName2>
+tag1.eventUid.name = ''
+tag1.eventUid.description = ''
+# tag1.eventUid.creator = ''
+tag1.eventUid.createdTime = 2023-09-20T05:19:44Z
+tag1.eventUid.createdTag = ''
+# tag1.eventUid.ddlTime = ''
+# tag1.eventUid.alarmTime = ''
+tag1.eventUid.currentTag = ''
+# tag1.eventUid.stackingTime =
+# tag1.eventUid.workingTime = 
+tag1.eventUid.stuckedTime = 2023-09-20T05:21:23Z
+tag1.eventUid.doneTime = 2023-09-20T05:22:47Z
+tag1.eventUid.archivedTime = 2023-09-20T05:23:34Z
+
+
+[boardUid_2]
+# etc...

+ 4 - 0
help.toml

@@ -0,0 +1,4 @@
+[zh_smpf]
+
+
+[en]

+ 0 - 0
test.db