From 439c7c69b19d30d46583410e24e96d3d60b58755 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 22 Jan 2025 10:13:14 +0800 Subject: [PATCH] Renaming project to 'FastWS' --- .github/workflows/ci-cd.yml | 17 +- .lycheeignore | 1 + Dockerfile | 8 +- ... => FastWS-Project-intellij-code-style.xml | 2 +- README.md | 22 +- docs/README.md | 4 +- docs/blog/authors.yml | 2 +- docs/docs/configuration.mdx | 2 +- docs/docs/development.md | 51 +- docs/docs/intro.md | 12 +- docs/docusaurus.config.ts | 24 +- .../src/components/HomepageFeatures/index.tsx | 6 +- docs/src/css/custom.css | 2 +- docs/src/pages/index.module.css | 5 + docs/src/pages/index.tsx | 9 +- .../img/logo-with-text-black-outline.ai | 5719 +++++++++++++++++ .../img/logo-with-text-white-outline.ai | 5709 ++++++++++++++++ .../img/logo-with-text-white-outline.svg | 1 + pom.xml | 6 +- .../application/BinderFactory.java | 2 +- .../application/ResourceConfig.java | 6 +- .../config/ApplicationConfig.java | 2 +- .../web/endpoints/DataServlet.java | 2 +- .../web/filters/CorsFilter.java | 2 +- .../template => fastws}/DockerITSpec.groovy | 2 +- .../JettyServerFactorySpec.groovy | 5 +- .../application/ResourceConfigSpec.groovy | 5 +- .../web/endpoints/DataServletITSpec.groovy | 6 +- .../web/filters/CorsFilterSpec.groovy | 3 +- .../JettyServerFactory.java | 2 +- .../resource/TestEndpoint.java | 8 +- 31 files changed, 11546 insertions(+), 101 deletions(-) rename Jersey-Webservice-Template-Project-intellij-code-style.xml => FastWS-Project-intellij-code-style.xml (99%) create mode 100644 docs/static/img/logo-with-text-black-outline.ai create mode 100644 docs/static/img/logo-with-text-white-outline.ai create mode 100644 docs/static/img/logo-with-text-white-outline.svg rename src/main/java/com/qubitpi/{ws/jersey/template => fastws}/application/BinderFactory.java (96%) rename src/main/java/com/qubitpi/{ws/jersey/template => fastws}/application/ResourceConfig.java (90%) rename src/main/java/com/qubitpi/{ws/jersey/template => fastws}/config/ApplicationConfig.java (98%) rename src/main/java/com/qubitpi/{ws/jersey/template => fastws}/web/endpoints/DataServlet.java (96%) rename src/main/java/com/qubitpi/{ws/jersey/template => fastws}/web/filters/CorsFilter.java (98%) rename src/test/groovy/com/qubitpi/{ws/jersey/template => fastws}/DockerITSpec.groovy (98%) rename src/test/groovy/com/qubitpi/{ws/jersey/template => fastws}/JettyServerFactorySpec.groovy (94%) rename src/test/groovy/com/qubitpi/{ws/jersey/template => fastws}/application/ResourceConfigSpec.groovy (87%) rename src/test/groovy/com/qubitpi/{ws/jersey/template => fastws}/web/endpoints/DataServletITSpec.groovy (88%) rename src/test/groovy/com/qubitpi/{ws/jersey/template => fastws}/web/filters/CorsFilterSpec.groovy (98%) rename src/test/java/com/qubitpi/{ws/jersey/template => fastws}/JettyServerFactory.java (98%) rename src/test/java/com/qubitpi/{ws/jersey/template => fastws}/resource/TestEndpoint.java (82%) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f7c7ea53..c3924e5e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. --- -name: Template CI/CD +name: CI/CD "on": pull_request: @@ -98,8 +98,9 @@ jobs: - name: Generate Javadoc run: mvn -B clean javadoc:javadoc - name: Move Javadoc into documentation directory - if: github.ref == 'refs/heads/master' run: mv target/site/apidocs/ docs/build/apidocs/ + - name: Load CNAME + run: echo fastws.qubitpi.org > docs/build/CNAME - name: Deploy documentation (including Javadoc) to GitHub Pages if: github.ref == 'refs/heads/master' uses: peaceiris/actions-gh-pages@v3 @@ -137,7 +138,7 @@ jobs: if: github.ref == 'refs/heads/master' uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: jack20191124 password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push image to DockerHub if: github.ref == 'refs/heads/master' @@ -145,4 +146,12 @@ jobs: with: context: . push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/jersey-webservice-template:latest + tags: jack20191124/fast-ws:latest + - name: Push image Description + if: github.ref == 'refs/heads/master' + uses: peter-evans/dockerhub-description@v4 + with: + username: jack20191124 + password: ${{ secrets.DOCKERHUB_TOKEN }} + repository: jack20191124/fast-ws + readme-filepath: README.md diff --git a/.lycheeignore b/.lycheeignore index 91d60125..d21b19d4 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -4,3 +4,4 @@ https://uel.java.net/ https://www.openapis.org/ https://jcp.org/* http://localhost:8080/* +https://github.com/QubitPi/fast-ws/blob/master/FastWS-Project-intellij-code-style.xml diff --git a/Dockerfile b/Dockerfile index 92224f1a..78bdc52e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,9 @@ # limitations under the License. FROM maven:3.8.3-openjdk-17 as build -RUN mkdir /jersey-webservice-template -COPY . /jersey-webservice-template -RUN cd /jersey-webservice-template && mvn clean package -Dmaven.test.skip=true +RUN mkdir /fast-ws +COPY . /fast-ws +RUN cd /fast-ws && mvn clean package -Dmaven.test.skip=true FROM ubuntu:22.04 @@ -47,7 +47,7 @@ RUN rm jetty-home-$JETTY_VERSION.tar.gz RUN mkdir jetty-base RUN cd jetty-base && java -jar $JETTY_HOME/start.jar --add-module=annotations,server,http,deploy,servlet,webapp,resources,jsp -COPY --from=build /jersey-webservice-template/target/jersey-webservice-template-$WS_VERSION.war $JETTY_WEBAPPS_DIR/ROOT.war +COPY --from=build /fast-ws/target/fast-ws-$WS_VERSION.war $JETTY_WEBAPPS_DIR/ROOT.war COPY ./Dockerfile-startup.sh /Dockerfile-startup.sh CMD [ "/Dockerfile-startup.sh" ] diff --git a/Jersey-Webservice-Template-Project-intellij-code-style.xml b/FastWS-Project-intellij-code-style.xml similarity index 99% rename from Jersey-Webservice-Template-Project-intellij-code-style.xml rename to FastWS-Project-intellij-code-style.xml index 17e522f7..4669b427 100644 --- a/Jersey-Webservice-Template-Project-intellij-code-style.xml +++ b/FastWS-Project-intellij-code-style.xml @@ -1,4 +1,4 @@ - +