Merge branch 'dev' into 2425-ticket_descriptor_menu
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-11-11 13:06:14 +00:00
commit b6f29d205c
11 changed files with 45 additions and 41 deletions

View File

@ -202,7 +202,8 @@ BEGIN
JSON_OBJECT( JSON_OBJECT(
'mysql_old_password', JSON_VALUE(t.`Priv`, '$.mysql_old_password'), 'mysql_old_password', JSON_VALUE(t.`Priv`, '$.mysql_old_password'),
'mysql_native_password', JSON_VALUE(t.`Priv`, '$.mysql_native_password'), 'mysql_native_password', JSON_VALUE(t.`Priv`, '$.mysql_native_password'),
'authentication_string', JSON_VALUE(t.`Priv`, '$.authentication_string') 'authentication_string', JSON_VALUE(t.`Priv`, '$.authentication_string'),
'ssl_type', JSON_VALUE(t.`Priv`, '$.ssl_type')
) )
) )
FROM tRole r FROM tRole r

View File

@ -1,7 +1,6 @@
@import "variables"; @import "variables";
.vn-radio { .vn-radio {
& > .btn { & > .btn {
border-radius: 50%; border-radius: 50%;
@ -26,8 +25,4 @@
&.disabled.checked > .btn > .mark { &.disabled.checked > .btn > .mark {
background-color: $color-font-secondary; background-color: $color-font-secondary;
} }
> div {
text-overflow: ellipsis;
overflow: hidden;
}
} }

View File

@ -226,7 +226,7 @@ class SyncLdap extends SyncConnector {
// Recreate roles // Recreate roles
let roles = await $.Role.find({ let roles = await $.Role.find({
fields: ['id', 'name'] fields: ['id', 'name', 'description']
}); });
let roleRoles = await $.RoleRole.find({ let roleRoles = await $.RoleRole.find({
fields: ['role', 'inheritsFrom'] fields: ['role', 'inheritsFrom']
@ -251,13 +251,12 @@ class SyncLdap extends SyncConnector {
return {key: user.roleFk, val: user.name}; return {key: user.roleFk, val: user.name};
}); });
console.log;
reqs = []; reqs = [];
for (let role of roles) { for (let role of roles) {
let newEntry = { let newEntry = {
objectClass: ['top', 'posixGroup'], objectClass: ['top', 'posixGroup'],
cn: role.name, cn: role.name,
description: role.description,
gidNumber: accountConfig.idBase + role.id gidNumber: accountConfig.idBase + role.id
}; };

View File

@ -28,6 +28,7 @@ class SyncSamba extends SyncConnector {
url: `ldaps://${sambaConfig.host}:636`, url: `ldaps://${sambaConfig.host}:636`,
tlsOptions: {rejectUnauthorized: false} tlsOptions: {rejectUnauthorized: false}
}); });
await adClient.bind(sambaConfig.adUser, sambaConfig.adPassword);
Object.assign(this, { Object.assign(this, {
sambaConfig, sambaConfig,
@ -98,8 +99,6 @@ class SyncSamba extends SyncConnector {
adClient adClient
} = this; } = this;
await adClient.bind(sambaConfig.adUser, sambaConfig.adPassword);
let opts = { let opts = {
scope: 'sub', scope: 'sub',
attributes: ['sAMAccountName'], attributes: ['sAMAccountName'],

View File

@ -143,13 +143,15 @@
ng-if="$ctrl.askOldPass" ng-if="$ctrl.askOldPass"
label="Old password" label="Old password"
ng-model="$ctrl.oldPassword" ng-model="$ctrl.oldPassword"
type="password"> type="password"
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="New password" label="New password"
ng-model="$ctrl.newPassword" ng-model="$ctrl.newPassword"
type="password" type="password"
info="{{'Password requirements' | translate:$ctrl.passRequirements}}"> info="{{'Password requirements' | translate:$ctrl.passRequirements}}"
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="Repeat password" label="Repeat password"

View File

@ -9,7 +9,7 @@
name="form" name="form"
ng-submit="watcher.submit()" ng-submit="watcher.submit()"
class="vn-w-md"> class="vn-w-md">
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg" vn-focus>
<vn-vertical> <vn-vertical>
<vn-check <vn-check
label="Enable synchronization" label="Enable synchronization"
@ -22,8 +22,7 @@
<vn-textfield <vn-textfield
label="Server" label="Server"
ng-model="$ctrl.config.server" ng-model="$ctrl.config.server"
rule="LdapConfig" rule="LdapConfig">
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="RDN" label="RDN"
@ -79,7 +78,8 @@
<tpl-body> <tpl-body>
<vn-textfield <vn-textfield
label="Username" label="Username"
ng-model="$ctrl.syncUser"> ng-model="$ctrl.syncUser"
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="Password" label="Password"

View File

@ -9,13 +9,12 @@
name="form" name="form"
ng-submit="watcher.submit()" ng-submit="watcher.submit()"
class="vn-w-md"> class="vn-w-md">
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg" vn-focus>
<vn-vertical> <vn-vertical>
<vn-textfield <vn-textfield
label="Homedir" label="Homedir"
ng-model="$ctrl.config.homedir" ng-model="$ctrl.config.homedir"
rule="AccountConfig" rule="AccountConfig">
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="Shell" label="Shell"

View File

@ -9,7 +9,7 @@
name="form" name="form"
ng-submit="watcher.submit()" ng-submit="watcher.submit()"
class="vn-w-md"> class="vn-w-md">
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg" vn-focus>
<vn-vertical> <vn-vertical>
<vn-check <vn-check
label="Enable synchronization" label="Enable synchronization"
@ -22,8 +22,7 @@
<vn-textfield <vn-textfield
label="Host" label="Host"
ng-model="$ctrl.config.host" ng-model="$ctrl.config.host"
rule="SambaConfig" rule="SambaConfig">
vn-focus>
</vn-textfield> </vn-textfield>
<vn-textfield <vn-textfield
label="SSH user" label="SSH user"

View File

@ -13,9 +13,8 @@
model="model"> model="model">
</vn-multi-check> </vn-multi-check>
</vn-th> </vn-th>
<vn-th></vn-th> <vn-th class="icon-field"></vn-th>
<vn-th></vn-th> <vn-th field="id">Id</vn-th>
<vn-th field="id" number>Id</vn-th>
<vn-th field="salesPersonFk" class="expendable">Salesperson</vn-th> <vn-th field="salesPersonFk" class="expendable">Salesperson</vn-th>
<vn-th field="shipped">Date</vn-th> <vn-th field="shipped">Date</vn-th>
<vn-th>Hour</vn-th> <vn-th>Hour</vn-th>
@ -33,48 +32,46 @@
<a ng-repeat="ticket in model.data" <a ng-repeat="ticket in model.data"
class="clickable vn-tr search-result" class="clickable vn-tr search-result"
ui-sref="ticket.card.summary({id: {{::ticket.id}}})"> ui-sref="ticket.card.summary({id: {{::ticket.id}}})">
<vn-td shrink> <vn-td>
<vn-check <vn-check
ng-model="ticket.checked" ng-model="ticket.checked"
vn-click-stop> vn-click-stop>
</vn-check> </vn-check>
</vn-td> </vn-td>
<vn-td shrink> <vn-td class="icon-field">
<vn-icon <vn-icon
ng-show="ticket.isTaxDataChecked" ng-show="::ticket.isTaxDataChecked === 0"
translate-attr="{title: 'Verified data'}" translate-attr="{title: 'No verified data'}"
class="bright" class="bright"
icon="check"> icon="icon-no036">
</vn-icon> </vn-icon>
</vn-td>
<vn-td shrink>
<vn-icon <vn-icon
ng-show="ticket.hasTicketRequest" ng-show="::ticket.hasTicketRequest"
translate-attr="{title: 'Purchase request'}" translate-attr="{title: 'Purchase request'}"
class="bright" class="bright"
icon="icon-100"> icon="icon-100">
</vn-icon> </vn-icon>
<vn-icon <vn-icon
ng-show="ticket.isAvailable === 0" ng-show="::ticket.isAvailable === 0"
translate-attr="{title: 'Not available'}" translate-attr="{title: 'Not available'}"
class="bright" class="bright"
vn-tooltip="Not available" vn-tooltip="Not available"
icon="icon-unavailable"> icon="icon-unavailable">
</vn-icon> </vn-icon>
<vn-icon <vn-icon
ng-show="ticket.isFreezed" ng-show="::ticket.isFreezed"
translate-attr="{title: 'Client frozen'}" translate-attr="{title: 'Client frozen'}"
class="bright" class="bright"
icon="icon-frozen"> icon="icon-frozen">
</vn-icon> </vn-icon>
<vn-icon <vn-icon
ng-show="ticket.risk" ng-show="::ticket.risk"
title="{{::$ctrl.$t('Risk')}}: {{ticket.risk}}" title="{{::$ctrl.$t('Risk')}}: {{ticket.risk}}"
class="bright" class="bright"
icon="icon-risk"> icon="icon-risk">
</vn-icon> </vn-icon>
</vn-td> </vn-td>
<vn-td number>{{::ticket.id}}</vn-td> <vn-td shrink>{{::ticket.id}}</vn-td>
<vn-td class="expendable"> <vn-td class="expendable">
<span <span
title="{{::ticket.userName}}" title="{{::ticket.userName}}"
@ -129,7 +126,7 @@
</vn-td> </vn-td>
<vn-td actions> <vn-td actions>
<vn-icon-button <vn-icon-button
vn-anchor="{state: 'ticket.card.sale', params: {id: ticket.id}}" vn-anchor="::{state: 'ticket.card.sale', params: {id: ticket.id}}"
vn-tooltip="Go to lines" vn-tooltip="Go to lines"
icon="icon-lines"> icon="icon-lines">
</vn-icon-button> </vn-icon-button>
@ -190,7 +187,7 @@
<vn-invoice-out-descriptor-popover <vn-invoice-out-descriptor-popover
vn-id="invoiceOutDescriptor"> vn-id="invoiceOutDescriptor">
</vn-invoice-out-descriptor-popover> </vn-invoice-out-descriptor-popover>
<vn-contextmenu vn-id="contextmenu" targets="['vn-data-viewer']" model="model" <vn-contextmenu vn-id="contextmenu" model="model"
expr-builder="$ctrl.exprBuilder(param, value)"> expr-builder="$ctrl.exprBuilder(param, value)">
<slot-menu> <slot-menu>
<vn-item translate <vn-item translate

View File

@ -9,3 +9,4 @@ Filter by selection: Filtro por selección
Exclude selection: Excluir selección Exclude selection: Excluir selección
Remove filter: Quitar filtro por selección Remove filter: Quitar filtro por selección
Remove all filters: Eliminar todos los filtros Remove all filters: Eliminar todos los filtros
No verified data: Sin datos comprobados

View File

@ -6,4 +6,16 @@ vn-ticket-index {
display: none; display: none;
} }
} }
vn-th.icon-field,
vn-th.icon-field *,
vn-td.icon-field,
vn-td.icon-field * {
padding: 0
}
vn-td.icon-field > vn-icon {
margin-left: 3px;
margin-right: 3px;
}
} }