Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.RoomBridgeStore = require("./components/room-bridge-store");
module.exports.EventBridgeStore = require("./components/event-bridge-store");
// Models
module.exports.MatrixUser = require("./models/users/matrix");
module.exports.RemoteUser = require("./models/users/remote");
module.exports.MatrixRoom = require("./models/rooms/matrix");
module.exports.RemoteRoom = require("./models/rooms/remote");
module.exports.StoredEvent = require("./models/events/event");
module.exports.Bridge = require("./bridge");
module.exports.AppServiceRegistration = (
require("matrix-appservice").AppServiceRegistration
);
module.exports.ContentRepo = (
require("matrix-js-sdk").ContentRepo
);
module.exports.PrometheusMetrics = require("./components/prometheusmetrics");
module.exports.PrometheusMetrics.AgeCounters = require("./components/agecounters");
// Caches
module.exports.MembershipCache = require("./components/membership-cache");
// Logging
module.exports.Logging = require("./components/logging");
// Consts for RoomLinkValidator
module.exports.RoomLinkValidatorStatus = require(
"./components/room-link-validator"
).validationStatuses;
module.exports = (self) => {
const matrixSdk = require('matrix-js-sdk');
const ContentRepo = matrixSdk.ContentRepo;
const riot = require('riot');
const route = require('riot-route');
// Global access for the singleton dispatcher
window.dis = require('./dispatcher.js');
const { matrixReduce, wrapSyncingClient } = require('matrix-redux-wrap');
let reduxState = {};
function getStateEventContent(room, type, stateKey="") {
if (!room.state[type]) return null;
if (!room.state[type][stateKey]) return null;
return room.state[type][stateKey].content;
}
function getAuthor(member) {
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
'use strict';
var React = require('react');
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
var ContentRepo = require("matrix-js-sdk").ContentRepo;
var Modal = require('matrix-react-sdk/lib/Modal');
var sdk = require('matrix-react-sdk');
var dis = require('matrix-react-sdk/lib/dispatcher');
var linkify = require('linkifyjs');
var linkifyString = require('linkifyjs/string');
var linkifyMatrix = require('matrix-react-sdk/lib/linkify-matrix');
var sanitizeHtml = require('sanitize-html');
import Promise from 'bluebird';
import { _t } from 'matrix-react-sdk/lib/languageHandler';
import {instanceForInstanceId, protocolNameForInstanceId} from '../../utils/DirectoryUtils';
linkifyMatrix(linkify);
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
'use strict';
const React = require('react');
const MatrixClientPeg = require('../../MatrixClientPeg');
const ContentRepo = require("matrix-js-sdk").ContentRepo;
const Modal = require('../../Modal');
const sdk = require('../../index');
const dis = require('../../dispatcher');
import { linkifyAndSanitizeHtml } from '../../HtmlUtils';
import Promise from 'bluebird';
import { _t } from '../../languageHandler';
import {instanceForInstanceId, protocolNameForInstanceId} from '../../utils/DirectoryUtils';
const MAX_NAME_LENGTH = 80;
const MAX_TOPIC_LENGTH = 160;
module.exports = React.createClass({
displayName: 'RoomDirectory',