BetterDiscordApp-v2/client/src/modules/vendor.js

39 lines
832 B
JavaScript
Raw Normal View History

2018-01-30 14:48:25 +01:00
/**
* BetterDiscord Vendor Module
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
2018-03-15 17:47:40 +01:00
import { WebpackModules } from './webpackmodules';
2018-01-30 14:48:25 +01:00
import jQuery from 'jquery';
2018-02-02 13:45:06 +01:00
import lodash from 'lodash';
2018-01-30 14:48:25 +01:00
2018-02-14 21:15:27 +01:00
export { jQuery as $ };
2018-01-30 14:48:25 +01:00
export default class {
/**
* jQuery
*/
static get jQuery() { return jQuery }
static get $() { return this.jQuery }
/**
* Lodash
*/
static get lodash() { return lodash }
static get _() { return this.lodash }
/**
* Moment
*/
2018-01-30 14:48:25 +01:00
static get moment() {
return WebpackModules.getModuleByName('Moment');
}
}