Skip to content

Commit a81ec75

Browse files
authored
Dev (#403)
1 parent 3fa8e6b commit a81ec75

8 files changed

Lines changed: 95 additions & 215 deletions

File tree

.editorconfig

Lines changed: 40 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -1,200 +1,80 @@
1-
; 版本: 2
1+
# SCX EditorConfig v1.0
22
root = true
33

44
[*]
5-
; 字符集
5+
# 字符集
66
charset = utf-8
7-
; 换行符
7+
# 行分割符
88
end_of_line = lf
9-
; 缩进类型
9+
# 缩进样式
1010
indent_style = space
11-
; 缩进
11+
# 缩进
1212
indent_size = 4
13-
; 表示文件是否应以换行结束
13+
# 制表符大小
14+
tab_width = 4
15+
# 去除行尾空白字符
16+
trim_trailing_whitespace = true
17+
# 在文件末尾插入换行符
1418
insert_final_newline = true
15-
; 强制换行位置
19+
# 强制换行位置
1620
max_line_length = 120
17-
; 单个制表符的宽度 (当 indent_size 为数字时, 默认值为 indent_size)
18-
tab_width = 4
19-
; 是否从行尾删除空白
20-
trim_trailing_whitespace = false
21-
; 连续缩进
22-
ij_continuation_indent_size = 8
23-
; 视觉参考线
24-
ij_visual_guides = none
25-
; 键入时换行 (搭配 max_line_length 使用)
26-
ij_wrap_on_typing = false
27-
; 空行时保持缩进
28-
ij_any_keep_indents_on_empty_lines = false
2921

3022
[*.java]
31-
; 换行和大括号
32-
; 重新格式化时保持
33-
; 简单的 块 在同一行
23+
# 简单的 块 在同一行
3424
ij_java_keep_simple_blocks_in_one_line = false
35-
; 简单的 方法 在同一行
25+
# 简单的 方法 在同一行
3626
ij_java_keep_simple_methods_in_one_line = false
37-
; 简单的 lambda 在同一行
27+
# 简单的 lambda 在同一行
3828
ij_java_keep_simple_lambdas_in_one_line = true
39-
; 简单的 类 在同一行
29+
# 简单的 类 在同一行
4030
ij_java_keep_simple_classes_in_one_line = true
41-
; 'if()' 语句
42-
; 强制加大括号
31+
# 'if()' 语句 强制加大括号
4332
ij_java_if_brace_force = always
44-
; 'for()' 语句
45-
; 强制加大括号
33+
# 'for()' 语句 强制加大括号
4634
ij_java_for_brace_force = always
47-
; 'while()' 语句
48-
; 强制加大括号
35+
# 'while()' 语句 强制加大括号
4936
ij_java_while_brace_force = always
50-
; 'do...while()' 语句
51-
; 强制加大括号
37+
# 'do...while()' 语句 强制加大括号
5238
ij_java_do_while_brace_force = always
5339

5440
[*.js]
55-
; 换行和大括号
56-
; 'if()' 语句
57-
; 强制加大括号
41+
# 使用使用 双引号
42+
ij_javascript_use_double_quotes = true
43+
# 强制 引号样式
44+
ij_javascript_force_quote_style = true
45+
# 在语句末尾使用 分号
46+
ij_javascript_use_semicolon_after_statement = true
47+
# 强制 分号样式
48+
ij_javascript_force_semicolon_style = true
49+
# 'if()' 语句 强制加大括号
5850
ij_javascript_if_brace_force = always
59-
; 'for()' 语句
60-
; 强制加大括号
51+
# 'for()' 语句 强制加大括号
6152
ij_javascript_for_brace_force = always
62-
; 'while()' 语句
63-
; 强制加大括号
53+
# 'while()' 语句 强制加大括号
6454
ij_javascript_while_brace_force = always
65-
; 'do...while()' 语句
66-
; 强制加大括号
55+
# 'do...while()' 语句 强制加大括号
6756
ij_javascript_do_while_brace_force = always
68-
; 对象换行
69-
ij_javascript_object_literal_wrap = on_every_item
70-
; 变量声明换行
71-
ij_javascript_var_declaration_wrap = on_every_item
72-
; 标点
73-
; 使用分号终止语句
74-
ij_javascript_use_semicolon_after_statement = true
75-
; 强制语句格式
76-
ij_javascript_force_semicolon_style = true
77-
; 使用双引号
78-
ij_javascript_use_double_quotes = true
79-
; 强制引号格式
80-
ij_javascript_force_quote_style = true
81-
; 尾随逗号
82-
ij_javascript_enforce_trailing_comma = whenmultiline
8357

8458
[*.html]
85-
; 其他
86-
; 换行特性
87-
ij_html_attribute_wrap = normal
88-
; 文字换行
89-
ij_html_text_wrap = off
90-
; 在第一个特性前换行
91-
ij_html_new_line_before_first_attribute = never
92-
; 在最后一个特性后换行
93-
ij_html_new_line_after_last_attribute = never
94-
; 生成的引号
59+
# 引号样式
9560
ij_html_quote_style = double
96-
; 强制引号
61+
# 强制引号
9762
ij_html_enforce_quotes = true
9863

99-
[*.xml]
100-
; 其他
101-
; 换行特性
102-
ij_xml_attribute_wrap = normal
103-
; 文字换行
104-
ij_xml_text_wrap = off
105-
10664
[*.css]
107-
; 空行
108-
; 保持最大的空白行
109-
; 在代码中
110-
ij_css_keep_blank_lines_in_code = 2
111-
; 最小的空白行
112-
; 顶层块周围
113-
ij_css_blank_lines_between_blocks = 1
114-
; 嵌套的选择器周围
115-
ij_css_blank_lines_around_nested_selector = 1
116-
; 其他
117-
; 大括号位置
118-
ij_css_brace_placement = end_of_line
119-
; 对齐值
120-
ij_css_value_alignment = do_not_align
121-
; 引号 (双引号或单引号)
65+
# 使用 双引号
12266
ij_css_use_double_quotes = true
123-
; 引号 强制格式化
67+
# 强制引号格式
12468
ij_css_enforce_quotes_on_format = true
125-
; 将右大括号与属性对齐
126-
ij_css_align_closing_brace_with_properties = false
127-
; 保持单行块
128-
ij_css_keep_single_line_blocks = false
129-
; 空格
130-
; 空格 冒号后
131-
ij_css_space_after_colon = true
132-
; 空格 左大括号前
133-
ij_css_space_before_opening_brace = true
134-
; 注释
135-
; 在块注释周围添加空格
136-
ij_css_block_comment_add_space = false
137-
; 十六进制颜色
138-
; 将十六进制颜色转换为
139-
; 大写
140-
ij_css_hex_color_upper_case = false
141-
; 小写
142-
ij_css_hex_color_lower_case = false
143-
; 将十六进制颜色转换为
144-
; 长格式
145-
ij_css_hex_color_long_format = false
146-
; 短格式
147-
ij_css_hex_color_short_format = false
14869

14970
[*.json]
71+
# 缩进
15072
indent_size = 2
151-
; 空格
152-
; 大括号
153-
ij_json_spaces_within_braces = false
154-
; 中括号
155-
ij_json_spaces_within_brackets = false
156-
; 在逗号前
157-
ij_json_space_before_comma = false
158-
; 在逗号后
159-
ij_json_space_after_comma = true
160-
; 在 ':' 前
161-
ij_json_space_before_colon = false
162-
; 在 ':' 后
163-
ij_json_space_after_colon = true
164-
; 键入时换行
165-
ij_json_wrap_long_lines = false
166-
; 保持的最大空白行
167-
; 代码中
168-
ij_json_keep_blank_lines_in_code = 0
169-
; 重新格式化时保持
170-
; 换行符
171-
ij_json_keep_line_breaks = true
172-
; 尾随逗号
173-
ij_json_keep_trailing_comma = false
174-
; 数组始终换行
175-
ij_json_array_wrapping = split_into_lines
176-
; 对象 始终换行
177-
ij_json_object_wrapping = split_into_lines
178-
; 对象属性对齐
179-
ij_json_property_alignment = do_not_align
180-
181-
[*.vue]
182-
; 空格
183-
; 内部 插值
184-
ij_vue_spaces_within_interpolation_expressions = true
185-
; 换行和大括号
186-
; 插值
187-
ij_vue_interpolation_wrap = off
188-
; 在 '{{' 后换行
189-
ij_vue_interpolation_new_line_after_start_delimiter = true
190-
; 在 '}}' 前换行
191-
ij_vue_interpolation_new_line_before_end_delimiter = true
19273

19374
[*.md]
194-
; 换行和大括号
195-
; 重新格式化时
196-
; 格式化表
197-
ij_markdown_format_tables = true
75+
# 去除行尾空白字符 (MarkDown 行尾空白有特殊含义)
76+
trim_trailing_whitespace = false
19877

199-
[{*.yaml,*.yml}]
78+
[*.{yaml,yml}]
79+
# 缩进
20080
indent_size = 2

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
version: 2
22
updates:
3-
43
- package-ecosystem: maven
54
directory: /
65
schedule:
7-
interval: daily
6+
interval: weekly
7+
groups:
8+
maven-all:
9+
patterns:
10+
- "*"
811

912
- package-ecosystem: github-actions
1013
directory: /
1114
schedule:
12-
interval: daily
15+
interval: weekly
16+
groups:
17+
github-actions-all:
18+
patterns:
19+
- "*"

.github/workflows/ci.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
name: CI
2-
on: [ push, pull_request ]
2+
on:
3+
- push
4+
- pull_request
5+
- workflow_dispatch
36
jobs:
4-
build-and-test:
5-
name: 构建和测试
6-
strategy:
7-
matrix:
8-
os: [ ubuntu-latest ]
9-
java: [ 24 ]
10-
runs-on: ${{ matrix.os }}
7+
ci:
8+
name: CI
9+
runs-on: ubuntu-latest
1110
steps:
11+
- name: 检出代码
12+
uses: actions/checkout@v5
1213

13-
- name: 签出代码
14-
uses: actions/checkout@v4
15-
16-
- name: 启动默认的 MySQL
17-
if: ${{ runner.os == 'Linux' }}
18-
run: sudo systemctl start mysql.service
19-
20-
- name: 安装 JDK ${{ matrix.java }}
21-
uses: actions/setup-java@v4
14+
- name: 配置 Java
15+
uses: actions/setup-java@v5
2216
with:
17+
java-version: 25
2318
distribution: temurin
24-
java-version: ${{ matrix.java }}
2519
cache: maven
2620

27-
- name: 使用 Maven 进行构建和测试
28-
run: mvn package --batch-mode
21+
- name: Maven 构建
22+
run: mvn package
2923

30-
- name: 上传 构建和测试 生成的文件
24+
- name: 上传构建产物
3125
uses: actions/upload-artifact@v4
3226
with:
33-
name: live-room-watcher-artifact-${{ runner.os }}-${{ matrix.java }}
34-
path: target/
27+
name: live-room-watcher-artifact
28+
path: ./target/

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
### Maven ###
2+
target/
3+
14
### IntelliJ IDEA ###
25
.idea/
36
*.iws
47
*.iml
58
*.ipr
6-
7-
### Build Targets ###
8-
target/
9-
built/

pom.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,20 @@
1313

1414
<artifactId>live-room-watcher</artifactId>
1515
<version>0.4.21</version>
16+
<packaging>jar</packaging>
1617

1718
<name>Live Room Watcher</name>
18-
<url>https://github.com/scx567888/live-room-watcher</url>
1919
<description>
2020
Live Room Watcher
2121
</description>
22+
<url>https://github.com/scx567888/live-room-watcher</url>
23+
24+
<licenses>
25+
<license>
26+
<name>MIT License</name>
27+
<url>https://github.com/scx567888/live-room-watcher/blob/master/LICENSE</url>
28+
</license>
29+
</licenses>
2230

2331
<developers>
2432
<developer>
@@ -28,13 +36,6 @@
2836
</developer>
2937
</developers>
3038

31-
<licenses>
32-
<license>
33-
<name>MIT License</name>
34-
<url>https://github.com/scx567888/live-room-watcher/blob/master/LICENSE</url>
35-
</license>
36-
</licenses>
37-
3839
<scm>
3940
<connection>scm:git:https://github.com/scx567888/live-room-watcher.git</connection>
4041
<developerConnection>scm:git:https://github.com/scx567888/live-room-watcher.git</developerConnection>
@@ -90,7 +91,7 @@
9091
<artifactId>polyglot</artifactId>
9192
<version>${graalvm-js.version}</version>
9293
</dependency>
93-
94+
9495
<dependency>
9596
<groupId>org.graalvm.polyglot</groupId>
9697
<artifactId>js</artifactId>
@@ -103,7 +104,7 @@
103104
<artifactId>slf4j-api</artifactId>
104105
<version>${slf4j.version}</version>
105106
</dependency>
106-
107+
107108
<dependency>
108109
<groupId>org.testng</groupId>
109110
<artifactId>testng</artifactId>
@@ -181,9 +182,9 @@
181182

182183
<properties>
183184
<scx.mainClass>cool.scx.live_room_watcher.Main</scx.mainClass>
184-
<scx.version>3.8.9</scx.version>
185-
<scx-ansi.version>4.1.1</scx-ansi.version>
186-
<scx-logging.version>4.0.0</scx-logging.version>
185+
<scx.version>3.8.10</scx.version>
186+
<scx-ansi.version>4.2.0</scx-ansi.version>
187+
<scx-logging.version>4.1.0</scx-logging.version>
187188
<protobuf.version>4.29.0</protobuf.version>
188189
<jsoup.version>1.20.1</jsoup.version>
189190
<graalvm-js.version>24.1.1</graalvm-js.version>

0 commit comments

Comments
 (0)