You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/js/modules/signal.js

47 lines
1.0 KiB
JavaScript

// The idea with this file is to make it webpackable for the style guide
const Crypto = require('./crypto');
const Data = require('../../ts/data/data');
const Notifications = require('../../ts/notifications');
const OS = require('../../ts/OS');
const Settings = require('./settings');
const Util = require('../../ts/util');
6 years ago
const LinkPreviews = require('./link_previews');
const { Message } = require('../../ts/components/conversation/message/message-item/Message');
// Components
const {
SessionRegistrationView,
} = require('../../ts/components/registration/SessionRegistrationView');
const { SessionInboxView } = require('../../ts/components/SessionInboxView');
// Types
const SettingsType = require('../../ts/types/Settings');
exports.setup = () => {
5 years ago
Data.init();
const Components = {
SessionInboxView,
SessionRegistrationView,
Message,
};
const Types = {
Settings: SettingsType,
};
return {
Components,
Crypto,
Data,
6 years ago
LinkPreviews,
Notifications,
OS,
Settings,
Types,
Util,
};
};