-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
settings for livechat title and background color
- Loading branch information
1 parent
b3e12a3
commit 06328ec
Showing
11 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@ChatMessage = new Meteor.Collection null | ||
@ChatRoom = new Meteor.Collection 'rocketchat_room' | ||
@Settings = new Meteor.Collection 'rocketchat_settings' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Meteor.startup(function() { | ||
RocketChat.settings.addGroup('Livechat'); | ||
RocketChat.settings.add('Livechat_title' , 'Rocket.Chat', { type: 'string', group: 'Livechat', i18nLabel: 'rocketchat-livechat:Livechat_title', public: true }); | ||
RocketChat.settings.add('Livechat_title_color' , '#C1272D', { type: 'string', group: 'Livechat', i18nLabel: 'rocketchat-livechat:Livechat_title_color', public: true }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Livechat_title": "Livechat title", | ||
"Livechat_title_color": "Livechat title background color" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Livechat_title": "Título Livechat", | ||
"Livechat_title_color": "Cor de fundo do título do Livechat" | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,34 @@ Package.registerBuildPlugin({ | |
} | ||
}); | ||
|
||
// Loads all i18n.json files into tapi18nFiles | ||
var _ = Npm.require('underscore'); | ||
var fs = Npm.require('fs'); | ||
tapi18nFiles = _.compact(_.map(fs.readdirSync('packages/rocketchat-livechat/i18n'), function(filename) { | ||
if (fs.statSync('packages/rocketchat-livechat/i18n/' + filename).size > 16) { | ||
return 'i18n/' + filename; | ||
} | ||
})); | ||
|
||
Package.onUse(function(api) { | ||
api.versionsFrom('1.0'); | ||
|
||
api.use(['coffeescript', 'webapp', 'autoupdate'], 'server'); | ||
api.use('templating', 'client'); | ||
api.use(["tap:[email protected]"], ["client", "server"]); | ||
api.imply('tap:i18n'); | ||
api.addFiles("package-tap.i18n", ["client", "server"]); | ||
|
||
api.addFiles('livechat.coffee', 'server'); | ||
api.addFiles('methods.coffee', 'server'); | ||
api.addFiles('publications.coffee', 'server'); | ||
|
||
api.addFiles('config.js', 'server'); | ||
|
||
api.addFiles('rocket-livechat.js', 'client', {isAsset: true}); | ||
api.addFiles('public/livechat.css', 'client', {isAsset: true}); | ||
api.addFiles('public/livechat.js', 'client', {isAsset: true}); | ||
api.addFiles('public/head.html', 'server', {isAsset: true}); | ||
|
||
api.addFiles(tapi18nFiles, ["client", "server"]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters