Merged PR 1730: scroll top for anorid

Related work items: #12956, #17344
This commit is contained in:
Robert Bond
2025-07-08 08:09:51 +00:00
5 changed files with 81 additions and 1 deletions
+3
View File
@@ -45,3 +45,6 @@ public/swagger.json
certificates/cert-key.pem
certificates/cert.pem
gitclean.sh
dockerfile
Jenkinsfile
+25
View File
@@ -0,0 +1,25 @@
# Use official Node.js 20 LTS image
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install dependencies first (better caching)
COPY package*.json ./
RUN npm ci --production
# Copy source files (including .next build output if pre-built)
COPY . .
# If you want to build inside container, uncomment:
# RUN npm run build
# Use non-root user (optional, but recommended)
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
# Expose port your app listens on
EXPOSE 3000
# Start your Next.js app (adjust if using custom server)
CMD ["npm", "start"]
Vendored
+50
View File
@@ -0,0 +1,50 @@
pipeline {
agent {
docker {
image 'node:20' // ✅ Node.js 20 with npm included
}
}
environment {
IMAGE = "pedw-app"
}
stages {
stage('Install & Build') {
steps {
sh 'npm ci'
sh 'npm run build'
}
}
stage('Build Docker Image') {
steps {
sh "docker build -t $REGISTRY/$IMAGE:latest ."
}
}
stage('Push Docker Image') {
steps {
withCredentials([usernamePassword(credentialsId: 'dockerhub-credentials', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
sh "echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin"
sh "docker push $REGISTRY/$IMAGE:latest"
}
}
}
stage('Deploy to Plesk') {
steps {
sshagent(['plesk-ssh-key']) {
sh """
ssh root@your-plesk-domain.com '
docker pull $REGISTRY/$IMAGE:latest &&
docker stop nextjs-app || true &&
docker rm nextjs-app || true &&
docker run -d --restart=always --name nextjs-app -p 3000:3000 $REGISTRY/$IMAGE:latest
'
"""
}
}
}
}
}
@@ -91,7 +91,8 @@ const RepComplete = (props) => {
: props.props.currentView.caseReference
.representationType,
}),
setRepresentationMessageSent(true));
setRepresentationMessageSent(true)),
window.scrollTo({ top: 0, behavior: "smooth" });
});
return (
<div id="rep-appellant">
+1
View File
@@ -65,6 +65,7 @@ let CompleteAppeal = (props) => {
console.log("patching///////////////");
//
//patchCase(incidentId);
window.scrollTo({ top: 0, behavior: "smooth" });
}, [
props.appealType.caseReference,
props.props.form.appealForm.values,