Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
9f66c106
Commit
9f66c106
authored
Mar 13, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed function __build_get_set - fix null assignment - added evetns.error
parent
1bc3d0fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
debomatic-webui/lib/config.js
debomatic-webui/lib/config.js
+14
-11
No files found.
debomatic-webui/lib/config.js
View file @
9f66c106
...
...
@@ -18,25 +18,28 @@ config.web.footer = "Fork me on github.com"
config
.
web
.
autoscroll
=
true
// do not edit these ones
config
.
events
=
{}
config
.
events
.
broadcast
=
{}
config
.
events
.
broadcast
.
distributions
=
'
distributions
'
config
.
events
.
broadcast
.
status_update
=
'
status_update
'
// DO NOT EDIT these ones
function
__build_get_set
(
event_name
)
{
// A simple function to quickly have
// get and set strings for client events
function
_event_get_set
(
event_name
)
{
return
{
set
:
event_name
,
get
:
'
get_
'
+
event_name
}
}
config
.
events
=
{}
config
.
events
.
error
=
'
error
'
config
.
events
.
broadcast
=
{}
config
.
events
.
broadcast
.
distributions
=
'
distributions
'
config
.
events
.
broadcast
.
status_update
=
'
status_update
'
config
.
events
.
client
=
{}
config
.
events
.
client
.
distribution_packages
=
_
_build
_get_set
(
'
distribution_packages
'
)
config
.
events
.
client
.
distribution_packages
=
_
event
_get_set
(
'
distribution_packages
'
)
config
.
events
.
client
.
distribution_packages
.
status
=
'
package_status
'
config
.
events
.
client
.
package_files_list
=
_
_build
_get_set
(
'
package_files_list
'
)
config
.
events
.
client
.
file
=
_
_build
_get_set
(
'
file
'
)
config
.
events
.
client
.
package_files_list
=
_
event
_get_set
(
'
package_files_list
'
)
config
.
events
.
client
.
file
=
_
event
_get_set
(
'
file
'
)
config
.
events
.
client
.
file_newcontent
=
'
file_newcontent
'
config
.
events
.
client
.
status
=
'
status
'
...
...
@@ -50,6 +53,6 @@ config.status.package.successed = 'build-successed'
config
.
web
.
paths
=
config
.
routes
config
.
web
.
events
=
config
.
events
config
.
web
.
status
=
config
.
status
config
.
web
.
hostname
=
config
.
host
+
((
config
.
port
==
80
)
?
null
:
'
:
'
+
config
.
port
)
config
.
web
.
hostname
=
config
.
host
+
((
config
.
port
==
80
)
?
''
:
'
:
'
+
config
.
port
)
module
.
exports
=
config
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment