Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
RocketChat
Rocket.Chat
Commits
d1ed8b8d
Commit
d1ed8b8d
authored
9 years ago
by
Gabriel Engel
Browse files
Options
Downloads
Patches
Plain Diff
Organize settings
parent
a71f9d7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/rocketchat-lib/server/startup/settings.coffee
+7
-6
7 additions, 6 deletions
packages/rocketchat-lib/server/startup/settings.coffee
packages/rocketchat-theme/server/server.coffee
+3
-3
3 additions, 3 deletions
packages/rocketchat-theme/server/server.coffee
with
10 additions
and
9 deletions
packages/rocketchat-lib/server/startup/settings.coffee
+
7
−
6
View file @
d1ed8b8d
...
@@ -31,6 +31,8 @@ RocketChat.settings.addGroup 'Accounts', ->
...
@@ -31,6 +31,8 @@ RocketChat.settings.addGroup 'Accounts', ->
@
add
'Accounts_AvatarStoreType'
,
'GridFS'
,
{
type
:
'select'
,
values
:
[
{
key
:
'GridFS'
,
i18nLabel
:
'GridFS'
},
{
key
:
'FileSystem'
,
i18nLabel
:
'FileSystem'
}
]
}
@
add
'Accounts_AvatarStoreType'
,
'GridFS'
,
{
type
:
'select'
,
values
:
[
{
key
:
'GridFS'
,
i18nLabel
:
'GridFS'
},
{
key
:
'FileSystem'
,
i18nLabel
:
'FileSystem'
}
]
}
@
add
'Accounts_AvatarStorePath'
,
''
,
{
type
:
'string'
,
enableQuery
:
{
_id
:
'Accounts_AvatarStoreType'
,
value
:
'FileSystem'
}
}
@
add
'Accounts_AvatarStorePath'
,
''
,
{
type
:
'string'
,
enableQuery
:
{
_id
:
'Accounts_AvatarStoreType'
,
value
:
'FileSystem'
}
}
RocketChat
.
settings
.
addGroup
'oAuth'
,
->
@
section
'Facebook'
,
->
@
section
'Facebook'
,
->
@
add
'Accounts_OAuth_Facebook'
,
false
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Accounts_OAuth_Facebook'
,
false
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Accounts_OAuth_Facebook_id'
,
''
,
{
type
:
'string'
,
enableQuery
:
{
_id
:
'Accounts_OAuth_Facebook'
,
value
:
true
}
}
@
add
'Accounts_OAuth_Facebook_id'
,
''
,
{
type
:
'string'
,
enableQuery
:
{
_id
:
'Accounts_OAuth_Facebook'
,
value
:
true
}
}
...
@@ -69,6 +71,7 @@ RocketChat.settings.addGroup 'Accounts', ->
...
@@ -69,6 +71,7 @@ RocketChat.settings.addGroup 'Accounts', ->
RocketChat
.
settings
.
addGroup
'General'
,
->
RocketChat
.
settings
.
addGroup
'General'
,
->
@
add
'Site_Url'
,
__meteor_runtime_config__
?
.
ROOT_URL
,
{
type
:
'string'
,
i18nDescription
:
'Site_Url_Description'
,
public
:
true
}
@
add
'Site_Url'
,
__meteor_runtime_config__
?
.
ROOT_URL
,
{
type
:
'string'
,
i18nDescription
:
'Site_Url_Description'
,
public
:
true
}
@
add
'Site_Name'
,
'Rocket.Chat'
,
{
type
:
'string'
,
public
:
true
}
@
add
'Site_Name'
,
'Rocket.Chat'
,
{
type
:
'string'
,
public
:
true
}
@
add
'Language'
,
''
,
{
type
:
'language'
,
public
:
true
}
@
add
'Language'
,
''
,
{
type
:
'language'
,
public
:
true
}
...
@@ -78,6 +81,7 @@ RocketChat.settings.addGroup 'General', ->
...
@@ -78,6 +81,7 @@ RocketChat.settings.addGroup 'General', ->
@
add
'Force_SSL'
,
false
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Force_SSL'
,
false
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Debug_Level'
,
'error'
,
{
type
:
'select'
,
values
:
[
{
key
:
'error'
,
i18nLabel
:
'Only_errors'
},
{
key
:
'debug'
,
i18nLabel
:
'All_logs'
}
]
}
@
add
'Debug_Level'
,
'error'
,
{
type
:
'select'
,
values
:
[
{
key
:
'error'
,
i18nLabel
:
'Only_errors'
},
{
key
:
'debug'
,
i18nLabel
:
'All_logs'
}
]
}
@
add
'Restart'
,
'restart_server'
,
{
type
:
'action'
,
actionText
:
'Restart_the_server'
}
@
add
'Restart'
,
'restart_server'
,
{
type
:
'action'
,
actionText
:
'Restart_the_server'
}
@
add
'API_Analytics'
,
''
,
{
type
:
'string'
,
public
:
true
}
@
section
'UTF8'
,
->
@
section
'UTF8'
,
->
@
add
'UTF8_Names_Validation'
,
'[0-9a-zA-Z-_.]+'
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'UTF8_Names_Validation_Description'
}
@
add
'UTF8_Names_Validation'
,
'[0-9a-zA-Z-_.]+'
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'UTF8_Names_Validation_Description'
}
...
@@ -86,11 +90,6 @@ RocketChat.settings.addGroup 'General', ->
...
@@ -86,11 +90,6 @@ RocketChat.settings.addGroup 'General', ->
@
section
'Reporting'
,
->
@
section
'Reporting'
,
->
@
add
'Statistics_opt_out'
,
false
,
{
type
:
'boolean'
,
i18nLabel
:
"Opt_out_statistics"
}
@
add
'Statistics_opt_out'
,
false
,
{
type
:
'boolean'
,
i18nLabel
:
"Opt_out_statistics"
}
RocketChat
.
settings
.
addGroup
'API'
,
->
@
add
'API_Analytics'
,
''
,
{
type
:
'string'
,
public
:
true
}
@
add
'API_Embed'
,
true
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'API_EmbedDisabledFor'
,
''
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'API_EmbedDisabledFor_Description'
}
RocketChat
.
settings
.
addGroup
'SMTP'
,
->
RocketChat
.
settings
.
addGroup
'SMTP'
,
->
@
add
'SMTP_Host'
,
''
,
{
type
:
'string'
,
env
:
true
}
@
add
'SMTP_Host'
,
''
,
{
type
:
'string'
,
env
:
true
}
...
@@ -118,6 +117,8 @@ RocketChat.settings.addGroup 'Message', ->
...
@@ -118,6 +117,8 @@ RocketChat.settings.addGroup 'Message', ->
@
add
'Message_ShowFormattingTips'
,
true
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Message_ShowFormattingTips'
,
true
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'Message_AudioRecorderEnabled'
,
true
,
{
type
:
'boolean'
,
public
:
true
,
i18nDescription
:
'Message_AudioRecorderEnabledDescription'
}
@
add
'Message_AudioRecorderEnabled'
,
true
,
{
type
:
'boolean'
,
public
:
true
,
i18nDescription
:
'Message_AudioRecorderEnabledDescription'
}
@
add
'Message_GroupingPeriod'
,
300
,
{
type
:
'int'
,
public
:
true
,
i18nDescription
:
'Message_GroupingPeriodDescription'
}
@
add
'Message_GroupingPeriod'
,
300
,
{
type
:
'int'
,
public
:
true
,
i18nDescription
:
'Message_GroupingPeriodDescription'
}
@
add
'API_Embed'
,
true
,
{
type
:
'boolean'
,
public
:
true
}
@
add
'API_EmbedDisabledFor'
,
''
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'API_EmbedDisabledFor_Description'
}
RocketChat
.
settings
.
addGroup
'Meta'
,
->
RocketChat
.
settings
.
addGroup
'Meta'
,
->
...
@@ -152,13 +153,13 @@ RocketChat.settings.addGroup 'Push', ->
...
@@ -152,13 +153,13 @@ RocketChat.settings.addGroup 'Push', ->
RocketChat
.
settings
.
addGroup
'Layout'
,
->
RocketChat
.
settings
.
addGroup
'Layout'
,
->
@
add
'Layout_Sidenav_Footer'
,
'<div><a href="https://github.com/RocketChat/Rocket.Chat" class="logo" target="_blank"> <img src="/images/logo/logo.svg?v=3" /></a><div class="github-tagline"><span class="octicon octicon-pencil" style="color: #994C00"></span> with <span class="octicon octicon-heart" style="color: red"></span> on <span class="octicon octicon-mark-github"></span></div></div>'
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'Layout_Sidenav_Footer_description'
}
@
section
'Content'
,
->
@
section
'Content'
,
->
@
add
'Layout_Home_Title'
,
'Home'
,
{
type
:
'string'
,
public
:
true
}
@
add
'Layout_Home_Title'
,
'Home'
,
{
type
:
'string'
,
public
:
true
}
@
add
'Layout_Home_Body'
,
'Welcome to Rocket.Chat <br> Go to APP SETTINGS -> Layout to customize this intro.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Home_Body'
,
'Welcome to Rocket.Chat <br> Go to APP SETTINGS -> Layout to customize this intro.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Terms_of_Service'
,
'Terms of Service <br> Go to APP SETTINGS -> Layout to customize this page.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Terms_of_Service'
,
'Terms of Service <br> Go to APP SETTINGS -> Layout to customize this page.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Privacy_Policy'
,
'Privacy Policy <br> Go to APP SETTINGS -> Layout to customize this page.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Privacy_Policy'
,
'Privacy Policy <br> Go to APP SETTINGS -> Layout to customize this page.'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Sidenav_Footer'
,
'<div><a href="https://github.com/RocketChat/Rocket.Chat" class="logo" target="_blank"> <img src="/images/logo/logo.svg?v=3" /></a><div class="github-tagline"><span class="octicon octicon-pencil" style="color: #994C00"></span> with <span class="octicon octicon-heart" style="color: red"></span> on <span class="octicon octicon-mark-github"></span></div></div>'
,
{
type
:
'string'
,
public
:
true
,
i18nDescription
:
'Layout_Sidenav_Footer_description'
}
@
section
'Login'
,
->
@
section
'Login'
,
->
@
add
'Layout_Login_Header'
,
'<a class="logo" href="/"><img src="/images/logo/logo.svg?v=3" /></a>'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
@
add
'Layout_Login_Header'
,
'<a class="logo" href="/"><img src="/images/logo/logo.svg?v=3" /></a>'
,
{
type
:
'string'
,
multiline
:
true
,
public
:
true
}
...
...
This diff is collapsed.
Click to expand it.
packages/rocketchat-theme/server/server.coffee
+
3
−
3
View file @
d1ed8b8d
...
@@ -57,7 +57,7 @@ RocketChat.theme = new class
...
@@ -57,7 +57,7 @@ RocketChat.theme = new class
constructor
:
->
constructor
:
->
RocketChat
.
settings
.
add
'css'
,
''
RocketChat
.
settings
.
add
'css'
,
''
RocketChat
.
settings
.
addGroup
'
Theme
'
RocketChat
.
settings
.
addGroup
'
Layout
'
compile
=
_
.
debounce
Meteor
.
bindEnvironment
(
@
compile
.
bind
(
@
)),
200
compile
=
_
.
debounce
Meteor
.
bindEnvironment
(
@
compile
.
bind
(
@
)),
200
...
@@ -107,9 +107,9 @@ RocketChat.theme = new class
...
@@ -107,9 +107,9 @@ RocketChat.theme = new class
if
persist
is
true
if
persist
is
true
config
=
config
=
group
:
'
Theme
'
group
:
'
Layout
'
type
:
type
type
:
type
section
:
type
section
:
'Colors'
public
:
false
public
:
false
RocketChat
.
settings
.
add
"theme-
#{
type
}
-
#{
name
}
"
,
value
,
config
RocketChat
.
settings
.
add
"theme-
#{
type
}
-
#{
name
}
"
,
value
,
config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment