Skip to content

Commit 3e3a309

Browse files
committed
Initial commit
0 parents  commit 3e3a309

File tree

6 files changed

+52
-0
lines changed

6 files changed

+52
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Civilized Discourse Construction Kit, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# discourse-chat
2+
3+
This plugin is a work in progress, it is not yet ready for use

config/locales/client.en.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
en:
2+
js:
3+
discourse_chat:
4+

config/locales/server.en.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
en:
2+
site_settings:
3+
discourse_chat_enabled: 'Enable the discourse-chat plugin'

config/settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins:
2+
discourse_chat_enabled:
3+
default: false

plugin.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# name: discourse-chat
2+
# about: This plugin integrates discourse with a number of chat providers
3+
# version: 0.1
4+
# url: https://github.com/discourse/discourse-chat
5+
6+
enabled_site_setting :discourse_chat_enabled
7+
8+
after_initialize do
9+
10+
module ::DiscourseChat
11+
PLUGIN_NAME = "discourse-chat".freeze
12+
13+
class Engine < ::Rails::Engine
14+
engine_name DiscourseChat::PLUGIN_NAME
15+
isolate_namespace DiscourseChat
16+
end
17+
end
18+
end

0 commit comments

Comments
 (0)