Merge branch 'beta' into feature/my-menu-query
gitea/hedera-web/pipeline/pr-beta This commit looks good Details

This commit is contained in:
Javier Segarra 2025-03-21 13:53:39 +00:00
commit 24cac709d7
15 changed files with 45 additions and 41 deletions

View File

@ -1,17 +1,11 @@
# Not using buster because of bug: https://bugs.php.net/bug.php?id=78870 FROM registry.verdnatura.es/verdnatura/node:20.18.3-vn1
FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2
# Apache # Apache
RUN apt-get install -y --no-install-recommends \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \ apache2 \
libapache2-mod-php \ libapache2-mod-php \
&& . /etc/apache2/envvars \ && . /etc/apache2/envvars \
@ -21,11 +15,6 @@ RUN apt-get install -y --no-install-recommends \
RUN a2dissite 000-default RUN a2dissite 000-default
# NodeJs
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y --no-install-recommends nodejs
# Hedera # Hedera
RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \ RUN curl -sL https://apt.verdnatura.es/conf/verdnatura.gpg | apt-key add - \

2
Jenkinsfile vendored
View File

@ -39,7 +39,7 @@ pipeline {
} }
agent { agent {
docker { docker {
image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn8' image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn9'
registryUrl 'https://registry.verdnatura.es/' registryUrl 'https://registry.verdnatura.es/'
registryCredentialsId 'docker-registry' registryCredentialsId 'docker-registry'
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web-back", "name": "hedera-web-back",
"version": "24.50.16", "version": "25.8.3",
"description": "Verdnatura web page backend", "description": "Verdnatura web page backend",
"license": "GPL-3.0", "license": "GPL-3.0",
"author": "Verdnatura Levante SL" "author": "Verdnatura Levante SL"

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (24.50.16) stable; urgency=low hedera-web (25.8.3) stable; urgency=low
* Initial Release. * Initial Release.

11
debian/rules vendored
View File

@ -5,14 +5,15 @@
%: %:
dh $@ dh $@
clean: override_dh_clean:
npm run clean pnpm run clean
rm -rf build-deps
dh_clean $@ dh_clean $@
build: override_dh_auto_build:
pnpm install --prefer-offline pnpm install --prefer-offline
pnpm exec quasar build pnpm exec quasar build
mkdir -p build-deps mkdir -p build-deps
cp package.json build-deps cp package.json pnpm-lock.yaml build-deps
(cd build-deps && npm install --omit=dev --no-audit --prefer-offline) (cd build-deps && pnpm install --prod --shamefully-hoist --config.audit=true --prefer-offline)

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "24.50.18", "version": "25.8.3",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"productName": "Verdnatura", "productName": "Verdnatura",

View File

@ -104,7 +104,6 @@ export default {
Account: 'Compte', Account: 'Compte',
Addresses: 'Adreces' Addresses: 'Adreces'
}, },
//
orderLoadedIntoBasket: 'Comanda carregada a la cistella!', orderLoadedIntoBasket: 'Comanda carregada a la cistella!',
loadAnOrder: loadAnOrder:
'Si us plau carrega una comanda pendent a la cistella o en comença una de nova', 'Si us plau carrega una comanda pendent a la cistella o en comença una de nova',

View File

@ -116,8 +116,6 @@ export default {
Account: 'Account', Account: 'Account',
Addresses: 'Addresses' Addresses: 'Addresses'
}, },
//
orderLoadedIntoBasket: 'Order loaded into basket!', orderLoadedIntoBasket: 'Order loaded into basket!',
loadAnOrder: 'Please load a pending order to the cart or start a new one', loadAnOrder: 'Please load a pending order to the cart or start a new one',
at: 'at', at: 'at',

View File

@ -113,8 +113,6 @@ export default {
Account: 'Cuenta', Account: 'Cuenta',
Addresses: 'Direcciones' Addresses: 'Direcciones'
}, },
//
orderLoadedIntoBasket: '¡Pedido cargado en la cesta!', orderLoadedIntoBasket: '¡Pedido cargado en la cesta!',
loadAnOrder: loadAnOrder:
'Por favor carga un pedido pendiente en la cesta o empieza uno nuevo', 'Por favor carga un pedido pendiente en la cesta o empieza uno nuevo',

View File

@ -49,7 +49,7 @@ export default {
] ]
}, },
of: 'de', of: 'de',
startOrder: 'Lancer commande', startOrder: 'Lancer une commande',
// Sections titles // Sections titles
titles: { titles: {
Home: 'Accueil', Home: 'Accueil',
@ -104,8 +104,6 @@ export default {
Account: 'Compte', Account: 'Compte',
Addresses: 'Adresses' Addresses: 'Adresses'
}, },
//
orderLoadedIntoBasket: 'Commande chargée dans le panier!', orderLoadedIntoBasket: 'Commande chargée dans le panier!',
loadAnOrder: loadAnOrder:
'Veuillez télécharger une commande en attente dans le panier ou en démarrer une nouvelle', 'Veuillez télécharger une commande en attente dans le panier ou en démarrer une nouvelle',

View File

@ -104,7 +104,6 @@ export default {
Account: 'Conta', Account: 'Conta',
Addresses: 'Moradas' Addresses: 'Moradas'
}, },
//
orderLoadedIntoBasket: 'Pedido carregado na cesta!', orderLoadedIntoBasket: 'Pedido carregado na cesta!',
loadAnOrder: 'Carregue um pedido pendente no carrinho ou inicie um novo', loadAnOrder: 'Carregue um pedido pendente no carrinho ou inicie um novo',
at: 'às', at: 'às',

