Skip to content

Commit 3f13955

Browse files
authored
fixed vue sample broken person (#671)
1 parent 59ddcf9 commit 3f13955

File tree

2 files changed

+17
-36
lines changed

2 files changed

+17
-36
lines changed

samples/vue-app/src/components/LoggedInPage.vue

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<template>
22
<div id="mainPage">
33
<div id="sidePanel" v-if="showPanel">
4-
<div id="profile" @click="logout">
5-
<mgt-person person-query="me" ref="user"></mgt-person>
6-
<h3>{{ details.displayName }}</h3>
7-
<!-- TODO: Add more details here based on Issue #100 -->
8-
<span>&hellip;</span>
9-
<!--
10-
<template data-type="sign-out"><div class="menu"><img src="/exit.svg"/><div>{{ signOutText }}</div></div></template> -->
4+
<div id="profile">
5+
<mgt-person person-query="me" view="twoLines" line2-property="jobTitle"> </mgt-person>
6+
<a href="#" @click="logout">Sign Out</a>
117
</div>
128

139
<mgt-people v-pre>
@@ -93,36 +89,24 @@ export default class LoggedInPage extends Vue {
9389
#profile {
9490
color: #00188f;
9591
background-color: white;
92+
display: flex;
93+
flex-direction: column;
9694
97-
width: 408px;
98-
height: 136px;
99-
100-
cursor: pointer;
95+
width: 370px;
96+
padding: 20px;
10197
10298
box-shadow: 0px 3.4386px 10.3158px rgba(0, 0, 0, 0.11);
10399
104100
mgt-person {
105-
position: relative;
106-
top: 20px;
107-
left: 20px;
108-
109-
--avatar-size-s: 92px;
101+
--avatar-size: 92px;
110102
--avatar-border: 4px solid #00a5b0;
103+
--font-size: 24px;
104+
--font-weight: 250;
105+
--color: #00188f;
111106
}
112107
113-
h3 {
114-
margin: 0;
115-
116-
position: relative;
117-
top: -48px;
118-
left: 137px;
119-
120-
font-style: normal;
121-
font-weight: 350;
122-
font-size: 24px;
123-
line-height: 32px;
124-
125-
color: #00188f;
108+
a {
109+
margin-top: 20px;
126110
}
127111
128112
p {

samples/vue-app/tslint.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
22
"defaultSeverity": "warning",
3-
"extends": [
4-
"tslint:recommended"
5-
],
3+
"extends": ["tslint:recommended"],
64
"linterOptions": {
7-
"exclude": [
8-
"node_modules/**"
9-
]
5+
"exclude": ["node_modules/**"]
106
},
117
"rules": {
128
"quotemark": [true, "single"],
139
"indent": [true, "spaces", 2],
1410
"interface-name": false,
1511
"ordered-imports": false,
1612
"object-literal-sort-keys": false,
17-
"no-consecutive-blank-lines": false
13+
"no-consecutive-blank-lines": false,
14+
"trailing-comma": false
1815
}
1916
}

0 commit comments

Comments
 (0)