Initial commit

This commit is contained in:
David Taylor 2017-06-26 15:08:06 +01:00
commit 3e3a309c44
6 changed files with 52 additions and 0 deletions

21
LICENSE Normal file
View File

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

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# discourse-chat
This plugin is a work in progress, it is not yet ready for use

View File

@ -0,0 +1,4 @@
en:
js:
discourse_chat:

View File

@ -0,0 +1,3 @@
en:
site_settings:
discourse_chat_enabled: 'Enable the discourse-chat plugin'

3
config/settings.yml Normal file
View File

@ -0,0 +1,3 @@
plugins:
discourse_chat_enabled:
default: false

18
plugin.rb Normal file
View File

@ -0,0 +1,18 @@
# name: discourse-chat
# about: This plugin integrates discourse with a number of chat providers
# version: 0.1
# url: https://github.com/discourse/discourse-chat
enabled_site_setting :discourse_chat_enabled
after_initialize do
module ::DiscourseChat
PLUGIN_NAME = "discourse-chat".freeze
class Engine < ::Rails::Engine
engine_name DiscourseChat::PLUGIN_NAME
isolate_namespace DiscourseChat
end
end
end