parent
3efea77ebe
commit
973de16685
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1462:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return p}));var o=n(3),a=n.n(o),s=n(33),r=n.n(s),l=n(36),i=n(35),c=n.n(i),m=n(34),u=n(40),d=n(41),g=n(64),h=n(145);class p extends r.a.Component{constructor(e){super(e),a()(this,"updateCurrentRoom",async e=>{const t=h.a.get();let n;try{n=await t.getStats()}catch{return}let o=null;e&&(o=e.name);const a=t.crawlingRooms(),s=a.crawlingRooms.size,r=a.totalRooms.size;this.setState({eventIndexSize:n.size,eventCount:n.eventCount,crawlingRoomsCount:s,roomCount:r,currentRoom:o})}),a()(this,"_onDisable",async()=>{d.a.createTrackedDialogAsync("Disable message search","Disable message search",n.e(20).then(n.bind(null,1449)),null,null,!1,!0)}),a()(this,"_onCrawlerSleepTimeChange",e=>{this.setState({crawlerSleepTime:e.target.value}),u.b.setValue("crawlerSleepTime",null,u.a.DEVICE,e.target.value)}),this.state={eventIndexSize:0,eventCount:0,crawlingRoomsCount:0,roomCount:0,currentRoom:null,crawlerSleepTime:u.b.getValueAt(u.a.DEVICE,"crawlerSleepTime")}}componentWillUnmount(){const e=h.a.get();null!==e&&e.removeListener("changedCheckpoint",this.updateCurrentRoom)}async componentDidMount(){let e=0,t=0,n=0,o=0,a=null;const s=h.a.get();if(null!==s){s.on("changedCheckpoint",this.updateCurrentRoom);try{const t=await s.getStats();e=t.size,o=t.eventCount}catch{}const r=s.crawlingRooms();t=r.crawlingRooms.size,n=r.totalRooms.size;const l=s.currentRoom();l&&(a=l.name)}this.setState({eventIndexSize:e,eventCount:o,crawlingRoomsCount:t,roomCount:n,currentRoom:a})}render(){let e;e=null===this.state.currentRoom?Object(m.a)("Not currently indexing messages for any room."):Object(m.a)("Currently indexing: %(currentRoom)s.",{currentRoom:this.state.currentRoom});const t=l.getComponent("views.elements.Field"),n=Math.max(0,this.state.roomCount-this.state.crawlingRoomsCount),o=r.a.createElement("div",null,Object(m.a)("Riot is securely caching encrypted messages locally for them to appear in search results:"),r.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},e,r.a.createElement("br",null),Object(m.a)("Space used:")," ",Object(g.a)(this.state.eventIndexSize,0),r.a.createElement("br",null),Object(m.a)("Indexed messages:")," ",Object(g.d)(this.state.eventCount),r.a.createElement("br",null),Object(m.a)("Indexed rooms:")," ",Object(m.a)("%(doneRooms)s out of %(totalRooms)s",{doneRooms:Object(g.d)(n),totalRooms:Object(g.d)(this.state.roomCount)})," ",r.a.createElement("br",null),r.a.createElement(t,{label:Object(m.a)("Message downloading sleep time(ms)"),type:"number",value:this.state.crawlerSleepTime,onChange:this._onCrawlerSleepTimeChange}))),a=l.getComponent("views.dialogs.BaseDialog"),s=l.getComponent("views.elements.DialogButtons");return r.a.createElement(a,{className:"mx_ManageEventIndexDialog",onFinished:this.props.onFinished,title:Object(m.a)("Message search")},o,r.a.createElement(s,{primaryButton:Object(m.a)("Done"),onPrimaryButtonClick:this.props.onFinished,primaryButtonClass:"primary",cancelButton:Object(m.a)("Disable"),onCancel:this._onDisable,cancelButtonClass:"danger"}))}}a()(p,"propTypes",{onFinished:c.a.func.isRequired})}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{711:function(e,r,t){"use strict";t.r(r);var a=t(33),s=t(35),n=t(34);const i=({title:e,messages:r})=>a.createElement("div",{className:"mx_GenericErrorPage"},a.createElement("div",{className:"mx_GenericErrorPage_box"},a.createElement("h1",null,e),a.createElement("div",null,r&&r.map(e=>a.createElement("p",{key:e},Object(n.a)(e))))));i.propTypes={title:s.string.isRequired,messages:s.arrayOf(s.string.isRequired)},r.default=i}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1455:function(e,o,n){"use strict";n.r(o),function(e){n.d(o,"loadApp",(function(){return U}));var t=n(33),i=n.n(t),r=n(36),a=n(50),s=n(392),c=n(34),l=n(65),d=n(187),f=n(181),u=n(55),g=n.n(u),w=n(15),h=n(37),p=n(45),m=n(82);e.React=i.a;let _=null;function v(e){const o=Object(w.b)(e);return{screen:o.location.substring(1),params:o.params}}function b(e){decodeURIComponent(window.location.hash)!==_&&function(e){if(!window.matrixChat)return;console.log("Routing URL ",e.href);const o=v(e);window.matrixChat.showScreen(o.screen,o.params)}(window.location)}function C(e){console.log("newscreen "+e);const o="#/"+e;_=o,window.location.hash=o}function y(e){let o;o="vector:"===window.location.protocol?"https://riot.im/app/#/register":window.location.protocol+"//"+window.location.host+window.location.pathname+"#/register";const n=Object.keys(e);for(let t=0;t<n.length;++t){o+=0===t?"?":"&";const i=n[t];o+=i+"="+encodeURIComponent(e[i])}return o}function O(){const e=g.a.parse(window.location.href);e.search="";const o=g.a.format(e);console.log("Redirecting to "+o+" to drop loginToken from queryparams"),window.location.href=o}async function U(e){const o=document.body.dataset.vectorIndexeddbWorkerScript;if(!o)throw Object(c.h)(Object(c.b)("Missing indexeddb worker script!"));h.a.setIndexedDbWorkerScript(o),m.a.setConferenceHandler(s),window.addEventListener("hashchange",b);const n=a.a.get(),t=Object(w.a)(window.location),u=window.location.protocol+"//"+window.location.host+window.location.pathname;console.log("Vector starting at "+u),n.startUpdater();const g=await async function(){let e;try{console.log("Verifying homeserver configuration");const o=p.a.get();let n=o.default_server_config;const t=o.default_server_name,i=o.default_hs_url,r=o.default_is_url,a=[n,t,i].filter(e=>!!e);if(a.length>1)throw Object(c.h)(Object(c.b)("Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url."));if(a.length<1)throw Object(c.h)(Object(c.b)("Invalid configuration: no default server specified."));i&&(console.log("Config uses a default_hs_url - constructing a default_server_config using this information"),console.warn("DEPRECATED CONFIG OPTION: In the future, default_hs_url will not be accepted. Please use default_server_config instead."),n={"m.homeserver":{base_url:i}},r&&(n["m.identity_server"]={base_url:r}));let s=null;n&&(console.log("Config uses a default_server_config - validating object"),s=await d.a.fromDiscoveryConfig(n)),t&&(console.log("Config uses a default_server_name - doing .well-known lookup"),console.warn("DEPRECATED CONFIG OPTION: In the future, default_server_name will not be accepted. Please use default_server_config instead."),s=await d.a.findClientConfig(t)),e=l.b.buildValidatedConfigFromDiscovery(t,s,!0)}catch(o){const{hsUrl:n,isUrl:t,userId:i}=f.b();if(!n||!i)throw o;console.error(o),console.warn("A session was found - suppressing config error and using the session's homeserver"),console.log("Using pre-existing hsUrl and isUrl: ",{hsUrl:n,isUrl:t}),e=await l.b.validateServerConfigWithStaticUrls(n,t,!0)}return e.isDefault=!0,console.log("Using homeserver config:",e),console.log("Updating SdkConfig with validated discovery information"),p.a.add({validated_server_config:e}),p.a.get()}(),_=r.getComponent("structures.MatrixChat");return i.a.createElement(_,{onNewScreen:C,makeRegistrationUrl:y,ConferenceHandler:s,config:g,realQueryParams:t,startingFragmentQueryParams:e,enableGuest:!g.disable_guests,onTokenLoginCompleted:O,initialScreenAfterLogin:v(window.location),defaultDeviceDisplayName:n.getDefaultDeviceDisplayName()})}}.call(this,n(17))}}]);
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[11,5],{1463:function(e,t,r){"use strict";r.r(t),r.d(t,"components",(function(){return k}));var a=r(711),o=r(3),n=r.n(o),s=r(383),l=r(281),i=r.n(l),c=r(34);class m extends s.a{translate(e){return e=(e=i()(Object(c.a)(e))).replace(/\[matrix\]/,'<a href="https://matrix.org" target="_blank" rel="noreferrer noopener"><img width="79" height="34" alt="[matrix]" style="padding-left: 1px;vertical-align: middle" src="welcome/images/matrix.svg"/></a>')}}n()(m,"replaces","EmbeddedPage");var u=r(33),g=r.n(u),d=r(45);const h=()=>{const e=d.a.get().branding;let t=[{text:"blog",url:"https://blog.riot.im"},{text:"twitter",url:"https://twitter.com/@RiotChat"},{text:"github",url:"https://github.com/vector-im/riot-web"}];e&&e.authFooterLinks&&(t=e.authFooterLinks);const r=[];for(const e of t)r.push(g.a.createElement("a",{href:e.url,key:e.text,target:"_blank",rel:"noreferrer noopener"},e.text));return g.a.createElement("div",{className:"mx_AuthFooter"},r,g.a.createElement("a",{href:"https://matrix.org",target:"_blank",rel:"noreferrer noopener"},Object(c.a)("powered by Matrix")))};h.replaces="AuthFooter";var p=h,b=r(35),v=r.n(b);class x extends g.a.PureComponent{render(){const e=d.a.get().branding;let t="themes/riot/img/logos/riot-im-logo-black-text.svg";return e&&e.authHeaderLogoUrl&&(t=e.authHeaderLogoUrl),g.a.createElement("div",{className:"mx_AuthHeaderLogo"},g.a.createElement("img",{src:t,alt:"Riot"}))}}n()(x,"replaces","AuthHeaderLogo"),n()(x,"propTypes",{icon:v.a.string});var E=r(36);class f extends g.a.PureComponent{render(){const e=E.getComponent("auth.AuthFooter"),t=d.a.get().branding;let r="themes/riot/img/backgrounds/valley.jpg";t&&t.welcomeBackgroundUrl&&(r=t.welcomeBackgroundUrl);const a={background:"center/cover fixed url(".concat(r,")")},o={position:"absolute",top:0,right:0,bottom:0,left:0,filter:"blur(10px)",background:a.background};return g.a.createElement("div",{className:"mx_AuthPage",style:a},g.a.createElement("div",{className:"mx_AuthPage_modal",style:{position:"relative",background:"initial"}},g.a.createElement("div",{className:"mx_AuthPage_modalBlur",style:o}),g.a.createElement("div",{className:"mx_AuthPage_modalContent",style:{display:"flex",zIndex:1,background:"rgba(255, 255, 255, 0.59)",borderRadius:"4px"}},this.props.children)),g.a.createElement(e,null))}}n()(f,"replaces","AuthPage");const _=({onFinished:e})=>g.a.createElement("div",{className:"mx_ErrorDialog"},g.a.createElement("div",{className:"mx_Dialog_title"},Object(c.a)("Custom Server Options")),g.a.createElement("div",{className:"mx_Dialog_content"},g.a.createElement("p",null,Object(c.a)("You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver."))),g.a.createElement("div",{className:"mx_Dialog_buttons"},g.a.createElement("button",{onClick:e,autoFocus:!0},Object(c.a)("Dismiss"))));_.replaces="CustomServerDialog";var w=_;let k={};a.default&&(k["structures.ErrorView"]=a.default),m&&(k["structures.VectorEmbeddedPage"]=m),p&&(k["views.auth.VectorAuthFooter"]=p),x&&(k["views.auth.VectorAuthHeaderLogo"]=x),f&&(k["views.auth.VectorAuthPage"]=f),w&&(k["views.auth.VectorCustomServerDialog"]=w)},711:function(e,t,r){"use strict";r.r(t);var a=r(33),o=r(35),n=r(34);const s=({title:e,messages:t})=>a.createElement("div",{className:"mx_GenericErrorPage"},a.createElement("div",{className:"mx_GenericErrorPage_box"},a.createElement("h1",null,e),a.createElement("div",null,t&&t.map(e=>a.createElement("p",{key:e},Object(n.a)(e))))));s.propTypes={title:o.string.isRequired,messages:o.arrayOf(o.string.isRequired)},t.default=s}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1460:function(e,t,n){"use strict";n.r(t);var a=n(33),l=n.n(a),r=n(38),i=n.n(r),c=n(35),o=n.n(c),d=n(34),s=n(37),u=n(48),m=n(36);t.default=i()({displayName:"EncryptedEventDialog",propTypes:{event:o.a.object.isRequired,onFinished:o.a.func.isRequired},getInitialState:function(){return{device:null}},componentDidMount:function(){this._unmounted=!1;const e=s.a.get();this.refreshDevice().then(t=>t||e.downloadKeys([this.props.event.getSender()],!0).then(()=>this.refreshDevice())).then(t=>{this._unmounted||(this.setState({device:t}),e.on("deviceVerificationChanged",this.onDeviceVerificationChanged))},e=>{console.log("Error downloading devices",e)})},componentWillUnmount:function(){this._unmounted=!0;const e=s.a.get();e&&e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged)},refreshDevice:function(){return Promise.resolve(s.a.get().getEventSenderDeviceInfo(this.props.event))},onDeviceVerificationChanged:function(e,t){e===this.props.event.getSender()&&this.refreshDevice().then(e=>{this.setState({device:e})})},onKeyDown:function(e){e.key===u.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1))},_renderDeviceInfo:function(){const e=this.state.device;if(!e)return l.a.createElement("i",null,Object(d.a)("unknown device"));let t=l.a.createElement("b",null,Object(d.a)("NOT verified"));return e.isBlocked()?t=l.a.createElement("b",null,Object(d.a)("Blacklisted")):e.isVerified()&&(t=Object(d.a)("verified")),l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Name")),l.a.createElement("td",null,e.getDisplayName())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Device ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.deviceId))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Verification")),l.a.createElement("td",null,t)),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Ed25519 fingerprint")),l.a.createElement("td",null,l.a.createElement("code",null,e.getFingerprint())))))},_renderEventInfo:function(){const e=this.props.event;return l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("User ID")),l.a.createElement("td",null,e.getSender())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Curve25519 identity key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getSenderKey()||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Claimed Ed25519 fingerprint key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getKeysClaimed().ed25519||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Algorithm")),l.a.createElement("td",null,e.getWireContent().algorithm||l.a.createElement("i",null,Object(d.a)("unencrypted")))),"m.bad.encrypted"===e.getContent().msgtype?l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Decryption error")),l.a.createElement("td",null,e.getContent().body)):null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Session ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.getWireContent().session_id||l.a.createElement("i",null,Object(d.a)("none")))))))},render:function(){const e=m.getComponent("elements.DeviceVerifyButtons");let t=null;return this.state.device&&(t=l.a.createElement(e,{device:this.state.device,userId:this.props.event.getSender()})),l.a.createElement("div",{className:"mx_EncryptedEventDialog",onKeyDown:this.onKeyDown},l.a.createElement("div",{className:"mx_Dialog_title"},Object(d.a)("End-to-end encryption information")),l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement("h4",null,Object(d.a)("Event information")),this._renderEventInfo(),l.a.createElement("h4",null,Object(d.a)("Sender session information")),this._renderDeviceInfo()),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{className:"mx_Dialog_primary",onClick:this.props.onFinished,autoFocus:!0},Object(d.a)("OK")),t))}})}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1195:function(e,t,n){"use strict";n.r(t);var a=n(33),l=n.n(a),r=n(38),i=n.n(r),c=n(35),o=n.n(c),d=n(34),s=n(37),u=n(48),m=n(36);t.default=i()({displayName:"EncryptedEventDialog",propTypes:{event:o.a.object.isRequired,onFinished:o.a.func.isRequired},getInitialState:function(){return{device:null}},componentDidMount:function(){this._unmounted=!1;const e=s.a.get();this.refreshDevice().then(t=>t||e.downloadKeys([this.props.event.getSender()],!0).then(()=>this.refreshDevice())).then(t=>{this._unmounted||(this.setState({device:t}),e.on("deviceVerificationChanged",this.onDeviceVerificationChanged))},e=>{console.log("Error downloading devices",e)})},componentWillUnmount:function(){this._unmounted=!0;const e=s.a.get();e&&e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged)},refreshDevice:function(){return Promise.resolve(s.a.get().getEventSenderDeviceInfo(this.props.event))},onDeviceVerificationChanged:function(e,t){e===this.props.event.getSender()&&this.refreshDevice().then(e=>{this.setState({device:e})})},onKeyDown:function(e){e.key===u.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1))},_renderDeviceInfo:function(){const e=this.state.device;if(!e)return l.a.createElement("i",null,Object(d.a)("unknown device"));let t=l.a.createElement("b",null,Object(d.a)("NOT verified"));return e.isBlocked()?t=l.a.createElement("b",null,Object(d.a)("Blacklisted")):e.isVerified()&&(t=Object(d.a)("verified")),l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Name")),l.a.createElement("td",null,e.getDisplayName())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Device ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.deviceId))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Verification")),l.a.createElement("td",null,t)),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Ed25519 fingerprint")),l.a.createElement("td",null,l.a.createElement("code",null,e.getFingerprint())))))},_renderEventInfo:function(){const e=this.props.event;return l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("User ID")),l.a.createElement("td",null,e.getSender())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Curve25519 identity key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getSenderKey()||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Claimed Ed25519 fingerprint key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getKeysClaimed().ed25519||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Algorithm")),l.a.createElement("td",null,e.getWireContent().algorithm||l.a.createElement("i",null,Object(d.a)("unencrypted")))),"m.bad.encrypted"===e.getContent().msgtype?l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Decryption error")),l.a.createElement("td",null,e.getContent().body)):null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Session ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.getWireContent().session_id||l.a.createElement("i",null,Object(d.a)("none")))))))},render:function(){const e=m.getComponent("elements.DeviceVerifyButtons");let t=null;return this.state.device&&(t=l.a.createElement(e,{device:this.state.device,userId:this.props.event.getSender()})),l.a.createElement("div",{className:"mx_EncryptedEventDialog",onKeyDown:this.onKeyDown},l.a.createElement("div",{className:"mx_Dialog_title"},Object(d.a)("End-to-end encryption information")),l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement("h4",null,Object(d.a)("Event information")),this._renderEventInfo(),l.a.createElement("h4",null,Object(d.a)("Sender session information")),this._renderDeviceInfo()),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{className:"mx_Dialog_primary",onClick:this.props.onFinished,autoFocus:!0},Object(d.a)("OK")),t))}})}}]);
|
||||
//# sourceMappingURL=20.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/EncryptedEventDialog.js"],"names":["createReactClass","displayName","propTypes","event","PropTypes","object","isRequired","onFinished","func","getInitialState","device","componentDidMount","this","_unmounted","client","MatrixClientPeg","get","refreshDevice","then","dev","downloadKeys","props","getSender","setState","on","onDeviceVerificationChanged","err","console","log","componentWillUnmount","removeListener","Promise","resolve","getEventSenderDeviceInfo","userId","onKeyDown","e","key","Key","ESCAPE","stopPropagation","preventDefault","_renderDeviceInfo","state","_t","verificationStatus","isBlocked","isVerified","getDisplayName","deviceId","getFingerprint","_renderEventInfo","getSenderKey","getKeysClaimed","ed25519","getWireContent","algorithm","getContent","msgtype","body","session_id","render","DeviceVerifyButtons","sdk","buttons","className","onClick","autoFocus"],"mappings":"4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js","sourceRoot":""}
|
@ -1 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1449:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return b}));var s=t(3),a=t.n(s),i=t(33),o=t.n(i),r=t(36),l=t(35),d=t.n(l),c=t(39),p=t(34),u=t(40),h=t(145);class b extends o.a.Component{constructor(e){super(e),a()(this,"_onDisable",async()=>{this.setState({disabling:!0}),await u.b.setValue("enableEventIndexing",null,u.a.DEVICE,!1),await h.a.deleteEventIndex(),this.props.onFinished(),c.a.dispatch({action:"view_user_settings"})}),this.state={disabling:!1}}render(){const e=r.getComponent("views.dialogs.BaseDialog"),n=r.getComponent("elements.Spinner"),t=r.getComponent("views.elements.DialogButtons");return o.a.createElement(e,{onFinished:this.props.onFinished,title:Object(p.a)("Are you sure?")},Object(p.a)("If disabled, messages from encrypted rooms won't appear in search results."),this.state.disabling?o.a.createElement(n,null):o.a.createElement("div",null),o.a.createElement(t,{primaryButton:Object(p.a)("Disable"),onPrimaryButtonClick:this._onDisable,primaryButtonClass:"danger",cancelButtonClass:"warning",onCancel:this.props.onFinished,disabled:this.state.disabling}))}}a()(b,"propTypes",{onFinished:d.a.func.isRequired})}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1182:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return b}));var s=t(3),a=t.n(s),i=t(33),o=t.n(i),r=t(36),l=t(35),d=t.n(l),c=t(39),p=t(34),u=t(40),h=t(154);class b extends o.a.Component{constructor(e){super(e),a()(this,"_onDisable",async()=>{this.setState({disabling:!0}),await u.b.setValue("enableEventIndexing",null,u.a.DEVICE,!1),await h.a.deleteEventIndex(),this.props.onFinished(),c.a.dispatch({action:"view_user_settings"})}),this.state={disabling:!1}}render(){const e=r.getComponent("views.dialogs.BaseDialog"),n=r.getComponent("elements.Spinner"),t=r.getComponent("views.elements.DialogButtons");return o.a.createElement(e,{onFinished:this.props.onFinished,title:Object(p.a)("Are you sure?")},Object(p.a)("If disabled, messages from encrypted rooms won't appear in search results."),this.state.disabling?o.a.createElement(n,null):o.a.createElement("div",null),o.a.createElement(t,{primaryButton:Object(p.a)("Disable"),onPrimaryButtonClick:this._onDisable,primaryButtonClass:"danger",cancelButtonClass:"warning",onCancel:this.props.onFinished,disabled:this.state.disabling}))}}a()(b,"propTypes",{onFinished:d.a.func.isRequired})}}]);
|
||||
//# sourceMappingURL=21.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/eventindex/DisableEventIndexDialog.js"],"names":["DisableEventIndexDialog","React","Component","constructor","props","super","async","this","setState","disabling","SettingsStore","setValue","SettingLevel","DEVICE","EventIndexPeg","deleteEventIndex","onFinished","dis","dispatch","action","state","render","BaseDialog","sdk","Spinner","DialogButtons","title","_t","primaryButton","onPrimaryButtonClick","_onDisable","primaryButtonClass","cancelButtonClass","onCancel","disabled","PropTypes","func","isRequired"],"mappings":"0OA4Be,MAAMA,UAAgCC,IAAMC,UAKvDC,YAAYC,GACRC,MAAMD,GADS,sBAQNE,UACTC,KAAKC,SAAS,CACVC,WAAW,UAGTC,IAAcC,SAAS,sBAAuB,KAAMC,IAAaC,QAAQ,SACzEC,IAAcC,mBACpBR,KAAKH,MAAMY,aACXC,IAAIC,SAAS,CAAEC,OAAQ,yBAbvBZ,KAAKa,MAAQ,CACTX,WAAW,GAenBY,SACI,MAAMC,EAAaC,eAAiB,4BAC9BC,EAAUD,eAAiB,oBAC3BE,EAAgBF,eAAiB,gCAEvC,OACI,kBAACD,EAAD,CAAYN,WAAYT,KAAKH,MAAMY,WAAYU,MAAOC,YAAG,kBACpDA,YAAG,8EACHpB,KAAKa,MAAMX,UAAY,kBAACe,EAAD,MAAc,8BACtC,kBAACC,EAAD,CACIG,cAAeD,YAAG,WAClBE,qBAAsBtB,KAAKuB,WAC3BC,mBAAmB,SACnBC,kBAAkB,UAClBC,SAAU1B,KAAKH,MAAMY,WACrBkB,SAAU3B,KAAKa,MAAMX,c,IAvCpBT,E,YACE,CACfgB,WAAYmB,IAAUC,KAAKC","file":"bundles/ad206c913dd23f98f2b9/21.js","sourceRoot":""}
|
@ -0,0 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1197:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return p}));var o=n(3),a=n.n(o),s=n(33),r=n.n(s),l=n(36),i=n(35),c=n.n(i),m=n(34),u=n(40),d=n(41),g=n(63),h=n(154);class p extends r.a.Component{constructor(e){super(e),a()(this,"updateCurrentRoom",async e=>{const t=h.a.get();let n;try{n=await t.getStats()}catch{return}let o=null;e&&(o=e.name);const a=t.crawlingRooms(),s=a.crawlingRooms.size,r=a.totalRooms.size;this.setState({eventIndexSize:n.size,eventCount:n.eventCount,crawlingRoomsCount:s,roomCount:r,currentRoom:o})}),a()(this,"_onDisable",async()=>{d.a.createTrackedDialogAsync("Disable message search","Disable message search",n.e(21).then(n.bind(null,1182)),null,null,!1,!0)}),a()(this,"_onCrawlerSleepTimeChange",e=>{this.setState({crawlerSleepTime:e.target.value}),u.b.setValue("crawlerSleepTime",null,u.a.DEVICE,e.target.value)}),this.state={eventIndexSize:0,eventCount:0,crawlingRoomsCount:0,roomCount:0,currentRoom:null,crawlerSleepTime:u.b.getValueAt(u.a.DEVICE,"crawlerSleepTime")}}componentWillUnmount(){const e=h.a.get();null!==e&&e.removeListener("changedCheckpoint",this.updateCurrentRoom)}async componentDidMount(){let e=0,t=0,n=0,o=0,a=null;const s=h.a.get();if(null!==s){s.on("changedCheckpoint",this.updateCurrentRoom);try{const t=await s.getStats();e=t.size,o=t.eventCount}catch{}const r=s.crawlingRooms();t=r.crawlingRooms.size,n=r.totalRooms.size;const l=s.currentRoom();l&&(a=l.name)}this.setState({eventIndexSize:e,eventCount:o,crawlingRoomsCount:t,roomCount:n,currentRoom:a})}render(){let e;e=null===this.state.currentRoom?Object(m.a)("Not currently indexing messages for any room."):Object(m.a)("Currently indexing: %(currentRoom)s",{currentRoom:this.state.currentRoom});const t=l.getComponent("views.elements.Field"),n=Math.max(0,this.state.roomCount-this.state.crawlingRoomsCount),o=r.a.createElement("div",null,Object(m.a)("Riot is securely caching encrypted messages locally for them to appear in search results:"),r.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},e,r.a.createElement("br",null),Object(m.a)("Space used:")," ",Object(g.a)(this.state.eventIndexSize,0),r.a.createElement("br",null),Object(m.a)("Indexed messages:")," ",Object(g.d)(this.state.eventCount),r.a.createElement("br",null),Object(m.a)("Indexed rooms:")," ",Object(m.a)("%(doneRooms)s out of %(totalRooms)s",{doneRooms:Object(g.d)(n),totalRooms:Object(g.d)(this.state.roomCount)})," ",r.a.createElement("br",null),r.a.createElement(t,{label:Object(m.a)("Message downloading sleep time(ms)"),type:"number",value:this.state.crawlerSleepTime,onChange:this._onCrawlerSleepTimeChange}))),a=l.getComponent("views.dialogs.BaseDialog"),s=l.getComponent("views.elements.DialogButtons");return r.a.createElement(a,{className:"mx_ManageEventIndexDialog",onFinished:this.props.onFinished,title:Object(m.a)("Message search")},o,r.a.createElement(s,{primaryButton:Object(m.a)("Done"),onPrimaryButtonClick:this.props.onFinished,primaryButtonClass:"primary",cancelButton:Object(m.a)("Disable"),onCancel:this._onDisable,cancelButtonClass:"danger"}))}}a()(p,"propTypes",{onFinished:c.a.func.isRequired})}}]);
|
||||
//# sourceMappingURL=22.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/eventindex/ManageEventIndexDialog.js"],"names":["ManageEventIndexDialog","React","Component","constructor","props","super","async","eventIndex","EventIndexPeg","get","stats","getStats","currentRoom","room","name","roomStats","crawlingRooms","crawlingRoomsCount","size","roomCount","totalRooms","this","setState","eventIndexSize","eventCount","Modal","createTrackedDialogAsync","e","crawlerSleepTime","target","value","SettingsStore","setValue","SettingLevel","DEVICE","state","getValueAt","componentWillUnmount","removeListener","updateCurrentRoom","on","render","crawlerState","_t","Field","sdk","doneRooms","Math","max","eventIndexingSettings","className","formatBytes","formatCountLong","label","type","onChange","_onCrawlerSleepTimeChange","BaseDialog","DialogButtons","onFinished","title","primaryButton","onPrimaryButtonClick","primaryButtonClass","cancelButton","onCancel","_onDisable","cancelButtonClass","PropTypes","func","isRequired"],"mappings":"kPA6Be,MAAMA,UAA+BC,IAAMC,UAKtDC,YAAYC,GACRC,MAAMD,GADS,6BAcCE,UAChB,MAAMC,EAAaC,IAAcC,MACjC,IAAIC,EAEJ,IACIA,QAAcH,EAAWI,WAC3B,MAGE,OAGJ,IAAIC,EAAc,KAEdC,IAAMD,EAAcC,EAAKC,MAC7B,MAAMC,EAAYR,EAAWS,gBACvBC,EAAqBF,EAAUC,cAAcE,KAC7CC,EAAYJ,EAAUK,WAAWF,KAEvCG,KAAKC,SAAS,CACVC,eAAgBb,EAAMQ,KACtBM,WAAYd,EAAMc,WAClBP,mBAAoBA,EACpBE,UAAWA,EACXP,YAAaA,MAtCF,sBAyFNN,UACTmB,IAAMC,yBAAyB,yBAA0B,yBACrD,gCACA,KAAM,MAAuB,GAAsB,KA5FxC,qCAgGUC,IACzBN,KAAKC,SAAS,CAACM,iBAAkBD,EAAEE,OAAOC,QAC1CC,IAAcC,SAAS,mBAAoB,KAAMC,IAAaC,OAAQP,EAAEE,OAAOC,SA/F/ET,KAAKc,MAAQ,CACTZ,eAAgB,EAChBC,WAAY,EACZP,mBAAoB,EACpBE,UAAW,EACXP,YAAa,KACbgB,iBACIG,IAAcK,WAAWH,IAAaC,OAAQ,qBAgC1DG,uBACI,MAAM9B,EAAaC,IAAcC,MAEd,OAAfF,GACAA,EAAW+B,eAAe,oBAAqBjB,KAAKkB,mBAI5D,0BACI,IAAIhB,EAAiB,EACjBN,EAAqB,EACrBE,EAAY,EACZK,EAAa,EACbZ,EAAc,KAElB,MAAML,EAAaC,IAAcC,MAEjC,GAAmB,OAAfF,EAAqB,CACrBA,EAAWiC,GAAG,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,YAAG,WACjBsB,SAAU5C,KAAK6C,WACfC,kBAAkB,a,IAhKjBnE,E,YACE,CACf2D,WAAYS,IAAUC,KAAKC","file":"bundles/ad206c913dd23f98f2b9/22.js","sourceRoot":""}
|
@ -1 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1461:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return p}));var o=t(3),s=t.n(o),i=t(33),a=t.n(i),r=t(35),u=t.n(r),c=t(36),l=t(34);class p extends a.a.PureComponent{constructor(...e){super(...e),s()(this,"onDontAskAgainClick",()=>{this.props.onFinished(),this.props.onDontAskAgain()}),s()(this,"onSetupClick",()=>{this.props.onFinished(),this.props.onSetup()})}render(){const e=c.getComponent("views.dialogs.BaseDialog"),n=c.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_IgnoreRecoveryReminderDialog",onFinished:this.props.onFinished,title:Object(l.a)("Are you sure?")},a.a.createElement("div",null,a.a.createElement("p",null,Object(l.a)("Without setting up Secure Message Recovery, you'll lose your secure message history when you log out.")),a.a.createElement("p",null,Object(l.a)("If you don't want to set this up now, you can later in Settings.")),a.a.createElement("div",{className:"mx_Dialog_buttons"},a.a.createElement(n,{primaryButton:Object(l.a)("Set up"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(l.a)("Don't ask again"),onCancel:this.onDontAskAgainClick}))))}}s()(p,"propTypes",{onDontAskAgain:u.a.func.isRequired,onFinished:u.a.func.isRequired,onSetup:u.a.func.isRequired})}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1196:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return p}));var o=t(3),s=t.n(o),i=t(33),a=t.n(i),r=t(35),u=t.n(r),c=t(36),l=t(34);class p extends a.a.PureComponent{constructor(...e){super(...e),s()(this,"onDontAskAgainClick",()=>{this.props.onFinished(),this.props.onDontAskAgain()}),s()(this,"onSetupClick",()=>{this.props.onFinished(),this.props.onSetup()})}render(){const e=c.getComponent("views.dialogs.BaseDialog"),n=c.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_IgnoreRecoveryReminderDialog",onFinished:this.props.onFinished,title:Object(l.a)("Are you sure?")},a.a.createElement("div",null,a.a.createElement("p",null,Object(l.a)("Without setting up Secure Message Recovery, you'll lose your secure message history when you log out.")),a.a.createElement("p",null,Object(l.a)("If you don't want to set this up now, you can later in Settings.")),a.a.createElement("div",{className:"mx_Dialog_buttons"},a.a.createElement(n,{primaryButton:Object(l.a)("Set up"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(l.a)("Don't ask again"),onCancel:this.onDontAskAgainClick}))))}}s()(p,"propTypes",{onDontAskAgain:u.a.func.isRequired,onFinished:u.a.func.isRequired,onSetup:u.a.func.isRequired})}}]);
|
||||
//# sourceMappingURL=23.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/keybackup/IgnoreRecoveryReminderDialog.js"],"names":["IgnoreRecoveryReminderDialog","React","PureComponent","this","props","onFinished","onDontAskAgain","onSetup","render","BaseDialog","sdk","DialogButtons","className","title","_t","primaryButton","onPrimaryButtonClick","onSetupClick","cancelButton","onCancel","onDontAskAgainClick","PropTypes","func","isRequired"],"mappings":"iNAqBe,MAAMA,UAAqCC,IAAMC,cAAc,6DAOpD,KAClBC,KAAKC,MAAMC,aACXF,KAAKC,MAAME,mBAT2D,wBAY3D,KACXH,KAAKC,MAAMC,aACXF,KAAKC,MAAMG,YAGfC,SACI,MAAMC,EAAaC,eAAiB,4BAC9BC,EAAgBD,eAAiB,gCAEvC,OACI,kBAACD,EAAD,CAAYG,UAAU,kCAClBP,WAAYF,KAAKC,MAAMC,WACvBQ,MAAOC,YAAG,kBAEV,6BACI,2BAAIA,YACA,0GAIJ,2BAAIA,YACA,qEAGJ,yBAAKF,UAAU,qBACX,kBAACD,EAAD,CACII,cAAeD,YAAG,UAClBE,qBAAsBb,KAAKc,aAC3BC,aAAcJ,YAAG,mBACjBK,SAAUhB,KAAKiB,0B,IAzCtBpB,E,YACE,CACfM,eAAgBe,IAAUC,KAAKC,WAC/BlB,WAAYgB,IAAUC,KAAKC,WAC3BhB,QAASc,IAAUC,KAAKC","file":"bundles/ad206c913dd23f98f2b9/23.js","sourceRoot":""}
|
@ -1 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1456:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return m}));var a=n(3),o=n.n(a),s=n(33),i=n.n(s),c=n(35),r=n.n(c),l=n(36),u=n(37),p=n(39),d=n(34),h=n(41);class m extends i.a.PureComponent{constructor(...e){super(...e),o()(this,"onOkClick",()=>{this.props.onFinished()}),o()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),p.a.dispatch({action:"view_user_settings"})}),o()(this,"onSetupClick",async()=>{const e=l.getComponent("dialogs.keybackup.RestoreKeyBackupDialog");h.a.createTrackedDialog("Restore Backup","",e,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=i.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("New Recovery Method")),a=i.a.createElement("p",null,Object(d.a)("A new recovery passphrase and key for Secure Messages have been detected.")),o=i.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings."));let s;return s=u.a.get().getKeyBackupEnabled()?i.a.createElement("div",null,a,i.a.createElement("p",null,Object(d.a)("This session is encrypting history using the new recovery method.")),o,i.a.createElement(t,{primaryButton:Object(d.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):i.a.createElement("div",null,a,o,i.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),i.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},s)}}o()(m,"propTypes",{newVersionInfo:r.a.object,onFinished:r.a.func.isRequired})}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1191:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return m}));var a=n(3),o=n.n(a),s=n(33),i=n.n(s),c=n(35),r=n.n(c),l=n(36),u=n(37),p=n(39),d=n(34),h=n(41);class m extends i.a.PureComponent{constructor(...e){super(...e),o()(this,"onOkClick",()=>{this.props.onFinished()}),o()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),p.a.dispatch({action:"view_user_settings"})}),o()(this,"onSetupClick",async()=>{const e=l.getComponent("dialogs.keybackup.RestoreKeyBackupDialog");h.a.createTrackedDialog("Restore Backup","",e,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=i.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("New Recovery Method")),a=i.a.createElement("p",null,Object(d.a)("A new recovery passphrase and key for Secure Messages have been detected.")),o=i.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings."));let s;return s=u.a.get().getKeyBackupEnabled()?i.a.createElement("div",null,a,i.a.createElement("p",null,Object(d.a)("This session is encrypting history using the new recovery method.")),o,i.a.createElement(t,{primaryButton:Object(d.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):i.a.createElement("div",null,a,o,i.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),i.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},s)}}o()(m,"propTypes",{newVersionInfo:r.a.object,onFinished:r.a.func.isRequired})}}]);
|
||||
//# sourceMappingURL=24.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/keybackup/NewRecoveryMethodDialog.js"],"names":["NewRecoveryMethodDialog","React","PureComponent","this","props","onFinished","dis","dispatch","action","async","RestoreKeyBackupDialog","sdk","Modal","createTrackedDialog","render","BaseDialog","DialogButtons","title","className","_t","newMethodDetected","hackWarning","content","MatrixClientPeg","get","getKeyBackupEnabled","primaryButton","onPrimaryButtonClick","onOkClick","cancelButton","onCancel","onGoToSettingsClick","onSetupClick","newVersionInfo","PropTypes","object","func","isRequired"],"mappings":"yOAyBe,MAAMA,UAAgCC,IAAMC,cAAc,mDAOzD,KACRC,KAAKC,MAAMC,eARsD,+BAW/C,KAClBF,KAAKC,MAAMC,aACXC,IAAIC,SAAS,CAAEC,OAAQ,yBAb0C,wBAgBtDC,UACX,MAAMC,EAAyBC,eAAiB,4CAChDC,IAAMC,oBACF,iBAAkB,GAAIH,EAAwB,CAC1CL,WAAYF,KAAKC,MAAMC,YACxB,MAAuB,GAAsB,KAIxDS,SACI,MAAMC,EAAaJ,eAAiB,4BAC9BK,EAAgBL,eAAiB,gCAEjCM,EAAQ,0BAAMC,UAAU,kCACzBC,YAAG,wBAGFC,EAAoB,2BAAID,YAC1B,8EAGEE,EAAc,uBAAGH,UAAU,WAAWC,YACxC,qLAMJ,IAAIG,EA4BJ,OA1BIA,EADAC,IAAgBC,MAAMC,sBACZ,6BACLL,EACD,2BAAID,YACA,sEAEHE,EACD,kBAACL,EAAD,CACIU,cAAeP,YAAG,MAClBQ,qBAAsBxB,KAAKyB,UAC3BC,aAAcV,YAAG,kBACjBW,SAAU3B,KAAK4B,uBAIb,6BACLX,EACAC,EACD,kBAACL,EAAD,CACIU,cAAeP,YAAG,0BAClBQ,qBAAsBxB,KAAK6B,aAC3BH,aAAcV,YAAG,kBACjBW,SAAU3B,KAAK4B,uBAMvB,kBAAChB,EAAD,CAAYG,UAAU,2BAClBb,WAAYF,KAAKC,MAAMC,WACvBY,MAAOA,GAENK,I,IA7EItB,E,YACE,CAEfiC,eAAgBC,IAAUC,OAC1B9B,WAAY6B,IAAUE,KAAKC","file":"bundles/ad206c913dd23f98f2b9/24.js","sourceRoot":""}
|
@ -1 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1457:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var s=n(3),a=n.n(s),o=n(33),i=n.n(o),c=n(35),r=n.n(c),l=n(36),u=n(39),d=n(34),p=n(41);class h extends i.a.PureComponent{constructor(...e){super(...e),a()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),u.a.dispatch({action:"view_user_settings"})}),a()(this,"onSetupClick",()=>{this.props.onFinished(),p.a.createTrackedDialogAsync("Key Backup","Key Backup",Promise.all([n.e(0),n.e(1)]).then(n.bind(null,1448)),null,null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=i.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("Recovery Method Removed"));return i.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},i.a.createElement("div",null,i.a.createElement("p",null,Object(d.a)("This session has detected that your recovery passphrase and key for Secure Messages have been removed.")),i.a.createElement("p",null,Object(d.a)("If you did this accidentally, you can setup Secure Messages on this session which will re-encrypt this session's message history with a new recovery method.")),i.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.")),i.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})))}}a()(h,"propTypes",{onFinished:r.a.func.isRequired})}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1192:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var s=n(3),a=n.n(s),o=n(33),i=n.n(o),c=n(35),r=n.n(c),l=n(36),u=n(39),d=n(34),p=n(41);class h extends i.a.PureComponent{constructor(...e){super(...e),a()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),u.a.dispatch({action:"view_user_settings"})}),a()(this,"onSetupClick",()=>{this.props.onFinished(),p.a.createTrackedDialogAsync("Key Backup","Key Backup",Promise.all([n.e(0),n.e(1)]).then(n.bind(null,1181)),null,null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=i.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("Recovery Method Removed"));return i.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},i.a.createElement("div",null,i.a.createElement("p",null,Object(d.a)("This session has detected that your recovery passphrase and key for Secure Messages have been removed.")),i.a.createElement("p",null,Object(d.a)("If you did this accidentally, you can setup Secure Messages on this session which will re-encrypt this session's message history with a new recovery method.")),i.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.")),i.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})))}}a()(h,"propTypes",{onFinished:r.a.func.isRequired})}}]);
|
||||
//# sourceMappingURL=25.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/keybackup/RecoveryMethodRemovedDialog.js"],"names":["RecoveryMethodRemovedDialog","React","PureComponent","this","props","onFinished","dis","dispatch","action","Modal","createTrackedDialogAsync","render","BaseDialog","sdk","DialogButtons","title","className","_t","primaryButton","onPrimaryButtonClick","onSetupClick","cancelButton","onCancel","onGoToSettingsClick","PropTypes","func","isRequired"],"mappings":"iOAwBe,MAAMA,UAAoCC,IAAMC,cAAc,6DAKnD,KAClBC,KAAKC,MAAMC,aACXC,IAAIC,SAAS,CAAEC,OAAQ,yBAP8C,wBAU1D,KACXL,KAAKC,MAAMC,aACXI,IAAMC,yBAAyB,aAAc,aACzC,qDACA,KAAM,MAAuB,GAAsB,KAI3DC,SACI,MAAMC,EAAaC,eAAiB,4BAC9BC,EAAgBD,eAAiB,gCAEjCE,EAAQ,0BAAMC,UAAU,kCACzBC,YAAG,4BAGR,OACI,kBAACL,EAAD,CAAYI,UAAU,2BAClBX,WAAYF,KAAKC,MAAMC,WACvBU,MAAOA,GAEP,6BACI,2BAAIE,YACA,2GAGJ,2BAAIA,YACA,iKAIJ,uBAAGD,UAAU,WAAWC,YACpB,oLAKJ,kBAACH,EAAD,CACII,cAAeD,YAAG,0BAClBE,qBAAsBhB,KAAKiB,aAC3BC,aAAcJ,YAAG,kBACjBK,SAAUnB,KAAKoB,yB,IAnDlBvB,E,YACE,CACfK,WAAYmB,IAAUC,KAAKC","file":"bundles/ad206c913dd23f98f2b9/25.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
.mx_ErrorView{background:#c5e0f7;background:-webkit-gradient(linear,left top,left bottom,from(#c5e0f7),to(#fff));background:linear-gradient(180deg,#c5e0f7 0,#fff);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#c5e0f7",endColorstr="#ffffff",GradientType=0);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;width:100%;min-height:100%;height:auto;color:#000;font-size:1.067rem}.mx_ErrorView .mx_ErrorView_container{max-width:680px;margin:auto}.mx_ErrorView .mx_Button{border:0;border-radius:4px;font-size:1.2rem;margin-left:4px;margin-right:4px;min-width:80px;background-color:#03b381;color:#fff;cursor:pointer;padding:12px 22px;word-break:break-word;text-decoration:none}.mx_ErrorView .mx_Center,.mx_ErrorView .mx_HomePage_header{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mx_ErrorView .mx_HomePage_header{color:#2e2f32;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mx_ErrorView h1{font-size:2.133rem}.mx_ErrorView h2{font-size:1.6rem;color:#000}.mx_ErrorView .mx_HomePage_col{-ms-flex-direction:row;flex-direction:row}.mx_ErrorView .mx_HomePage_col,.mx_ErrorView .mx_HomePage_row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal}.mx_ErrorView .mx_HomePage_row{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.mx_ErrorView .mx_HomePage_logo{margin:auto 20px auto 0}.mx_ErrorView h1,.mx_ErrorView h2{font-weight:600;margin-bottom:32px}.mx_ErrorView .mx_Spacer{margin-top:24px}.mx_ErrorView .mx_FooterLink{color:#368bd6;text-decoration:none}
|
@ -0,0 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1190:function(e,t,a){"use strict";a.r(t);var r=a(33),o=a(34);a(326);t.default=({onAccept:e})=>r.createElement("div",{className:"mx_ErrorView"},r.createElement("div",{className:"mx_ErrorView_container"},r.createElement("div",{className:"mx_HomePage_header"},r.createElement("span",{className:"mx_HomePage_logo"},r.createElement("img",{height:"42",src:"themes/riot/img/logos/riot-logo.svg",alt:"Riot"})),r.createElement("h1",null,Object(o.a)("Unsupported browser"))),r.createElement("div",{className:"mx_HomePage_col"},r.createElement("div",{className:"mx_HomePage_row"},r.createElement("div",null,r.createElement("h2",{id:"step1_heading"},Object(o.a)("Your browser can't run Riot")),r.createElement("p",null,Object(o.a)("Riot uses advanced browser features which aren't supported by your current browser.")),r.createElement("p",null,Object(o.a)("Please install <chromeLink>Chrome</chromeLink>, <firefoxLink>Firefox</firefoxLink>, or <safariLink>Safari</safariLink> for the best experience.",{},{chromeLink:e=>r.createElement("a",{href:"https://www.google.com/chrome"},e),firefoxLink:e=>r.createElement("a",{href:"https://firefox.com"},e),safariLink:e=>r.createElement("a",{href:"https://apple.com/safari"},e)})),r.createElement("p",null,Object(o.a)("You can continue using your current browser, but some or all features may not work and the look and feel of the application may be incorrect.")),r.createElement("button",{onClick:e},Object(o.a)("I understand the risks and wish to continue"))))),r.createElement("div",{className:"mx_HomePage_col"},r.createElement("div",{className:"mx_HomePage_row"},r.createElement("div",null,r.createElement("h2",{id:"step2_heading"},"Use Riot on mobile"),r.createElement("p",null,r.createElement("strong",null,"iOS")," (iPhone or iPad)"),r.createElement("a",{href:"https://itunes.apple.com/app/riot-im/id1083446067?mt=8",target:"_blank",className:"mx_ClearDecoration"},r.createElement("img",{height:"48",src:"themes/riot/img/download/apple.svg",alt:"Apple App Store"})),r.createElement("p",{className:"mx_Spacer"},r.createElement("strong",null,"Android")),r.createElement("a",{href:"https://play.google.com/store/apps/details?id=im.vector.app",target:"_blank",className:"mx_ClearDecoration"},r.createElement("img",{height:"48",src:"themes/riot/img/download/google.svg",alt:"Google Play Store"})),r.createElement("a",{href:"https://f-droid.org/repository/browse/?fdid=im.vector.alpha",target:"_blank",className:"mx_ClearDecoration"},r.createElement("img",{height:"48",src:"themes/riot/img/download/fdroid.svg",alt:"F-Droid"}))))),r.createElement("div",{className:"mx_HomePage_row mx_Center mx_Spacer"},r.createElement("p",{className:"mx_Spacer"},r.createElement("a",{href:"https://riot.im",target:"_blank",className:"mx_FooterLink"},Object(o.a)("Go to Riot.im"))))))},326:function(e,t,a){}}]);
|
||||
//# sourceMappingURL=compatibility-view.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./src/async-components/structures/CompatibilityView.tsx"],"names":["CompatibilityView","onAccept","className","height","src","alt","_t","id","sub","href","onClick","target"],"mappings":"2FAAA,kCAwGeA,UA7E6B,EAAGC,cACpC,uBAAKC,UAAU,gBAClB,uBAAKA,UAAU,0BACX,uBAAKA,UAAU,sBACX,wBAAMA,UAAU,oBACZ,uBAAKC,OAAO,KAAKC,IAAI,sCAAsCC,IAAI,UAEnE,0BAAMC,YAAG,yBAGb,uBAAKJ,UAAU,mBACX,uBAAKA,UAAU,mBACX,2BACI,sBAAIK,GAAG,iBAAkBD,YAAG,gCAC5B,yBACMA,YACE,wFAGR,yBACMA,YACE,kJAEA,GACA,CACI,WAAeE,GAAQ,qBAAGC,KAAK,iCAAiCD,GAChE,YAAgBA,GAAQ,qBAAGC,KAAK,uBAAuBD,GACvD,WAAeA,GAAQ,qBAAGC,KAAK,4BAA4BD,MAIvE,yBACMF,YACE,kJAIR,0BAAQI,QAAST,GACXK,YAAG,mDAMrB,uBAAKJ,UAAU,mBACX,uBAAKA,UAAU,mBACX,2BACI,sBAAIK,GAAG,iBAAP,sBACA,yBAAG,qCAAH,qBACA,qBAAGE,KAAK,yDAAyDE,OAAO,SACrET,UAAU,sBACT,uBAAKC,OAAO,KAAKC,IAAI,qCAAqCC,IAAI,qBAElE,qBAAGH,UAAU,aAAY,0CACzB,qBAAGO,KAAK,8DAA8DE,OAAO,SAC1ET,UAAU,sBACT,uBAAKC,OAAO,KAAKC,IAAI,sCAAsCC,IAAI,uBAEnE,qBAAGI,KAAK,8DAA8DE,OAAO,SAC1ET,UAAU,sBACT,uBAAKC,OAAO,KAAKC,IAAI,sCAAsCC,IAAI,gBAM/E,uBAAKH,UAAU,uCACX,qBAAGA,UAAU,aACT,qBAAGO,KAAK,kBAAkBE,OAAO,SAAST,UAAU,iBAC9CI,YAAG,uB","file":"bundles/ad206c913dd23f98f2b9/compatibility-view.js","sourceRoot":""}
|
@ -0,0 +1 @@
|
||||
.mx_ErrorView{background:#c5e0f7;background:-webkit-gradient(linear,left top,left bottom,from(#c5e0f7),to(#fff));background:linear-gradient(180deg,#c5e0f7 0,#fff);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#c5e0f7",endColorstr="#ffffff",GradientType=0);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;width:100%;min-height:100%;height:auto;color:#000;font-size:1.067rem}.mx_ErrorView .mx_ErrorView_container{max-width:680px;margin:auto}.mx_ErrorView .mx_Button{border:0;border-radius:4px;font-size:1.2rem;margin-left:4px;margin-right:4px;min-width:80px;background-color:#03b381;color:#fff;cursor:pointer;padding:12px 22px;word-break:break-word;text-decoration:none}.mx_ErrorView .mx_Center,.mx_ErrorView .mx_HomePage_header{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mx_ErrorView .mx_HomePage_header{color:#2e2f32;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mx_ErrorView h1{font-size:2.133rem}.mx_ErrorView h2{font-size:1.6rem;color:#000}.mx_ErrorView .mx_HomePage_col{-ms-flex-direction:row;flex-direction:row}.mx_ErrorView .mx_HomePage_col,.mx_ErrorView .mx_HomePage_row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal}.mx_ErrorView .mx_HomePage_row{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.mx_ErrorView .mx_HomePage_logo{margin:auto 20px auto 0}.mx_ErrorView h1,.mx_ErrorView h2{font-weight:600;margin-bottom:32px}.mx_ErrorView .mx_Spacer{margin-top:24px}.mx_ErrorView .mx_FooterLink{color:#368bd6;text-decoration:none}
|
@ -0,0 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1189:function(e,a,t){"use strict";t.r(a);var m=t(33),r=t(34);t(326);a.default=({title:e,messages:a})=>m.createElement("div",{className:"mx_ErrorView"},m.createElement("div",{className:"mx_ErrorView_container"},m.createElement("div",{className:"mx_HomePage_header"},m.createElement("span",{className:"mx_HomePage_logo"},m.createElement("img",{height:"42",src:"themes/riot/img/logos/riot-logo.svg",alt:"Riot"})),m.createElement("h1",null,Object(r.a)("Failed to start"))),m.createElement("div",{className:"mx_HomePage_col"},m.createElement("div",{className:"mx_HomePage_row"},m.createElement("div",null,m.createElement("h2",{id:"step1_heading"},e),a&&a.map(e=>m.createElement("p",{key:e},e))))),m.createElement("div",{className:"mx_HomePage_row mx_Center mx_Spacer"},m.createElement("p",{className:"mx_Spacer"},m.createElement("a",{href:"https://riot.im",target:"_blank",className:"mx_FooterLink"},Object(r.a)("Go to Riot.im"))))))},326:function(e,a,t){}}]);
|
||||
//# sourceMappingURL=error-view.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./src/async-components/structures/ErrorView.tsx"],"names":["ErrorView","title","messages","className","height","src","alt","_t","id","map","msg","key","href","target"],"mappings":"2FAAA,kCA2DeA,UA9BqB,EAAEC,QAAOC,cAClC,uBAAKC,UAAU,gBAClB,uBAAKA,UAAU,0BACX,uBAAKA,UAAU,sBACX,wBAAMA,UAAU,oBACZ,uBAAKC,OAAO,KAAKC,IAAI,sCAAsCC,IAAI,UAEnE,0BAAMC,YAAG,qBAEb,uBAAKJ,UAAU,mBACX,uBAAKA,UAAU,mBACX,2BACI,sBAAIK,GAAG,iBAAkBP,GACxBC,GAAYA,EAASO,IAAIC,GAAO,qBAAGC,IAAKD,GACnCA,OAKlB,uBAAKP,UAAU,uCACX,qBAAGA,UAAU,aACT,qBAAGS,KAAK,kBAAkBC,OAAO,SAASV,UAAU,iBAC9CI,YAAG,uB","file":"bundles/ad206c913dd23f98f2b9/error-view.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1188:function(e,o,n){"use strict";n.r(o),n.d(o,"loadApp",(function(){return U}));var t=n(33),r=n.n(t),i=n(36),a=n(50),s=n(441),c=n(34),l=n(67),d=n(194),f=n(187),u=n(55),g=n.n(u),w=n(15),h=n(37),p=n(45),m=n(82);window.React=r.a;let _=null;function v(e){const o=Object(w.b)(e);return{screen:o.location.substring(1),params:o.params}}function b(e){decodeURIComponent(window.location.hash)!==_&&function(e){if(!window.matrixChat)return;console.log("Routing URL ",e.href);const o=v(e);window.matrixChat.showScreen(o.screen,o.params)}(window.location)}function C(e){console.log("newscreen "+e);const o="#/"+e;_=o,window.location.hash=o}function y(e){let o;o="vector:"===window.location.protocol?"https://riot.im/app/#/register":window.location.protocol+"//"+window.location.host+window.location.pathname+"#/register";const n=Object.keys(e);for(let t=0;t<n.length;++t){o+=0===t?"?":"&";const r=n[t];o+=r+"="+encodeURIComponent(e[r])}return o}function O(){const e=g.a.parse(window.location.href);e.search="";const o=g.a.format(e);console.log("Redirecting to ".concat(o," to drop loginToken from queryparams")),window.location.href=o}async function U(e){const o=document.body.dataset.vectorIndexeddbWorkerScript;if(!o)throw Object(c.h)(Object(c.b)("Missing indexeddb worker script!"));h.a.setIndexedDbWorkerScript(o),m.a.setConferenceHandler(s),window.addEventListener("hashchange",b);const n=a.a.get(),t=Object(w.a)(window.location),u=window.location.protocol+"//"+window.location.host+window.location.pathname;console.log("Vector starting at "+u),n.startUpdater();const g=await async function(){let e;try{console.log("Verifying homeserver configuration");const o=p.a.get();let n=o.default_server_config;const t=o.default_server_name,r=o.default_hs_url,i=o.default_is_url,a=[n,t,r].filter(e=>!!e);if(a.length>1)throw Object(c.h)(Object(c.b)("Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url."));if(a.length<1)throw Object(c.h)(Object(c.b)("Invalid configuration: no default server specified."));r&&(console.log("Config uses a default_hs_url - constructing a default_server_config using this information"),console.warn("DEPRECATED CONFIG OPTION: In the future, default_hs_url will not be accepted. Please use default_server_config instead."),n={"m.homeserver":{base_url:r}},i&&(n["m.identity_server"]={base_url:i}));let s=null;n&&(console.log("Config uses a default_server_config - validating object"),s=await d.a.fromDiscoveryConfig(n)),t&&(console.log("Config uses a default_server_name - doing .well-known lookup"),console.warn("DEPRECATED CONFIG OPTION: In the future, default_server_name will not be accepted. Please use default_server_config instead."),s=await d.a.findClientConfig(t)),e=l.b.buildValidatedConfigFromDiscovery(t,s,!0)}catch(o){const{hsUrl:n,isUrl:t,userId:r}=f.b();if(!n||!r)throw o;console.error(o),console.warn("A session was found - suppressing config error and using the session's homeserver"),console.log("Using pre-existing hsUrl and isUrl: ",{hsUrl:n,isUrl:t}),e=await l.b.validateServerConfigWithStaticUrls(n,t,!0)}return e.isDefault=!0,console.log("Using homeserver config:",e),console.log("Updating SdkConfig with validated discovery information"),p.a.add({validated_server_config:e}),p.a.get()}(),_=i.getComponent("structures.MatrixChat");return r.a.createElement(_,{onNewScreen:C,makeRegistrationUrl:y,ConferenceHandler:s,config:g,realQueryParams:t,startingFragmentQueryParams:e,enableGuest:!g.disable_guests,onTokenLoginCompleted:O,initialScreenAfterLogin:v(window.location),defaultDeviceDisplayName:n.getDefaultDeviceDisplayName()})}}}]);
|
||||
//# sourceMappingURL=riot-web-app.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./src/vector/app.tsx"],"names":["window","React","lastLocationHashSet","getScreenFromLocation","location","fragparts","parseQsFromFragment","screen","substring","params","onHashChange","ev","decodeURIComponent","hash","matrixChat","console","log","href","s","showScreen","routeUrl","onNewScreen","makeRegistrationUrl","url","protocol","host","pathname","keys","Object","i","length","k","encodeURIComponent","onTokenLoginCompleted","parsedUrl","parse","search","formatted","format","async","loadApp","fragParams","vectorIndexeddbWorkerScript","document","body","dataset","newTranslatableError","_td","MatrixClientPeg","setIndexedDbWorkerScript","CallHandler","setConferenceHandler","VectorConferenceHandler","addEventListener","platform","PlatformPeg","get","parseQs","urlWithoutQuery","startUpdater","config","validatedConfig","SdkConfig","wkConfig","serverName","hsUrl","isUrl","incompatibleOptions","filter","warn","discoveryResult","AutoDiscovery","fromDiscoveryConfig","findClientConfig","AutoDiscoveryUtils","buildValidatedConfigFromDiscovery","e","userId","Lifecycle","error","validateServerConfigWithStaticUrls","isDefault","add","verifyServerConfig","MatrixChat","sdk","ConferenceHandler","realQueryParams","startingFragmentQueryParams","enableGuest","disable_guests","initialScreenAfterLogin","defaultDeviceDisplayName","getDefaultDeviceDisplayName"],"mappings":"4FAAA,gLAuBAA,OAAOC,MAAQA,IAoBf,IAAIC,EAA8B,KAIlC,SAASC,EAAsBC,GAC3B,MAAMC,EAAYC,YAAoBF,GACtC,MAAO,CACHG,OAAQF,EAAUD,SAASI,UAAU,GACrCC,OAAQJ,EAAUI,QAc1B,SAASC,EAAaC,GACdC,mBAAmBZ,OAAOI,SAASS,QAAUX,GATrD,SAAkBE,GACd,IAAKJ,OAAOc,WAAY,OAExBC,QAAQC,IAAI,eAAgBZ,EAASa,MACrC,MAAMC,EAAIf,EAAsBC,GAC/BJ,OAAOc,WAA8BK,WAAWD,EAAEX,OAAQW,EAAET,QAQ7DW,CAASpB,OAAOI,UAKpB,SAASiB,EAAYd,GACjBQ,QAAQC,IAAI,aAAeT,GAC3B,MAAMM,EAAO,KAAON,EACpBL,EAAsBW,EACtBb,OAAOI,SAASS,KAAOA,EAY3B,SAASS,EAAoBb,GACzB,IAAIc,EAEAA,EAD6B,YAA7BvB,OAAOI,SAASoB,SACV,iCAGFxB,OAAOI,SAASoB,SAAW,KAC3BxB,OAAOI,SAASqB,KAChBzB,OAAOI,SAASsB,SAChB,aAIR,MAAMC,EAAOC,OAAOD,KAAKlB,GACzB,IAAK,IAAIoB,EAAI,EAAGA,EAAIF,EAAKG,SAAUD,EAAG,CAE9BN,GADM,IAANM,EACO,IA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ZsD,QAAwBC,IAAcC,oBAAoBT,IAG1DC,IACAjD,QAAQC,IAAI,gEACZD,QAAQsD,KACJ,gIAGJC,QAAwBC,IAAcE,iBAAiBT,IAG3DH,EAAkBa,IAAmBC,kCAAkCX,EAAYM,GAAiB,GACtG,MAAOM,GACL,MAAM,MAACX,EAAD,MAAQC,EAAR,OAAeW,GAAUC,MAC/B,IAAIb,IAASY,EAQT,MAAMD,EAPN7D,QAAQgE,MAAMH,GACd7D,QAAQsD,KAAK,qFAEbtD,QAAQC,IAAI,uCAAwC,CAACiD,QAAOC,UAC5DL,QAAwBa,IAAmBM,mCAAmCf,EAAOC,GAAO,GAgBpG,OATAL,EAAgBoB,WAAY,EAG5BlE,QAAQC,IAAI,2BAA4B6C,GAGxC9C,QAAQC,IAAI,2DACZ8C,IAAUoB,IAAI,CAAC,wBAA2BrB,IAEnCC,IAAUN,MA3GI2B,GACfC,EAAaC,eAAiB,yBACpC,OAAO,kBAACD,EAAD,CACH/D,YAAaA,EACbC,oBAAqBA,EACrBgE,kBAAmBlC,EACnBQ,OAAQA,EACR2B,gBAAiB9E,EACjB+E,4BAA6B/C,EAC7BgD,aAAc7B,EAAO8B,eACrBzD,sBAAuBA,EACvB0D,wBAAyBxF,EAAsBH,OAAOI,UACtDwF,yBAA0BtC,EAASuC","file":"bundles/ad206c913dd23f98f2b9/riot-web-app.js","sourceRoot":""}
|
@ -0,0 +1,2 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1198:function(e,t,r){"use strict";r.r(t),r.d(t,"components",(function(){return E}));var a=r(3),o=r.n(a),n=r(435),l=r(300),s=r.n(l),i=r(34);class c extends n.a{translate(e){return e=(e=s()(Object(i.a)(e))).replace(/\[matrix\]/,'<a href="https://matrix.org" target="_blank" rel="noreferrer noopener"><img width="79" height="34" alt="[matrix]" style="padding-left: 1px;vertical-align: middle" src="welcome/images/matrix.svg"/></a>')}}o()(c,"replaces","EmbeddedPage");var m=r(33),u=r.n(m),g=r(45);const d=()=>{const e=g.a.get().branding;let t=[{text:"blog",url:"https://blog.riot.im"},{text:"twitter",url:"https://twitter.com/@RiotChat"},{text:"github",url:"https://github.com/vector-im/riot-web"}];e&&e.authFooterLinks&&(t=e.authFooterLinks);const r=[];for(const e of t)r.push(u.a.createElement("a",{href:e.url,key:e.text,target:"_blank",rel:"noreferrer noopener"},e.text));return u.a.createElement("div",{className:"mx_AuthFooter"},r,u.a.createElement("a",{href:"https://matrix.org",target:"_blank",rel:"noreferrer noopener"},Object(i.a)("powered by Matrix")))};d.replaces="AuthFooter";var h=d,p=r(35),b=r.n(p);class x extends u.a.PureComponent{render(){const e=g.a.get().branding;let t="themes/riot/img/logos/riot-im-logo-black-text.svg";return e&&e.authHeaderLogoUrl&&(t=e.authHeaderLogoUrl),u.a.createElement("div",{className:"mx_AuthHeaderLogo"},u.a.createElement("img",{src:t,alt:"Riot"}))}}o()(x,"replaces","AuthHeaderLogo"),o()(x,"propTypes",{icon:b.a.string});var v=r(36);class w extends u.a.PureComponent{render(){const e=v.getComponent("auth.AuthFooter"),t=g.a.get().branding;let r="themes/riot/img/backgrounds/valley.jpg";t&&t.welcomeBackgroundUrl&&(r=Array.isArray(t.welcomeBackgroundUrl)?t.welcomeBackgroundUrl[Math.floor(Math.random()*t.welcomeBackgroundUrl.length)]:t.welcomeBackgroundUrl);const a={background:"center/cover fixed url(".concat(r,")")},o={position:"absolute",top:0,right:0,bottom:0,left:0,filter:"blur(10px)",background:a.background};return u.a.createElement("div",{className:"mx_AuthPage",style:a},u.a.createElement("div",{className:"mx_AuthPage_modal",style:{position:"relative",background:"initial"}},u.a.createElement("div",{className:"mx_AuthPage_modalBlur",style:o}),u.a.createElement("div",{className:"mx_AuthPage_modalContent",style:{display:"flex",zIndex:1,background:"rgba(255, 255, 255, 0.59)",borderRadius:"4px"}},this.props.children)),u.a.createElement(e,null))}}o()(w,"replaces","AuthPage");const f=({onFinished:e})=>u.a.createElement("div",{className:"mx_ErrorDialog"},u.a.createElement("div",{className:"mx_Dialog_title"},Object(i.a)("Custom Server Options")),u.a.createElement("div",{className:"mx_Dialog_content"},u.a.createElement("p",null,Object(i.a)("You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Riot with an existing Matrix account on a different homeserver."))),u.a.createElement("div",{className:"mx_Dialog_buttons"},u.a.createElement("button",{onClick:e,autoFocus:!0},Object(i.a)("Dismiss"))));f.replaces="CustomServerDialog";var k=f;let E={};c&&(E["structures.VectorEmbeddedPage"]=c),h&&(E["views.auth.VectorAuthFooter"]=h),x&&(E["views.auth.VectorAuthHeaderLogo"]=x),w&&(E["views.auth.VectorAuthPage"]=w),k&&(E["views.auth.VectorCustomServerDialog"]=k)}}]);
|
||||
//# sourceMappingURL=riot-web-component-index.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///./src/components/structures/VectorEmbeddedPage.js","webpack:///./src/components/views/auth/VectorAuthFooter.js","webpack:///./src/components/views/auth/VectorAuthHeaderLogo.js","webpack:///./src/components/views/auth/VectorAuthPage.js","webpack:///./src/components/views/auth/VectorCustomServerDialog.js","webpack:///./src/component-index.js"],"names":["VectorEmbeddedPage","EmbeddedPage","translate","s","sanitizeHtml","_t","replace","VectorAuthFooter","brandingConfig","SdkConfig","get","branding","links","authFooterLinks","linkEntry","push","href","url","key","text","target","rel","className","replaces","VectorAuthHeaderLogo","React","PureComponent","render","logoUrl","authHeaderLogoUrl","src","alt","icon","PropTypes","string","VectorAuthPage","AuthFooter","sdk","backgroundUrl","welcomeBackgroundUrl","Array","isArray","Math","floor","random","length","pageStyle","background","blurStyle","position","top","right","bottom","left","filter","style","display","zIndex","borderRadius","this","props","children","VectorCustomServerDialog","onFinished","onClick","autoFocus","components","structures$VectorEmbeddedPage","views$auth$VectorAuthFooter","views$auth$VectorAuthHeaderLogo","views$auth$VectorAuthPage","views$auth$VectorCustomServerDialog"],"mappings":"qMAwBe,MAAMA,UAA2BC,IAI5CC,UAAUC,GAIN,OADAA,GAFAA,EA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C,MAAO,EACPC,OAAQ,EACRC,KAAM,EACNC,OAAQ,aACRP,WAAYD,EAAUC,YAU1B,OACI,yBAAKzB,UAAU,cAAciC,MAAOT,GAChC,yBAAKxB,UAAU,oBAAoBiC,MAxBxB,CACfN,SAAU,WACVF,WAAY,YAuBJ,yBAAKzB,UAAU,wBAAwBiC,MAAOP,IAC9C,yBAAK1B,UAAU,2BAA2BiC,MAX5B,CACtBC,QAAS,OACTC,OAAQ,EACRV,WAAY,4BACZW,aAAc,QAQAC,KAAKC,MAAMC,WAGrB,kBAACzB,EAAD,Q,IAlDKD,E,WACC,YCCtB,MAAM2B,EAA2B,EAAEC,gBAE3B,yBAAKzC,UAAU,kBACX,yBAAKA,UAAU,mBACTjB,YAAG,0BAET,yBAAKiB,UAAU,qBACX,2BAAIjB,YACA,8MAMR,yBAAKiB,UAAU,qBACX,4BAAQ0C,QAASD,EAAYE,WAAW,GAClC5D,YAAG,cAOzByD,EAAyBvC,SAAW,qBAErBuC,QC1Bf,IAAII,EAAa,GAEjBC,IAAkCD,EAAW,iCAAmCC,GAEhFC,IAAgCF,EAAW,+BAAiCE,GAE5EC,IAAoCH,EAAW,mCAAqCG,GAEpFC,IAA8BJ,EAAW,6BAA+BI,GAExEC,IAAwCL,EAAW,uCAAyCK","file":"bundles/ad206c913dd23f98f2b9/riot-web-component-index.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
@ -1 +1,2 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=31)}({31:function(e,t,r){}});
|
||||
//# sourceMappingURL=theme-dark-custom.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I","file":"bundles/ad206c913dd23f98f2b9/theme-dark-custom.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
@ -1 +1,2 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=29)}({29:function(e,t,r){}});
|
||||
//# sourceMappingURL=theme-dark.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I","file":"bundles/ad206c913dd23f98f2b9/theme-dark.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
@ -1 +1,2 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}({30:function(e,t,r){}});
|
||||
//# sourceMappingURL=theme-light-custom.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I","file":"bundles/ad206c913dd23f98f2b9/theme-light-custom.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
@ -1 +1,2 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=28)}({28:function(e,t,r){}});
|
||||
//# sourceMappingURL=theme-light.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,GAIjBlC,EAAoBA,EAAoBmC,EAAI,I","file":"bundles/ad206c913dd23f98f2b9/theme-light.js","sourceRoot":""}
|
@ -1 +1,2 @@
|
||||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}({27:function(e,t){const n=window.location.search.substring(1).split("&");let o;for(let e=0;e<n.length;++e){const t=n[e].split("=");"origin"===t[0]&&(o=decodeURIComponent(t[1]))}window.onmessage=function(e){e.origin===o&&(e.data.blob?function(e){const t=e.data,n=document.createElement("img");n.id="img",n.src=t.imgSrc,n.style=t.imgStyle;const o=document.createElement("a");o.id="a",o.rel="noreferrer noopener",o.download=t.download,o.style=t.style,o.style.fontFamily="Arial, Helvetica, Sans-Serif",o.href=window.URL.createObjectURL(t.blob),o.appendChild(n),o.appendChild(document.createTextNode(t.textContent));const r=document.body;r.style="margin: 0px; overflow: hidden",r.appendChild(o),e.data.auto&&o.click()}(e):function(e){const t=e.data,n=document.getElementById("img");n.src=t.imgSrc,n.style=t.imgStyle,document.getElementById("a").style=t.style}(e))}}});
|
||||
//# sourceMappingURL=usercontent.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/matrix-react-sdk/src/usercontent/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","params","window","location","search","substring","split","lockOrigin","length","parts","decodeURIComponent","onmessage","e","origin","data","blob","event","img","document","createElement","id","src","imgSrc","style","imgStyle","a","rel","download","fontFamily","href","URL","createObjectURL","appendChild","createTextNode","textContent","body","auto","click","remoteRender","getElementById","remoteSetTint"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA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AAOE,EAAMF,KAEbG,EAAMC,SAASC,cAAc,OACnCF,EAAIG,GAAK,MACTH,EAAII,IAAMP,EAAKQ,OACfL,EAAIM,MAAQT,EAAKU,SAEjB,MAAMC,EAAIP,SAASC,cAAc,KACjCM,EAAEL,GAAK,IACPK,EAAEC,IAAM,sBACRD,EAAEE,SAAWb,EAAKa,SAClBF,EAAEF,MAAQT,EAAKS,MACfE,EAAEF,MAAMK,WAAa,+BACrBH,EAAEI,KAAO3B,OAAO4B,IAAIC,gBAAgBjB,EAAKC,MACzCU,EAAEO,YAAYf,GACdQ,EAAEO,YAAYd,SAASe,eAAenB,EAAKoB,cAE3C,MAAMC,EAAOjB,SAASiB,KAEtBA,EAAKZ,MAAQ,gCACbY,EAAKH,YAAYP,GAEbT,EAAMF,KAAKsB,MACXX,EAAEY,QAiBeC,CAAa1B,GAbtC,SAAuBI,GACnB,MAAMF,EAAOE,EAAMF,KAEbG,EAAMC,SAASqB,eAAe,OACpCtB,EAAII,IAAMP,EAAKQ,OACfL,EAAIM,MAAQT,EAAKU,SAEPN,SAASqB,eAAe,KAChChB,MAAQT,EAAKS,MAMNiB,CAAc5B","file":"bundles/ad206c913dd23f98f2b9/usercontent.js","sourceRoot":""}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Quick-n-dirty algebraic datatypes.
|
||||
*
|
||||
* These let us handle the possibility of failure without having to constantly write code to check for it.
|
||||
* We can apply all of the transformations we need as if the data is present using `map`.
|
||||
* If there's a None, or a FetchError, or a Pending, those are left untouched.
|
||||
*
|
||||
* I've used perhaps an odd bit of terminology from scalaz in `fold`. This is basically a `switch` statement:
|
||||
* You pass it a set of functions to handle the various different states of the datatype, and if it finds the
|
||||
* function it'll call it on its value.
|
||||
*
|
||||
* It's handy to have this in functional style when dealing with React as we can dispatch different ways of rendering
|
||||
* really simply:
|
||||
* ```
|
||||
* bundleFetchStatus.fold({
|
||||
* some: (fetchStatus) => <ProgressBar fetchsStatus={fetchStatus} />,
|
||||
* }),
|
||||
* ```
|
||||
*/
|
||||
|
||||
|
||||
class Optional {
|
||||
static from(value) {
|
||||
return value && Some.of(value) || None;
|
||||
}
|
||||
map(f) {
|
||||
return this;
|
||||
}
|
||||
flatMap(f) {
|
||||
return this;
|
||||
}
|
||||
fold({ none }) {
|
||||
return none && none();
|
||||
}
|
||||
}
|
||||
class Some extends Optional {
|
||||
constructor(value) {
|
||||
super();
|
||||
this.value = value;
|
||||
}
|
||||
map(f) {
|
||||
return Some.of(f(this.value));
|
||||
}
|
||||
flatMap(f) {
|
||||
return f(this.value);
|
||||
}
|
||||
fold({ some }) {
|
||||
return some && some(this.value);
|
||||
}
|
||||
static of(value) {
|
||||
return new Some(value);
|
||||
}
|
||||
}
|
||||
const None = new Optional();
|
||||
|
||||
class FetchStatus {
|
||||
constructor(opt = {}) {
|
||||
this.opt = { at: Date.now(), ...opt };
|
||||
}
|
||||
map(f) {
|
||||
return this;
|
||||
}
|
||||
flatMap(f) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
class Success extends FetchStatus {
|
||||
static of(value) {
|
||||
return new Success(value);
|
||||
}
|
||||
constructor(value, opt) {
|
||||
super(opt);
|
||||
this.value = value;
|
||||
}
|
||||
map(f) {
|
||||
return new Success(f(this.value), this.opt);
|
||||
}
|
||||
flatMap(f) {
|
||||
return f(this.value, this.opt);
|
||||
}
|
||||
fold({ success }) {
|
||||
return success instanceof Function ? success(this.value, this.opt) : undefined;
|
||||
}
|
||||
}
|
||||
class Pending extends FetchStatus {
|
||||
static of(opt) {
|
||||
return new Pending(opt);
|
||||
}
|
||||
constructor(opt) {
|
||||
super(opt);
|
||||
}
|
||||
fold({ pending }) {
|
||||
return pending instanceof Function ? pending(this.opt) : undefined;
|
||||
}
|
||||
}
|
||||
class FetchError extends FetchStatus {
|
||||
static of(reason, opt) {
|
||||
return new FetchError(reason, opt);
|
||||
}
|
||||
constructor(reason, opt) {
|
||||
super(opt);
|
||||
this.reason = reason;
|
||||
}
|
||||
fold({ error }) {
|
||||
return error instanceof Function ? error(this.reason, this.opt) : undefined;
|
||||
}
|
||||
}
|
@ -0,0 +1,319 @@
|
||||
class StartupError extends Error {}
|
||||
|
||||
/*
|
||||
* We need to know the bundle path before we can fetch the sourcemap files. In a production environment, we can guess
|
||||
* it using this.
|
||||
*/
|
||||
async function getBundleName() {
|
||||
const res = await fetch("../index.html");
|
||||
if (!res.ok) {
|
||||
throw new StartupError(`Couldn't fetch index.html to prefill bundle; ${res.status} ${res.statusText}`);
|
||||
}
|
||||
const index = await res.text();
|
||||
return index.split("\n").map((line) =>
|
||||
line.match(/<script src="bundles\/([^/]+)\/bundle.js"/),
|
||||
)
|
||||
.filter((result) => result)
|
||||
.map((result) => result[1])[0];
|
||||
}
|
||||
|
||||
function validateBundle(value) {
|
||||
return value.match(/^[0-9a-f]{20}$/) ? Some.of(value) : None;
|
||||
}
|
||||
|
||||
/* A custom fetcher that abandons immediately upon getting a response.
|
||||
* The purpose of this is just to validate that the user entered a real bundle, and provide feedback.
|
||||
*/
|
||||
const bundleCache = new Map();
|
||||
function bundleSubject(bundle) {
|
||||
if (!bundle.match(/^[0-9a-f]{20}$/)) throw new Error("Bad input");
|
||||
if (bundleCache.has(bundle)) {
|
||||
return bundleCache.get(bundle);
|
||||
}
|
||||
const fetcher = new rxjs.BehaviorSubject(Pending.of());
|
||||
bundleCache.set(bundle, fetcher);
|
||||
|
||||
fetch(`/bundles/${bundle}/bundle.js.map`).then((res) => {
|
||||
res.body.cancel(); /* Bail on the download immediately - it could be big! */
|
||||
const status = res.ok;
|
||||
if (status) {
|
||||
fetcher.next(Success.of());
|
||||
} else {
|
||||
fetcher.next(FetchError.of(`Failed to fetch: ${res.status} ${res.statusText}`));
|
||||
}
|
||||
});
|
||||
|
||||
return fetcher;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert a ReadableStream of bytes into an Observable of a string
|
||||
* The observable will emit a stream of Pending objects and will concatenate
|
||||
* the number of bytes received with whatever pendingContext has been supplied.
|
||||
* Finally, it will emit a Success containing the result.
|
||||
* You'd use this on a Response.body.
|
||||
*/
|
||||
function observeReadableStream(readableStream, pendingContext = {}) {
|
||||
let bytesReceived = 0;
|
||||
let buffer = "";
|
||||
const pendingSubject = new rxjs.BehaviorSubject(Pending.of({ ...pendingContext, bytesReceived }));
|
||||
const throttledPending = pendingSubject.pipe(rxjs.operators.throttleTime(100));
|
||||
const resultObservable = new rxjs.Subject();
|
||||
const reader = readableStream.getReader();
|
||||
const utf8Decoder = new TextDecoder("utf-8");
|
||||
function readNextChunk() {
|
||||
reader.read().then(({ done, value }) => {
|
||||
if (done) {
|
||||
pendingSubject.complete();
|
||||
resultObservable.next(Success.of(buffer));
|
||||
return;
|
||||
}
|
||||
bytesReceived += value.length;
|
||||
pendingSubject.next(Pending.of({...pendingContext, bytesReceived }));
|
||||
/* string concatenation is apparently the most performant way to do this */
|
||||
buffer += utf8Decoder.decode(value);
|
||||
readNextChunk();
|
||||
});
|
||||
}
|
||||
readNextChunk();
|
||||
return rxjs.concat(throttledPending, resultObservable);
|
||||
}
|
||||
|
||||
/*
|
||||
* A wrapper which converts the browser's `fetch()` mechanism into an Observable. The Observable then provides us with
|
||||
* a stream of datatype values: first, a sequence of Pending objects that keep us up to date with the download progress,
|
||||
* finally followed by either a Success or Failure object. React then just has to render each of these appropriately.
|
||||
*/
|
||||
const fetchCache = new Map();
|
||||
function fetchAsSubject(endpoint) {
|
||||
if (fetchCache.has(endpoint)) {
|
||||
// TODO: expiry/retry logic here?
|
||||
return fetchCache.get(endpoint);
|
||||
}
|
||||
const fetcher = new rxjs.BehaviorSubject(Pending.of());
|
||||
fetchCache.set(endpoint, fetcher);
|
||||
|
||||
fetch(endpoint).then((res) => {
|
||||
if (!res.ok) {
|
||||
fetcher.next(FetchError.of(`Failed to fetch endpoint ${endpoint}: ${res.status} ${res.statusText}`));
|
||||
return;
|
||||
}
|
||||
|
||||
const contentLength = res.headers.get("content-length");
|
||||
const context = contentLength ? { length: parseInt(contentLength) } : {};
|
||||
|
||||
const streamer = observeReadableStream(res.body, context, endpoint);
|
||||
streamer.subscribe((value) => {
|
||||
fetcher.next(value);
|
||||
});
|
||||
});
|
||||
return fetcher;
|
||||
}
|
||||
|
||||
/* ===================== */
|
||||
/* ==== React stuff ==== */
|
||||
/* ===================== */
|
||||
/* Rather than importing an entire build infrastructure, for now we just use React without JSX */
|
||||
const e = React.createElement;
|
||||
|
||||
/*
|
||||
* Provides user feedback given a FetchStatus object.
|
||||
*/
|
||||
function ProgressBar({ fetchStatus }) {
|
||||
return e('span', { className: "progress "},
|
||||
fetchStatus.fold({
|
||||
pending: ({ bytesReceived, length }) => {
|
||||
if (!bytesReceived) {
|
||||
return e('span', { className: "spinner" }, "\u29b5");
|
||||
}
|
||||
const kB = Math.floor(10 * bytesReceived / 1024) / 10;
|
||||
if (!length) {
|
||||
return e('span', null, `Fetching (${kB}kB)`);
|
||||
}
|
||||
const percent = Math.floor(100 * bytesReceived / length);
|
||||
return e('span', null, `Fetching (${kB}kB) ${percent}%`);
|
||||
},
|
||||
success: () => e('span', null, "\u2713"),
|
||||
error: (reason) => {
|
||||
return e('span', { className: 'error'}, `\u2717 ${reason}`);
|
||||
},
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
/*
|
||||
* The main component.
|
||||
*/
|
||||
function BundlePicker() {
|
||||
const [bundle, setBundle] = React.useState("");
|
||||
const [file, setFile] = React.useState("");
|
||||
const [line, setLine] = React.useState("1");
|
||||
const [column, setColumn] = React.useState("");
|
||||
const [result, setResult] = React.useState(None);
|
||||
const [bundleFetchStatus, setBundleFetchStatus] = React.useState(None);
|
||||
const [fileFetchStatus, setFileFetchStatus] = React.useState(None);
|
||||
|
||||
/* At startup, try to fill in the bundle name for the user */
|
||||
React.useEffect(() => {
|
||||
getBundleName().then((name) => {
|
||||
if (bundle === "" && validateBundle(name) !== None) {
|
||||
setBundle(name);
|
||||
}
|
||||
}, console.log.bind(console));
|
||||
}, []);
|
||||
|
||||
|
||||
/* ------------------------- */
|
||||
/* Follow user state changes */
|
||||
/* ------------------------- */
|
||||
const onBundleChange = React.useCallback((event) => {
|
||||
const value = event.target.value;
|
||||
setBundle(value);
|
||||
}, []);
|
||||
|
||||
const onFileChange = React.useCallback((event) => {
|
||||
const value = event.target.value;
|
||||
setFile(value);
|
||||
}, []);
|
||||
|
||||
const onLineChange = React.useCallback((event) => {
|
||||
const value = event.target.value;
|
||||
setLine(value);
|
||||
}, []);
|
||||
|
||||
const onColumnChange = React.useCallback((event) => {
|
||||
const value = event.target.value;
|
||||
setColumn(value);
|
||||
}, []);
|
||||
|
||||
|
||||
/* ------------------------------------------------ */
|
||||
/* Plumb data-fetching observables through to React */
|
||||
/* ------------------------------------------------ */
|
||||
|
||||
/* Whenever a valid bundle name is input, go see if it's a real bundle on the server */
|
||||
React.useEffect(() =>
|
||||
validateBundle(bundle).fold({
|
||||
some: (value) => {
|
||||
const subscription = bundleSubject(value)
|
||||
.pipe(rxjs.operators.map(Some.of))
|
||||
.subscribe(setBundleFetchStatus);
|
||||
return () => subscription.unsubscribe();
|
||||
},
|
||||
none: () => setBundleFetchStatus(None),
|
||||
}),
|
||||
[bundle]);
|
||||
|
||||
/* Whenever a valid javascript file is input, see if it corresponds to a sourcemap file and initiate a fetch
|
||||
* if so. */
|
||||
React.useEffect(() => {
|
||||
if (!file.match(/.\.js$/) || validateBundle(bundle) === None) {
|
||||
setFileFetchStatus(None);
|
||||
return;
|
||||
}
|
||||
const observable = fetchAsSubject(`/bundles/${bundle}/${file}.map`)
|
||||
.pipe(
|
||||
rxjs.operators.map((fetchStatus) => fetchStatus.flatMap(value => {
|
||||
try {
|
||||
return Success.of(JSON.parse(value));
|
||||
} catch (e) {
|
||||
return FetchError.of(e);
|
||||
}
|
||||
})),
|
||||
rxjs.operators.map(Some.of),
|
||||
);
|
||||
const subscription = observable.subscribe(setFileFetchStatus);
|
||||
return () => subscription.unsubscribe();
|
||||
}, [bundle, file]);
|
||||
|
||||
/*
|
||||
* Whenever we have a valid fetched sourcemap, and a valid line, attempt to find the original position from the
|
||||
* sourcemap.
|
||||
*/
|
||||
React.useEffect(() => {
|
||||
// `fold` dispatches on the datatype, like a switch statement
|
||||
fileFetchStatus.fold({
|
||||
some: (fetchStatus) =>
|
||||
// `fold` just returns null for all of the cases that aren't `Success` objects here
|
||||
fetchStatus.fold({
|
||||
success: (value) => {
|
||||
if (!line) return setResult(None);
|
||||
const pLine = parseInt(line);
|
||||
const pCol = parseInt(column);
|
||||
sourceMap.SourceMapConsumer.with(value, undefined, (consumer) =>
|
||||
consumer.originalPositionFor({ line: pLine, column: pCol }),
|
||||
).then((result) => setResult(Some.of(JSON.stringify(result))));
|
||||
},
|
||||
}),
|
||||
none: () => setResult(None),
|
||||
});
|
||||
}, [fileFetchStatus, line, column]);
|
||||
|
||||
|
||||
/* ------ */
|
||||
/* Render */
|
||||
/* ------ */
|
||||
return e('div', {},
|
||||
e('div', { className: 'inputs' },
|
||||
e('div', { className: 'bundle' },
|
||||
e('label', { htmlFor: 'bundle'}, 'Bundle'),
|
||||
e('input', {
|
||||
name: 'bundle',
|
||||
required: true,
|
||||
pattern: "[0-9a-f]{20}",
|
||||
onChange: onBundleChange,
|
||||
value: bundle,
|
||||
}),
|
||||
bundleFetchStatus.fold({
|
||||
some: (fetchStatus) => e(ProgressBar, { fetchStatus }),
|
||||
none: () => null,
|
||||
}),
|
||||
),
|
||||
e('div', { className: 'file' },
|
||||
e('label', { htmlFor: 'file' }, 'File'),
|
||||
e('input', {
|
||||
name: 'file',
|
||||
required: true,
|
||||
pattern: ".+\\.js",
|
||||
onChange: onFileChange,
|
||||
value: file,
|
||||
}),
|
||||
fileFetchStatus.fold({
|
||||
some: (fetchStatus) => e(ProgressBar, { fetchStatus }),
|
||||
none: () => null,
|
||||
}),
|
||||
),
|
||||
e('div', { className: 'line' },
|
||||
e('label', { htmlFor: 'line' }, 'Line'),
|
||||
e('input', {
|
||||
name: 'line',
|
||||
required: true,
|
||||
pattern: "[0-9]+",
|
||||
onChange: onLineChange,
|
||||
value: line,
|
||||
}),
|
||||
),
|
||||
e('div', { className: 'column' },
|
||||
e('label', { htmlFor: 'column' }, 'Column'),
|
||||
e('input', {
|
||||
name: 'column',
|
||||
required: true,
|
||||
pattern: "[0-9]+",
|
||||
onChange: onColumnChange,
|
||||
value: column,
|
||||
}),
|
||||
),
|
||||
),
|
||||
e('div', null,
|
||||
result.fold({
|
||||
none: () => "Select a bundle, file and line",
|
||||
some: (value) => e('pre', null, value),
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/* Global stuff */
|
||||
window.Decoder = {
|
||||
BundlePicker,
|
||||
};
|
@ -0,0 +1,79 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Rageshake decoder ring</title>
|
||||
<script crossorigin src="https://unpkg.com/source-map@0.7.3/dist/source-map.js"></script>
|
||||
<script>
|
||||
sourceMap.SourceMapConsumer.initialize({
|
||||
"lib/mappings.wasm": "https://unpkg.com/source-map@0.7.3/lib/mappings.wasm"
|
||||
});
|
||||
</script>
|
||||
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
|
||||
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
|
||||
<!--<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
|
||||
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>-->
|
||||
<script crossorigin src="https://unpkg.com/rxjs/bundles/rxjs.umd.min.js"></script>
|
||||
<script src="datatypes.js"></script>
|
||||
<script src="decoder.js"></script>
|
||||
|
||||
<style>
|
||||
@keyframes spin {
|
||||
from {transform:rotate(0deg);}
|
||||
to {transform:rotate(359deg);}
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: spin 4s infinite linear;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.progress {
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.bundle input {
|
||||
width: 24ex;
|
||||
}
|
||||
|
||||
.valid::after {
|
||||
content: "✓"
|
||||
}
|
||||
|
||||
label {
|
||||
width: 3em;
|
||||
margin-right: 1em;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
input:valid {
|
||||
border: 1px solid green;
|
||||
}
|
||||
|
||||
.inputs > div {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header><h2>Decoder ring</h2></header>
|
||||
<content id="main">Waiting for javascript to run...</content>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
try {
|
||||
ReactDOM.render(React.createElement(Decoder.BundlePicker), document.getElementById("main"))
|
||||
} catch (e) {
|
||||
const n = document.createElement("div");
|
||||
n.innerText = `Error starting: ${e.message}`;
|
||||
document.getElementById("main").appendChild(n);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue