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
891
Issues
891
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
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
02256ad44c7f90046ffabe46ba1e662cce7d7948...1c38865e19451a89c73d05168c4c6825ae1b613a
Source
1c38865e19451a89c73d05168c4c6825ae1b613a
Select Git revision
...
Target
02256ad44c7f90046ffabe46ba1e662cce7d7948
Select Git revision
Compare
Commits (6)
(chore): further reduce rotator to 3
· 1458fa3f
Mark Harding
authored
2 days ago
1458fa3f
(chore): pass through version of frontend to XHR requests
· 3d286cd9
Mark Harding
authored
22 hours ago
3d286cd9
(chore): refresh boost feed after each batch
· 0e4667c0
Mark Harding
authored
22 hours ago
0e4667c0
(fix): cs fixes
· 0aec94c9
Mark Harding
authored
22 hours ago
0aec94c9
Merge remote-tracking branch 'origin/master' into feat/closed-channels-602
· b17d9dad
Brian Hatchet
authored
1 hour ago
b17d9dad
Merge branch 'feat/closed-channels-602' of gitlab.com:minds/front into feat/closed-channels-602
· 1c38865e
Brian Hatchet
authored
1 hour ago
1c38865e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
client.service.ts
src/app/common/api/client.service.ts
+2
-0
boost-rotator.component.ts
...modules/newsfeed/boost-rotator/boost-rotator.component.ts
+2
-2
subscribed.component.html
src/app/modules/newsfeed/feeds/subscribed.component.html
+1
-1
client.ts
src/app/services/api/client.ts
+2
-0
No files found.
src/app/common/api/client.service.ts
View file @
1c38865e
import
{
Cookie
}
from
'
../../services/cookie
'
;
import
{
HttpClient
,
HttpHeaders
}
from
'
@angular/common/http
'
;
import
{
environment
}
from
'
../../../environments/environment
'
;
/**
* API Class
...
...
@@ -68,6 +69,7 @@ export class MindsHttpClient {
const
headers
=
new
HttpHeaders
({
'
X-XSRF-TOKEN
'
:
XSRF_TOKEN
,
'
X-VERSION
'
:
environment
.
version
,
});
return
Object
.
assign
(
options
,
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/boost-rotator/boost-rotator.component.ts
View file @
1c38865e
...
...
@@ -122,6 +122,7 @@ export class NewsfeedBoostRotatorComponent {
load
()
{
try
{
this
.
feedsService
.
clear
();
// Fresh each time
this
.
feedsService
.
setEndpoint
(
'
api/v2/boost/feed
'
)
.
setParams
({
...
...
@@ -262,8 +263,7 @@ export class NewsfeedBoostRotatorComponent {
if
(
this
.
currentPosition
+
1
>
this
.
boosts
.
length
-
1
)
{
//this.currentPosition = 0;
try
{
this
.
feedsService
.
fetch
();
this
.
feedsService
.
loadMore
();
this
.
load
();
this
.
currentPosition
++
;
}
catch
(
e
)
{
this
.
currentPosition
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/feeds/subscribed.component.html
View file @
1c38865e
...
...
@@ -24,7 +24,7 @@
></minds-activity>
<m-newsfeed--boost-rotator
interval=
"
4
"
interval=
"
3
"
*ngIf=
"showBoostRotator"
></m-newsfeed--boost-rotator>
...
...
This diff is collapsed.
Click to expand it.
src/app/services/api/client.ts
View file @
1c38865e
import
{
Cookie
}
from
'
../cookie
'
;
import
{
HttpClient
,
HttpHeaders
}
from
'
@angular/common/http
'
;
import
{
environment
}
from
'
../../../environments/environment
'
;
/**
* API Class
...
...
@@ -175,6 +176,7 @@ export class Client {
const
headers
=
new
HttpHeaders
({
'
X-XSRF-TOKEN
'
:
XSRF_TOKEN
,
'
X-VERSION
'
:
environment
.
version
,
});
return
Object
.
assign
(
options
,
{
...
...
This diff is collapsed.
Click to expand it.