策略编辑器 (Web GUI版本)
用于读取、修改和新增策略,并在保存时自动更新所有需要使用该策略的地方
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
策略列表
{% if strategies %}
{% for strategy_name, file_name, file_path in strategies %}
{{ strategy_name }}
删除
{% endfor %}
{% else %}
没有找到策略文件
{% endif %}
创建新策略
策略名称
创建策略
策略编辑
当前策略
策略代码
{{ current_content or '' }}
保存策略
清除当前