commit 3e3a309c44a649113a501d67272286d0bcdbf8bd Author: David Taylor Date: Mon Jun 26 15:08:06 2017 +0100 Initial commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..df4ed3c --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bc4c45b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# discourse-chat + +This plugin is a work in progress, it is not yet ready for use \ No newline at end of file diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml new file mode 100644 index 0000000..6072116 --- /dev/null +++ b/config/locales/client.en.yml @@ -0,0 +1,4 @@ +en: + js: + discourse_chat: + \ No newline at end of file diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml new file mode 100644 index 0000000..33db6ae --- /dev/null +++ b/config/locales/server.en.yml @@ -0,0 +1,3 @@ +en: + site_settings: + discourse_chat_enabled: 'Enable the discourse-chat plugin' \ No newline at end of file diff --git a/config/settings.yml b/config/settings.yml new file mode 100644 index 0000000..41c1577 --- /dev/null +++ b/config/settings.yml @@ -0,0 +1,3 @@ +plugins: + discourse_chat_enabled: + default: false \ No newline at end of file diff --git a/plugin.rb b/plugin.rb new file mode 100644 index 0000000..6943aad --- /dev/null +++ b/plugin.rb @@ -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