Merge branch 'dev' into 6972_defaultGlobalValues

This commit is contained in:
Javier Segarra 2024-05-27 15:03:45 +02:00
commit 94a15a4923
10 changed files with 21 additions and 28 deletions

12
Jenkinsfile vendored
View File

@ -54,7 +54,6 @@ pipeline {
}
environment {
PROJECT_NAME = 'lilium'
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
}
stages {
stage('Install') {
@ -104,15 +103,18 @@ pipeline {
when {
expression { PROTECTED_BRANCH }
}
environment {
DOCKER_HOST = "${env.SWARM_HOST}"
}
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
}
sh "docker stack deploy --with-registry-auth --compose-file docker-compose.yml ${env.STACK_NAME}"
withKubeConfig([
serverUrl: "$KUBERNETES_API",
credentialsId: 'kubernetes',
namespace: 'lilium'
]) {
sh 'kubectl set image deployment/lilium-$BRANCH_NAME lilium-$BRANCH_NAME=$REGISTRY/salix-frontend:$VERSION'
}
}
}
}

View File

@ -1,17 +1,7 @@
version: '3.7'
services:
main:
image: registry.verdnatura.es/salix-frontend:${BRANCH_NAME:?}
image: registry.verdnatura.es/salix-frontend:${VERSION:?}
build:
context: .
dockerfile: ./Dockerfile
ports:
- 4000
deploy:
replicas: ${FRONT_REPLICAS:?}
placement:
constraints:
- node.role == worker
resources:
limits:
memory: 1G

View File

@ -1,6 +1,6 @@
{
"name": "salix-front",
"version": "24.24.0",
"version": "24.24.1",
"description": "Salix frontend",
"productName": "Salix",
"author": "Verdnatura",

View File

@ -61,7 +61,7 @@ const tags = computed(() => {
.inline-tag {
height: 1rem;
margin: 0.05rem;
color: $secondary;
color: $color-font-secondary;
text-align: center;
font-size: smaller;
padding: 1px;

View File

@ -147,7 +147,7 @@ const containerClasses = computed(() => {
.q-calendar-month__head--workweek,
.q-calendar-month__head--weekday.q-calendar__center.q-calendar__ellipsis {
text-transform: capitalize;
color: #777;
color: var(---color-font-secondary);
font-weight: bold;
font-size: 0.8rem;
text-align: center;

View File

@ -32,7 +32,7 @@ $primary-light: lighten($primary, 35%);
$dark-shadow-color: black;
$layout-shadow-dark: 0 0 10px 2px #00000033, 0 0px 10px #0000003d;
$spacing-md: 16px;
$color-font-secondary: #777;
.bg-success {
background-color: $positive;
}

View File

@ -866,7 +866,7 @@ worker:
sex: Sexo
seniority: Antigüedad
fi: DNI/NIE/NIF
birth: Cumpleaños
birth: Fecha de nacimiento
isFreelance: Autónomo
isSsDiscounted: Bonificación SS
hasMachineryAuthorized: Autorizado para llevar maquinaria

View File

@ -320,13 +320,13 @@ function exprBuilder(param, value) {
<QTable
:columns="columns"
:rows="rows"
class="full-width q-mt-md"
class="full-width"
row-key="clientFk"
selection="multiple"
v-model:selected="selected"
>
<template #header="props">
<QTr :props="props" class="bg">
<QTr :props="props" class="bg" style="min-height: 200px">
<QTh>
<QCheckbox v-model="props.selected" />
</QTh>
@ -372,8 +372,9 @@ function exprBuilder(param, value) {
<VnInput
type="textarea"
v-model="props.value"
autogrow
:disable="true"
readonly
dense
rows="2"
/>
</div>
<div v-else>{{ props.value }}</div>

View File

@ -201,6 +201,6 @@ es:
isDisable: Trabajador desactivado
fi: DNI/NIE/NIF
sex: Sexo
birth: Cumpleaños
birth: Fecha de Nacimiento
isSsDiscounted: Bonificación SS
</i18n>

View File

@ -73,7 +73,7 @@ const filter = {
<template #body="{ entity: worker }">
<QCard class="vn-one">
<VnTitle
:url="workerUrl + `basic-data`"
:url="`#/worker/${entityId}/basic-data`"
:text="t('worker.summary.basicData')"
/>
<VnLv :label="t('worker.card.name')" :value="worker.user?.nickname" />
@ -113,7 +113,7 @@ const filter = {
</QCard>
<QCard class="vn-one">
<VnTitle
:url="workerUrl + `basic-data`"
:url="`#/worker/${entityId}/basic-data`"
:text="t('worker.summary.basicData')"
/>
<VnLv