Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
802
Issues
802
List
Boards
Labels
Service Desk
Milestones
Merge Requests
60
Merge Requests
60
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
3a3cd4cd
Commit
3a3cd4cd
authored
18 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): various elastic feed fixes
parent
02710e34
refactor/es-feeds
1 merge request
!373
Refactor/es feeds
Pipeline
#70053744
failed with stage
in 7 minutes and 37 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
sorted.service.ts
src/app/modules/channels/sorted/sorted.service.ts
+3
-1
sorted.component.html
src/app/modules/groups/profile/feed/sorted.component.html
+5
-3
sorted.component.ts
src/app/modules/groups/profile/feed/sorted.component.ts
+2
-2
entity.component.ts
src/app/modules/newsfeed/feeds/entity.component.ts
+3
-1
tiles.component.html
src/app/modules/newsfeed/feeds/tiles.component.html
+1
-1
No files found.
src/app/modules/channels/sorted/sorted.service.ts
View file @
3a3cd4cd
...
...
@@ -23,7 +23,9 @@ export class SortedService {
throw
new
Error
(
'
Invalid server response
'
);
}
return
response
.
entities
;
return
response
.
entities
.
map
(
entity
=>
{
return
entity
.
entity
});
}
catch
(
e
)
{
console
.
error
(
'
SortedService.getMedia
'
,
e
);
return
[];
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/groups/profile/feed/sorted.component.html
View file @
3a3cd4cd
...
...
@@ -35,8 +35,9 @@
></m-newsfeed
__tiles
>
</ng-container>
<ng-template
#
entityListView
>
<ng-container
*
ngFor=
"let entity of (feedsService.feed | async); let i = index"
>
<minds-activity
*
ng
For=
"let entity of (feedsService.feed | async); let i = index
"
*
ng
If=
"entity | async
"
class=
"mdl-card item"
[
object
]="
entity
|
async
"
[
canDelete
]="
group
['
is:owner
']
||
group
['
is:moderator
']"
...
...
@@ -48,16 +49,17 @@
<li
post-menu
class=
"mdl-menu__item"
*
ngIf=
"group['is:owner']"
*
ngIf=
"group['is:owner']
&& (entity | async)
"
(
click
)="
kick
(
entity
?.
ownerObj
)"
i18n=
"@@GROUPS__PROFILE__FEED__REMOVE_USER"
>
Remove user
</li>
</minds-activity>
</ng-container>
</ng-template>
<infinite-scroll
distance=
"25%"
(
load
)="
load
()"
(
load
)="
load
More
()"
[
moreData
]="
feedsService
.
hasMore
|
async
"
[
inProgress
]="
feedsService
.
inProgress
|
async
"
></infinite-scroll>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/groups/profile/feed/sorted.component.ts
View file @
3a3cd4cd
...
...
@@ -105,8 +105,8 @@ export class GroupProfileFeedSortedComponent {
this
.
detectChanges
();
}
load
Next
()
{
this
.
feedsService
.
setOffset
(
this
.
feedsService
.
offset
.
getValue
()
+
12
);
load
More
()
{
this
.
feedsService
.
loadMore
(
);
}
setFilter
(
type
:
string
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/feeds/entity.component.ts
View file @
3a3cd4cd
...
...
@@ -49,7 +49,9 @@ export class NewsfeedEntityComponent {
// Update the component
updateComponents
()
{
if
(
this
.
entity
.
type
===
'
user
'
||
this
.
entity
.
type
===
'
group
'
)
{
if
(
this
.
entity
&&
(
this
.
entity
.
type
===
'
user
'
||
this
.
entity
.
type
===
'
group
'
)
)
{
this
.
clear
();
const
componentFactory
=
this
.
componentFactoryResolver
.
resolveComponentFactory
(
this
.
getComponent
(
this
.
entity
.
type
));
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/feeds/tiles.component.html
View file @
3a3cd4cd
...
...
@@ -9,7 +9,7 @@
[
ngClass
]="{
'
m-newsfeed-tiles__Tile--is-mature
'
:
attachment
.
shouldBeBlurred
(
entity
)
}"
[
routerLink
]="['/
newsfeed
',
entity
.
guid
]"
>
<img
[
src
]="
getThumbnailSrc
(
entity
)"
/>
<img
[
src
]="
getThumbnailSrc
(
entity
$
|
async
)"
/>
<i
*
ngIf=
"attachment.shouldBeBlurred(entity)"
class=
"material-icons mature-icon"
>
explicit
</i>
<i
*
ngIf=
"isUnlisted(entity)"
class=
"material-icons unlisted-icon"
>
visibility_off
</i>
</a>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment