Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
cf-online-ui
Compare revisions
b70ae7d6854d87d0525a27ed8632f68f1dad7e28 to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
to/cf-online-ui
Select target project
No results found
main
Select Git revision
Branches
cf2023-euro
cf2023-offline
cf2024
cf2025
main
5 results
Swap
Target
vpfafrin/cf2021
Select target project
to/cf-online-ui
vpfafrin/cf2021
2 results
b70ae7d6854d87d0525a27ed8632f68f1dad7e28
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ws/handlers/program.js
+22
-1
22 additions, 1 deletion
src/ws/handlers/program.js
typings/cf2021.d.ts
+3
-2
3 additions, 2 deletions
typings/cf2021.d.ts
with
25 additions
and
3 deletions
src/ws/handlers/program.js
View file @
9f9e00fc
import
has
from
"
lodash/has
"
;
import
{
loadPosts
}
from
"
actions/posts
"
;
import
{
markdownConverter
}
from
"
markdown
"
;
import
{
ProgramStore
}
from
"
stores
"
;
export
const
handleProgramEntryChanged
=
(
payload
)
=>
{
ProgramStore
.
update
((
state
)
=>
{
if
(
state
.
items
[
payload
.
id
])
{
const
entry
=
state
.
items
[
payload
.
id
];
if
(
entry
)
{
if
(
has
(
payload
,
"
discussion_opened
"
))
{
state
.
items
[
payload
.
id
].
discussionOpened
=
payload
.
discussion_opened
;
}
if
(
has
(
payload
,
"
title
"
))
{
state
.
items
[
payload
.
id
].
title
=
payload
.
title
;
state
.
items
[
payload
.
id
].
fullTitle
=
entry
.
number
!==
""
?
`
${
entry
.
number
}
.
${
entry
.
title
}
`
:
entry
.
title
;
}
if
(
has
(
payload
,
"
description
"
))
{
state
.
items
[
payload
.
id
].
description
=
payload
.
description
;
state
.
items
[
payload
.
id
].
htmlContent
=
markdownConverter
.
makeHtml
(
payload
.
description
,
);
}
if
(
has
(
payload
,
"
is_live
"
)
&&
payload
.
is_live
)
{
state
.
currentId
=
payload
.
id
;
}
}
});
if
(
has
(
payload
,
"
is_live
"
)
&&
payload
.
is_live
)
{
// Re-load posts - these are bound directly to the program schedule entry.
loadPosts
.
run
({},
{
respectCache
:
false
});
}
};
This diff is collapsed.
Click to expand it.
typings/cf2021.d.ts
View file @
9f9e00fc
...
...
@@ -14,9 +14,12 @@ declare namespace CF2021 {
id
:
number
;
number
:
string
;
title
:
string
;
fullTitle
:
string
;
proposer
:
string
;
speakers
:
string
;
discussionOpened
:
boolean
;
description
?:
string
;
htmlContent
?:
string
;
expectedStartAt
:
Date
;
expectedFinishAt
?:
Date
;
}
...
...
@@ -155,8 +158,6 @@ declare namespace CF2021 {
window
:
{
items
:
string
[];
itemCount
:
number
;
page
:
number
;
perPage
:
number
;
};
filters
:
PostStoreFilters
;
}
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next