Merge branch 'dev' into 5316-kkeoEntryNotes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
3f9d711f90
|
@ -19,19 +19,17 @@
|
||||||
<div class="user-wrapper">
|
<div class="user-wrapper">
|
||||||
<div
|
<div
|
||||||
class="user vn-mt-xs"
|
class="user vn-mt-xs"
|
||||||
title="{{::log.user.nickname || 'System'}}">
|
|
||||||
<img
|
|
||||||
ng-if="::log.user.worker"
|
|
||||||
src="/api/Images/user/160x160/{{::log.user.worker.id}}/download?access_token={{::$ctrl.vnToken.token}}"
|
|
||||||
ng-click="$ctrl.showWorkerDescriptor($event, log.user.worker.id)">
|
|
||||||
</img>
|
|
||||||
<div
|
|
||||||
ng-if="::!log.user.worker"
|
|
||||||
ng-class="::{system: !log.user}"
|
ng-class="::{system: !log.user}"
|
||||||
ng-style="::$ctrl.userBgColor(log.user)"
|
ng-style="::$ctrl.userBgColor(log.user)"
|
||||||
class="user-icon">
|
title="{{::log.user.nickname || 'System'}}">
|
||||||
|
<div class="user-letter">
|
||||||
{{::log.user ? log.user.name.charAt(0).toUpperCase() : 'S'}}
|
{{::log.user ? log.user.name.charAt(0).toUpperCase() : 'S'}}
|
||||||
</div>
|
</div>
|
||||||
|
<img
|
||||||
|
ng-if="::log.user.image"
|
||||||
|
ng-src="/api/Images/user/160x160/{{::log.userFk}}/download?access_token={{::$ctrl.vnToken.token}}"
|
||||||
|
ng-click="$ctrl.showWorkerDescriptor($event, log)">
|
||||||
|
</img>
|
||||||
</div>
|
</div>
|
||||||
<div class="arrow bg-panel"></div>
|
<div class="arrow bg-panel"></div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
@ -116,12 +114,6 @@
|
||||||
<form vn-vertical
|
<form vn-vertical
|
||||||
ng-model-options="{updateOn: 'change blur'}"
|
ng-model-options="{updateOn: 'change blur'}"
|
||||||
class="vn-pa-md filter">
|
class="vn-pa-md filter">
|
||||||
<h6
|
|
||||||
class="text-secondary vn-mb-md"
|
|
||||||
style="font-weight: normal;"
|
|
||||||
translate>
|
|
||||||
Filter
|
|
||||||
</h6>
|
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
label="Name"
|
label="Name"
|
||||||
ng-model="filter.changedModelValue">
|
ng-model="filter.changedModelValue">
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default class Controller extends Section {
|
||||||
include: [{
|
include: [{
|
||||||
relation: 'user',
|
relation: 'user',
|
||||||
scope: {
|
scope: {
|
||||||
fields: ['nickname'],
|
fields: ['nickname', 'name', 'image'],
|
||||||
include: {
|
include: {
|
||||||
relation: 'worker',
|
relation: 'worker',
|
||||||
scope: {
|
scope: {
|
||||||
|
@ -120,11 +120,6 @@ export default class Controller extends Section {
|
||||||
return this.dateFilter(date, `${format} HH:mm`);
|
return this.dateFilter(date, `${format} HH:mm`);
|
||||||
}
|
}
|
||||||
|
|
||||||
showWorkerDescriptor(event, workerId) {
|
|
||||||
if (!workerId) return;
|
|
||||||
this.$.workerDescriptor.show(event.target, workerId);
|
|
||||||
}
|
|
||||||
|
|
||||||
resetFilter() {
|
resetFilter() {
|
||||||
this.$.filter = {who: 'all'};
|
this.$.filter = {who: 'all'};
|
||||||
}
|
}
|
||||||
|
@ -201,6 +196,11 @@ export default class Controller extends Section {
|
||||||
backgroundColor: '#'+ colors[hash % colors.length]
|
backgroundColor: '#'+ colors[hash % colors.length]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showWorkerDescriptor(event, log) {
|
||||||
|
if (log.user?.worker)
|
||||||
|
this.$.workerDescriptor.show(event.target, log.userFk);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngModule.vnComponent('vnLog', {
|
ngModule.vnComponent('vnLog', {
|
||||||
|
@ -229,7 +229,7 @@ const colors = [
|
||||||
'DC143C', // Red crimson
|
'DC143C', // Red crimson
|
||||||
'5681cf', // Blue steel
|
'5681cf', // Blue steel
|
||||||
'FF1493', // Ping intense
|
'FF1493', // Ping intense
|
||||||
'00d700', // Green lime
|
'02ba02', // Green lime
|
||||||
'1E90FF', // Blue sky
|
'1E90FF', // Blue sky
|
||||||
'8B008B', // Purple dark
|
'8B008B', // Purple dark
|
||||||
'cc7000', // Orange bright
|
'cc7000', // Orange bright
|
||||||
|
|
|
@ -9,6 +9,7 @@ vn-log {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
|
||||||
& > .user {
|
& > .user {
|
||||||
|
position: relative;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
|
@ -21,19 +22,20 @@ vn-log {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
img {
|
&.system {
|
||||||
display: block;
|
background-color: $color-main;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
.user-icon {
|
.user-letter {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
&.system {
|
|
||||||
background-color: $color-main;
|
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& > .arrow {
|
& > .arrow {
|
||||||
|
|
Loading…
Reference in New Issue