Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
861
Issues
861
List
Boards
Labels
Service Desk
Milestones
Merge Requests
52
Merge Requests
52
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
5200343a41df0f47fd93a5a9f2bf9f7998b22935...430dc28f5cfb8b3b3f86ab9e24311031162a9da3
Source
430dc28f5cfb8b3b3f86ab9e24311031162a9da3
Select Git revision
...
Target
5200343a41df0f47fd93a5a9f2bf9f7998b22935
Select Git revision
Compare
Commits (3)
(fix): Navbar skewed on Firefox
· 0692030d
Emiliano Balbuena
authored
3 hours ago
0692030d
(feat): Homepage categories
· 7e0f76a3
Emiliano Balbuena
authored
3 hours ago
7e0f76a3
(chore): Revamp subscribe button
· 430dc28f
Emiliano Balbuena
authored
3 hours ago
430dc28f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
27 deletions
+48
-27
categories.component.html
.../modules/pro/channel/categories/categories.component.html
+8
-0
categories.component.ts
...pp/modules/pro/channel/categories/categories.component.ts
+13
-14
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+9
-5
channel.service.ts
src/app/modules/pro/channel/channel.service.ts
+0
-2
home.component.html
src/app/modules/pro/channel/home/home.component.html
+5
-0
home.component.scss
src/app/modules/pro/channel/home/home.component.scss
+6
-4
home.component.ts
src/app/modules/pro/channel/home/home.component.ts
+7
-1
list.component.html
src/app/modules/pro/channel/list/list.component.html
+0
-1
No files found.
src/app/modules/pro/channel/categories/categories.component.html
0 → 100644
View file @
430dc28f
<div
class=
"m-proChannel__category"
[class.m-proChannel__selectedCategory]=
"!!tag.selected"
(click)=
"selectTag(tag)"
*ngFor=
"let tag of tags"
>
{{tag.label}}
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/categories/categories.component.ts
View file @
430dc28f
...
...
@@ -5,28 +5,17 @@ import { MindsUser, Tag } from "../../../../interfaces/entities";
@
Component
({
selector
:
'
m-pro--channel--categories
'
,
template
:
`
<div
class="m-proChannel__category"
[class.m-proChannel__selectedCategory]="!!tag.selected"
(click)="selectTag(tag)"
*ngFor="let tag of channel.pro_settings.tag_list"
>
{{tag.label}}
</div>
`
,
templateUrl
:
'
categories.component.html
'
,
changeDetection
:
ChangeDetectionStrategy
.
OnPush
,
})
export
class
ProCategoriesComponent
{
@
Input
()
type
:
string
;
@
Input
()
params
:
any
=
{};
@
Input
()
set
selectedHashtag
(
value
:
string
)
{
this
.
selectTag
(
value
,
false
);
}
@
Input
()
showAllTag
:
boolean
=
true
;
@
Output
()
onSelectTag
:
EventEmitter
<
string
|
null
>
=
new
EventEmitter
<
string
|
null
>
();
get
channel
():
MindsUser
{
...
...
@@ -55,6 +44,16 @@ export class ProCategoriesComponent {
}
}
get
tags
()
{
const
tags
=
this
.
channel
.
pro_settings
.
tag_list
.
concat
([]);
if
(
this
.
showAllTag
)
{
tags
.
unshift
({
label
:
'
All
'
,
tag
:
'
all
'
,
selected
:
false
});
}
return
tags
;
}
detectChanges
()
{
this
.
cd
.
markForCheck
();
this
.
cd
.
detectChanges
();
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.scss
View file @
430dc28f
...
...
@@ -54,6 +54,9 @@ m-pro--channel {
min-height
:
100%
;
.m-proChannel__topbar
{
width
:
100%
;
box-sizing
:
border-box
;
grid-row
:
1
/
span
1
;
grid-column
:
1
/
span
12
;
...
...
@@ -177,19 +180,20 @@ m-pro--channel {
padding
:
12px
16px
;
font-family
:
'Roboto'
,
Helvetica
,
sans-serif
;
cursor
:
pointer
;
border
:
none
;
border-radius
:
4px
;
margin-left
:
16px
;
color
:
var
(
--
m-pro--plain-background-color
);
background-color
:
var
(
--
m-pro--primary-color
);
background
:
none
transparent
;
color
:
var
(
--
m-pro--primary-color
);
border
:
1px
solid
var
(
--
m-pro--primary-color
);
font-weight
:
600
;
&
.m-proChannelTopbar__subscribe--subscribed
{
border
:
none
;
color
:
var
(
--
m-pro--text-color
);
background-color
:
var
(
--
m-pro--plain-background-color
);
}
.m-proChannelTopbar__subscribe--label
{
opacity
:
0
.
6
5
;
opacity
:
0
.
8
5
;
}
.m-proChannelTopbar__subscribe--counter
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.service.ts
View file @
430dc28f
...
...
@@ -41,8 +41,6 @@ export class ProChannelService {
this
.
currentChannel
.
pro_settings
.
tag_list
=
[];
}
this
.
currentChannel
.
pro_settings
.
tag_list
.
unshift
({
tag
:
'
all
'
,
label
:
'
All
'
,
selected
:
false
});
this
.
featuredContent
=
null
;
return
this
.
currentChannel
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/home/home.component.html
View file @
430dc28f
<div
class=
"m-pro--channel-home"
>
<m-pro--channel--categories
[showAllTag]=
"false"
[selectedHashtag]=
"''"
(onSelectTag)=
"navigateToCategory($event)"
></m-pro--channel--categories>
<div
class=
"m-pro--channel-home--section"
*ngIf=
"featuredContent?.length"
>
<div
class=
"m-pro--channel-home--featured-content"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/home/home.component.scss
View file @
430dc28f
.m-pro--channel-home
{
margin-top
:
72px
;
m-pro--channel--categories
{
margin
:
16px
0
32px
;
}
.m-pro--channel-home--section
{
margin-
top
:
72px
;
margin-
bottom
:
72px
;
&
:
fir
st-child
{
margin-
top
:
0
;
&
:
la
st-child
{
margin-
bottom
:
0
;
}
>
h2
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/home/home.component.ts
View file @
430dc28f
import
{
ChangeDetectionStrategy
,
ChangeDetectorRef
,
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Router
}
from
'
@angular/router
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
ProChannelService
}
from
'
../channel.service
'
;
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
Observable
}
from
'
rxjs
'
;
@
Component
({
selector
:
'
m-pro--channel-home
'
,
...
...
@@ -22,6 +23,7 @@ export class ProChannelHomeComponent implements OnInit {
moreData
:
boolean
=
true
;
constructor
(
protected
router
:
Router
,
protected
channelService
:
ProChannelService
,
protected
modalService
:
OverlayModalService
,
protected
cd
:
ChangeDetectorRef
,
...
...
@@ -74,6 +76,10 @@ export class ProChannelHomeComponent implements OnInit {
return
this
.
channelService
.
open
(
entity
,
this
.
modalService
);
}
navigateToCategory
(
tag
)
{
this
.
router
.
navigate
(
this
.
channelService
.
getRouterLink
(
'
all
'
,
{
hashtag
:
tag
}));
}
get
settings
()
{
return
this
.
channelService
.
currentChannel
&&
this
.
channelService
.
currentChannel
.
pro_settings
;
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.html
View file @
430dc28f
<m-pro--channel--categories
[type]=
"paramsType"
[selectedHashtag]=
"selectedHashtag"
(onSelectTag)=
"selectHashtag($event)"
[style.visibility]=
"shouldShowCategories ? 'visible' : 'hidden'"
...
...
This diff is collapsed.
Click to expand it.