From 4c080f44d14c6ac2ff94392e78ff87dc70394bbb Mon Sep 17 00:00:00 2001 From: Mosiur Rahman Date: Fri, 3 Jan 2025 01:37:01 +0600 Subject: [PATCH] Updated the backend and select enabled --- backend-server/src/index.ts | 6 ++++-- jenkinsFile | 12 +++++++----- .../pages/backup-list/backup-list.component.scss | 6 +++--- src/app/shared/model/backup.model.ts | 1 + 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/backend-server/src/index.ts b/backend-server/src/index.ts index 10810c9..e3dc980 100644 --- a/backend-server/src/index.ts +++ b/backend-server/src/index.ts @@ -23,7 +23,8 @@ interface IBackup { projectName: string, projectURL: string, volumeName: string, - volumeURL: string + volumeURL: string, + day: string } interface IUpdate { @@ -49,7 +50,8 @@ const backupSchema = new mongoose.Schema({ projectName: String, projectURL: String, volumeName: String, - volumeURL: String + volumeURL: String, + day: }, { toJSON: { virtuals: true }, diff --git a/jenkinsFile b/jenkinsFile index c185525..9315e2d 100644 --- a/jenkinsFile +++ b/jenkinsFile @@ -1,16 +1,18 @@ pipeline { agent any - + tools { + nodejs 'nodejs' + } stages{ - stage('Build') { + stage('Checkout') { steps { - echo 'Building...' + git branch: 'jenkins-build' url: 'https://github.com/dumsilor/link-manage.git' } } - stage('Test') { + stage('Install Dependencies') { steps { - echo 'Testing...' + sh 'npm install' } } stage('Deploy') { diff --git a/src/app/components/pages/backup-list/backup-list.component.scss b/src/app/components/pages/backup-list/backup-list.component.scss index 7308aa2..0a18e34 100644 --- a/src/app/components/pages/backup-list/backup-list.component.scss +++ b/src/app/components/pages/backup-list/backup-list.component.scss @@ -66,9 +66,9 @@ td:nth-child(3):active { td { padding: 0.7rem 0.5rem; - -webkit-user-select: none; /* Safari */ - -ms-user-select: none; /* IE 10 and IE 11 */ - user-select: none; /* Standard syntax */ + // -webkit-user-select: none; /* Safari */ + // -ms-user-select: none; /* IE 10 and IE 11 */ + // user-select: none; /* Standard syntax */ } a{ diff --git a/src/app/shared/model/backup.model.ts b/src/app/shared/model/backup.model.ts index 776b063..2ada993 100644 --- a/src/app/shared/model/backup.model.ts +++ b/src/app/shared/model/backup.model.ts @@ -3,4 +3,5 @@ export class Backup{ projectURL!: string; volumeName!: string; volumeURL!: string; + day!: string; } \ No newline at end of file