Skip to content

Commit

Permalink
feat(config-registrar): add schema validation for configuration trees
Browse files Browse the repository at this point in the history
Introduce a new ConfigSchema class to perform validation of configuration
trees against predefined schemas. This enhancement allows for stricter
validation of configuration data, ensuring that it adheres to the expected
structure and types. The schema validation system is designed to be
extendable, allowing for custom schema classes to be defined for more
complex validation logic.
  • Loading branch information
northgreen committed Jul 24, 2024
1 parent ae0b606 commit 1278608
Show file tree
Hide file tree
Showing 21 changed files with 282 additions and 362 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# ictye live Danmku
<div align="center">
<img src="https://github.com/northgreen/ictye-live-dm/raw/dev/icon.png">
</img>
<h1 style="margin-top:0">Ictye Live Danmku(ictye-live-dm)</h1>
<img src="https://img.shields.io/badge/python-3.10-blue">
</img>
<img src="https://img.shields.io/badge/license-GPL-green">
</img>
</div>

一个简单而又全能的弹幕姬框架(其实就是一个web服务器加上websocket服务器),通过插件来实现弹幕功能

Expand Down
6 changes: 0 additions & 6 deletions Writerside/c.list

This file was deleted.

12 changes: 0 additions & 12 deletions Writerside/cfg/buildprofiles.xml

This file was deleted.

Binary file removed Writerside/images/completion_procedure.png
Binary file not shown.
Binary file removed Writerside/images/completion_procedure_dark.png
Binary file not shown.
Binary file removed Writerside/images/convert_table_to_xml.png
Binary file not shown.
Binary file removed Writerside/images/convert_table_to_xml_dark.png
Binary file not shown.
Binary file removed Writerside/images/new_topic_options.png
Binary file not shown.
Binary file removed Writerside/images/new_topic_options_dark.png
Binary file not shown.
12 changes: 0 additions & 12 deletions Writerside/pa.tree

This file was deleted.

26 changes: 0 additions & 26 deletions Writerside/topics/Overview.topic

This file was deleted.

111 changes: 0 additions & 111 deletions Writerside/topics/Section-Starting-Page.topic

This file was deleted.

79 changes: 0 additions & 79 deletions Writerside/topics/starter-topic.md

This file was deleted.

5 changes: 0 additions & 5 deletions Writerside/v.list

This file was deleted.

8 changes: 0 additions & 8 deletions Writerside/writerside.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions ictye-live-dm/src/ictye_live_dm/GUI/Ui_MainWindow.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '.\main.ui'
# Form implementation generated from reading ui file './main.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
# Created by: PyQt5 UI code generator 5.15.11
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
Expand Down
7 changes: 1 addition & 6 deletions ictye-live-dm/src/ictye_live_dm/GUI_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from PyQt5 import QtWidgets
from PyQt5.QtCore import QTranslator, Qt
from PyQt5.QtWidgets import QTreeWidgetItem, QStyledItemDelegate, QComboBox
from PyQt5.QtWidgets import QTreeWidgetItem, QComboBox

from ictye_live_dm.depends import configs, config_registrar
from . import main as server
Expand All @@ -19,11 +19,6 @@
__logger__ = logging.getLogger(__name__)


class NonEditableDelegate(QStyledItemDelegate):
def createEditor(self, parent, option, index):
return None


class SettingTreeWidgetItem(QTreeWidgetItem):
def __init__(self, parent, key, values: Union[config_registrar.ConfigTree, config_registrar.ConfigKey]):
print(repr(values)) # TODO: 臨時代碼
Expand Down
Loading

0 comments on commit 1278608

Please sign in to comment.