0
0
Fork 0

Compare commits

...

26 Commits

Author SHA1 Message Date
Javier Segarra 215746036e feat: refs #7220 ok FormModel 2024-10-20 02:00:49 +02:00
Javier Segarra 533dd76096 feat: refs #7220 remove comments 2024-10-20 01:59:50 +02:00
Javier Segarra 42a235209d Merge branch 'dev' into 7220_cypressUnitTest 2024-10-20 01:53:10 +02:00
Javier Segarra e49a91255f feat: refs #7220 ok FormModel 2024-10-20 01:46:20 +02:00
Javier Segarra 3a04fc5029 feat: refs #7220 ok 2024-10-18 13:51:41 +02:00
Javier Segarra 1d7e3f6119 feat: refs #7220 ok 2024-10-18 08:32:48 +02:00
Javier Segarra c69745b0fd Merge branch 'dev' into 7220_cypressUnitTest 2024-10-17 13:03:06 +02:00
Javier Segarra d00354553d feat: refs #7220 updates 2024-10-17 11:59:28 +02:00
Javier Segarra e18ae76820 feat: refs #7220 updates 2024-10-17 11:39:14 +02:00
Javier Segarra dbf723343d feat: refs #7220 updates 2024-09-27 09:58:23 +02:00
Javier Segarra 3a35447a32 feat: refs #7220 add lang="yml 2024-09-27 01:03:59 +02:00
Javier Segarra 9b295bd676 feat: refs #7220 add lang="yml 2024-09-27 01:03:40 +02:00
Javier Segarra 908aa6de97 perf: refs #7220 dependency 2024-09-27 01:02:52 +02:00
Javier Segarra 10fa6758c9 feat: refs #7220 update paths 2024-09-26 09:09:43 +02:00
Javier Segarra 653fd28e06 feat: refs #7220 #7220 boilerplates all tests. Include generator 2024-09-25 22:51:51 +02:00
Javier Segarra cc709002e1 fix: refs #7220 paths 2024-09-23 22:09:37 +02:00
Javier Segarra f831d4746c feat: refs #7220 vnlocation boilerplate 2024-09-23 22:09:29 +02:00
Javier Segarra 92d3880f24 test: define comand 2024-09-19 23:56:28 +02:00
Javier Segarra 33095f0aa5 test: VnTitle 2024-09-19 23:21:20 +02:00
Javier Segarra 6272f300ee Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 7220_cypressUnitTest 2024-09-19 22:56:04 +02:00
Javier Segarra 59e4e327f3 Merge branch 'dev' into 7220_cypressUnitTest 2024-05-29 11:12:04 +02:00
Javier Segarra 14df647a37 update 2024-05-29 11:11:48 +02:00
Javier Segarra 112f33fb1b updates 2024-05-28 11:38:09 +02:00
Javier Segarra da39100865 Merge branch 'dev' into 7220_cypressUnitTest 2024-05-28 08:47:19 +02:00
Javier Segarra 4d9fcbe23f feat(lilium) #7220 config 2024-04-16 14:14:47 +02:00
Javier Segarra 1a662b222b feat(lilium) #7220 VnTitle example 2024-04-16 14:14:41 +02:00
521 changed files with 3057 additions and 1958 deletions

View File

@ -25,7 +25,7 @@ module.exports = {
// 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) // 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
'plugin:cypress/recommended',
// https://github.com/prettier/eslint-config-prettier#installation // https://github.com/prettier/eslint-config-prettier#installation
// usage with Prettier, provided by 'eslint-config-prettier'. // usage with Prettier, provided by 'eslint-config-prettier'.
'prettier', 'prettier',
@ -58,7 +58,7 @@ module.exports = {
rules: { rules: {
'prefer-promise-reject-errors': 'off', 'prefer-promise-reject-errors': 'off',
'no-unused-vars': 'warn', 'no-unused-vars': 'warn',
"vue/no-multiple-template-root": "off" , 'vue/no-multiple-template-root': 'off',
// allow debugger during development only // allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
}, },

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "msedge",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}"
}
]
}

View File

@ -1,6 +1,12 @@
const { defineConfig } = require('cypress'); const { defineConfig } = require('cypress');
const {
injectQuasarDevServerConfig,
} = require('@quasar/quasar-app-extension-testing-e2e-cypress/cct-dev-server');
module.exports = defineConfig({ module.exports = defineConfig({
env: {
baseUrl: 'http://localhost:9000/',
},
e2e: { e2e: {
baseUrl: 'http://localhost:9000/', baseUrl: 'http://localhost:9000/',
experimentalStudio: true, experimentalStudio: true,
@ -18,6 +24,29 @@ module.exports = defineConfig({
}, },
setupNodeEvents(on, config) { setupNodeEvents(on, config) {
// implement node event listeners here // implement node event listeners here
on('after:spec', (results) => {
// `results` is the tests results
console.error('results: ', results);
cy.exec('cd ../salix && gulp docker');
});
},
},
component: {
indexHtmlFile: 'test/cypress/support/component-index.html',
supportFile: 'test/cypress/support/component.js',
specPattern: 'test/cypress/components/**/*.spec.js',
devServer: {
framework: 'quasar',
bundler: 'vite',
},
setupNodeEvents(on, config) {
// implement node event listeners here
on('after:spec', (results) => {
// `results` is the tests results
console.error('results: ', results);
cy.exec('cd ../salix && gulp docker');
});
}, },
}, },
}); });

45
generate-tests.js Normal file
View File

@ -0,0 +1,45 @@
const fs = require('fs');
const path = require('path');
// Ruta de la carpeta de componentes
// Ruta de la carpeta de pruebas
// ['common', 'ui'].forEach((folder) => {
generateTest('folder');
// });
function generateTest(type) {
const componentsDir = path.join(__dirname, `src/components`);
const testDir = path.join(__dirname, `test/cypress/components`);
// Leer todos los archivos en la carpeta de componentes
fs.readdir(componentsDir, (err, files) => {
if (err) return console.error('Error leyendo la carpeta de componentes:', err);
// Filtrar solo archivos .vue
const vueFiles = files.filter((file) => file.endsWith('.vue'));
vueFiles.forEach((file) => {
const componentName = path.basename(file, '.vue');
const testFileName = `${componentName}.spec.js`;
const testFilePath = path.join(testDir, testFileName);
// Contenido del archivo de prueba
const testFileContent = `
import ${componentName} from 'src/components/${file}';
describe.skip('<${componentName} />', () => {
it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue
cy.createWrapper(${componentName});
});
});
`;
// Escribir el archivo de prueba
fs.writeFile(testFilePath, testFileContent, (err) => {
if (err)
return console.error('Error escribiendo el archivo de prueba:', err);
console.log(`Archivo de prueba generado: ${testFileName}`);
});
});
});
}

