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
864
Issues
864
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
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
03f9518289bfe1e524d25bcbce84c1364fa7f3bb...423444146a104c1044c2309311e2a59e89c333cd
Source
423444146a104c1044c2309311e2a59e89c333cd
Select Git revision
...
Target
03f9518289bfe1e524d25bcbce84c1364fa7f3bb
Select Git revision
Compare
Commits (2)
(fix): send hashtag to endpoint
· a0700d65
Marcelo Rivera
authored
16 minutes ago
a0700d65
(fix): categories styling
· 42344414
Marcelo Rivera
authored
13 minutes ago
42344414
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
10 deletions
+32
-10
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+2
-2
channel.component.ts
src/app/modules/pro/channel/channel.component.ts
+1
-1
list-modal.component.ts
...pp/modules/pro/channel/list-modal/list-modal.component.ts
+23
-2
list.component.ts
src/app/modules/pro/channel/list/list.component.ts
+6
-5
No files found.
src/app/modules/pro/channel/channel.component.scss
View file @
42344414
...
...
@@ -112,12 +112,12 @@ m-pro--channel {
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
justify-content
:
space-arou
nd
;
justify-content
:
flex-e
nd
;
.m-proChannel__category
{
cursor
:
pointer
;
color
:
var
(
--
text-color
);
padding
:
0
8
px
;
padding
:
0
16
px
;
&
.m-proChannel__selectedCategory
{
color
:
var
(
--
primary-color
);
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.ts
View file @
42344414
...
...
@@ -189,7 +189,7 @@ export class ProChannelComponent implements OnInit, OnDestroy {
search
()
{
if
(
!
this
.
currentURL
)
{
this
.
currentURL
=
`/pro/
${
this
.
channel
.
username
}
/articles`
;
//TODO ADD /TOP when algorithm is enable
this
.
currentURL
=
`/pro/
${
this
.
channel
.
username
}
/articles`
;
//TODO ADD /TOP when algorithm is enable
d
}
else
{
if
(
this
.
currentURL
.
includes
(
'
query
'
))
{
this
.
currentURL
=
this
.
currentURL
.
split
(
'
;
'
)[
0
];
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list-modal/list-modal.component.ts
View file @
42344414
...
...
@@ -4,6 +4,7 @@ import { FeedsService } from '../../../../common/services/feeds.service';
import
{
ProContentModalComponent
}
from
'
../content-modal/modal.component
'
;
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
OverlayModalComponent
}
from
'
../../../../common/components/overlay-modal/overlay-modal.component
'
;
import
{
Tag
}
from
"
../../../../interfaces/entities
"
;
@
Component
({
selector
:
'
m-pro--channel-list-modal
'
,
...
...
@@ -19,13 +20,16 @@ export class ProChannelListModal {
query
:
string
;
hashtag
:
Tag
;
parent
:
HTMLDivElement
;
@
ViewChild
(
'
overlayModal
'
,
{
static
:
true
})
protected
overlayModal
:
OverlayModalComponent
;
set
data
({
type
,
query
})
{
set
data
({
type
,
query
,
hashtag
})
{
this
.
type
=
type
;
this
.
query
=
query
;
this
.
hashtag
=
hashtag
;
}
constructor
(
...
...
@@ -50,9 +54,26 @@ export class ProChannelListModal {
this
.
detectChanges
();
let
url
=
`api/v2/feeds/channel/
${
this
.
channelService
.
currentChannel
.
guid
}
/
${
this
.
type
}
/
${
this
.
algorithm
}
`
;
let
params
=
[];
if
(
this
.
query
&&
this
.
query
!==
''
)
{
params
.
push
(
`query=
${
this
.
query
}
`
);
}
if
(
this
.
hashtag
)
{
params
.
push
(
`hashtags=
${
this
.
hashtag
.
tag
}
`
);
}
if
(
params
.
length
>
0
)
{
url
+=
'
?
'
+
params
.
join
(
'
&
'
);
}
try
{
this
.
feedsService
.
setEndpoint
(
`api/v2/feeds/channel/
${
this
.
channelService
.
currentChannel
.
guid
}
/
${
this
.
type
}
/
${
this
.
algorithm
}
`
)
.
setEndpoint
(
url
)
.
setLimit
(
12
)
.
fetch
();
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.ts
View file @
42344414
...
...
@@ -123,20 +123,20 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
this
.
detectChanges
();
let
search
=
[];
let
params
=
[];
if
(
this
.
selectedHashtag
)
{
search
.
push
(
`hashtags=
${
this
.
selectedHashtag
.
tag
}
`
);
params
.
push
(
`hashtags=
${
this
.
selectedHashtag
.
tag
}
`
);
}
if
(
this
.
query
&&
(
this
.
query
!==
''
))
{
search
.
push
(
`&period=
${
this
.
period
}
&all=1&query=
${
this
.
query
}
&nsfw=&sync=1&limit=150&as_activities=1&from_timestamp=`
);
params
.
push
(
`&period=
${
this
.
period
}
&all=1&query=
${
this
.
query
}
&nsfw=&sync=1&limit=150&as_activities=1&from_timestamp=`
);
}
let
url
=
`api/v2/feeds/channel/
${
this
.
channelService
.
currentChannel
.
guid
}
/
${
this
.
type
}
/
${
this
.
algorithm
}
`
;
if
(
search
.
length
>
0
)
{
url
+=
'
?
'
+
search
.
join
(
'
&
'
);
if
(
params
.
length
>
0
)
{
url
+=
'
?
'
+
params
.
join
(
'
&
'
);
}
try
{
...
...
@@ -165,6 +165,7 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
type
:
this
.
type
,
algorithm
:
'
latest
'
,
query
:
this
.
query
,
hashtag
:
this
.
selectedHashtag
},
{
class
:
'
m-overlayModal--seeMore
'
...
...
This diff is collapsed.
Click to expand it.