Skip to content

Commit

Permalink
添加域名监测控制
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Feb 6, 2023
1 parent 734a338 commit d8444d2
Show file tree
Hide file tree
Showing 73 changed files with 76 additions and 215 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ JSON.stringify([...document.querySelectorAll('a')].map(a=>a.href))
- [doc/top-1m.csv](doc/top-1m.csv)
## 更新日志
- 1.0.3
- 新增单个域名的检测开关,可控制单个域名的证书监测
- 1.0.2
- 添加SMTP STARTTLS 支持 587端口,感谢[@kudosiscon](https://github.com/kudosiscon)贡献的代码
Expand Down
14 changes: 14 additions & 0 deletions domain_admin/enums/version_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""
@File : version_enum.py
@Date : 2023-02-06
"""


class VersionEnum(object):
"""
版本号常量
"""
Version_102 = '1.0.2'

Version_103 = '1.0.3'
5 changes: 5 additions & 0 deletions domain_admin/migrate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
"""
@File : __init__.py.py
@Date : 2023-02-06
"""
21 changes: 21 additions & 0 deletions domain_admin/migrate/migrate_102_to_103.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
"""
@File : migrate_102_to_103.py
@Date : 2023-02-06
cmd:
$ python domain_admin/migrate/migrate_102_to_103.py
"""

from playhouse.migrate import SqliteMigrator, migrate

from domain_admin.model.base_model import db
from domain_admin.model.domain_model import DomainModel


def execute_migrate():
migrator = SqliteMigrator(db)

migrate(
migrator.add_column(DomainModel._meta.table_name, DomainModel.is_monitor.name, DomainModel.is_monitor),
)
3 changes: 3 additions & 0 deletions domain_admin/model/domain_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class DomainModel(BaseModel):
# 更新时间
update_time = DateTimeField(default=datetime.now)

# 是否监测 @since 1.0.3
is_monitor = BooleanField(default=True)

class Meta:

table_name = 'tb_domain'
Expand Down
1 change: 0 additions & 1 deletion domain_admin/public/css/index.cadc79a9.css

This file was deleted.

2 changes: 1 addition & 1 deletion domain_admin/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
content="no-referrer"
/>
<title>Domain Admin-域名证书SSL监测系统</title>
<script type="module" crossorigin src="/js/index.74188e81.js"></script>
<script type="module" crossorigin src="/js/index.522d5b84.js"></script>
<link rel="modulepreload" crossorigin href="/js/vendor-vue.6a3d94bb.js">
<link rel="modulepreload" crossorigin href="/js/element-icon.ce1f4739.js">
<link rel="modulepreload" crossorigin href="/js/element-plus.ff3f2c9d.js">
Expand Down
1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.07eaa9c1.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.30fced90.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.32f95be2.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.3d555fad.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.4ad525a9.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.841c879f.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion domain_admin/public/js/ConnectStatus.c1e1f108.js

This file was deleted.

1 change: 0 additions & 1 deletion domain_admin/public/js/element-icon.bb5f2c38.js

This file was deleted.

50 changes: 0 additions & 50 deletions domain_admin/public/js/element-plus.93c2f37e.js

This file was deleted.

50 changes: 0 additions & 50 deletions domain_admin/public/js/element-plus.d263ee4f.js

This file was deleted.

Loading

0 comments on commit d8444d2

Please sign in to comment.