@asd20/ui 3.2.769 → 3.2.770

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.769",
8
+ "version": "3.2.770",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -109,9 +109,8 @@ export default {
109
109
  const messageImages = Array.isArray(this.images) ? this.images : []
110
110
 
111
111
  const coverImage = messageImages.find(i => i.isCover)
112
- console.log(coverImage)
113
112
  return coverImage.metadata.alt
114
- }
113
+ },
115
114
  },
116
115
  }
117
116
  </script>
@@ -134,7 +134,12 @@ export default {
134
134
  },
135
135
  computed: {
136
136
  truncatedDescription() {
137
- return truncate(this.description, { length: 150, separator: /,? +/ })
137
+ const strippedDescription = this.description
138
+ //remove anchor tags but leave anchor text description
139
+ .replace(/<a[^>]*>(.*?)<\/a>/g, '$1')
140
+ // remove other html tags
141
+ .replace(/<[^>]+>/g, '')
142
+ return truncate(strippedDescription, { length: 150, separator: /,? +/ })
138
143
  },
139
144
  classes() {
140
145
  return {
@@ -54,7 +54,7 @@
54
54
  "uid": "MDQwMDAwMDA4MjAwRTAwMDc0QzVCNzEwMUE4MkUwMDgwMDAwMDAwMDYwMzFGM0FERjUwQkQ5MDEwMDAwMDAwMDAwMDAwMDAwMTAwMDAwMDA1NjA4MzhGNkIzMkU3OTQ1ODk2OUU1RUJDRENBM0U4Rg==",
55
55
  "type": "event",
56
56
  "summary": "First day of second semester",
57
- "description": "",
57
+ "description": "<a href='www.asd20.org'>Visit ASD20.org</a> for more information.",
58
58
  "location": "AAHS",
59
59
  "start": "2023-01-05T07:00:00Z",
60
60
  "end": "2023-01-06T07:00:00Z",