@asd20/ui 3.2.615 → 3.2.617
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
|
@@ -371,20 +371,20 @@ export default {
|
|
|
371
371
|
) {
|
|
372
372
|
this.counter = this.counter + this.numberToShow
|
|
373
373
|
this.counter2 = this.counter2 + this.numberToShow
|
|
374
|
-
this.$emit('
|
|
374
|
+
this.$emit('stories-in-view')
|
|
375
375
|
}
|
|
376
376
|
},
|
|
377
377
|
prevSet() {
|
|
378
378
|
if (Math.ceil(this.counter2 / this.numberToShow) > 1) {
|
|
379
379
|
this.counter = this.counter - this.numberToShow
|
|
380
380
|
this.counter2 = this.counter2 - this.numberToShow
|
|
381
|
-
this.$emit('
|
|
381
|
+
this.$emit('stories-in-view')
|
|
382
382
|
}
|
|
383
383
|
},
|
|
384
384
|
reset() {
|
|
385
385
|
this.counter = 1
|
|
386
386
|
this.counter2 = 25
|
|
387
|
-
this.$emit('
|
|
387
|
+
this.$emit('stories-in-view')
|
|
388
388
|
},
|
|
389
389
|
},
|
|
390
390
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
:events="events"
|
|
73
73
|
:events-feed-props="eventsFeedProps"
|
|
74
74
|
@events-in-view="$emit('events-in-view')"
|
|
75
|
-
:stories="
|
|
75
|
+
:stories="clubStories"
|
|
76
76
|
:stories-feed-props="storiesFeedProps"
|
|
77
77
|
@stories-in-view="$emit('stories-in-view')"
|
|
78
78
|
></asd20-feeds-section>
|
|
@@ -87,13 +87,7 @@
|
|
|
87
87
|
|
|
88
88
|
<intersect @enter="$emit('stories-in-view')">
|
|
89
89
|
<div class="article-digest">
|
|
90
|
-
<h2 class="feed-title">
|
|
91
|
-
{{
|
|
92
|
-
storiesFeedProps && storiesFeedProps.title
|
|
93
|
-
? storiesFeedProps.title
|
|
94
|
-
: 'Stories & Features'
|
|
95
|
-
}}
|
|
96
|
-
</h2>
|
|
90
|
+
<h2 class="feed-title">Current Clubs & Activities</h2>
|
|
97
91
|
<div class="search-header">
|
|
98
92
|
<asd20-search-field
|
|
99
93
|
:value="keywords"
|
|
@@ -343,9 +337,11 @@ export default {
|
|
|
343
337
|
// link: c.link.replace('/stories', '/announcements'),
|
|
344
338
|
// }))
|
|
345
339
|
},
|
|
346
|
-
|
|
340
|
+
clubStories() {
|
|
347
341
|
if (!Array.isArray(this.stories)) return []
|
|
348
|
-
return this.stories
|
|
342
|
+
return this.stories
|
|
343
|
+
.filter(s => !s.categories.some(c => c.includes('Clubs:')))
|
|
344
|
+
.slice(0, 10)
|
|
349
345
|
},
|
|
350
346
|
// categoryOptions() {
|
|
351
347
|
// // get a unique array of categories with duplicates removed
|
|
@@ -374,6 +370,13 @@ export default {
|
|
|
374
370
|
// }
|
|
375
371
|
// },
|
|
376
372
|
// },
|
|
373
|
+
mounted() {
|
|
374
|
+
this.$nextTick(() => {
|
|
375
|
+
this.$emit('announcements-in-view')
|
|
376
|
+
this.$emit('events-in-view')
|
|
377
|
+
this.$emit('stories-in-view')
|
|
378
|
+
})
|
|
379
|
+
},
|
|
377
380
|
methods: {
|
|
378
381
|
nextSet() {
|
|
379
382
|
if (
|
|
@@ -382,20 +385,20 @@ export default {
|
|
|
382
385
|
) {
|
|
383
386
|
this.counter = this.counter + this.numberToShow
|
|
384
387
|
this.counter2 = this.counter2 + this.numberToShow
|
|
385
|
-
this.$emit('
|
|
388
|
+
this.$emit('stories-in-view')
|
|
386
389
|
}
|
|
387
390
|
},
|
|
388
391
|
prevSet() {
|
|
389
392
|
if (Math.ceil(this.counter2 / this.numberToShow) > 1) {
|
|
390
393
|
this.counter = this.counter - this.numberToShow
|
|
391
394
|
this.counter2 = this.counter2 - this.numberToShow
|
|
392
|
-
this.$emit('
|
|
395
|
+
this.$emit('stories-in-view')
|
|
393
396
|
}
|
|
394
397
|
},
|
|
395
398
|
reset() {
|
|
396
399
|
this.counter = 1
|
|
397
400
|
this.counter2 = 25
|
|
398
|
-
this.$emit('
|
|
401
|
+
this.$emit('stories-in-view')
|
|
399
402
|
},
|
|
400
403
|
},
|
|
401
404
|
}
|