Skip to content

Commit 192151b

Browse files
committed
通知服务(未完工)
1 parent e128692 commit 192151b

12 files changed

Lines changed: 1009 additions & 54 deletions

app/Language/modules/notification_settings.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
"ZH_CN": {"title": {"name": "通知设置", "description": "通知设置"}}
44
}
55

6+
# 通用通知文本
7+
notification_common = {
8+
"ZH_CN": {
9+
"notification_result": {"name": "通知结果", "description": "通用的通知结果窗口标题"}
10+
}
11+
}
12+
613
# 点名通知设置语言配置
714
roll_call_notification_settings = {
815
"ZH_CN": {
@@ -31,6 +38,10 @@
3138
"description": "控制点名通知窗口是否显示动画效果",
3239
"switchbutton_name": {"enable": "启用", "disable": "禁用"},
3340
},
41+
"auto_close_time": {
42+
"name": "自动关闭时间",
43+
"description": "设置通知窗口自动关闭的时间(秒),设为0表示不自动关闭",
44+
},
3445
"enabled_monitor": {
3546
"name": "显示器选择",
3647
"description": "选择用于显示点名通知的显示器",
@@ -92,6 +103,10 @@
92103
"name": "透明度",
93104
"description": "调整点名通知浮动窗口的透明度,数值越小越透明(0-100)",
94105
},
106+
"floating_window_auto_close_time": {
107+
"name": "浮动窗口自动关闭时间",
108+
"description": "设置浮动窗口自动关闭的时间(秒),设为0表示不自动关闭",
109+
},
95110
}
96111
}
97112

@@ -124,6 +139,10 @@
124139
"description": "设置闪抽通知窗口的显示动画效果",
125140
"switchbutton_name": {"enable": "启用", "disable": "禁用"},
126141
},
142+
"auto_close_time": {
143+
"name": "自动关闭时间",
144+
"description": "设置通知窗口自动关闭的时间(秒),设为0表示不自动关闭",
145+
},
127146
"enabled_monitor": {
128147
"name": "选择闪抽通知显示的显示器",
129148
"description": "选择闪抽通知窗口显示的显示器",
@@ -185,6 +204,10 @@
185204
"name": "浮动窗口透明度",
186205
"description": "设置闪抽通知浮动窗口的透明度,数值越小越透明(0-100)",
187206
},
207+
"floating_window_auto_close_time": {
208+
"name": "浮动窗口自动关闭时间",
209+
"description": "设置浮动窗口自动关闭的时间(秒),设为0表示不自动关闭",
210+
},
188211
}
189212
}
190213

@@ -217,6 +240,10 @@
217240
"description": "设置即抽通知窗口的显示动画效果",
218241
"switchbutton_name": {"enable": "启用", "disable": "禁用"},
219242
},
243+
"auto_close_time": {
244+
"name": "自动关闭时间",
245+
"description": "设置通知窗口自动关闭的时间(秒),设为0表示不自动关闭",
246+
},
220247
"enabled_monitor": {
221248
"name": "选择即抽通知显示的显示器",
222249
"description": "选择即抽通知窗口显示的显示器",
@@ -278,6 +305,10 @@
278305
"name": "浮动窗口透明度",
279306
"description": "设置即抽通知浮动窗口的透明度,数值越小越透明(0-100)",
280307
},
308+
"floating_window_auto_close_time": {
309+
"name": "浮动窗口自动关闭时间",
310+
"description": "设置浮动窗口自动关闭的时间(秒),设为0表示不自动关闭",
311+
},
281312
}
282313
}
283314

@@ -309,6 +340,10 @@
309340
"description": "设置自定义抽取通知窗口的显示动画效果",
310341
"switchbutton_name": {"enable": "启用", "disable": "禁用"},
311342
},
343+
"auto_close_time": {
344+
"name": "自动关闭时间",
345+
"description": "设置通知窗口自动关闭的时间(秒),设为0表示不自动关闭",
346+
},
312347
"enabled_monitor": {
313348
"name": "选择自定义抽取通知显示的显示器",
314349
"description": "选择自定义抽取通知窗口显示的显示器",
@@ -370,6 +405,10 @@
370405
"name": "浮动窗口透明度",
371406
"description": "设置自定义抽取通知浮动窗口的透明度,数值越小越透明(0-100)",
372407
},
408+
"floating_window_auto_close_time": {
409+
"name": "浮动窗口自动关闭时间",
410+
"description": "设置浮动窗口自动关闭的时间(秒),设为0表示不自动关闭",
411+
},
373412
}
374413
}
375414

@@ -407,6 +446,10 @@
407446
"description": "设置抽奖通知窗口的显示动画效果",
408447
"switchbutton_name": {"enable": "启用", "disable": "禁用"},
409448
},
449+
"auto_close_time": {
450+
"name": "自动关闭时间",
451+
"description": "设置通知窗口自动关闭的时间(秒),设为0表示不自动关闭",
452+
},
410453
"enabled_monitor": {
411454
"name": "选择抽奖通知显示的显示器",
412455
"description": "选择抽奖通知窗口显示的显示器",
@@ -468,5 +511,9 @@
468511
"name": "浮动窗口透明度",
469512
"description": "设置抽奖通知浮动窗口的透明度,数值越小越透明(0-100)",
470513
},
514+
"floating_window_auto_close_time": {
515+
"name": "浮动窗口自动关闭时间",
516+
"description": "设置浮动窗口自动关闭的时间(秒),设为0表示不自动关闭",
517+
},
471518
}
472519
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Notification service package."""

app/common/notification/notice.py

Whitespace-only changes.

0 commit comments

Comments
 (0)