View File

@ -10,15 +10,19 @@
"lint": "eslint --ext .js,.vue ./", "lint": "eslint --ext .js,.vue ./",
"format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test:e2e": "cypress open", "test:e2e": "cypress open",
"test:e2e:unit": "cypress run --component",
"test:e2e:unit:ci": "cypress run -p 9000 --component",
"test:e2e:ci": "cd ../salix && gulp docker && cd ../salix-front && cypress run", "test:e2e:ci": "cd ../salix && gulp docker && cd ../salix-front && cypress run",
"test": "echo \"See package.json => scripts for available tests.\" && exit 0", "test": "echo \"See package.json => scripts for available tests.\" && exit 0",
"test:unit": "vitest", "test:unit": "vitest",
"test:unit:ci": "vitest run", "test:unit:ci": "vitest run",
"cypr": "cross-env CYPRESS_REMOTE_DEBUGGING_PORT=9222 cypress open",
"commitlint": "commitlint --edit", "commitlint": "commitlint --edit",
"prepare": "npx husky install", "prepare": "npx husky install",
"addReferenceTag": "node .husky/addReferenceTag.js" "addReferenceTag": "node .husky/addReferenceTag.js"
}, },
"dependencies": { "dependencies": {
"@modyfi/vite-plugin-yaml": "1.0.4",
"@quasar/cli": "^2.3.0", "@quasar/cli": "^2.3.0",
"@quasar/extras": "^1.16.9", "@quasar/extras": "^1.16.9",
"axios": "^1.4.0", "axios": "^1.4.0",
@ -38,7 +42,9 @@
"@pinia/testing": "^0.1.2", "@pinia/testing": "^0.1.2",
"@quasar/app-vite": "^1.7.3", "@quasar/app-vite": "^1.7.3",
"@quasar/quasar-app-extension-qcalendar": "4.0.0-beta.15", "@quasar/quasar-app-extension-qcalendar": "4.0.0-beta.15",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^6.1.0",
"@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0", "@quasar/quasar-app-extension-testing-unit-vitest": "^0.4.0",
"@vitest/ui": "^1.6.0",
"@vue/test-utils": "^2.4.4", "@vue/test-utils": "^2.4.4",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"cypress": "^13.6.6", "cypress": "^13.6.6",

File diff suppressed because it is too large Load Diff

View File

@ -87,6 +87,7 @@ module.exports = configure(function (/* ctx */) {
alias: { alias: {
composables: path.join(__dirname, './src/composables'), composables: path.join(__dirname, './src/composables'),
filters: path.join(__dirname, './src/filters'), filters: path.join(__dirname, './src/filters'),
components: path.join(__dirname, './src/components'),
}, },
vitePlugins: [ vitePlugins: [

View File

@ -2,10 +2,9 @@
import { reactive, ref, onMounted, nextTick, computed } from 'vue'; import { reactive, ref, onMounted, nextTick, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
@ -37,7 +36,7 @@ const onDataSaved = (...args) => {
onMounted(async () => { onMounted(async () => {
await nextTick(); await nextTick();
bicInputRef.value.focus(); bicInputRef?.value?.focus();
}); });
</script> </script>
@ -98,7 +97,7 @@ onMounted(async () => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
title: New bank entity title: New bank entity
subtitle: Please, ensure you put the correct data! subtitle: Please, ensure you put the correct data!

View File

@ -3,8 +3,8 @@ import { reactive, ref, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
@ -141,7 +141,7 @@ const onDataSaved = async (formData, requestResponse) => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Create manual invoice: Crear factura manual Create manual invoice: Crear factura manual
Ticket: Ticket Ticket: Ticket

View File

@ -2,9 +2,10 @@
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnRow from 'components/ui/VnRow.vue'; import FetchData from 'src/components/FetchData.vue';
import VnSelectProvince from 'components/VnSelectProvince.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'components/common/VnInput.vue'; import VnSelectProvince from 'src/components/VnSelectProvince.vue';
import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
const emit = defineEmits(['onDataSaved']); const emit = defineEmits(['onDataSaved']);
@ -63,7 +64,7 @@ const onDataSaved = (...args) => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
New city: Nueva ciudad New city: Nueva ciudad
Please, ensure you put the correct data!: ¡Por favor, asegúrese de poner los datos correctos! Please, ensure you put the correct data!: ¡Por favor, asegúrese de poner los datos correctos!

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
@ -43,7 +43,7 @@ const { t } = useI18n();
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
New expense: Nuevo gasto New expense: Nuevo gasto
It's a withholding: Es una retención It's a withholding: Es una retención

View File

@ -2,8 +2,8 @@
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
@ -85,7 +85,7 @@ const onDataSaved = (dataSaved, requestResponse) => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
New province: Nueva provincia New province: Nueva provincia
Please, ensure you put the correct data!: ¡Por favor, asegúrese de poner los datos correctos! Please, ensure you put the correct data!: ¡Por favor, asegúrese de poner los datos correctos!

View File

@ -2,8 +2,8 @@
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
@ -95,7 +95,7 @@ const onDataSaved = (dataSaved) => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Identifier: Identificador Identifier: Identificador
Model: Modelo Model: Modelo

View File

@ -5,10 +5,10 @@ import { useRouter, onBeforeRouteLeave } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
import SkeletonTable from 'components/ui/SkeletonTable.vue'; import SkeletonTable from 'src/components/ui/SkeletonTable.vue';
import { tMobile } from 'src/composables/tMobile'; import { tMobile } from 'src/composables/tMobile';
const { push } = useRouter(); const { push } = useRouter();

View File

@ -3,8 +3,8 @@ import { reactive, computed, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import Croppie from 'croppie/croppie'; import Croppie from 'croppie/croppie';
@ -336,7 +336,7 @@ const makeRequest = async () => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Edit photo: Editar foto Edit photo: Editar foto
Select from computer: Seleccionar desde ordenador Select from computer: Seleccionar desde ordenador

View File

@ -5,7 +5,7 @@ import { useI18n } from 'vue-i18n';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import { QCheckbox } from 'quasar'; import { QCheckbox } from 'quasar';
import axios from 'axios'; import axios from 'axios';
@ -142,7 +142,7 @@ const closeForm = () => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Edit: Editar Edit: Editar
buy(s): compra(s) buy(s): compra(s)

View File

@ -2,10 +2,10 @@
import { ref, reactive, computed } from 'vue'; import { ref, reactive, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import axios from 'axios'; import axios from 'axios';
@ -208,7 +208,7 @@ const selectItem = ({ id }) => {
</QForm> </QForm>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Filter item: Filtrar artículo Filter item: Filtrar artículo
Enter a new search: Introduce una nueva búsqueda Enter a new search: Introduce una nueva búsqueda

View File

@ -2,10 +2,10 @@
import { ref, reactive, computed } from 'vue'; import { ref, reactive, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.vue'; import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.vue';
import axios from 'axios'; import axios from 'axios';
@ -207,7 +207,7 @@ const selectTravel = ({ id }) => {
</QForm> </QForm>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Filter travels: Filtro envíos Filter travels: Filtro envíos
Enter a new search: Introduce una nueva búsqueda Enter a new search: Introduce una nueva búsqueda

View File

@ -5,10 +5,10 @@ import { onBeforeRouteLeave, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import SkeletonForm from 'components/ui/SkeletonForm.vue'; import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
import VnConfirm from './ui/VnConfirm.vue'; import VnConfirm from './ui/VnConfirm.vue';
import { tMobile } from 'src/composables/tMobile'; import { tMobile } from 'src/composables/tMobile';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
@ -302,7 +302,7 @@ defineExpose({
<Teleport <Teleport
to="#st-actions" to="#st-actions"
v-if=" v-if="
$props.defaultActions && $props?.defaultActions &&
stateStore?.isSubToolbarShown() && stateStore?.isSubToolbarShown() &&
componentIsRendered componentIsRendered
" "
@ -363,7 +363,7 @@ defineExpose({
<QInnerLoading <QInnerLoading
:showing="isLoading" :showing="isLoading"
:label="t('globals.pleaseWait')" :label="$t('globals.pleaseWait')"
color="primary" color="primary"
style="min-width: 100%" style="min-width: 100%"
/> />

View File

@ -2,7 +2,7 @@
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
const emit = defineEmits(['onDataSaved', 'onDataCanceled']); const emit = defineEmits(['onDataSaved', 'onDataCanceled']);

View File

@ -2,11 +2,11 @@
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue'; import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue';
import axios from 'axios'; import axios from 'axios';
@ -336,7 +336,7 @@ const removeTag = (index, params, search) => {
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
params: params:
supplier: Supplier supplier: Supplier

View File

@ -2,10 +2,10 @@
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import PinnedModules from './PinnedModules.vue'; import PinnedModules from './PinnedModules.vue';
import UserPanel from 'components/UserPanel.vue'; import UserPanel from 'src/components/UserPanel.vue';
import VnBreadcrumbs from './common/VnBreadcrumbs.vue'; import VnBreadcrumbs from './common/VnBreadcrumbs.vue';
import VnAvatar from './ui/VnAvatar.vue'; import VnAvatar from './ui/VnAvatar.vue';
@ -98,6 +98,8 @@ const pinnedModulesRef = ref();
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '/src/css/quasar.variables.scss';
.searchbar { .searchbar {
width: max-content; width: max-content;
} }
@ -105,7 +107,7 @@ const pinnedModulesRef = ref();
background-color: var(--vn-section-color); background-color: var(--vn-section-color);
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
Go to Salix: Go to Salix Go to Salix: Go to Salix
es: es:

View File

@ -78,7 +78,7 @@ async function redirect() {
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
Home: Home Home: Home
es: es:

View File

@ -3,9 +3,9 @@ import { ref, reactive } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useDialogPluginComponent } from 'quasar'; import { useDialogPluginComponent } from 'quasar';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FormPopup from './FormPopup.vue'; import FormPopup from './FormPopup.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
@ -150,7 +150,7 @@ const refund = async () => {
</QDialog> </QDialog>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
Refund invoice: Refund invoice Refund invoice: Refund invoice
Rectificative type: Rectificative type Rectificative type: Rectificative type

View File

@ -3,8 +3,8 @@ import { reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FormModelPopup from './FormModelPopup.vue'; import FormModelPopup from './FormModelPopup.vue';
const emit = defineEmits(['onDataSaved']); const emit = defineEmits(['onDataSaved']);
@ -73,7 +73,7 @@ const onDataSaved = (data) => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Warehouse: Almacén Warehouse: Almacén
Type the visible quantity: Introduce la cantidad visible Type the visible quantity: Introduce la cantidad visible

View File

@ -3,10 +3,10 @@ import { ref, reactive } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useQuasar, useDialogPluginComponent } from 'quasar'; import { useQuasar, useDialogPluginComponent } from 'quasar';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FormPopup from './FormPopup.vue'; import FormPopup from './FormPopup.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
@ -205,7 +205,7 @@ const makeInvoice = async () => {
</QDialog> </QDialog>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
checkInfo: New tickets from the destination customer will be generated in the consignee by default. checkInfo: New tickets from the destination customer will be generated in the consignee by default.
transferInvoiceInfo: Destination customer is marked to bill in the consignee transferInvoiceInfo: Destination customer is marked to bill in the consignee

View File

@ -8,8 +8,8 @@ import { useState } from 'src/composables/useState';
import { useSession } from 'src/composables/useSession'; import { useSession } from 'src/composables/useSession';
import { localeEquivalence } from 'src/i18n/index'; import { localeEquivalence } from 'src/i18n/index';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import { useClipboard } from 'src/composables/useClipboard'; import { useClipboard } from 'src/composables/useClipboard';
import { useRole } from 'src/composables/useRole'; import { useRole } from 'src/composables/useRole';
import VnAvatar from './ui/VnAvatar.vue'; import VnAvatar from './ui/VnAvatar.vue';

View File

@ -1,10 +1,10 @@
<script setup> <script setup>
import { ref, watch } from 'vue'; import { ref } from 'vue';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnSelectDialog from 'components/common/VnSelectDialog.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import CreateNewProvinceForm from './CreateNewProvinceForm.vue'; import CreateNewProvinceForm from './CreateNewProvinceForm.vue';
const emit = defineEmits(['onProvinceCreated']); const emit = defineEmits(['onProvinceCreated']);
@ -78,7 +78,7 @@ async function handleProvinces(data) {
</template> </template>
</VnSelectDialog> </VnSelectDialog>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Province: Provincia Province: Provincia
Create province: Crear provincia Create province: Crear provincia

View File

@ -4,14 +4,14 @@ import { QIcon, QCheckbox } from 'quasar';
import { dashIfEmpty } from 'src/filters'; import { dashIfEmpty } from 'src/filters';
/* basic input */ /* basic input */
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnSelectCache from 'components/common/VnSelectCache.vue'; import VnSelectCache from 'src/components/common/VnSelectCache.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnInputNumber from 'components/common/VnInputNumber.vue'; import VnInputNumber from 'src/components/common/VnInputNumber.vue';
import VnInputDate from 'components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnInputTime from 'components/common/VnInputTime.vue'; import VnInputTime from 'src/components/common/VnInputTime.vue';
import VnComponent from 'components/common/VnComponent.vue'; import VnComponent from 'src/components/common/VnComponent.vue';
import VnUserLink from 'components/ui/VnUserLink.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue';
const model = defineModel(undefined, { required: true }); const model = defineModel(undefined, { required: true });
const $props = defineProps({ const $props = defineProps({

View File

@ -1,14 +1,14 @@
<script setup> <script setup>
import { markRaw, computed, defineModel } from 'vue'; import { markRaw, computed, defineModel } from 'vue';
import { QCheckbox } from 'quasar'; import { QCheckbox } from 'quasar';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
/* basic input */ /* basic input */
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnInputTime from 'components/common/VnInputTime.vue'; import VnInputTime from 'src/components/common/VnInputTime.vue';
import VnTableColumn from 'components/VnTable/VnColumn.vue'; import VnTableColumn from 'src/components/VnTable/VnColumn.vue';
const $props = defineProps({ const $props = defineProps({
column: { column: {

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
const model = defineModel({ type: Object }); const model = defineModel({ type: Object });
const $props = defineProps({ const $props = defineProps({
name: { name: {

View File

@ -6,14 +6,14 @@ import { useQuasar } from 'quasar';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import CrudModel from 'src/components/CrudModel.vue'; import CrudModel from 'src/components/CrudModel.vue';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
import VnFilterPanel from 'components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnTableColumn from 'components/VnTable/VnColumn.vue'; import VnTableColumn from 'src/components/VnTable/VnColumn.vue';
import VnFilter from 'components/VnTable/VnFilter.vue'; import VnFilter from 'src/components/VnTable/VnFilter.vue';
import VnTableChip from 'components/VnTable/VnChip.vue'; import VnTableChip from 'src/components/VnTable/VnChip.vue';
import VnVisibleColumn from 'src/components/VnTable/VnVisibleColumn.vue'; import VnVisibleColumn from 'src/components/VnTable/VnVisibleColumn.vue';
import VnLv from 'components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import VnTableOrder from 'src/components/VnTable/VnOrder.vue'; import VnTableOrder from 'src/components/VnTable/VnOrder.vue';
const $props = defineProps({ const $props = defineProps({
@ -751,7 +751,7 @@ function handleScroll() {
</FormModelPopup> </FormModelPopup>
</QDialog> </QDialog>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
status: Status status: Status
table view: Table view table view: Table view

View File

@ -181,7 +181,7 @@ onMounted(async () => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Check the columns you want to see: Marca las columnas que quieres ver Check the columns you want to see: Marca las columnas que quieres ver
Visible columns: Columnas visibles Visible columns: Columnas visibles

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, onMounted, useSlots } from 'vue'; import { ref, onMounted, useSlots } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
const slots = useSlots(); const slots = useSlots();
const hasContent = ref(false); const hasContent = ref(false);

View File

@ -78,7 +78,7 @@ async function confirm() {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Send email notification: Enviar notificación por correo Send email notification: Enviar notificación por correo
The notification will be sent to the following address: La notificación se enviará a la siguiente dirección The notification will be sent to the following address: La notificación se enviará a la siguiente dirección

View File

@ -2,9 +2,9 @@
import { useDialogPluginComponent } from 'quasar'; import { useDialogPluginComponent } from 'quasar';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from "composables/useNotify"; import useNotify from 'src/composables/useNotify';
const MESSAGE_MAX_LENGTH = 160; const MESSAGE_MAX_LENGTH = 160;
@ -144,7 +144,7 @@ const onSubmit = async () => {
max-width: 450px; max-width: 450px;
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Message: Mensaje Message: Mensaje
Send: Enviar Send: Enviar

View File

@ -191,7 +191,7 @@ onMounted(async () => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Check the columns you want to see: Marca las columnas que quieres ver Check the columns you want to see: Marca las columnas que quieres ver
Visible columns: Columnas visibles Visible columns: Columnas visibles

View File

@ -67,7 +67,10 @@ function getBreadcrumb(param) {
/> />
</QBreadcrumbs> </QBreadcrumbs>
</template> </template>
<style lang="scss"> <style lang="scss" scoped>
@import '/src/css/quasar.variables.scss';
@import '/node_modules/quasar/src/css/variables.sass';
.q-breadcrumbs { .q-breadcrumbs {
&__el, &__el,
> div { > div {

View File

@ -5,9 +5,9 @@ import { useArrayData } from 'src/composables/useArrayData';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
import useCardSize from 'src/composables/useCardSize'; import useCardSize from 'src/composables/useCardSize';
import VnSubToolbar from '../ui/VnSubToolbar.vue'; import VnSubToolbar from '../ui/VnSubToolbar.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import LeftMenu from 'components/LeftMenu.vue'; import LeftMenu from 'src/components/LeftMenu.vue';
import RightMenu from 'components/common/RightMenu.vue'; import RightMenu from 'src/components/common/RightMenu.vue';
const props = defineProps({ const props = defineProps({
dataKey: { type: String, required: true }, dataKey: { type: String, required: true },
baseUrl: { type: String, default: undefined }, baseUrl: { type: String, default: undefined },

View File

@ -4,11 +4,11 @@ import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import axios from 'axios'; import axios from 'axios';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
@ -195,7 +195,7 @@ function addDefaultData(data) {
row-gap: 20px; row-gap: 20px;
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
contentTypesInfo: Allowed file types {allowedContentTypes} contentTypesInfo: Allowed file types {allowedContentTypes}
EntryDmsDescription: Reference {reference} EntryDmsDescription: Reference {reference}
@ -207,5 +207,4 @@ es:
EntryDmsDescription: Referencia {reference} EntryDmsDescription: Referencia {reference}
WorkersDescription: Laboral del empleado {reference} WorkersDescription: Laboral del empleado {reference}
SupplierDmsDescription: Referencia {reference} SupplierDmsDescription: Referencia {reference}
</i18n> </i18n>

View File

@ -7,11 +7,11 @@ import axios from 'axios';
import VnUserLink from '../ui/VnUserLink.vue'; import VnUserLink from '../ui/VnUserLink.vue';
import { downloadFile } from 'src/composables/downloadFile'; import { downloadFile } from 'src/composables/downloadFile';
import VnImg from 'components/ui/VnImg.vue'; import VnImg from 'src/components/ui/VnImg.vue';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import VnDms from 'src/components/common/VnDms.vue'; import VnDms from 'src/components/common/VnDms.vue';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
import VnInputDate from 'components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import { useSession } from 'src/composables/useSession'; import { useSession } from 'src/composables/useSession';
const route = useRoute(); const route = useRoute();
@ -419,7 +419,7 @@ defineExpose({
color: var(--vn-label-color); color: var(--vn-label-color);
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
contentTypesInfo: Allowed file types {allowedContentTypes} contentTypesInfo: Allowed file types {allowedContentTypes}
The documentation is available in paper form: The documentation is available in paper form The documentation is available in paper form: The documentation is available in paper form

View File

@ -118,7 +118,7 @@ const mixinRules = [
</QInput> </QInput>
</div> </div>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
inputMin: Must be more than {value} inputMin: Must be more than {value}
inputMax: Must be less than {value} inputMax: Must be less than {value}

View File

@ -161,7 +161,7 @@ const manageDate = (date) => {
border-style: solid; border-style: solid;
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Open date: Abrir fecha Open date: Abrir fecha
</i18n> </i18n>

View File

@ -140,7 +140,7 @@ function dateToTime(newDate) {
display: none; display: none;
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Open time: Abrir tiempo Open time: Abrir tiempo
</i18n> </i18n>

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import CreateNewPostcode from 'src/components/CreateNewPostcodeForm.vue'; import CreateNewPostcode from 'src/components/CreateNewPostcodeForm.vue';
import VnSelectDialog from 'components/common/VnSelectDialog.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { ref } from 'vue'; import { ref } from 'vue';
const { t } = useI18n(); const { t } = useI18n();
@ -96,6 +96,8 @@ const handleModelValue = (data) => {
</VnSelectDialog> </VnSelectDialog>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.add-icon { .add-icon {
cursor: pointer; cursor: pointer;
background-color: $primary; background-color: $primary;
@ -103,7 +105,7 @@ const handleModelValue = (data) => {
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
search_by_postalcode: Search by postalcode, town, province or country search_by_postalcode: Search by postalcode, town, province or country
Create new location: Create new location Create new location: Create new location

View File

@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import axios from 'axios'; import axios from 'axios';
import { date } from 'quasar'; import { date } from 'quasar';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import { toRelativeDate } from 'src/filters'; import { toRelativeDate } from 'src/filters';
import { useColor } from 'src/composables/useColor'; import { useColor } from 'src/composables/useColor';
import { useCapitalize } from 'src/composables/useCapitalize'; import { useCapitalize } from 'src/composables/useCapitalize';
@ -852,6 +852,8 @@ watch(
</QPageSticky> </QPageSticky>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.q-card { .q-card {
background-color: var(--vn-section-color); background-color: var(--vn-section-color);
} }
@ -1038,7 +1040,7 @@ watch(
} }
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
to: To to: To
pointRecord: View record at this point in time pointRecord: View record at this point in time

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
const { t } = useI18n(); const { t } = useI18n();
@ -62,7 +62,7 @@ const workers = ref();
</VnFilterPanel> </VnFilterPanel>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
params: params:
search: Contains search: Contains

View File

@ -89,7 +89,7 @@ const cancel = () => {
</QDialog> </QDialog>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Progress: Progreso Progress: Progreso
Total progress: Progreso total Total progress: Progreso total

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import LeftMenu from 'components/LeftMenu.vue'; import LeftMenu from 'src/components/LeftMenu.vue';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';

View File

@ -86,6 +86,10 @@ const $props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
sortByWeight: {
type: Boolean,
default: false,
},
}); });
const { validations } = useValidator(); const { validations } = useValidator();
const requiredFieldRule = (val) => validations().required($attrs.required, val); const requiredFieldRule = (val) => validations().required($attrs.required, val);

View File

@ -64,6 +64,8 @@ const isAllowedToCreate = computed(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.default-icon { .default-icon {
cursor: pointer; cursor: pointer;
color: $primary; color: $primary;

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { onBeforeMount, ref, useAttrs } from 'vue'; import { onBeforeMount, ref, useAttrs } from 'vue';
import axios from 'axios'; import axios from 'axios';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
const { schema, table, column, translation, defaultOptions } = defineProps({ const { schema, table, column, translation, defaultOptions } = defineProps({
schema: { schema: {

View File

@ -176,7 +176,7 @@ async function send() {
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
templates: templates:
pendingPayment: 'Your order is pending of payment. pendingPayment: 'Your order is pending of payment.
@ -218,7 +218,8 @@ fr:
Message: Message Message: Message
messageTooltip: Les caractères spéciaux comme les accents comptent comme plusieurs messageTooltip: Les caractères spéciaux comme les accents comptent comme plusieurs
templates: templates:
pendingPayment: 'Verdnatura : Commande en attente de règlement. Veuillez régler votre commande avant 9h. pendingPayment:
'Verdnatura : Commande en attente de règlement. Veuillez régler votre commande avant 9h.
Sinon elle sera décalée en fonction de vos jours de livraison . Merci' Sinon elle sera décalée en fonction de vos jours de livraison . Merci'
minAmount: 'Verdnatura vous rappelle : minAmount: 'Verdnatura vous rappelle :
Montant minimum nécessaire de 50 euros pour recevoir la commande { orderId } livraison { landing }. Montant minimum nécessaire de 50 euros pour recevoir la commande { orderId } livraison { landing }.

View File

@ -127,7 +127,7 @@ function cancel({ cancel }) {
</QPopupEdit> </QPopupEdit>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
New amount: Nuevo importe New amount: Nuevo importe
Update discount: Actualizar descuento Update discount: Actualizar descuento

View File

@ -0,0 +1,16 @@
import { mount } from '@cypress/vue'; import FetchData from
'../../src/components/FetchData.vue'; import axios from 'axios'; import { ref } from
'vue'; // Mock axios jest.mock('axios'); describe('FetchData Component', () => {
it('fetches data on mount when autoLoad is true', () => { const mockData = { data: [{ id:
1, name: 'Test' }] }; axios.get.mockResolvedValue(mockData); const onFetch =
cy.spy().as('onFetch'); mount(FetchData, { props: { autoLoad: true, url:
'https://api.example.com/data', }, attrs: { onFetch, }, });
cy.get('@onFetch').should('have.been.calledWith', mockData.data); }); it('does not fetch
data on mount when autoLoad is false', () => { const onFetch = cy.spy().as('onFetch');
mount(FetchData, { props: { autoLoad: false, url: 'https://api.example.com/data', },
attrs: { onFetch, }, }); cy.get('@onFetch').should('not.have.been.called'); });
it('fetches data when fetch method is called', () => { const mockData = { data: [{ id: 1,
name: 'Test' }] }; axios.get.mockResolvedValue(mockData); const onFetch =
cy.spy().as('onFetch'); const wrapper = mount(FetchData, { props: { autoLoad: false, url:
'https://api.example.com/data', }, attrs: { onFetch, }, }); wrapper.vm.fetch();
cy.get('@onFetch').should('have.been.calledWith', mockData.data); }); });

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { onBeforeMount, watch, computed, ref } from 'vue'; import { onBeforeMount, watch, computed, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import SkeletonDescriptor from 'components/ui/SkeletonDescriptor.vue'; import SkeletonDescriptor from 'src/components/ui/SkeletonDescriptor.vue';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';

View File

@ -124,7 +124,7 @@ const toggleCardCheck = (item) => {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
ID: ID ID: ID
</i18n> </i18n>

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, computed, watch, onBeforeMount } from 'vue'; import { ref, computed, watch, onBeforeMount } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import SkeletonSummary from 'components/ui/SkeletonSummary.vue'; import SkeletonSummary from 'src/components/ui/SkeletonSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
@ -111,6 +111,8 @@ function existSummary(routes) {
</template> </template>
<style lang="scss"> <style lang="scss">
@import 'src/css/quasar.variables.scss';
.summary.container { .summary.container {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -205,6 +207,8 @@ function existSummary(routes) {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.summaryHeader .vn-label-value { .summaryHeader .vn-label-value {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -2,7 +2,7 @@
import { ref } from 'vue'; import { ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnLv from 'components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import VnImg from 'src/components/ui/VnImg.vue'; import VnImg from 'src/components/ui/VnImg.vue';
import OrderCatalogItemDialog from 'pages/Order/Card/OrderCatalogItemDialog.vue'; import OrderCatalogItemDialog from 'pages/Order/Card/OrderCatalogItemDialog.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
@ -101,6 +101,8 @@ const dialog = ref(null);
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.container { .container {
max-width: 448px; max-width: 448px;
width: 100%; width: 100%;
@ -179,7 +181,7 @@ const dialog = ref(null);
} }
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
to: to to: to
price-kg: Precio por Kg price-kg: Precio por Kg

View File

@ -46,6 +46,8 @@ const tags = computed(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
@import 'src/css/quasar.variables.scss';
.fetchedTags { .fetchedTags {
align-items: center; align-items: center;
.wrap { .wrap {

View File

@ -102,7 +102,7 @@ async function confirm() {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Confirm: Confirmar Confirm: Confirmar
Are you sure you want to continue?: ¿Seguro que quieres continuar? Are you sure you want to continue?: ¿Seguro que quieres continuar?

View File

@ -1,10 +1,10 @@
<script setup> <script setup>
import { onMounted, ref, computed, watch } from 'vue'; import { onMounted, ref, computed, watch } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import toDate from 'filters/toDate'; import toDate from 'filters/toDate';
import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue'; import VnFilterPanelChip from 'src/components/ui/VnFilterPanelChip.vue';
const { t } = useI18n(); const { t } = useI18n();
const $props = defineProps({ const $props = defineProps({
@ -283,7 +283,7 @@ function sanitizer(params) {
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
No filters applied: No se han aplicado filtros No filters applied: No se han aplicado filtros
Applied filters: Filtros aplicados Applied filters: Filtros aplicados

View File

@ -8,14 +8,14 @@ import { useQuasar } from 'quasar';
import { toDateHourMin } from 'src/filters'; import { toDateHourMin } from 'src/filters';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import VnUserLink from 'components/ui/VnUserLink.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
import VnAvatar from 'components/ui/VnAvatar.vue'; import VnAvatar from 'src/components/ui/VnAvatar.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnInput from 'components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const $props = defineProps({ const $props = defineProps({
url: { type: String, default: null }, url: { type: String, default: null },
@ -205,7 +205,7 @@ onBeforeRouteLeave((to, from, next) => {
} }
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
Add note here...: Añadir nota aquí... Add note here...: Añadir nota aquí...
New note: Nueva nota New note: Nueva nota

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { onBeforeUnmount, onMounted, ref, watch } from 'vue'; import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
const { t } = useI18n(); const { t } = useI18n();
@ -245,7 +245,7 @@ defineExpose({ fetch, addFilter, paginate });
} }
</style> </style>
<i18n> <i18n lang="yml">
es: es:
No data to display: Sin datos que mostrar No data to display: Sin datos que mostrar
No results found: No se han encontrado resultados No results found: No se han encontrado resultados

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { onMounted, ref, watch } from 'vue'; import { onMounted, ref, watch } from 'vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useStateStore } from 'src/stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';

View File

@ -1,10 +1,8 @@
import { onMounted, computed } from 'vue'; import { onMounted, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import axios from 'axios'; import axios from 'axios';
import { useArrayDataStore } from 'stores/useArrayDataStore'; import { useArrayDataStore } from 'src/stores/useArrayDataStore';
import { buildFilter } from 'filters/filterPanel'; import { buildFilter } from 'src/filters/filterPanel';
const arrayDataStore = useArrayDataStore();
export function useArrayData(key = useRoute().meta.moduleName, userOptions) { export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
if (!key) throw new Error('ArrayData: A key is required to use this composable'); if (!key) throw new Error('ArrayData: A key is required to use this composable');
@ -298,3 +296,5 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
reset, reset,
}; };
} }
const arrayDataStore = useArrayDataStore();

View File

@ -1,4 +1,4 @@
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
export function useVnConfirm() { export function useVnConfirm() {

View File

@ -1,4 +1,4 @@
import isValidDate from 'filters/isValidDate'; import isValidDate from 'src/filters/isValidDate';
export default function toHour(date) { export default function toHour(date) {
if (!isValidDate(date)) { if (!isValidDate(date)) {

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import axios from 'axios'; import axios from 'axios';
@ -95,7 +95,7 @@ const onSynchronizeRoles = async () => {
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Roles synchronized!: ¡Roles sincronizados! Roles synchronized!: ¡Roles sincronizados!
Synchronizing in the background: Sincronizando en segundo plano Synchronizing in the background: Sincronizando en segundo plano

View File

@ -6,9 +6,9 @@ import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import VnConfirm from 'components/ui/VnConfirm.vue'; import VnConfirm from 'src/components/ui/VnConfirm.vue';
defineProps({ defineProps({
id: { id: {
@ -150,7 +150,7 @@ const deleteAcl = async ({ id }) => {
/> />
</template> </template>
<i18n> <i18n lang="yml">
es: es:
New ACL: Nuevo ACL New ACL: Nuevo ACL
ACL removed: ACL eliminado ACL removed: ACL eliminado

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';
const tableRef = ref(); const tableRef = ref();
@ -74,7 +74,7 @@ const columns = computed(() => [
/> />
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Id: Id Id: Id
Alias: Alias Alias: Alias

View File

@ -2,13 +2,13 @@
import { ref } from 'vue'; import { ref } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import CardList from 'src/components/ui/CardList.vue'; import CardList from 'src/components/ui/CardList.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { toDateTimeFormat } from 'src/filters/date.js'; import { toDateTimeFormat } from 'src/filters/date.js';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import { useVnConfirm } from 'composables/useVnConfirm'; import { useVnConfirm } from 'src/composables/useVnConfirm';
const { t } = useI18n(); const { t } = useI18n();
const router = useRouter(); const router = useRouter();
@ -102,7 +102,7 @@ const killSession = async ({ userId, created }) => {
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Session killed: Sesión matada Session killed: Sesión matada
Session will be killed: Se va a matar la sesión Session will be killed: Se va a matar la sesión

View File

@ -2,9 +2,9 @@
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -1,9 +1,9 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { ref, onMounted, computed } from 'vue'; import { ref, onMounted, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
@ -156,7 +156,7 @@ onMounted(async () => await getInitialLdapConfig());
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
LDAP connection established!: ¡Conexión con LDAP establecida! LDAP connection established!: ¡Conexión con LDAP establecida!
</i18n> </i18n>

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import AccountSummary from './Card/AccountSummary.vue'; import AccountSummary from './Card/AccountSummary.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import AccountFilter from './AccountFilter.vue'; import AccountFilter from './AccountFilter.vue';
@ -130,7 +130,7 @@ const exprBuilder = (param, value) => {
/> />
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Id: Id Id: Id
Nickname: Nickname Nickname: Nickname

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { ref, onMounted, computed } from 'vue'; import { ref, onMounted, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
@ -176,7 +176,7 @@ onMounted(async () => await getInitialSambaConfig());
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Samba connection established!: ¡Conexión con LDAP establecida! Samba connection established!: ¡Conexión con LDAP establecida!
</i18n> </i18n>

View File

@ -2,9 +2,9 @@
import { ref, onBeforeMount } from 'vue'; import { ref, onBeforeMount } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue'; import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnSelect from 'components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';

View File

@ -4,7 +4,7 @@ import { ref, onBeforeMount, onMounted } from 'vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
import { useValidator } from 'src/composables/useValidator'; import { useValidator } from 'src/composables/useValidator';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';

View File

@ -2,8 +2,8 @@
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModelPopup from 'components/FormModelPopup.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
@ -51,7 +51,7 @@ const onDataSaved = ({ id }) => {
</FormModelPopup> </FormModelPopup>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Create alias: Crear alias Create alias: Crear alias
</i18n> </i18n>

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnCard from 'components/common/VnCard.vue'; import VnCard from 'src/components/common/VnCard.vue';
import AliasDescriptor from './AliasDescriptor.vue'; import AliasDescriptor from './AliasDescriptor.vue';
const { t } = useI18n(); const { t } = useI18n();
</script> </script>

View File

@ -4,7 +4,7 @@ import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
@ -76,7 +76,7 @@ const removeAlias = () => {
</CardDescriptor> </CardDescriptor>
</template> </template>
<i18n> <i18n lang="yml">
en: en:
accountRate: Claming rate accountRate: Claming rate
es: es:

View File

@ -3,7 +3,7 @@ import { ref, computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'src/components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';

View File

@ -3,10 +3,10 @@ import { useRoute } from 'vue-router';
import { computed, ref, watch } from 'vue'; import { computed, ref, watch } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import { useVnConfirm } from 'composables/useVnConfirm'; import { useVnConfirm } from 'src/composables/useVnConfirm';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import axios from 'axios'; import axios from 'axios';
@ -113,7 +113,7 @@ const fetchAliases = () => paginateRef.value.fetch();
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
User will be removed from alias: El usuario será borrado del alias User will be removed from alias: El usuario será borrado del alias
Are you sure you want to continue?: ¿Seguro que quieres continuar? Are you sure you want to continue?: ¿Seguro que quieres continuar?

View File

@ -3,7 +3,7 @@ import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnSelectEnum from 'src/components/common/VnSelectEnum.vue'; import VnSelectEnum from 'src/components/common/VnSelectEnum.vue';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnCard from 'components/common/VnCard.vue'; import VnCard from 'src/components/common/VnCard.vue';
import AccountDescriptor from './AccountDescriptor.vue'; import AccountDescriptor from './AccountDescriptor.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -2,7 +2,7 @@
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
import AccountDescriptorMenu from './AccountDescriptorMenu.vue'; import AccountDescriptorMenu from './AccountDescriptorMenu.vue';
@ -108,7 +108,7 @@ const hasAccount = ref(false);
margin-top: 0; margin-top: 0;
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
accountRate: Claming rate accountRate: Claming rate
es: es:

View File

@ -2,7 +2,7 @@
import axios from 'axios'; import axios from 'axios';
import { computed, ref, toRefs } from 'vue'; import { computed, ref, toRefs } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useVnConfirm } from 'composables/useVnConfirm'; import { useVnConfirm } from 'src/composables/useVnConfirm';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useAcl } from 'src/composables/useAcl'; import { useAcl } from 'src/composables/useAcl';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';

View File

@ -3,11 +3,11 @@ import { computed, ref, watch, onMounted, nextTick } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import AccountMailAliasCreateForm from './AccountMailAliasCreateForm.vue'; import AccountMailAliasCreateForm from './AccountMailAliasCreateForm.vue';
import { useVnConfirm } from 'composables/useVnConfirm'; import { useVnConfirm } from 'src/composables/useVnConfirm';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import useNotify from 'src/composables/useNotify.js'; import useNotify from 'src/composables/useNotify.js';
import axios from 'axios'; import axios from 'axios';
@ -182,7 +182,7 @@ onMounted(async () => await getAccountData(false));
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Unsubscribed from alias!: ¡Desuscrito del alias! Unsubscribed from alias!: ¡Desuscrito del alias!
Subscribed to alias!: ¡Suscrito al alias! Subscribed to alias!: ¡Suscrito al alias!

View File

@ -4,9 +4,9 @@ import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import FormPopup from 'components/FormPopup.vue'; import FormPopup from 'src/components/FormPopup.vue';
const emit = defineEmits(['onSubmitCreateAlias']); const emit = defineEmits(['onSubmitCreateAlias']);

View File

@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import axios from 'axios'; import axios from 'axios';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'stores/useStateStore';

View File

@ -3,8 +3,8 @@ import { ref, watch } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import FetchData from 'components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -3,7 +3,7 @@ import { ref, computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'src/components/ui/CardSummary.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { computed, ref, watch } from 'vue'; import { computed, ref, watch } from 'vue';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
const props = defineProps({ const props = defineProps({
dataKey: { type: String, required: true }, dataKey: { type: String, required: true },
@ -88,7 +88,7 @@ const redirectToRoleSummary = (id) =>
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Role removed. Changes will take a while to fully propagate.: Rol eliminado. Los cambios tardaran un tiempo en propagarse completamente. Role removed. Changes will take a while to fully propagate.: Rol eliminado. Los cambios tardaran un tiempo en propagarse completamente.
Role added! Changes will take a while to fully propagate.: ¡Rol añadido! Los cambios tardaran un tiempo en propagarse completamente. Role added! Changes will take a while to fully propagate.: ¡Rol añadido! Los cambios tardaran un tiempo en propagarse completamente.

View File

@ -1,9 +1,9 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import RoleSummary from './Card/RoleSummary.vue'; import RoleSummary from './Card/RoleSummary.vue';
const route = useRoute(); const route = useRoute();
@ -107,7 +107,7 @@ const exprBuilder = (param, value) => {
/> />
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Id: Id Id: Id
Description: Descripción Description: Descripción

View File

@ -2,9 +2,9 @@
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { computed, ref, watch } from 'vue'; import { computed, ref, watch } from 'vue';
import VnPaginate from 'components/ui/VnPaginate.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
@ -87,7 +87,7 @@ const redirectToRoleSummary = (id) =>
</QPage> </QPage>
</template> </template>
<i18n> <i18n lang="yml">
es: es:
Role removed. Changes will take a while to fully propagate.: Rol eliminado. Los cambios tardaran un tiempo en propagarse completamente. Role removed. Changes will take a while to fully propagate.: Rol eliminado. Los cambios tardaran un tiempo en propagarse completamente.
Role added! Changes will take a while to fully propagate.: ¡Rol añadido! Los cambios tardaran un tiempo en propagarse completamente. Role added! Changes will take a while to fully propagate.: ¡Rol añadido! Los cambios tardaran un tiempo en propagarse completamente.

View File

@ -1,8 +1,8 @@
<script setup> <script setup>
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue'; import FormModel from 'src/components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue'; import VnRow from 'src/components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();

View File

@ -1,6 +1,6 @@
<script setup> <script setup>
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import VnCard from 'components/common/VnCard.vue'; import VnCard from 'src/components/common/VnCard.vue';
import RoleDescriptor from './RoleDescriptor.vue'; import RoleDescriptor from './RoleDescriptor.vue';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -2,7 +2,7 @@
import { ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
import axios from 'axios'; import axios from 'axios';
@ -67,7 +67,7 @@ const removeRole = async () => {
margin-top: 0; margin-top: 0;
} }
</style> </style>
<i18n> <i18n lang="yml">
en: en:
accountRate: Claming rate accountRate: Claming rate
es: es:

Some files were not shown because too many files have changed in this diff Show More