Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
T
t3
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
t3
Commits
bdb94c3f
Commit
bdb94c3f
authored
17 hours ago
by
Olivia Madrid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pending changes
parent
2df5b1ea
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
10 deletions
+46
-10
trust.component.html
app/src/app/modules/trust/trust.component.html
+7
-7
trust.component.scss
app/src/app/modules/trust/trust.component.scss
+32
-0
trust.component.ts
app/src/app/modules/trust/trust.component.ts
+7
-3
No files found.
app/src/app/modules/trust/trust.component.html
View file @
bdb94c3f
...
...
@@ -23,23 +23,23 @@
<h1>
Do you trust this person?
</h1>
<div
*ngFor=
"let user of users"
class=
"userWrapper"
>
<div
class=
"userName"
>
{{ user.name }}
</div>
<div
class=
"avatarPager"
>
<div
class=
"avatar"
>
<img
[src]=
"user.avatarUrl"
/>
</div>
</div>
<div
class=
"actionBtns"
>
<div
class=
"btn btn--distrust"
(click)=
"submitVote(-1)"
>
distrust
</div>
<div
class=
"btn btn--neutral"
(click)=
"submitVote(0)"
>
neutral
</div>
<div
class=
"btn btn--trust"
(click)=
"submitVote(1)"
>
trust
</div>
</div>
<div
class=
"avatarPager"
>
<div
class=
"chevron left"
(click)=
"page(-1)"
></div>
<div
class=
"avatar"
>
<img
[src]=
"user.avatarUrl"
/>
</div>
</div>
</div>
</div>
<!-- UNLOCK VIEW -->
<div
*ngIf=
"view === 'unlock'"
class=
"view--unlock"
>
<div>
t3-verification component goes here
</div>
<!-- <t3-verification></t3-verification> -->
<t3-verification></t3-verification>
</div>
<!-- TREE VIEW -->
<div
*ngIf=
"view === 'tree'"
class=
"view--tree"
>
...
...
This diff is collapsed.
Click to expand it.
app/src/app/modules/trust/trust.component.scss
View file @
bdb94c3f
...
...
@@ -80,6 +80,11 @@ t3-trust {
font-size
:
36px
;
font-weight
:
200
;
}
.avatarPager
{
display
:
flex
;
justify-content
:
space-around
;
}
.avatar
{
padding
:
16px
;
img
{
...
...
@@ -143,3 +148,30 @@ t3-trust {
}
}
}
// UTILITY
.
chevron
:
:
before
{
border-style
:
solid
;
border-width
:
0
.25em
0
.25em
0
0
;
content
:
""
;
display
:
inline-block
;
height
:
0
.45em
;
left
:
0
.15em
;
position
:
relative
;
top
:
0
.15em
;
transform
:
rotate
(
-45deg
);
vertical-align
:
top
;
width
:
0
.45em
;
background-color
:
cadetblue
;
}
.chevron.right
:before
{
left
:
0
;
transform
:
rotate
(
45deg
);
}
.chevron.left
:before
{
left
:
0
.25em
;
transform
:
rotate
(
-135deg
);
}
This diff is collapsed.
Click to expand it.
app/src/app/modules/trust/trust.component.ts
View file @
bdb94c3f
...
...
@@ -12,6 +12,7 @@ export class T3TrustComponent implements OnInit {
view
:
string
=
'
vote
'
;
// ! TODO later: this should be 'unlock'
actorDid
:
string
=
'
000
'
;
currentVote
:
number
=
null
;
users
:
Array
<
any
>
=
[
{
...
...
@@ -36,12 +37,13 @@ export class T3TrustComponent implements OnInit {
// avatarUrl: '/assets/avatar.png'
// }
];
currentUser
:
number
;
constructor
(
public
trustService
:
T3TrustService
)
{}
ngOnInit
()
{
this
.
currentUser
=
this
.
users
[
0
].
id
;
this
.
actorDid
=
this
.
users
[
0
].
actor_did
;
// calculateScore() of this.users[0]
}
switchView
(
view
)
{
this
.
view
=
view
;
...
...
@@ -62,5 +64,7 @@ export class T3TrustComponent implements OnInit {
this
.
calculateScore
();
}
calculateScore
()
{}
calculateScore
()
{
//
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment