Skip to content

Commit

Permalink
feat: add license console
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Oct 22, 2024
1 parent 06978fc commit 459f1e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- 自助分章节点播,颗粒度到小节
- 平台记录观看进度,安全有效
- 关闭页面后自动记录当前进度,下次打开后继续观看
- 支持最小化 & 调整窗体大小
- 无隐私泄露,不记录用户信息

## Author

Expand Down
4 changes: 3 additions & 1 deletion src/components/dialog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { addDialogButtons } from "../utils/dialog.util";
import { addDraggableFeature, addMinimizeFeature } from "../utils/window.util";
import { listenListAppear } from "../utils/lessons.util";
import { consoleLicense } from "../utils/license.util";

export function createDialog() {
const dialog = document.createElement("div");
Expand Down Expand Up @@ -29,4 +30,5 @@ function createDialogContent() {
`;
}

listenListAppear();
listenListAppear();
consoleLicense();
8 changes: 8 additions & 0 deletions src/utils/license.util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export function consoleLicense() {
console.log(
"%c5Y Helper © Wibus%c\n%c发布于 AGPLv3 许可下。创建于 2024年10月22日",
"color: #ff6b6b; font-size: 20px; font-weight: bold;",
"",
"color: #4ecdc4; font-style: italic;"
);
}

0 comments on commit 459f1e5

Please sign in to comment.