Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (5)
(chore): reduce console log output from sockets
· 50ef4b8a
Mark Harding
authored
Aug 22, 2019
50ef4b8a
(fix): indexOf null error when iterating over no blocked users
· 90756b9e
Mark Harding
authored
Aug 22, 2019
90756b9e
(chore): temporarily remove the 1y filter
· c4f8e4b0
Mark Harding
authored
Aug 22, 2019
c4f8e4b0
(chore): use exact paths for source maps
· 6a48c5b1
Mark Harding
authored
Aug 22, 2019
6a48c5b1
Merge remote-tracking branch 'origin/master' into feat/closed-channels-602
· 1c983fd9
Brian Hatchet
authored
Aug 23, 2019
1c983fd9
Hide whitespace changes
Inline
Side-by-side
.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
...
...
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
?
}
>
=
[
...
...
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
));
}
...
...
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
();
...
...