diff --git a/site.css b/site.css index 4dae73f..1b22c77 100644 --- a/site.css +++ b/site.css @@ -141,3 +141,8 @@ body { .mxt_HomePage_info { } + +.mxt_Footer { + text-align: center; + font-size: 12px; +} \ No newline at end of file diff --git a/src/components/Footer.js b/src/components/Footer.js index 3345618..406a480 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -21,6 +21,7 @@ export default React.createClass({ render() { return (
+ Copyright 2016 Matrix.org
); } diff --git a/src/components/HomePage.js b/src/components/HomePage.js index 5d30cf1..4933411 100644 --- a/src/components/HomePage.js +++ b/src/components/HomePage.js @@ -171,17 +171,19 @@ export default React.createClass({ // XXX: cargo-culted from matrix-react-sdk isAliasValid(alias) { // XXX: FIXME SPEC-1 - return (alias.match(/^#([^\/:,]+?):(.+)$/) && encodeURI(alias) === alias); + return (alias.match(/^#([^\/:]+?):(.+)$/) && encodeURI(alias) === alias); }, isUserIdValid(userId) { // XXX: FIXME SPEC-1 - return (userId.match(/^@([^\/:,]+?):(.+)$/) && encodeURI(userId) === userId); + return (userId.match(/^@([^\/:]+?):(.+)$/) && encodeURI(userId) === userId); }, isMsglinkValid(msglink) { // XXX: FIXME SPEC-1 - return (msglink.match(/^(\!#)([^\/:,]+?):(.+)\/\$[^\/:,]+?:(.+)$/) && encodeURI(msglink) === msglink); + console.log(msglink); + console.log(encodeURI(msglink)); + return (msglink.match(/^[\!#]([^\/:]+?):(.+?)\/\$([^\/:]+?):(.+?)$/) && encodeURI(msglink) === msglink); }, render() { @@ -216,7 +218,7 @@ export default React.createClass({ Matrix is an ecosystem for open and interoperable communication.

- To connect to { this.state.entity }, please select an app: + To connect to { isMsg ? "this message" : this.state.entity }, please select an app:

@@ -236,7 +238,7 @@ export default React.createClass({ Maturity
- Access to { this.state.entity } + Access to { isMsg ? "message" : this.state.entity }
@@ -253,7 +255,6 @@ export default React.createClass({ } if (!link) return
; - var link = isRoom ? client.room_url + this.state.entity : client.user_url + this.state.entity; return (