Skip to content

Commit dda2b2f

Browse files
authored
optimize: delete static code built on the frontend (apache#6687)
1 parent 1c0a442 commit dda2b2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+77
-3544
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,10 @@ Thumbs.db
5454

5555
#h2
5656
*.db
57+
58+
/console/src/main/resources/static/css/
59+
/console/src/main/resources/static/img/
60+
/console/src/main/resources/static/js/
61+
/console/src/main/resources/static/saga-statemachine-designer/
62+
/console/src/main/resources/static/index.html
63+
/console/src/main/resources/static/version.json

changes/en-us/2.x.md

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Add changes here for all PR submitted to the 2.x branch.
2929
- [[#6666](https://github.com/apache/incubator-seata/pull/6666)] add ExceptionUtil class for unwarp error msg
3030
- [[#6654](https://github.com/apache/incubator-seata/pull/6654)] add Namingserver package module
3131
- [[#6667](https://github.com/apache/incubator-seata/pull/6667)] optimize Namingserver log output
32+
- [[#6687](https://github.com/apache/incubator-seata/pull/6687)] delete static code built on the frontend
3233

3334
### refactor:
3435

@@ -59,5 +60,6 @@ Thanks to these contributors for their code commits. Please report an unintended
5960
- [wuwen5](https://github.com/wuwen5)
6061
- [iAmClever](https://github.com/iAmClever)
6162
- [GoodBoyCoder](https://github.com/GoodBoyCoder)
63+
- [liuqiufeng](https://github.com/liuqiufeng)
6264

6365
Also, we receive many valuable issues, questions and advices from our community. Thanks for you all.

changes/zh-cn/2.x.md

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [[#6666](https://github.com/apache/incubator-seata/pull/6666)] 添加ExceptionUtil工具类用于解包装异常
3131
- [[#6654](https://github.com/apache/incubator-seata/pull/6654)] 增加Namingserver打包功能
3232
- [[#6667](https://github.com/apache/incubator-seata/pull/6667)] 优化Namingserver日志输出
33+
- [[#6687](https://github.com/apache/incubator-seata/pull/6687)] 删除前端构建的静态代码
3334

3435
### refactor:
3536

@@ -61,5 +62,6 @@
6162
- [wuwen5](https://github.com/wuwen5)
6263
- [iAmClever](https://github.com/iAmClever)
6364
- [GoodBoyCoder](https://github.com/GoodBoyCoder)
65+
- [liuqiufeng](https://github.com/liuqiufeng)
6466

6567
同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。

console/pom.xml

+66-71
Original file line numberDiff line numberDiff line change
@@ -151,79 +151,74 @@
151151
<version>${project.version}</version>
152152
</dependency>
153153
</dependencies>
154-
<profiles>
155-
<profile>
156-
<id>release-frontend</id>
157-
<build>
158-
<plugins>
159-
<plugin>
160-
<groupId>com.github.eirslett</groupId>
161-
<artifactId>frontend-maven-plugin</artifactId>
154+
155+
<build>
156+
<plugins>
157+
<plugin>
158+
<groupId>com.github.eirslett</groupId>
159+
<artifactId>frontend-maven-plugin</artifactId>
160+
<configuration>
161+
<workingDirectory>src/main/resources/static/console-fe</workingDirectory>
162+
</configuration>
163+
<executions>
164+
<execution>
165+
<id>install node and npm</id>
166+
<goals>
167+
<goal>install-node-and-npm</goal>
168+
</goals>
169+
<phase>generate-resources</phase>
162170
<configuration>
163-
<workingDirectory>src/main/resources/static/console-fe</workingDirectory>
171+
<nodeVersion>v19.5.0</nodeVersion>
164172
</configuration>
165-
<executions>
166-
<execution>
167-
<id>install node and npm</id>
168-
<goals>
169-
<goal>install-node-and-npm</goal>
170-
</goals>
171-
<phase>generate-resources</phase>
172-
<configuration>
173-
<nodeVersion>v19.5.0</nodeVersion>
174-
</configuration>
175-
</execution>
176-
<execution>
177-
<id>npm install</id>
178-
<goals>
179-
<goal>npm</goal>
180-
</goals>
181-
<phase>generate-resources</phase>
182-
<configuration>
183-
<arguments>install</arguments>
184-
</configuration>
185-
</execution>
186-
<execution>
187-
<id>npm build</id>
188-
<goals>
189-
<goal>npm</goal>
190-
</goals>
191-
<phase>generate-resources</phase>
192-
<configuration>
193-
<arguments>run build</arguments>
194-
<environmentVariables>
195-
<VERSION>${project.version}</VERSION>
196-
</environmentVariables>
197-
</configuration>
198-
</execution>
199-
</executions>
200-
</plugin>
201-
<plugin>
202-
<groupId>org.apache.maven.plugins</groupId>
203-
<artifactId>maven-resources-plugin</artifactId>
204-
<executions>
205-
<execution>
206-
<id>copy-resources-static</id>
207-
<phase>generate-resources</phase>
208-
<goals>
209-
<goal>copy-resources</goal>
210-
</goals>
211-
<configuration>
212-
<outputDirectory>src/main/resources/static</outputDirectory>
213-
<resources>
214-
<resource>
215-
<directory>src/main/resources/static/console-fe/dist</directory>
216-
</resource>
217-
</resources>
218-
</configuration>
219-
</execution>
220-
</executions>
221-
</plugin>
222-
</plugins>
223-
</build>
224-
</profile>
225-
</profiles>
226-
<build>
173+
</execution>
174+
<execution>
175+
<id>npm install</id>
176+
<goals>
177+
<goal>npm</goal>
178+
</goals>
179+
<phase>generate-resources</phase>
180+
<configuration>
181+
<arguments>install</arguments>
182+
<npmRegistryURL>https://registry.npmmirror.com/</npmRegistryURL>
183+
</configuration>
184+
</execution>
185+
<execution>
186+
<id>npm build</id>
187+
<goals>
188+
<goal>npm</goal>
189+
</goals>
190+
<phase>generate-resources</phase>
191+
<configuration>
192+
<arguments>run build</arguments>
193+
<environmentVariables>
194+
<VERSION>${project.version}</VERSION>
195+
</environmentVariables>
196+
</configuration>
197+
</execution>
198+
</executions>
199+
</plugin>
200+
<plugin>
201+
<groupId>org.apache.maven.plugins</groupId>
202+
<artifactId>maven-resources-plugin</artifactId>
203+
<executions>
204+
<execution>
205+
<id>copy-resources-static</id>
206+
<phase>generate-resources</phase>
207+
<goals>
208+
<goal>copy-resources</goal>
209+
</goals>
210+
<configuration>
211+
<outputDirectory>src/main/resources/static</outputDirectory>
212+
<resources>
213+
<resource>
214+
<directory>src/main/resources/static/console-fe/dist</directory>
215+
</resource>
216+
</resources>
217+
</configuration>
218+
</execution>
219+
</executions>
220+
</plugin>
221+
</plugins>
227222
<resources>
228223
<resource>
229224
<directory>src/main/resources</directory>

console/src/main/resources/static/css/bootstrap.css

-1
This file was deleted.

console/src/main/resources/static/css/console1412.css

-1
This file was deleted.

console/src/main/resources/static/css/font-awesome.css

-4
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

console/src/main/resources/static/css/icon.css

-1
This file was deleted.

console/src/main/resources/static/css/main.css

-11
This file was deleted.
-114 Bytes
Binary file not shown.
-4.19 KB
Binary file not shown.
-3.61 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

console/src/main/resources/static/index.html

-1
This file was deleted.

console/src/main/resources/static/js/main.js

-389
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)