0
0
Fork 0

Merge branch 'quasar-cli' of https://gitea.verdnatura.es/verdnatura/salix-front into quasar-cli

This commit is contained in:
Joan Sanchez 2022-03-11 13:02:30 +01:00
commit ebc8c0f19b
12 changed files with 496 additions and 513 deletions

View File

@ -1,15 +1,15 @@
{ {
"recommendations": [ "recommendations": [
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"editorconfig.editorconfig", "editorconfig.editorconfig",
"johnsoncodehk.volar", "johnsoncodehk.volar",
"wayou.vscode-todo-highlight" "wayou.vscode-todo-highlight"
], ],
"unwantedRecommendations": [ "unwantedRecommendations": [
"octref.vetur", "octref.vetur",
"hookyqr.beautify", "hookyqr.beautify",
"dbaeumer.jshint", "dbaeumer.jshint",
"ms-vscode.vscode-typescript-tslint-plugin" "ms-vscode.vscode-typescript-tslint-plugin"
] ]
} }

61
.vscode/settings.json vendored
View File

@ -1,31 +1,34 @@
{ {
"editor.bracketPairColorization.enabled": true, "editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true, "editor.guides.bracketPairs": true,
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": [ "editor.codeActionsOnSave": [
"source.fixAll.eslint" "source.fixAll.eslint"
], ],
"eslint.validate": [ "eslint.validate": [
"javascript", "javascript",
"javascriptreact", "javascriptreact",
"typescript", "typescript",
"vue" "vue"
], ],
"typescript.tsdk": "node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features" "editor.defaultFormatter": "vscode.typescript-language-features"
}, },
"[jsonc]": { "[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features" "editor.defaultFormatter": "vscode.json-language-features"
}, },
"[json]": { "[json]": {
"editor.defaultFormatter": "vscode.json-language-features" "editor.defaultFormatter": "vscode.json-language-features"
}, },
"[javascript]": { "[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features" "editor.defaultFormatter": "vscode.typescript-language-features"
}, },
"[vue]": { "[vue]": {
"editor.defaultFormatter": "johnsoncodehk.volar" "editor.defaultFormatter": "johnsoncodehk.volar"
} },
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
} }

2
package-lock.json generated
View File

@ -32718,4 +32718,4 @@
} }
} }
} }
} }

View File

@ -56,4 +56,4 @@
"npm": ">= 6.13.4", "npm": ">= 6.13.4",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
} }
} }

View File

@ -1,8 +1,8 @@
export interface Todo { export interface Todo {
id: number; id: number;
content: string; content: string;
} }
export interface Meta { export interface Meta {
totalCount: number; totalCount: number;
} }

View File

