From 55ee4af8e660914e62ccbdc9e958d6f3cf03a935 Mon Sep 17 00:00:00 2001 From: ElyAi <12211308@mail.sustech.edu.cn> Date: Tue, 12 Mar 2024 11:38:54 +0800 Subject: [PATCH 1/6] Remove remember me checkbox --- docs-web/src/main/webapp/src/partial/docs/login.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs-web/src/main/webapp/src/partial/docs/login.html b/docs-web/src/main/webapp/src/partial/docs/login.html index 822ec9a1f..61ef4e039 100644 --- a/docs-web/src/main/webapp/src/partial/docs/login.html +++ b/docs-web/src/main/webapp/src/partial/docs/login.html @@ -54,11 +54,6 @@ ng-attr-placeholder="{{ 'login.validation_code' | translate }}" ng-model="user.code" /> -
- -
From c2f49dce54fe1627ad59124d5fa260b8797b6b8f Mon Sep 17 00:00:00 2001 From: Ely <132359145+ElyAi@users.noreply.github.com> Date: Tue, 7 May 2024 11:30:03 +0800 Subject: [PATCH 2/6] Create Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..24634b25d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent any + stages { + stage('Build') { +steps { + sh 'mvn -B -DskipTests clean package' +} + } + } + } From a11c37d149efaa42493803ac94703346000d5200 Mon Sep 17 00:00:00 2001 From: Ely <132359145+ElyAi@users.noreply.github.com> Date: Tue, 7 May 2024 11:33:41 +0800 Subject: [PATCH 3/6] Update pom.xml --- pom.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pom.xml b/pom.xml index 2228a3f23..ec5ada919 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,28 @@ ${org.apache.maven.plugins.maven-jar-plugin.version} + + org.apache.maven.plugins + maven-pmd-plugin + 3.21.2 + + + false + + true + + /mnt/e/practice-answer.xml + + + + + + check + + + + + org.apache.maven.plugins maven-surefire-plugin From e372c7d29238906a88c9881dbebc540a518bb885 Mon Sep 17 00:00:00 2001 From: Ely <132359145+ElyAi@users.noreply.github.com> Date: Tue, 7 May 2024 11:34:13 +0800 Subject: [PATCH 4/6] Update Jenkinsfile --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 24634b25d..c80c402bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,18 @@ pipeline { steps { sh 'mvn -B -DskipTests clean package' } + } + stage('pmd') { + steps { + sh 'mvn pmd:pmd' + } + } + } + post { + always { + archiveArtifacts artifacts: '**/target/site/**', fingerprint: true + archiveArtifacts artifacts: '**/target/**/*.jar', fingerprint: true + archiveArtifacts artifacts: '**/target/**/*.war', fingerprint: true } } } From e9a2ade841ac858d963bf2c5d654aa7c40d33bd1 Mon Sep 17 00:00:00 2001 From: Ely <132359145+ElyAi@users.noreply.github.com> Date: Tue, 7 May 2024 11:46:22 +0800 Subject: [PATCH 5/6] Create main.yml --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..fe7756443 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Java CI with Maven + on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B -DskipTests package --file pom.xml From 626f1d3ec4c0c62e03d7701561aabe14fd74776b Mon Sep 17 00:00:00 2001 From: Ely <132359145+ElyAi@users.noreply.github.com> Date: Tue, 7 May 2024 11:49:18 +0800 Subject: [PATCH 6/6] Update and rename main.yml to github-actions.yml --- .github/workflows/{main.yml => github-actions.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{main.yml => github-actions.yml} (94%) diff --git a/.github/workflows/main.yml b/.github/workflows/github-actions.yml similarity index 94% rename from .github/workflows/main.yml rename to .github/workflows/github-actions.yml index fe7756443..51f114078 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/github-actions.yml @@ -1,4 +1,4 @@ -name: Java CI with Maven + name: Java CI with Maven on: push: branches: [ $default-branch ]