Skip to content

Commit

Permalink
optimize: delete static code built on the frontend (#6688)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuqiufeng authored Jul 20, 2024
1 parent 2594aab commit 0f09553
Show file tree
Hide file tree
Showing 45 changed files with 77 additions and 3,546 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ Thumbs.db

#h2
*.db

/console/src/main/resources/static/css/
/console/src/main/resources/static/img/
/console/src/main/resources/static/js/
/console/src/main/resources/static/saga-statemachine-designer/
/console/src/main/resources/static/index.html
/console/src/main/resources/static/version.json
3 changes: 2 additions & 1 deletion changes/en-us/2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ The version is updated as follows:
- [[#6605](https://github.com/apache/incubator-seata/pull/6605)] revised the license and notice
- [[#6609](https://github.com/apache/incubator-seata/pull/6609)] revised the notice file
- [[#6610](https://github.com/apache/incubator-seata/pull/6610)] revised the notice file
- [[#6610](https://github.com/apache/incubator-seata/pull/6649)] add license header
- [[#6649](https://github.com/apache/incubator-seata/pull/6649)] add license header
- [[#6688](https://github.com/apache/incubator-seata/pull/6688)] delete static code built on the frontend


### security:
Expand Down
3 changes: 2 additions & 1 deletion changes/zh-cn/2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ Apache Seata(incubating) 是一款开源的分布式事务解决方案,提供
- [[#6605](https://github.com/apache/incubator-seata/pull/6605)] 订正 license 和 notice
- [[#6609](https://github.com/apache/incubator-seata/pull/6609)] 订正 notice 文件
- [[#6610](https://github.com/apache/incubator-seata/pull/6610)] 订正 notice 文件
- [[#6610](https://github.com/apache/incubator-seata/pull/6649)] 增加license header
- [[#6649](https://github.com/apache/incubator-seata/pull/6649)] 增加license header
- [[#6688](https://github.com/apache/incubator-seata/pull/6688)] 删除前端构建的静态代码


### security:
Expand Down
137 changes: 66 additions & 71 deletions console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,79 +146,74 @@
<artifactId>tomcat-embed-core</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>release-frontend</id>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>

<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<workingDirectory>src/main/resources/static/console-fe</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<workingDirectory>src/main/resources/static/console-fe</workingDirectory>
<nodeVersion>v19.5.0</nodeVersion>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v19.5.0</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
<environmentVariables>
<VERSION>${project.version}</VERSION>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources-static</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>src/main/resources/static</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/static/console-fe/dist</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
<npmRegistryURL>https://registry.npmmirror.com/</npmRegistryURL>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
<environmentVariables>
<VERSION>${project.version}</VERSION>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources-static</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>src/main/resources/static</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/static/console-fe/dist</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
Expand Down
1 change: 0 additions & 1 deletion console/src/main/resources/static/css/bootstrap.css

This file was deleted.

1 change: 0 additions & 1 deletion console/src/main/resources/static/css/console1412.css

This file was deleted.

4 changes: 0 additions & 4 deletions console/src/main/resources/static/css/font-awesome.css

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.
1 change: 0 additions & 1 deletion console/src/main/resources/static/css/icon.css

This file was deleted.

11 changes: 0 additions & 11 deletions console/src/main/resources/static/css/main.css

This file was deleted.

Binary file removed console/src/main/resources/static/img/black_dot.png
Binary file not shown.
Binary file removed console/src/main/resources/static/img/favicon.ico
Binary file not shown.
Binary file removed console/src/main/resources/static/img/seata.jpeg
Binary file not shown.
Binary file removed console/src/main/resources/static/img/seata_logo.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion console/src/main/resources/static/index.html

This file was deleted.

389 changes: 0 additions & 389 deletions console/src/main/resources/static/js/main.js

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0f09553

Please sign in to comment.