Revert "nuova veste grafica: myskills, mygoods, mybachecas, myhosps,"
This reverts commit 6fad472211.
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
ITodo,
|
||||
IUserFields,
|
||||
Privacy,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport, ISpecialField, IAccount, IMyCircuit, ISendCoin, IMovement, IMovVisu, INotif, IMyElem, IMyCard, ILabelValue, ILabelValueStr, IAnim, ILang, IGroupShort, IPagination, IFavorite, IBookmark,
|
||||
TipoVisu, IGroup, IMySkill, IMyBacheca, IImgGallery, IMsgGlobParam, IUserExport, ISpecialField, IAccount, IMyCircuit, ISendCoin, IMovement, IMovVisu, INotif, IMyElem, IMyCard, ILabelValue, ILabelValueStr, IAnim, ILang, IGroupShort, IPagination,
|
||||
} from '@model'
|
||||
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
@@ -116,19 +116,7 @@ export const tools = {
|
||||
'teal',
|
||||
'lime',
|
||||
'orange',
|
||||
'deep-orange',
|
||||
'yellow',
|
||||
'blue',
|
||||
'green',
|
||||
'purple',
|
||||
'deep-purple',
|
||||
'indigo',
|
||||
'light-blue',
|
||||
'cyan',
|
||||
'teal',
|
||||
'lime',
|
||||
'orange',
|
||||
'deep-orange',
|
||||
'deeporange',
|
||||
'yellow',
|
||||
],
|
||||
|
||||
@@ -4204,7 +4192,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
scrollToTopAll() {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo(0,0);
|
||||
},
|
||||
scrollToTop() {
|
||||
const element = document.getElementById('mypage')
|
||||
@@ -4524,16 +4512,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
getlinkhref(mylink: string, text: string) {
|
||||
if (mylink) {
|
||||
if (!mylink.startsWith('http')) {
|
||||
mylink = 'https://' + mylink
|
||||
}
|
||||
|
||||
return '<a href="' + mylink + '" target="_blank">' + text + '</a>'
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
||||
return '<a href="' + mylink + '" target="_blank">' + text + '</a>'
|
||||
},
|
||||
|
||||
getNationsByNationality(nat: string) {
|
||||
@@ -5036,7 +5015,7 @@ export const tools = {
|
||||
}
|
||||
let add = ''
|
||||
if (aportador_solidario) {
|
||||
add = '?start=inv#' + aportador_solidario + '#ex#' + regexpire
|
||||
add = '?start=inv_' + aportador_solidario + '_ex_' + regexpire
|
||||
}
|
||||
|
||||
return mylink + add
|
||||
@@ -6365,7 +6344,7 @@ export const tools = {
|
||||
title: t('db.domanda')
|
||||
}).onOk(() => {
|
||||
|
||||
userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REMOVE_FROM_MYLIST, null, { groupname }).then((res) => {
|
||||
userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REMOVE_FROM_MYLIST, null, {groupname}).then((res) => {
|
||||
if (res && res.result) {
|
||||
if (userStore.my.profile.mycircuits && username === userStore.my.username) {
|
||||
userStore.my.profile.mycircuits = userStore.my.profile.mycircuits.filter((rec: IMyCircuit) => rec.circuitname !== circuitname)
|
||||
@@ -7057,7 +7036,6 @@ export const tools = {
|
||||
},
|
||||
|
||||
getPathByTableAndRec(table: string, rec: any) {
|
||||
|
||||
if (shared_consts.TABLES_REC_ID.includes(table)) {
|
||||
return '/' + tools.getDirectoryByTable(table) + '/' + rec['_id']
|
||||
} else if (table === toolsext.TABMYGROUPS) {
|
||||
@@ -7751,7 +7729,7 @@ export const tools = {
|
||||
|
||||
await userStore.setUserReceiveRIS(username, '').then((data) => {
|
||||
if (data.code === serv_constants.RIS_CODE_OK) {
|
||||
this.showPositiveNotif($q, t('circuit.coins_requestedris', { username }), 6000)
|
||||
this.showPositiveNotif($q, t('circuit.coins_requestedris', {username}), 6000)
|
||||
} else {
|
||||
this.showNegativeNotif($q, t('db.recfailed'))
|
||||
}
|
||||
@@ -7765,7 +7743,7 @@ export const tools = {
|
||||
|
||||
await userStore.setUserReceiveRIS('', groupname).then((data) => {
|
||||
if (data.code === serv_constants.RIS_CODE_OK) {
|
||||
this.showPositiveNotif($q, t('circuit.coins_requestedrisgroup', { groupname }), 6000)
|
||||
this.showPositiveNotif($q, t('circuit.coins_requestedrisgroup', {groupname}), 6000)
|
||||
} else {
|
||||
this.showNegativeNotif($q, t('db.recfailed'))
|
||||
}
|
||||
@@ -7779,8 +7757,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
getNumTabByTable(table: string) {
|
||||
const myrec = shared_consts.MYTABS.find((rec: any) => rec.table === table)
|
||||
return myrec ? myrec.id : -1
|
||||
return shared_consts.MYTABS.findIndex((rec: any) => rec.table === table)
|
||||
},
|
||||
|
||||
removeItemOnce(arr: any, value: any) {
|
||||
@@ -7789,39 +7766,7 @@ export const tools = {
|
||||
arr.splice(index, 1)
|
||||
}
|
||||
return arr;
|
||||
},
|
||||
|
||||
indexOfObject(arr: any, obj: any) {
|
||||
let l = arr.length, i, k, ok;
|
||||
for (let i = 0; i < l; i++) {
|
||||
ok = true;
|
||||
for (k in obj) if (obj.hasOwnProperty(k)) {
|
||||
if (arr[i][k] !== obj[k]) {
|
||||
ok = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ok) return i;
|
||||
}
|
||||
return -1; // no match
|
||||
},
|
||||
|
||||
removeIObjectOnce(arr: any, obj: IBookmark | IFavorite) {
|
||||
const index = this.indexOfObject(arr, obj)
|
||||
if (index > -1) {
|
||||
arr.splice(index, 1)
|
||||
}
|
||||
return arr;
|
||||
},
|
||||
|
||||
optionsTable(table: string) {
|
||||
if (shared_consts.TABLES_FAVORITE_BOOKMARK.includes(table))
|
||||
return shared_consts.OPTIONS_ADD_COUNT_FAVORITE
|
||||
|
||||
return 0
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
// FINE !
|
||||
|
||||
|
||||
Reference in New Issue
Block a user