Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
382
Merge Requests
61
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
f7799044
Commit
f7799044
authored
1 hour ago
by
Mark Harding
Browse files
Options
Download
(chore): cleanup
parent
e587a303
feat/2511-activity-v2
No related merge requests found
Pipeline
#115211564
failed with stages
in 11 minutes and 34 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
64 deletions
+17
-64
src/app/modules/newsfeed/activity/activity.component.scss
View file @
f7799044
...
...
@@ -13,6 +13,12 @@ m-activity {
@include
m-theme
()
{
background
:
themed
(
$m-bgColor--primary
);
}
.m-comment
.minds-avatar
{
@include
m-theme
()
{
background
:
themed
(
$m-bgColor--primary
);
}
}
}
.m-activity--fixedHeight
{
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/activity.component.ts
View file @
f7799044
import
{
Component
,
HostListener
,
ViewChild
,
Input
,
HostBinding
,
}
from
'
@angular/core
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
Component
,
Input
,
HostBinding
}
from
'
@angular/core
'
;
import
{
ActivityService
as
ActivityServiceCommentsLegacySupport
}
from
'
../../../common/services/activity.service
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
ActivityService
}
from
'
./activity.service
'
;
@
Component
({
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/menu/menu.component.ts
View file @
f7799044
import
{
Component
,
HostListener
,
ViewChild
,
Input
,
ElementRef
,
}
from
'
@angular/core
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
Router
}
from
'
@angular/router
'
;
import
{
ActivityService
,
ActivityEntity
}
from
'
../activity.service
'
;
import
{
ConfigsService
}
from
'
../../../../common/services/configs.service
'
;
import
{
Session
}
from
'
../../../../services/session
'
;
import
{
MindsUser
,
MindsGroup
}
from
'
../../../../interfaces/entities
'
;
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
MediaModalComponent
}
from
'
../../../media/modal/modal.component
'
;
@
Component
({
selector
:
'
m-activity__menu
'
,
...
...
@@ -24,11 +13,7 @@ export class ActivityMenuComponent {
entity
:
ActivityEntity
;
constructor
(
public
service
:
ActivityService
,
private
overlayModal
:
OverlayModalService
,
private
router
:
Router
)
{}
constructor
(
public
service
:
ActivityService
,
private
router
:
Router
)
{}
ngOnInit
()
{
this
.
entitySubscription
=
this
.
service
.
entity$
.
subscribe
(
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/metrics/metrics.component.ts
View file @
f7799044
import
{
Component
,
HostListener
,
ViewChild
,
Input
,
ElementRef
,
}
from
'
@angular/core
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
ActivityService
,
ActivityEntity
}
from
'
../activity.service
'
;
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/nsfw-consent/nsfw-consent.component.scss
View file @
f7799044
...
...
@@ -41,6 +41,7 @@ m-activity__nsfwConsent {
cursor
:
pointer
;
@include
m-theme
()
{
background-color
:
themed
(
$m-bgColor--primary
);
color
:
themed
(
$m-textColor--primary
);
border-color
:
themed
(
$m-borderColor--primary
);
}
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/nsfw-consent/nsfw-consent.component.ts
View file @
f7799044
import
{
Component
,
HostListener
,
ViewChild
,
Input
,
ElementRef
,
}
from
'
@angular/core
'
;
import
{
Subscription
,
Observable
}
from
'
rxjs
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
ActivityService
,
ActivityEntity
}
from
'
../activity.service
'
;
import
{
ConfigsService
}
from
'
../../../../common/services/configs.service
'
;
import
{
Session
}
from
'
../../../../services/session
'
;
import
{
MindsUser
,
MindsGroup
}
from
'
../../../../interfaces/entities
'
;
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
MediaModalComponent
}
from
'
../../../media/modal/modal.component
'
;
import
{
map
}
from
'
rxjs/operators
'
;
import
{
NSFW_REASONS
}
from
'
../../../../common/components/nsfw-selector/nsfw-selector.service
'
;
...
...
@@ -47,11 +35,7 @@ export class ActivityNsfwConsentComponent {
})
);
constructor
(
public
service
:
ActivityService
,
private
overlayModal
:
OverlayModalService
,
private
router
:
Router
)
{}
constructor
(
public
service
:
ActivityService
)
{}
onConsentedClick
(
e
:
MouseEvent
):
void
{
this
.
service
.
isNsfwConsented$
.
next
(
true
);
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/owner-block/owner-block.component.ts
View file @
f7799044
import
{
Component
,
HostBinding
}
from
'
@angular/core
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
ActivityService
,
ActivityEntity
}
from
'
../activity.service
'
;
import
{
ConfigsService
}
from
'
../../../../common/services/configs.service
'
;
import
{
Session
}
from
'
../../../../services/session
'
;
...
...
This diff is collapsed.
src/app/modules/newsfeed/activity/toolbar/toolbar.component.ts
View file @
f7799044
import
{
Component
,
HostListener
,
ViewChild
,
Input
}
from
'
@angular/core
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
ActivityService
,
ActivityEntity
}
from
'
../activity.service
'
;
import
{
ConfigsService
}
from
'
../../../../common/services/configs.service
'
;
import
{
Session
}
from
'
../../../../services/session
'
;
import
{
MindsUser
,
MindsGroup
}
from
'
../../../../interfaces/entities
'
;
@
Component
({
selector
:
'
m-activity__toolbar
'
,
...
...
@@ -16,11 +12,7 @@ export class ActivityToolbarComponent {
entity
:
ActivityEntity
;
constructor
(
public
service
:
ActivityService
,
private
configs
:
ConfigsService
,
private
session
:
Session
)
{}
constructor
(
public
service
:
ActivityService
)
{}
ngOnInit
()
{
this
.
entitySubscription
=
this
.
service
.
entity$
.
subscribe
(
...
...
This diff is collapsed.
Please
register
or
sign in
to comment