jobdone-shared-files 0.0.1-beta.75 → 0.0.1-beta.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,11 +57,8 @@
57
57
  <nav class="navbar-nav navbar-main navbar-line navbar-line-lg ms-auto">
58
58
  <div class="nav-item navbar-line-item btn nav-link border-0 dropdown">
59
59
  <a class="dropdown-link" :href="rootDomain + 'Profile'">
60
- <div class="thumbnail-content thumbnail-32 rounded-circle me-1" :style="'background-image: url(' + (userInfo.picture != null ? userInfo.picture : '/dist/images/avatar-default.svg') + ');'"></div>
61
- <span class="text-user-name text-overflow">{{userInfo.displayName}}</span>
62
- <small class="d-flex ms-1">
63
- (<span class="text-user-name text-overflow">{{userInfo.lastName}} {{userInfo.firstName}}</span>)
64
- </small>
60
+ <div class="thumbnail-content thumbnail-32 rounded-circle me-1" :style="'background-image: url(' + userPicture + ');'"></div>
61
+ <span class="text-user-name text-overflow">{{userId}}</span>
65
62
  </a>
66
63
  </div>
67
64
  <div class="nav-item navbar-line-item btn nav-link border-0 dropdown">
@@ -136,8 +133,12 @@
136
133
  type: String,
137
134
  required: true
138
135
  },
139
- userInfo: {
140
- type: Object,
136
+ userId: {
137
+ type: String,
138
+ required: true
139
+ },
140
+ userPicture: {
141
+ type: String,
141
142
  required: true
142
143
  },
143
144
  logOutLink: {
@@ -263,8 +264,4 @@
263
264
  padding-left: 5.25rem;
264
265
  padding-right: 1rem;
265
266
  }
266
-
267
- .text-user-name{
268
- max-width: 5.5rem;
269
- }
270
267
  </style>
package/README.md CHANGED
@@ -57,7 +57,8 @@
57
57
  | project-id | project id | 是 |
58
58
  | api-project-apps | 取得 project module & menu | 是 |
59
59
  | api-project-info | 取得 project 資訊 | 是 |
60
- | user-info | 傳入 user 的當前名稱資訊 object,包含:displayName、lastName、firstName、picture | 是 |
60
+ | user-id | 傳入 user 的帳號 id | 是 |
61
+ | user-picture | 傳入 user 的大頭貼 | 是 |
61
62
  | log-out-link | 登出連結 | 是 |
62
63
 
63
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "0.0.1-beta.75",
3
+ "version": "0.0.1-beta.76",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {