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
870
Issues
870
List
Boards
Labels
Service Desk
Milestones
Merge Requests
53
Merge Requests
53
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
706414c83fe659f0ccff5a08942c2ff7fc8a2f48...1c983fd9e20071230e84c0b6b6c474e6dd84bb3b
Source
1c983fd9e20071230e84c0b6b6c474e6dd84bb3b
Select Git revision
...
Target
706414c83fe659f0ccff5a08942c2ff7fc8a2f48
Select Git revision
Compare
Commits (5)
(chore): reduce console log output from sockets
· 50ef4b8a
Mark Harding
authored
23 hours ago
50ef4b8a
(fix): indexOf null error when iterating over no blocked users
· 90756b9e
Mark Harding
authored
22 hours ago
90756b9e
(chore): temporarily remove the 1y filter
· c4f8e4b0
Mark Harding
authored
21 hours ago
c4f8e4b0
(chore): use exact paths for source maps
· 6a48c5b1
Mark Harding
authored
18 hours ago
6a48c5b1
Merge remote-tracking branch 'origin/master' into feat/closed-channels-602
· 1c983fd9
Brian Hatchet
authored
1 hour ago
1c983fd9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
.gitlab-ci.yml
.gitlab-ci.yml
+5
-1
sort-selector.component.ts
...ommon/components/sort-selector/sort-selector.component.ts
+2
-2
entities.service.ts
src/app/common/services/entities.service.ts
+1
-1
sockets.ts
src/app/services/sockets.ts
+17
-8
No files found.
.gitlab-ci.yml
View file @
1c983fd9
...
...
@@ -140,7 +140,7 @@ build:production:i18n:
-
echo "Create a new release $CI_COMMIT_SHA"
-
sentry-cli releases new $CI_COMMIT_SHA
-
sentry-cli releases set-commits --auto $CI_COMMIT_SHA
-
sentry-cli releases files $CI_COMMIT_SHA upload-sourcemaps $CI_PROJECT_DIR/dist/en -x .js -x .map --validate --
verbose --rewrite --strip-common-prefix
-
sentry-cli releases files $CI_COMMIT_SHA upload-sourcemaps $CI_PROJECT_DIR/dist/en -x .js -x .map --validate --
url-prefix $SOURCEMAP_PREFIX
-
sentry-cli releases finalize $CI_COMMIT_SHA
-
echo "Finalized release for $CI_COMMIT_SHA"
...
...
@@ -160,6 +160,8 @@ prepare:review:
prepare:review:sentry:
<<
:
*sentry_prepare
variables
:
SOURCEMAP_PREFIX
:
"
~/en"
except
:
refs
:
-
master
...
...
@@ -184,6 +186,8 @@ prepare:production:
prepare:production:sentry:
<<
:
*sentry_prepare
variables
:
SOURCEMAP_PREFIX
:
"
~/front/dist/en"
only
:
refs
:
-
master
...
...
This diff is collapsed.
Click to expand it.
src/app/common/components/sort-selector/sort-selector.component.ts
View file @
1c983fd9
...
...
@@ -56,10 +56,10 @@ export class SortSelectorComponent implements OnInit, OnDestroy, AfterViewInit {
id
:
'
30d
'
,
label
:
'
30d
'
,
},
{
/*
{
id: '1y',
label: '1y'
},
},
*/
];
customTypes
:
Array
<
{
id
,
label
,
icon
?
}
>
=
[
...
...
This diff is collapsed.
Click to expand it.
src/app/common/services/entities.service.ts
View file @
1c983fd9
...
...
@@ -61,7 +61,7 @@ export class EntitiesService {
}
for
(
const
feedItem
of
feed
)
{
if
(
blockedGuids
.
indexOf
(
feedItem
.
owner_guid
)
<
0
)
if
(
!
blockedGuids
||
blockedGuids
.
indexOf
(
feedItem
.
owner_guid
)
<
0
)
entities
.
push
(
this
.
entities
.
get
(
feedItem
.
urn
));
}
...
...
This diff is collapsed.
Click to expand it.
src/app/services/sockets.ts
View file @
1c983fd9
...
...
@@ -11,6 +11,7 @@ export class SocketsService {
registered
:
boolean
=
false
;
subscriptions
:
any
=
{};
rooms
:
string
[]
=
[];
debug
:
boolean
=
false
;
static
_
(
session
:
Session
,
nz
:
NgZone
)
{
return
new
SocketsService
(
session
,
nz
);
...
...
@@ -58,20 +59,23 @@ export class SocketsService {
setUpDefaultListeners
()
{
this
.
socket
.
on
(
'
connect
'
,
()
=>
{
this
.
nz
.
run
(()
=>
{
console
.
log
(
`[ws]::connected to
${
this
.
SOCKET_IO_SERVER
}
`
);
if
(
this
.
debug
)
console
.
log
(
`[ws]::connected to
${
this
.
SOCKET_IO_SERVER
}
`
);
this
.
join
(
`
${
this
.
LIVE_ROOM_NAME
}
:
${
window
.
Minds
.
user
.
guid
}
`
);
});
});
this
.
socket
.
on
(
'
disconnect
'
,
()
=>
{
this
.
nz
.
run
(()
=>
{
console
.
log
(
`[ws]::disconnected from
${
this
.
SOCKET_IO_SERVER
}
`
);
if
(
this
.
debug
)
console
.
log
(
`[ws]::disconnected from
${
this
.
SOCKET_IO_SERVER
}
`
);
this
.
registered
=
false
;
});
});
this
.
socket
.
on
(
'
registered
'
,
(
guid
)
=>
{
console
.
log
(
'
[ws]::registered
'
);
if
(
this
.
debug
)
console
.
log
(
'
[ws]::registered
'
);
this
.
nz
.
run
(()
=>
{
this
.
registered
=
true
;
this
.
socket
.
emit
(
'
join
'
,
this
.
rooms
);
...
...
@@ -87,7 +91,8 @@ export class SocketsService {
// -- Rooms
this
.
socket
.
on
(
'
rooms
'
,
(
rooms
:
string
[])
=>
{
console
.
log
(
'
rooms
'
,
rooms
);
if
(
this
.
debug
)
console
.
log
(
'
rooms
'
,
rooms
);
this
.
nz
.
run
(()
=>
{
this
.
rooms
=
rooms
;
});
...
...
@@ -95,21 +100,24 @@ export class SocketsService {
this
.
socket
.
on
(
'
joined
'
,
(
room
:
string
,
rooms
:
string
[])
=>
{
this
.
nz
.
run
(()
=>
{
console
.
log
(
`[ws]::joined`
,
room
,
rooms
);
if
(
this
.
debug
)
console
.
log
(
`[ws]::joined`
,
room
,
rooms
);
this
.
rooms
=
rooms
;
});
});
this
.
socket
.
on
(
'
left
'
,
(
room
:
string
,
rooms
:
string
[])
=>
{
this
.
nz
.
run
(()
=>
{
console
.
log
(
`[ws]::left`
,
room
,
rooms
);
if
(
this
.
debug
)
console
.
log
(
`[ws]::left`
,
room
,
rooms
);
this
.
rooms
=
rooms
;
});
});
}
reconnect
()
{
console
.
log
(
'
[ws]::reconnect
'
);
if
(
this
.
debug
)
console
.
log
(
'
[ws]::reconnect
'
);
this
.
registered
=
false
;
this
.
socket
.
disconnect
();
...
...
@@ -119,7 +127,8 @@ export class SocketsService {
}
disconnect
()
{
console
.
log
(
'
[ws]::disconnect
'
);
if
(
this
.
debug
)
console
.
log
(
'
[ws]::disconnect
'
);
this
.
registered
=
false
;
this
.
socket
.
disconnect
();
...
...
This diff is collapsed.
Click to expand it.