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
841
Issues
841
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
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
Compare Revisions
8d48e84245e7a10b5833f345c6a18665fb4d18b0...fee7b64b1910dd40427ed5e3490a739ce486fb9f
Source
fee7b64b1910dd40427ed5e3490a739ce486fb9f
Select Git revision
...
Target
8d48e84245e7a10b5833f345c6a18665fb4d18b0
Select Git revision
Compare
Commits (3)
(fix): styling issues for See More when it's the second element
· 13685d2f
Marcelo Rivera
authored
4 hours ago
13685d2f
(fix): hide feeds link for now
· a2154205
Marcelo Rivera
authored
2 hours ago
a2154205
(feat): groups tile
· fee7b64b
Marcelo Rivera
authored
53 minutes ago
fee7b64b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
26 deletions
+38
-26
newsfeed.module.ts
src/app/modules/newsfeed/newsfeed.module.ts
+1
-0
channel.component.html
src/app/modules/pro/channel/channel.component.html
+1
-1
list.component.html
src/app/modules/pro/channel/list/list.component.html
+10
-6
list.component.scss
src/app/modules/pro/channel/list/list.component.scss
+24
-1
list.component.ts
src/app/modules/pro/channel/list/list.component.ts
+0
-18
pro.module.ts
src/app/modules/pro/pro.module.ts
+2
-0
No files found.
src/app/modules/newsfeed/newsfeed.module.ts
View file @
fee7b64b
...
...
@@ -92,6 +92,7 @@ const routes: Routes = [
NewsfeedBoostRotatorComponent
,
NewsfeedEntityComponent
,
NewsfeedTilesComponent
,
NewsfeedComponent
,
],
entryComponents
:
[
NewsfeedComponent
,
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.html
View file @
fee7b64b
...
...
@@ -14,7 +14,7 @@
<a
[
routerLink
]="['/
pro
',
channel
.
username
,
'
images
']"
routerLinkActive=
"active"
i18n
>
Images
</a>
<a
[
routerLink
]="['/
pro
',
channel
.
username
,
'
articles
']"
routerLinkActive=
"active"
i18n
>
Articles
</a>
<a
[
routerLink
]="['/
pro
',
channel
.
username
,
'
groups
']"
routerLinkActive=
"active"
i18n
>
Groups
</a>
<a
[
routerLink
]="['/
pro
',
channel
.
username
,
'
feed
']"
routerLinkActive=
"active"
i18n
>
Feed
</a
>
<!-- <a [routerLink]="['/pro', channel.username, 'feed']" routerLinkActive="active" i18n>Feed</a>--
>
<a
[
routerLink
]="['/
pro
',
channel
.
username
,
'
donate
']"
routerLinkActive=
"active"
>
Donate
</a>
<ng-container
*
ngIf=
"currentUser; else authLink"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.html
View file @
fee7b64b
...
...
@@ -9,21 +9,25 @@
<div
class=
"m-proChannelList__content"
>
<ul
class=
"m-proChannelListContent__list"
>
<li
*
ngFor=
"let entity of (feedsService.feed | async)"
>
<li
*
ngFor=
"let entity of (feedsService.feed | async)
as feed
"
>
<ng-container
*
ngIf=
"type === 'images' || type === 'videos' || type === 'blogs'"
>
<m-pro--channel-tile
[
entity
]="
entity
|
async
"
></m-pro--channel-tile>
</ng-container>
<ng-container
*
ngIf=
"type === 'groups'"
>
<m-newsfeed
__entity
[
entity
]="
entity
|
async
"
>
</m-newsfeed
__entity
>
</ng-container>
</li>
<li
class=
"m-proChannelListContentList__seeMore"
[
routerLink
]="['/',
proService
.
currentChannel
.
username
]"
>
See more
</li>
<li
class=
"m-proChannelListContentList__seeMore"
(
click
)="
seeMore
()"
>
See more
</li>
</ul>
<ng-container
*
ngIf=
"type === 'activities'"
>
<pre
*
ngFor=
"let entity of (feedsService.feed | async)"
>
{{entity | async | json}}
</pre>
<!-- talk to Emi about this -->
</ng-container>
<ng-container
*
ngIf=
"type === 'groups'"
>
<pre
*
ngFor=
"let entity of (feedsService.feed | async)"
>
{{entity | async | json}}
</pre>
<!-- TODO: see if we can use old tile, or create a new one based on the old one // use name, avatar and banner -->
</ng-container>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.scss
View file @
fee7b64b
...
...
@@ -38,6 +38,26 @@ m-pro--channel-list {
justify-content
:
center
;
align-items
:
center
;
m-newsfeed__entity
{
width
:
100%
;
.m-groups--tile
{
width
:
100%
;
h3
,
i
{
color
:
#444
!
important
;
}
.m-groups--tile-block
{
margin-top
:
0
;
}
.m-groups--tile-buttons
{
padding
:
0
$minds-padding
*
2
;
}
}
}
&
.m-proChannelListContentList__seeMore
{
color
:
white
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.7
);
...
...
@@ -66,7 +86,10 @@ m-pro--channel-list {
&
:nth-child
(
2
)
{
grid-column
:
3
/
span
2
;
margin-bottom
:
$minds-padding
*
4
;
justify-content
:
flex-end
;
&
:not
(
.m-proChannelListContentList__seeMore
)
{
justify-content
:
flex-end
;
}
}
&
>
video
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.ts
View file @
fee7b64b
...
...
@@ -77,24 +77,6 @@ export class ProChannelListComponent implements OnInit {
this
.
feedsService
.
loadMore
();
}
seeMore
()
{
let
url
=
`
${
window
.
Minds
.
site_url
}${
this
.
proService
.
currentChannel
.
username
}
`
;
let
type
=
this
.
type
;
if
(
this
.
type
===
'
feed
'
)
{
type
=
null
;
}
else
if
(
this
.
type
===
'
articles
'
)
{
type
=
'
blogs
'
;
}
if
(
type
)
{
url
+=
`/
${
type
}
`
;
}
window
.
location
.
href
=
url
;
}
detectChanges
()
{
this
.
cd
.
markForCheck
();
this
.
cd
.
detectChanges
();
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/pro.module.ts
View file @
fee7b64b
...
...
@@ -12,6 +12,7 @@ import { MindsFormsModule } from "../forms/forms.module";
import
{
ProChannelListComponent
}
from
"
./channel/list/list.component
"
;
import
{
ProChannelDonateComponent
}
from
'
./channel/donate/donate.component
'
;
import
{
ProTileComponent
}
from
"
./channel/tile/tile.component
"
;
import
{
NewsfeedModule
}
from
"
../newsfeed/newsfeed.module
"
;
const
routes
:
Routes
=
[
{
...
...
@@ -39,6 +40,7 @@ const routes: Routes = [
CommonModule
,
RouterModule
.
forChild
(
routes
),
MindsFormsModule
,
NewsfeedModule
,
],
providers
:
[
ProService
,
...
...
This diff is collapsed.
Click to expand it.