Convert tocketchat-mapview to main module structure (#12701)

pull/12768/head^2
Marcos Spessatto Defendi 7 years ago committed by Rodrigo Nascimento
parent bbc964e896
commit 1e7e9b11a9
  1. 1
      packages/rocketchat-mapview/client/index.js
  2. 1
      packages/rocketchat-mapview/client/mapview.js
  3. 8
      packages/rocketchat-mapview/package.js
  4. 1
      packages/rocketchat-mapview/server/index.js
  5. 1
      packages/rocketchat-mapview/server/settings.js

@ -1,4 +1,5 @@
import { TAPi18n } from 'meteor/tap:i18n';
import { RocketChat } from 'meteor/rocketchat:lib';
/*
* MapView is a named function that will replace geolocation in messages with a Google Static Map
* @param {Object} message - The message object

@ -8,10 +8,8 @@ Package.onUse(function(api) {
api.use([
'ecmascript',
'rocketchat:lib',
'tap:i18n',
]);
api.addFiles('server/settings.js', 'server');
api.addFiles('client/mapview.js', 'client');
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});

@ -1,4 +1,5 @@
import { Meteor } from 'meteor/meteor';
import { RocketChat } from 'meteor/rocketchat:lib';
Meteor.startup(function() {
RocketChat.settings.add('MapView_Enabled', false, { type: 'boolean', group: 'Message', section: 'Google Maps', public: true, i18nLabel: 'MapView_Enabled', i18nDescription: 'MapView_Enabled_Description' });

Loading…
Cancel
Save