Convert rocketchat-github-enterprise to main module structure (#12642)

* Convert rocketchat-github-enterprise to main module structure

* Removing forgot console.log
pull/12623/head^2
Marcos Spessatto Defendi 7 years ago committed by Rodrigo Nascimento
parent 639dc05957
commit bda3f7a859
  1. 0
      packages/rocketchat-github-enterprise/client/github-enterprise-login-button.css
  2. 2
      packages/rocketchat-github-enterprise/client/index.js
  3. 3
      packages/rocketchat-github-enterprise/lib/common.js
  4. 17
      packages/rocketchat-github-enterprise/package.js
  5. 2
      packages/rocketchat-github-enterprise/server/index.js
  6. 2
      packages/rocketchat-github-enterprise/server/startup.js

@ -0,0 +1,2 @@
import './github-enterprise-login-button.css';
import '../lib/common';

@ -1,6 +1,7 @@
/* global CustomOAuth */
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { CustomOAuth } from 'meteor/rocketchat:custom-oauth';
import { RocketChat } from 'meteor/rocketchat:lib';
// GitHub Enterprise Server CallBack URL needs to be http(s)://{rocketchat.server}[:port]/_oauth/github_enterprise
// In RocketChat -> Administration the URL needs to be http(s)://{github.enterprise.server}/

@ -5,13 +5,12 @@ Package.describe({
});
Package.onUse(function(api) {
api.use('ecmascript');
api.use('rocketchat:lib');
api.use('rocketchat:custom-oauth');
api.use('templating', 'client');
api.addFiles('common.js');
api.addFiles('github-enterprise-login-button.css', 'client');
api.addFiles('startup.js', 'server');
api.use([
'ecmascript',
'rocketchat:lib',
'rocketchat:custom-oauth',
'templating',
]);
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});

@ -0,0 +1,2 @@
import './startup';
import '../lib/common';

@ -1,3 +1,5 @@
import { RocketChat } from 'meteor/rocketchat:lib';
RocketChat.settings.addGroup('OAuth', function() {
this.section('GitHub Enterprise', function() {
const enableQuery = {
Loading…
Cancel
Save