View File

@ -63,3 +63,16 @@ export default {
} }
}; };
</script> </script>
<i18n lang="yaml">
en-US:
startOrder: Start order
es-ES:
startOrder: Empezar pedido
ca-ES:
startOrder: Començar comanda
fr-FR:
startOrder: Lancer une commande
pt-PT:
startOrder: Comece uma encomenda
</i18n>

View File

@ -57,7 +57,9 @@ onMounted(async () => await fetchData());
color="accent" color="accent"
to="/ecomerce/catalog" to="/ecomerce/catalog"
> >
<QTooltip>{{ $t('startOrder') }}</QTooltip></QBtn <QTooltip class="text-no-wrap">
{{ $t('startOrder') }}
</QTooltip></QBtn
> >
</QPageSticky> </QPageSticky>
</div> </div>
@ -99,7 +101,7 @@ es-ES:
ca-ES: ca-ES:
startOrder: Començar comanda startOrder: Començar comanda
fr-FR: fr-FR:
startOrder: Lancer commande startOrder: Lancer une commande
pt-PT: pt-PT:
startOrder: Comece uma encomenda startOrder: Comece uma encomenda
</i18n> </i18n>

View File

@ -59,9 +59,17 @@ export const useAppStore = defineStore('hedera', {
this.menuEssentialLinks = sectionTree; this.menuEssentialLinks = sectionTree;
}, },
async loadConfig() { async loadConfig() {
const imageUrl = await jApi.getValue('SELECT url FROM imageConfig'); try {
this.$patch({ imageUrl }); const { data } = await api.get('ImageConfigs');
if (!data) return;
this.imageUrl = data[0]?.url;
} catch (err) {
console.error(err);
}
}, },
async init() { async init() {

View File

@ -248,11 +248,10 @@ export const useUserStore = defineStore('user', () => {
const fetchUser = async (userType = 'user') => { const fetchUser = async (userType = 'user') => {
try { try {
const userData = await jApi.getObject( const userData = await api.get('VnUsers/getCurrentUserData');
'SELECT id, nickname, name, lang FROM account.myUser'
); if (userType === 'user') mainUser.value = userData.data;
if (userType === 'user') mainUser.value = userData; else supplantedUser.value = userData.data;
else supplantedUser.value = userData;
} catch (error) { } catch (error) {
console.error('Error fetching user: ', error); console.error('Error fetching user: ', error);
} }