@asd20/ui 3.2.846 → 3.2.848
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.
package/package.json
CHANGED
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
"channels": ["News & Stories"],
|
|
760
760
|
"audiences": [],
|
|
761
761
|
"ownerOrganizationId": "26eaf390-d8ab-11e9-a3a8-5de5bba4f125",
|
|
762
|
-
"images": "[]",
|
|
762
|
+
"images": "[{\"files\":[{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"name\":\"thumbnail-md\",\"width\":250,\"height\":250,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filepath\":\"message-images//thumbnail-md/Screen Shot 2020-06-29 at 8.08.34 AM_250x250.jpg\",\"filesize\":18750},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"name\":\"thumbnail-sm\",\"width\":100,\"height\":100,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filepath\":\"message-images//thumbnail-sm/Screen Shot 2020-06-29 at 8.08.34 AM_100x100.jpg\",\"filesize\":4884},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"name\":\"thumbnail-xs\",\"width\":50,\"height\":50,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filepath\":\"message-images//thumbnail-xs/Screen Shot 2020-06-29 at 8.08.34 AM_50x50.jpg\",\"filesize\":1840},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"name\":\"banner\",\"width\":800,\"height\":300,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filepath\":\"message-images//banner/Screen Shot 2020-06-29 at 8.08.34 AM_800x300.jpg\",\"filesize\":54628},{\"url\":\"https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"name\":\"full\",\"width\":1200,\"height\":800,\"filename\":\"Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filepath\":\"message-images//full/Screen Shot 2020-06-29 at 8.08.34 AM_1200x800.jpg\",\"filesize\":142032}],\"isCover\":true,\"metadata\":{\"alt\":\"A Pine Creek High School Graduate looking very self-assured.\"}}]",
|
|
763
763
|
"videos": "[{\"id\":\"0ol7e2ASbIk\",\"embedUrl\":\"https://www.youtube.com/embed/0ol7e2ASbIk\",\"watchUrl\":\"https://www.youtube.com/watch?v=0ol7e2ASbIk\",\"coverImageUrl\":\"https://img.youtube.com/vi/0ol7e2ASbIk/0.jpg\"}]",
|
|
764
764
|
"translations": "null",
|
|
765
765
|
"callsToAction": "null",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import globalpropmixinfactory from '.'
|
|
2
|
+
|
|
3
|
+
// Create a mixin to access user profile
|
|
4
|
+
const userProfileMixin = globalpropmixinfactory('userProfile', {
|
|
5
|
+
type: Object,
|
|
6
|
+
default: () => ({}),
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
// In your component
|
|
10
|
+
export default {
|
|
11
|
+
mixins: [userProfileMixin],
|
|
12
|
+
computed: {
|
|
13
|
+
userDisplayName() {
|
|
14
|
+
return this._userProfile.displayName || ''
|
|
15
|
+
},
|
|
16
|
+
userGivenName() {
|
|
17
|
+
return this._userProfile.givenName || ''
|
|
18
|
+
},
|
|
19
|
+
userJobTitle() {
|
|
20
|
+
return this._userProfile.jobTitle || ''
|
|
21
|
+
},
|
|
22
|
+
userOfficeLocation() {
|
|
23
|
+
return this._userProfile.officeLocation || ''
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
// mounted() {
|
|
27
|
+
// console.log('User Profile:', this._userProfile)
|
|
28
|
+
// },
|
|
29
|
+
}
|