@ -1,16 +1,16 @@
@font-face { @font-face {
font-family: 'icomoon'; font-family: 'icomoon';
src: url('fonts/icomoon.eot?cjtmya'); src: url('fonts/icomoon.eot?cjtmya');
src: url('fonts/icomoon.eot?cjtmya#iefix') format('embedded-opentype'), src: url('fonts/icomoon.eot?cjtmya#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?cjtmya') format('truetype'), url('fonts/icomoon.ttf?cjtmya') format('truetype'), url('fonts/icomoon.woff?cjtmya') format('woff'),
url('fonts/icomoon.woff?cjtmya') format('woff'), url('fonts/icomoon.svg?cjtmya#icomoon') format('svg');
url('fonts/icomoon.svg?cjtmya#icomoon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: block; font-display: block;
} }
[class^="icon-"], [class*=" icon-"] { [class^='icon-'],
[class*=' icon-'] {
/* use !important to prevent issues with browser extensions that change fonts */ /* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important; font-family: 'icomoon' !important;
speak: never; speak: never;
@ -19,376 +19,375 @@
font-variant: normal; font-variant: normal;
text-transform: none; text-transform: none;
line-height: 1; line-height: 1;
/* Better Font Rendering =========== */ /* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-frozen:before { .icon-frozen:before {
content: "\e900"; content: '\e900';
} }
.icon-Person:before { .icon-Person:before {
content: "\e901"; content: '\e901';
} }
.icon-handmadeArtificial:before { .icon-handmadeArtificial:before {
content: "\e902"; content: '\e902';
} }
.icon-fruit:before { .icon-fruit:before {
content: "\e903"; content: '\e903';
} }
.icon-funeral:before { .icon-funeral:before {
content: "\e904"; content: '\e904';
} }
.icon-noPayMethod:before { .icon-noPayMethod:before {
content: "\e905"; content: '\e905';
} }
.icon-preserved:before { .icon-preserved:before {
content: "\e906"; content: '\e906';
} }
.icon-greenery:before { .icon-greenery:before {
content: "\e907"; content: '\e907';
} }
.icon-planta:before { .icon-planta:before {
content: "\e908"; content: '\e908';
} }
.icon-handmade:before { .icon-handmade:before {
content: "\e909"; content: '\e909';
} }
.icon-accessory:before { .icon-accessory:before {
content: "\e90a"; content: '\e90a';
} }
.icon-artificial:before { .icon-artificial:before {
content: "\e90b"; content: '\e90b';
} }
.icon-flower:before { .icon-flower:before {
content: "\e90c"; content: '\e90c';
} }
.icon-fixedPrice:before { .icon-fixedPrice:before {
content: "\e90d"; content: '\e90d';
} }
.icon-addperson:before { .icon-addperson:before {
content: "\e90e"; content: '\e90e';
} }
.icon-supplierfalse:before { .icon-supplierfalse:before {
content: "\e90f"; content: '\e90f';
} }
.icon-invoice-out:before { .icon-invoice-out:before {
content: "\e910"; content: '\e910';
} }
.icon-invoice-in:before { .icon-invoice-in:before {
content: "\e911"; content: '\e911';
} }
.icon-invoice-in-create:before { .icon-invoice-in-create:before {
content: "\e912"; content: '\e912';
} }
.icon-basketadd:before { .icon-basketadd:before {
content: "\e913"; content: '\e913';
} }
.icon-basket:before { .icon-basket:before {
content: "\e914"; content: '\e914';
} }
.icon-uniE915:before { .icon-uniE915:before {
content: "\e915"; content: '\e915';
} }
.icon-uniE916:before { .icon-uniE916:before {
content: "\e916"; content: '\e916';
} }
.icon-uniE917:before { .icon-uniE917:before {
content: "\e917"; content: '\e917';
} }
.icon-uniE918:before { .icon-uniE918:before {
content: "\e918"; content: '\e918';
} }
.icon-uniE919:before { .icon-uniE919:before {
content: "\e919"; content: '\e919';
} }
.icon-uniE91A:before { .icon-uniE91A:before {
content: "\e91a"; content: '\e91a';
} }
.icon-isTooLittle:before { .icon-isTooLittle:before {
content: "\e91b"; content: '\e91b';
} }
.icon-deliveryprices:before { .icon-deliveryprices:before {
content: "\e91c"; content: '\e91c';
} }
.icon-onlinepayment:before { .icon-onlinepayment:before {
content: "\e91d"; content: '\e91d';
} }
.icon-risk:before { .icon-risk:before {
content: "\e91e"; content: '\e91e';
} }
.icon-noweb:before { .icon-noweb:before {
content: "\e91f"; content: '\e91f';
} }
.icon-no036:before { .icon-no036:before {
content: "\e920"; content: '\e920';
} }
.icon-disabled:before { .icon-disabled:before {
content: "\e921"; content: '\e921';
} }
.icon-treatments:before { .icon-treatments:before {
content: "\e922"; content: '\e922';
} }
.icon-invoice:before { .icon-invoice:before {
content: "\e923"; content: '\e923';
} }
.icon-photo:before { .icon-photo:before {
content: "\e924"; content: '\e924';
} }
.icon-supplier:before { .icon-supplier:before {
content: "\e925"; content: '\e925';
} }
.icon-languaje:before { .icon-languaje:before {
content: "\e926"; content: '\e926';
} }
.icon-credit:before { .icon-credit:before {
content: "\e927"; content: '\e927';
} }
.icon-client:before { .icon-client:before {
content: "\e928"; content: '\e928';
} }
.icon-shipment-01:before { .icon-shipment-01:before {
content: "\e929"; content: '\e929';
} }
.icon-account:before { .icon-account:before {
content: "\e92a"; content: '\e92a';
} }
.icon-inventory:before { .icon-inventory:before {
content: "\e92b"; content: '\e92b';
} }
.icon-unavailable:before { .icon-unavailable:before {
content: "\e92c"; content: '\e92c';
} }
.icon-wiki:before { .icon-wiki:before {
content: "\e92d"; content: '\e92d';
} }
.icon-attach:before { .icon-attach:before {
content: "\e92e"; content: '\e92e';
} }
.icon-exit:before { .icon-exit:before {
content: "\e92f"; content: '\e92f';
} }
.icon-anonymous:before { .icon-anonymous:before {
content: "\e930"; content: '\e930';
} }
.icon-net:before { .icon-net:before {
content: "\e931"; content: '\e931';
} }
.icon-buyrequest:before { .icon-buyrequest:before {
content: "\e932"; content: '\e932';
} }
.icon-thermometer:before { .icon-thermometer:before {
content: "\e933"; content: '\e933';
} }
.icon-entry:before { .icon-entry:before {
content: "\e934"; content: '\e934';
} }
.icon-deletedTicket:before { .icon-deletedTicket:before {
content: "\e935"; content: '\e935';
} }
.icon-logout:before { .icon-logout:before {
content: "\e936"; content: '\e936';
} }
.icon-catalog:before { .icon-catalog:before {
content: "\e937"; content: '\e937';
} }
.icon-agency:before { .icon-agency:before {
content: "\e938"; content: '\e938';
} }
.icon-delivery:before { .icon-delivery:before {
content: "\e939"; content: '\e939';
} }
.icon-wand:before { .icon-wand:before {
content: "\e93a"; content: '\e93a';
} }
.icon-buscaman:before { .icon-buscaman:before {
content: "\e93b"; content: '\e93b';
} }
.icon-pbx:before { .icon-pbx:before {
content: "\e93c"; content: '\e93c';
} }
.icon-calendar:before { .icon-calendar:before {
content: "\e93d"; content: '\e93d';
} }
.icon-splitline:before { .icon-splitline:before {
content: "\e93e"; content: '\e93e';
} }
.icon-consignatarios:before { .icon-consignatarios:before {
content: "\e93f"; content: '\e93f';
} }
.icon-tax:before { .icon-tax:before {
content: "\e940"; content: '\e940';
} }
.icon-notes:before { .icon-notes:before {
content: "\e941"; content: '\e941';
} }
.icon-lines:before { .icon-lines:before {
content: "\e942"; content: '\e942';
} }
.icon-zone:before { .icon-zone:before {
content: "\e943"; content: '\e943';
} }
.icon-greuge:before { .icon-greuge:before {
content: "\e944"; content: '\e944';
} }
.icon-ticketAdd:before { .icon-ticketAdd:before {
content: "\e945"; content: '\e945';
} }
.icon-components:before { .icon-components:before {
content: "\e946"; content: '\e946';
} }
.icon-pets:before { .icon-pets:before {
content: "\e947"; content: '\e947';
} }
.icon-linesprepaired:before { .icon-linesprepaired:before {
content: "\e948"; content: '\e948';
} }
.icon-control:before { .icon-control:before {
content: "\e949"; content: '\e949';
} }
.icon-revision:before { .icon-revision:before {
content: "\e94a"; content: '\e94a';
} }
.icon-deaulter:before { .icon-deaulter:before {
content: "\e94b"; content: '\e94b';
} }
.icon-services:before { .icon-services:before {
content: "\e94c"; content: '\e94c';
} }
.icon-albaran:before { .icon-albaran:before {
content: "\e94d"; content: '\e94d';
} }
.icon-solunion:before { .icon-solunion:before {
content: "\e94e"; content: '\e94e';
} }
.icon-stowaway:before { .icon-stowaway:before {
content: "\e94f"; content: '\e94f';
} }
.icon-apps:before { .icon-apps:before {
content: "\e951"; content: '\e951';
} }
.icon-info:before { .icon-info:before {
content: "\e952"; content: '\e952';
} }
.icon-columndelete:before { .icon-columndelete:before {
content: "\e953"; content: '\e953';
} }
.icon-columnadd:before { .icon-columnadd:before {
content: "\e954"; content: '\e954';
} }
.icon-deleteline:before { .icon-deleteline:before {
content: "\e955"; content: '\e955';
} }
.icon-item:before { .icon-item:before {
content: "\e956"; content: '\e956';
} }
.icon-worker:before { .icon-worker:before {
content: "\e957"; content: '\e957';
} }
.icon-headercol:before { .icon-headercol:before {
content: "\e958"; content: '\e958';
} }
.icon-reserva:before { .icon-reserva:before {
content: "\e959"; content: '\e959';
} }
.icon-100:before { .icon-100:before {
content: "\e95a"; content: '\e95a';
} }
.icon-sign:before { .icon-sign:before {
content: "\e95d"; content: '\e95d';
} }
.icon-polizon:before { .icon-polizon:before {
content: "\e95e"; content: '\e95e';
} }
.icon-solclaim:before { .icon-solclaim:before {
content: "\e95f"; content: '\e95f';
} }
.icon-actions:before { .icon-actions:before {
content: "\e960"; content: '\e960';
} }
.icon-details:before { .icon-details:before {
content: "\e961"; content: '\e961';
} }
.icon-traceability:before { .icon-traceability:before {
content: "\e962"; content: '\e962';
} }
.icon-claims:before { .icon-claims:before {
content: "\e963"; content: '\e963';
} }
.icon-regentry:before { .icon-regentry:before {
content: "\e964"; content: '\e964';
} }
.icon-transaction:before { .icon-transaction:before {
content: "\e966"; content: '\e966';
} }
.icon-History:before { .icon-History:before {
content: "\e968"; content: '\e968';
} }
.icon-mana:before { .icon-mana:before {
content: "\e96a"; content: '\e96a';
} }
.icon-ticket:before { .icon-ticket:before {
content: "\e96b"; content: '\e96b';
} }
.icon-niche:before { .icon-niche:before {
content: "\e96c"; content: '\e96c';
} }
.icon-tags:before { .icon-tags:before {
content: "\e96d"; content: '\e96d';
} }
.icon-volume:before { .icon-volume:before {
content: "\e96e"; content: '\e96e';
} }
.icon-bin:before { .icon-bin:before {
content: "\e96f"; content: '\e96f';
} }
.icon-splur:before { .icon-splur:before {
content: "\e970"; content: '\e970';
} }
.icon-barcode:before { .icon-barcode:before {
content: "\e971"; content: '\e971';
} }
.icon-botanical:before { .icon-botanical:before {
content: "\e972"; content: '\e972';
} }
.icon-clone:before { .icon-clone:before {
content: "\e973"; content: '\e973';
} }
.icon-sms:before { .icon-sms:before {
content: "\e975"; content: '\e975';
} }
.icon-eye:before { .icon-eye:before {
content: "\e976"; content: '\e976';
} }
.icon-doc:before { .icon-doc:before {
content: "\e977"; content: '\e977';
} }
.icon-package:before { .icon-package:before {
content: "\e978"; content: '\e978';
} }
.icon-settings:before { .icon-settings:before {
content: "\e979"; content: '\e979';
} }
.icon-bucket:before { .icon-bucket:before {
content: "\e97a"; content: '\e97a';
} }
.icon-mandatory:before { .icon-mandatory:before {
content: "\e97b"; content: '\e97b';
} }
.icon-recovery:before { .icon-recovery:before {
content: "\e97c"; content: '\e97c';
} }
.icon-payment:before { .icon-payment:before {
content: "\e97e"; content: '\e97e';
} }
.icon-grid:before { .icon-grid:before {
content: "\e980"; content: '\e980';
} }
.icon-web:before { .icon-web:before {
content: "\e982"; content: '\e982';
} }
.icon-dfiscales:before { .icon-dfiscales:before {
content: "\e984"; content: '\e984';
} }

10
src/env.d.ts vendored
View File

@ -1,7 +1,7 @@
declare namespace NodeJS { declare namespace NodeJS {
interface ProcessEnv { interface ProcessEnv {
NODE_ENV: string; NODE_ENV: string;
VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined; VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined;
VUE_ROUTER_BASE: string | undefined; VUE_ROUTER_BASE: string | undefined;
} }
} }

View File

@ -2,31 +2,31 @@
// so you can safely delete all default props below // so you can safely delete all default props below
export default { export default {
'globals': { 'globals': {
'lang': { 'lang': {
'es': 'Spanish', 'es': 'Spanish',
'en': 'English' 'en': 'English'
}
},
'errors': {
'statusUnauthorized': 'Access denied',
'statusInternalServerError': 'An internal server error has ocurred'
},
'login': {
'title': 'Login',
'username': 'Username',
'password': 'Password',
'submit': 'Log in',
'keepLogin': 'Keep me logged in',
'loginSuccess': 'You have successfully logged in',
'loginError': 'Invalid username or password'
},
'customer': {},
'components': {
'topbar': {},
'userPanel': {
'settings': 'Settings',
'logOut': 'Log Out'
}
} }
},
'errors': {
'statusUnauthorized': 'Access denied',
'statusInternalServerError': 'An internal server error has ocurred'
},
'login': {
'title': 'Login',
'username': 'Username',
'password': 'Password',
'submit': 'Log in',
'keepLogin': 'Keep me logged in',
'loginSuccess': 'You have successfully logged in',
'loginError': 'Invalid username or password'
},
'customer': {},
'components': {
'topbar': {},
'userPanel': {
'settings': 'Settings',
'logOut': 'Log Out'
}
}
}; };

View File

@ -2,6 +2,6 @@ import en from './en';
import es from './es'; import es from './es';
export default { export default {
'en': en, 'en': en,
'es': es, 'es': es,
}; };

View File

@ -1,45 +1,28 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<title><%= productName %></title> <head>
<title>
<%= productName %>
</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="<%= productDescription %>" /> <meta name="description" content="<%= productDescription %>" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" /> <meta name="msapplication-tap-highlight" content="no" />
<meta <meta name="viewport"
name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>" />
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>"
/>
<link <link rel="icon" type="image/png" sizes="128x128" href="icons/favicon-128x128.png" />
rel="icon" <link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png" />
type="image/png" <link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
sizes="128x128" <link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png" />
href="icons/favicon-128x128.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="icons/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="icons/favicon-16x16.png"
/>
<link rel="icon" type="image/ico" href="favicon.ico" /> <link rel="icon" type="image/ico" href="favicon.ico" />
</head> </head>
<body>
<body>
<!-- DO NOT touch the following DIV --> <!-- DO NOT touch the following DIV -->
<div id="q-app"></div> <div id="q-app"></div>
</body> </body>
</html>
</html>

View File

@ -1,29 +1,27 @@
<template> <template>
<div <div class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center">
class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center" <div>
> <div style="font-size: 30vh">404</div>
<div>
<div style="font-size: 30vh">404</div>
<div class="text-h2" style="opacity: 0.4">Oops. Nothing here...</div> <div class="text-h2" style="opacity: 0.4">Oops. Nothing here...</div>
<q-btn <q-btn
class="q-mt-xl" class="q-mt-xl"
color="white" color="white"
text-color="blue" text-color="blue"
unelevated unelevated
to="/" to="/"
label="Go Home" label="Go Home"
no-caps no-caps
/> />
</div>
</div> </div>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
name: 'Error404', name: 'Error404',
}); });
</script> </script>

6
src/shims-vue.d.ts vendored
View File

@ -1,7 +1,7 @@
// Mocks all files ending in `.vue` showing them as plain Vue instances // Mocks all files ending in `.vue` showing them as plain Vue instances
/* eslint-disable */ /* eslint-disable */
declare module '*.vue' { declare module '*.vue' {
import type { DefineComponent } from 'vue'; import type { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>; const component: DefineComponent<{}, {}, any>;
export default component; export default component;
} }