mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Move vector-only components to src/components.
This commit is contained in:
parent
e07c03a7bb
commit
8083e7f118
@ -22,7 +22,7 @@ var HTML5Backend = require('react-dnd-html5-backend');
|
|||||||
var sdk = require('matrix-react-sdk')
|
var sdk = require('matrix-react-sdk')
|
||||||
var dis = require('matrix-react-sdk/lib/dispatcher');
|
var dis = require('matrix-react-sdk/lib/dispatcher');
|
||||||
|
|
||||||
var VectorConferenceHandler = require('../../../../VectorConferenceHandler');
|
var VectorConferenceHandler = require('../../VectorConferenceHandler');
|
||||||
var CallHandler = require("matrix-react-sdk/lib/CallHandler");
|
var CallHandler = require("matrix-react-sdk/lib/CallHandler");
|
||||||
|
|
||||||
var LeftPanel = React.createClass({
|
var LeftPanel = React.createClass({
|
@ -33,7 +33,7 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onViewSourceClick: function() {
|
onViewSourceClick: function() {
|
||||||
var ViewSource = sdk.getComponent('organisms.ViewSource');
|
var ViewSource = sdk.getComponent('structures.ViewSource');
|
||||||
Modal.createDialog(ViewSource, {
|
Modal.createDialog(ViewSource, {
|
||||||
mxEvent: this.props.mxEvent
|
mxEvent: this.props.mxEvent
|
||||||
});
|
});
|
||||||
|
@ -37,7 +37,12 @@ skin['rooms.RoomTooltip'] = require('../../components/views/rooms/RoomTooltip');
|
|||||||
skin['rooms.SearchBar'] = require('../../components/views/rooms/SearchBar');
|
skin['rooms.SearchBar'] = require('../../components/views/rooms/SearchBar');
|
||||||
skin['globals.MatrixToolbar'] = require('../../components/views/globals/MatrixToolbar');
|
skin['globals.MatrixToolbar'] = require('../../components/views/globals/MatrixToolbar');
|
||||||
skin['structures.BottomLeftMenu'] = require('../../components/structures/BottomLeftMenu');
|
skin['structures.BottomLeftMenu'] = require('../../components/structures/BottomLeftMenu');
|
||||||
|
skin['structures.LeftPanel'] = require('../../components/structures/LeftPanel');
|
||||||
|
skin['structures.RightPanel'] = require('../../components/structures/RightPanel');
|
||||||
|
skin['structures.RoomDirectory'] = require('../../components/structures/RoomDirectory');
|
||||||
|
skin['structures.RoomSubList'] = require('../../components/structures/RoomSubList');
|
||||||
|
skin['structures.ViewSource'] = require('../../components/structures/ViewSource');
|
||||||
|
skin['structures.CompatibilityPage'] = require('../../components/structures/CompatibilityPage');
|
||||||
|
|
||||||
// TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex?
|
// TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex?
|
||||||
skin['avatars.RoomAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/RoomAvatar');
|
skin['avatars.RoomAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/RoomAvatar');
|
||||||
@ -87,13 +92,4 @@ skin['structures.UserSettings'] = require('matrix-react-sdk/lib/components/struc
|
|||||||
skin['structures.RoomView'] = require('matrix-react-sdk/lib/components/structures/RoomView');
|
skin['structures.RoomView'] = require('matrix-react-sdk/lib/components/structures/RoomView');
|
||||||
skin['structures.MatrixChat'] = require('matrix-react-sdk/lib/components/structures/MatrixChat');
|
skin['structures.MatrixChat'] = require('matrix-react-sdk/lib/components/structures/MatrixChat');
|
||||||
|
|
||||||
|
|
||||||
// Old style stuff - this stuff only exists in VECTOR
|
|
||||||
skin['organisms.LeftPanel'] = require('./views/organisms/LeftPanel');
|
|
||||||
skin['organisms.RightPanel'] = require('./views/organisms/RightPanel');
|
|
||||||
skin['organisms.RoomDirectory'] = require('./views/organisms/RoomDirectory');
|
|
||||||
skin['organisms.RoomSubList'] = require('./views/organisms/RoomSubList');
|
|
||||||
skin['organisms.ViewSource'] = require('./views/organisms/ViewSource');
|
|
||||||
skin['pages.CompatibilityPage'] = require('./views/pages/CompatibilityPage');
|
|
||||||
|
|
||||||
module.exports = skin;
|
module.exports = skin;
|
||||||
|
@ -153,7 +153,7 @@ function loadApp() {
|
|||||||
else {
|
else {
|
||||||
console.error("Browser is missing required features.");
|
console.error("Browser is missing required features.");
|
||||||
// take to a different landing page to AWOOOOOGA at the user
|
// take to a different landing page to AWOOOOOGA at the user
|
||||||
var CompatibilityPage = require("../skins/vector/views/pages/CompatibilityPage");
|
var CompatibilityPage = sdk.getComponent("structures.CompatibilityPage");
|
||||||
window.matrixChat = ReactDOM.render(
|
window.matrixChat = ReactDOM.render(
|
||||||
<CompatibilityPage onAccept={function() {
|
<CompatibilityPage onAccept={function() {
|
||||||
validBrowser = true;
|
validBrowser = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user