- Impostato i Font giusti e la corretta disposizione del testo e dei suoi margini.
- L'immagine del libro, se è piccolo, viene adattato alla dimensione fissa (vedere se va bene).
This commit is contained in:
@@ -1002,11 +1002,11 @@ export const colmyUserGroup = [
|
||||
AddCol({
|
||||
name: 'title', label_trans: 'reg.name',
|
||||
field_toduplicate_nospace: 'groupname',
|
||||
required: true, noshowlabel: true, maxlength: 40
|
||||
required: true, noshowlabel: true, maxlength: 50
|
||||
}),
|
||||
AddCol({
|
||||
name: 'groupname', label_trans: 'reg.groupname', required: false,
|
||||
maxlength: 30,
|
||||
maxlength: 50,
|
||||
allowchar: costanti.ALLOWCHAR_CODE,
|
||||
showLinkResult: '{site}/grp/{value}',
|
||||
showWhen: costanti.showWhen.InPage + costanti.showWhen.NewRec
|
||||
@@ -3516,7 +3516,7 @@ export const colTableCircuitComplete = [
|
||||
// AddCol({ name: 'groupnameId', label_trans: 'circuit.groupnameId', fieldtype: costanti.FieldType.select, jointable: 'mygroups' }), // da togliere poi
|
||||
AddCol({
|
||||
name: 'name', label_trans: 'circuit.name',
|
||||
maxlength: 40,
|
||||
maxlength: 50,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage
|
||||
}),
|
||||
AddCol({
|
||||
@@ -3633,12 +3633,12 @@ export const colTableCircuit = [
|
||||
AddCol({
|
||||
name: 'name', label_trans: 'circuit.name',
|
||||
required: true,
|
||||
maxlength: 40,
|
||||
maxlength: 50,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView
|
||||
}),
|
||||
AddCol({
|
||||
name: 'path', label_trans: 'circuit.path', required: true,
|
||||
maxlength: 40,
|
||||
maxlength: 50,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InView,
|
||||
allowchar: costanti.ALLOWCHAR_CODE,
|
||||
}),
|
||||
|
||||
@@ -9276,24 +9276,32 @@ export const tools = {
|
||||
return myrec
|
||||
},
|
||||
|
||||
adjustSize(optcatalogo: ICatalogo, mysize: any) {
|
||||
adjustSize(optcatalogo: ICatalogo, mysize: any, add: number = 0) {
|
||||
if (!mysize) {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Estrae l'unità di misura
|
||||
const unit = mysize.replace(/[\d.]/g, ''); // Ottiene il suffisso (es. 'px')
|
||||
const numericalValue = parseFloat(mysize) || 0; // Converti la parte numerica in float
|
||||
try {
|
||||
// Estrae l'unità di misura
|
||||
const unit = mysize.replace(/[\d.]/g, ''); // Ottiene il suffisso (es. 'px')
|
||||
const numericalValue = parseFloat(mysize) || 0; // Converti la parte numerica in float
|
||||
|
||||
let size = numericalValue; // Inizializza size con il valore numerico
|
||||
let size = numericalValue; // Inizializza size con il valore numerico
|
||||
|
||||
if (optcatalogo.printable && optcatalogo.areadistampa?.scale && optcatalogo.areadistampa?.scale > 0) {
|
||||
size = size * optcatalogo.areadistampa?.scale; // Applicare la scala se necessaria
|
||||
if (add > 0) {
|
||||
size += add
|
||||
}
|
||||
|
||||
if (optcatalogo.printable && optcatalogo.areadistampa?.scale && optcatalogo.areadistampa?.scale > 0) {
|
||||
size = size * optcatalogo.areadistampa?.scale; // Applicare la scala se necessaria
|
||||
}
|
||||
|
||||
let strfinale = `${size}${unit}`
|
||||
// console.log('mysize', mysize, ' => ', strfinale)
|
||||
return strfinale; // Restituisce il valore con il suffisso
|
||||
} catch (e) {
|
||||
return mysize
|
||||
}
|
||||
|
||||
let strfinale = `${size}${unit}`
|
||||
// console.log('mysize', mysize, ' => ', strfinale)
|
||||
return strfinale; // Restituisce il valore con il suffisso
|
||||
},
|
||||
|
||||
getValueAndSuffix(myvalue: any): {value: number, suffix: string} {
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
IStatusSkill,
|
||||
StateConnection,
|
||||
IMyScheda,
|
||||
ISchedaSingola,
|
||||
} from '@model'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import * as Types from '@src/store/Api/ApiTypes'
|
||||
@@ -116,7 +117,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
mailinglist: [],
|
||||
mypage: [],
|
||||
myelems: [],
|
||||
myscheda: [],
|
||||
myschedas: [],
|
||||
calzoom: [],
|
||||
producers: [],
|
||||
groups: [],
|
||||
@@ -277,7 +278,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return state.myelems.filter((page: IMyElem) => (page._id === idPage)).sort((a: any, b: any) => a.order - b.order)
|
||||
},
|
||||
|
||||
getMySchede: (state: IGlobalState) => (): IMyScheda[] | [] => {
|
||||
getMySchede: (state: IGlobalState) => (): ISchedaSingola[] | [] => {
|
||||
return state.myschedas
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user