parent
dcac9f4ea6
commit
e275b949c5
@ -0,0 +1,11 @@ |
||||
|
||||
const { execSync } = require('child_process'); |
||||
|
||||
console.log('Running npm-postinstall.js'); |
||||
|
||||
execSync('cp node_modules/katex/dist/katex.min.css app/katex/'); |
||||
|
||||
execSync('mkdir -p public/fonts/'); |
||||
execSync('cp node_modules/katex/dist/fonts/* public/fonts/'); |
||||
|
||||
execSync('cp node_modules/pdfjs-dist/build/pdf.worker.min.js public/'); |
@ -1,2 +1,3 @@ |
||||
packages/rocketchat_theme/client/vendor/fontello/css/fontello.css |
||||
app/theme/client/vendor/fontello/css/fontello.css |
||||
packages/meteor-autocomplete/client/autocomplete.css |
||||
app/katex/katex.min.css |
||||
|
@ -0,0 +1,8 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isClient) { |
||||
module.exports = require('./client/index.js'); |
||||
} |
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,25 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:2fa', |
||||
version: '0.0.1', |
||||
summary: '', |
||||
git: '', |
||||
documentation: 'README.md', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'accounts-base', |
||||
'ecmascript', |
||||
'templating', |
||||
'rocketchat:settings', |
||||
'sha', |
||||
'random', |
||||
'rocketchat:ui-utils', |
||||
'rocketchat:utils', |
||||
'rocketchat:models', |
||||
'rocketchat:callbacks', |
||||
]); |
||||
|
||||
api.mainModule('client/index.js', 'client'); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,5 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,17 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:accounts', |
||||
version: '0.0.1', |
||||
summary: 'JS-Accounts integration', |
||||
git: '', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'underscore', |
||||
'ecmascript', |
||||
]); |
||||
|
||||
api.use('mongo', ['client', 'server']); |
||||
|
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,8 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isClient) { |
||||
module.exports = require('./client/index.js'); |
||||
} |
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,20 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:action-links', |
||||
version: '0.0.1', |
||||
summary: 'Add custom actions that call functions', |
||||
git: '', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'templating', |
||||
'rocketchat:ui-utils', |
||||
'rocketchat:utils', |
||||
'rocketchat:theme', |
||||
'rocketchat:models', |
||||
]); |
||||
api.addFiles('client/stylesheets/actionLinks.css', 'client'); |
||||
api.mainModule('client/index.js', 'client'); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,8 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isClient) { |
||||
module.exports = require('./client/index.js'); |
||||
} |
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,25 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:analytics', |
||||
version: '0.0.2', |
||||
summary: 'Analytics integeration for Rocket.Chat', |
||||
git: '', |
||||
}); |
||||
|
||||
// Note: Piwik respects Google Chrome's No Track: http://piwik.org/docs/privacy/#step-4-respect-donottrack-preference
|
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'rocketchat:models', |
||||
'rocketchat:callbacks', |
||||
'rocketchat:settings', |
||||
'tracker', |
||||
]); |
||||
api.use([ |
||||
'templating', |
||||
'kadira:flow-router', |
||||
], 'client'); |
||||
|
||||
api.mainModule('client/index.js', 'client'); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,5 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,24 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:api', |
||||
version: '0.0.1', |
||||
summary: 'Rest API', |
||||
git: '', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'nimble:restivus', |
||||
'rate-limit', |
||||
'rocketchat:lib', |
||||
'rocketchat:models', |
||||
'rocketchat:settings', |
||||
'rocketchat:assets', |
||||
'rocketchat:utils', |
||||
'rocketchat:metrics', |
||||
'rocketchat:authorization', |
||||
'rocketchat:file-upload', |
||||
'rocketchat:authorization', |
||||
]); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,8 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isClient) { |
||||
module.exports = require('./client/index.js'); |
||||
} |
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,28 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:apps', |
||||
version: '1.0.0', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'rocketchat:markdown', |
||||
'rocketchat:utils', |
||||
'rocketchat:settings', |
||||
'rocketchat:models', |
||||
'rocketchat:notifications', |
||||
'rocketchat:ui-utils', |
||||
'rocketchat:authorization', |
||||
'rocketchat:ui-cached-collection', |
||||
'templating', |
||||
]); |
||||
api.use([ |
||||
'reactive-var', |
||||
'kadira:flow-router', |
||||
'kadira:blaze-layout', |
||||
'underscore', |
||||
], 'client'); |
||||
api.addFiles('assets/stylesheets/apps.css', 'client'); |
||||
api.mainModule('client/index.js', 'client'); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -0,0 +1,5 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,21 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:assets', |
||||
version: '0.0.1', |
||||
summary: '', |
||||
git: '', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'webapp', |
||||
'rocketchat:file', |
||||
'rocketchat:authorization', |
||||
'rocketchat:models', |
||||
'rocketchat:settings', |
||||
'rocketchat:utils', |
||||
'webapp-hashing', |
||||
]); |
||||
|
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -1,3 +1,3 @@ |
||||
import { AuthzCachedCollection } from 'meteor/rocketchat:models'; |
||||
import { AuthzCachedCollection } from '/app/models'; |
||||
|
||||
export const ChatPermissions = AuthzCachedCollection.collection; |
||||
|
@ -0,0 +1,8 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
if (Meteor.isClient) { |
||||
module.exports = require('./client/index.js'); |
||||
} |
||||
if (Meteor.isServer) { |
||||
module.exports = require('./server/index.js'); |
||||
} |
@ -1,27 +0,0 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:authorization', |
||||
version: '0.0.1', |
||||
summary: 'Role based authorization of actions', |
||||
git: '', |
||||
documentation: 'README.md', |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'ecmascript', |
||||
'mongo', |
||||
'rocketchat:utils', |
||||
'rocketchat:models', |
||||
'rocketchat:notifications', |
||||
'rocketchat:ui-cached-collection', |
||||
]); |
||||
api.use([ |
||||
'templating', |
||||
'tracker', |
||||
'kadira:flow-router', |
||||
'kadira:blaze-layout', |
||||
], 'client'); |
||||
api.addFiles('client/stylesheets/permissions.css', 'client'); |
||||
api.mainModule('client/index.js', 'client'); |
||||
api.mainModule('server/index.js', 'server'); |
||||
}); |
@ -1,3 +1,3 @@ |
||||
import { Roles } from 'meteor/rocketchat:models'; |
||||
import { Roles } from '/app/models'; |
||||
|
||||
export const getRoles = () => Roles.find().fetch(); |
||||
|
@ -1,4 +1,4 @@ |
||||
import { Roles } from 'meteor/rocketchat:models'; |
||||
import { Roles } from '/app/models'; |
||||
|
||||
export const getUsersInRole = (roleName, scope, options) => Roles.findUsersInRole(roleName, scope, options); |
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue