improve links
This commit is contained in:
parent
97f1cf2bd5
commit
e71ee8f43d
2 changed files with 43 additions and 30 deletions
2
site.css
2
site.css
|
@ -143,6 +143,8 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.mxt_Footer {
|
.mxt_Footer {
|
||||||
|
margin-top: 50px;
|
||||||
|
margin-bottom: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
|
@ -22,9 +22,9 @@ var linkable_clients = [
|
||||||
logo: "",
|
logo: "",
|
||||||
author: "Vector.im",
|
author: "Vector.im",
|
||||||
homepage: "https://vector.im",
|
homepage: "https://vector.im",
|
||||||
room_url: "https://vector.im/beta/#/room/",
|
room_url(alias) { return "https://vector.im/beta/#/room/" + alias },
|
||||||
user_url: "https://vector.im/beta/#/user/",
|
user_url(userId) { return "https://vector.im/beta/#/user/" + userId },
|
||||||
msg_url: "https://vector.im/beta/#/room/",
|
msg_url(msg) { return "https://vector.im/beta/#/room/" + msg },
|
||||||
maturity: "Late beta",
|
maturity: "Late beta",
|
||||||
comments: "Fully-featured Matrix client for Web, iOS & Android",
|
comments: "Fully-featured Matrix client for Web, iOS & Android",
|
||||||
},
|
},
|
||||||
|
@ -33,21 +33,10 @@ var linkable_clients = [
|
||||||
logo: "",
|
logo: "",
|
||||||
author: "Matrix.org",
|
author: "Matrix.org",
|
||||||
homepage: "https://matrix.org",
|
homepage: "https://matrix.org",
|
||||||
room_url: "https://matrix.org/beta/#/room/",
|
room_url(alias) { return "https://matrix.org/beta/#/room/" + alias },
|
||||||
user_url: null,
|
|
||||||
maturity: "Deprecated",
|
maturity: "Deprecated",
|
||||||
comments: "The original developer-focused client for Web, iOS & Android",
|
comments: "The original developer-focused client for Web, iOS & Android",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "PTO (Perpetually Talking Online",
|
|
||||||
logo: "",
|
|
||||||
author: "Torrie Fischer",
|
|
||||||
homepage: "https://pto.im",
|
|
||||||
room_url: "irc://irc.matrix.org/",
|
|
||||||
user_url: null,
|
|
||||||
maturity: "Alpha",
|
|
||||||
comments: "Access any room anywhere in Matrix via good old IRC!",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
var unlinkable_clients = [
|
var unlinkable_clients = [
|
||||||
|
@ -57,8 +46,8 @@ var unlinkable_clients = [
|
||||||
author: "Tor Hveem",
|
author: "Tor Hveem",
|
||||||
homepage: "https://github.com/torhve/weechat-matrix-protocol-script",
|
homepage: "https://github.com/torhve/weechat-matrix-protocol-script",
|
||||||
maturity: "Late beta",
|
maturity: "Late beta",
|
||||||
room_instructions: "Type /join $entity",
|
room_instructions(alias) { return <span>Type <code>/join <b>{ alias }</b></code></span> },
|
||||||
user_instructions: "Type /invite $entity",
|
user_instructions(userId) { return <span>Type <code>/invite <b>{ userId }</b></code></span> },
|
||||||
comments: "Commandline Matrix interface using Weechat",
|
comments: "Commandline Matrix interface using Weechat",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -67,8 +56,8 @@ var unlinkable_clients = [
|
||||||
author: "Felix Rohrbach",
|
author: "Felix Rohrbach",
|
||||||
homepage: "https://github.com/Fxrh/Quaternion",
|
homepage: "https://github.com/Fxrh/Quaternion",
|
||||||
maturity: "Late alpha",
|
maturity: "Late alpha",
|
||||||
room_instructions: "Type /join $entity",
|
room_instructions(alias) { return <span>Type <code>/join <b>{ alias }</b></code></span> },
|
||||||
user_instructions: "Type /invite $entity",
|
user_instructions(userId) { return <span>Type <code>/invite <b>{ userId }</b></code></span> },
|
||||||
comments: "Qt5 and C++ cross-platform desktop Matrix client",
|
comments: "Qt5 and C++ cross-platform desktop Matrix client",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -77,8 +66,8 @@ var unlinkable_clients = [
|
||||||
author: "David A Roberts",
|
author: "David A Roberts",
|
||||||
homepage: "https://github.com/davidar/tensor",
|
homepage: "https://github.com/davidar/tensor",
|
||||||
maturity: "Late alpha",
|
maturity: "Late alpha",
|
||||||
room_instructions: "Type /join $entity",
|
room_instructions(alias) { return <span>Type <code>/join <b>{ alias }</b></code></span> },
|
||||||
user_instructions: "Type /invite $entity",
|
user_instructions(userId) { return <span>Type <code>/invite <b>{ userId }</b></code></span> },
|
||||||
comments: "QML and JS cross-platform desktop Matrix client",
|
comments: "QML and JS cross-platform desktop Matrix client",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -87,10 +76,21 @@ var unlinkable_clients = [
|
||||||
author: "David A Roberts",
|
author: "David A Roberts",
|
||||||
homepage: "https://github.com/davidar/tensor2",
|
homepage: "https://github.com/davidar/tensor2",
|
||||||
maturity: "Alpha",
|
maturity: "Alpha",
|
||||||
room_instructions: "Type /join $entity",
|
room_instructions(alias) { return <span>Type <code>/join <b>{ alias }</b></code></span> },
|
||||||
user_instructions: "Type /invite $entity",
|
user_instructions(userId) { return <span>Type <code>/invite <b>{ userId }</b></code></span> },
|
||||||
comments: "QML and C++ cross-platform desktop Matrix client",
|
comments: "QML and C++ cross-platform desktop Matrix client",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "PTO (Perpetually Talking Online)",
|
||||||
|
logo: "",
|
||||||
|
author: "Torrie Fischer",
|
||||||
|
homepage: "https://pto.im",
|
||||||
|
//room_url(alias) { return "irc://irc.matrix.org/" + alias },
|
||||||
|
room_instructions(alias) { return <span>Type <code>/join <b>{ alias }</b></code></span> },
|
||||||
|
user_instructions(userId) { return <span>Type <code>/invite <b>{ userId }</b></code></span> },
|
||||||
|
maturity: "Alpha",
|
||||||
|
comments: "Access any room anywhere in Matrix via good old IRC!",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Mclient.el",
|
name: "Mclient.el",
|
||||||
logo: "",
|
logo: "",
|
||||||
|
@ -211,6 +211,17 @@ export default React.createClass({
|
||||||
// maturity: "Late beta",
|
// maturity: "Late beta",
|
||||||
// comments: "Fully-featured Matrix client for Web, iOS & Android",
|
// comments: "Fully-featured Matrix client for Web, iOS & Android",
|
||||||
|
|
||||||
|
var description;
|
||||||
|
if (isRoom) {
|
||||||
|
description = <span>the <b>{ this.state.entity }</b> room</span>;
|
||||||
|
}
|
||||||
|
else if (isUser) {
|
||||||
|
description = <span>the user <b>{ this.state.entity }</b></span>;
|
||||||
|
}
|
||||||
|
else if (isMsg) {
|
||||||
|
description = <span><b>this message</b></span>;
|
||||||
|
}
|
||||||
|
|
||||||
links = (
|
links = (
|
||||||
<div key="links" className="mxt_HomePage_links">
|
<div key="links" className="mxt_HomePage_links">
|
||||||
<div className="mxt_HomePage_links_intro">
|
<div className="mxt_HomePage_links_intro">
|
||||||
|
@ -218,7 +229,7 @@ export default React.createClass({
|
||||||
Matrix is an ecosystem for open and interoperable communication.
|
Matrix is an ecosystem for open and interoperable communication.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To connect to <b>{ isMsg ? "this message" : this.state.entity }</b>, please select an app:
|
To connect to { description }, please select an app:
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -245,13 +256,13 @@ export default React.createClass({
|
||||||
{ linkable_clients.map((client) => {
|
{ linkable_clients.map((client) => {
|
||||||
var link;
|
var link;
|
||||||
if (isRoom && client.room_url) {
|
if (isRoom && client.room_url) {
|
||||||
link = client.room_url + this.state.entity;
|
link = client.room_url(this.state.entity);
|
||||||
}
|
}
|
||||||
else if (isUser && client.user_url) {
|
else if (isUser && client.user_url) {
|
||||||
link = client.user_url + this.state.entity;
|
link = client.user_url(this.state.entity);
|
||||||
}
|
}
|
||||||
else if (isMsg && client.msg_url) {
|
else if (isMsg && client.msg_url) {
|
||||||
link = client.msg_url + this.state.entity;
|
link = client.msg_url(this.state.entity);
|
||||||
}
|
}
|
||||||
if (!link) return <div key={ client.name }/>;
|
if (!link) return <div key={ client.name }/>;
|
||||||
|
|
||||||
|
@ -284,13 +295,13 @@ export default React.createClass({
|
||||||
{ unlinkable_clients.map((client) => {
|
{ unlinkable_clients.map((client) => {
|
||||||
var instructions;
|
var instructions;
|
||||||
if (isRoom && client.room_instructions) {
|
if (isRoom && client.room_instructions) {
|
||||||
instructions = client.room_instructions.replace("$entity", this.state.entity);
|
instructions = client.room_instructions(this.state.entity);
|
||||||
}
|
}
|
||||||
else if (isUser && client.user_instructions) {
|
else if (isUser && client.user_instructions) {
|
||||||
instructions = client.user_instructions.replace("$entity", this.state.entity);
|
instructions = client.user_instructions(this.state.entity);
|
||||||
}
|
}
|
||||||
else if (isMsg && client.msg_instructions) {
|
else if (isMsg && client.msg_instructions) {
|
||||||
instructions = client.msg_instructions.replace("$entity", this.state.entity);
|
instructions = client.msg_instructions(this.state.entity);
|
||||||
}
|
}
|
||||||
if (!instructions) return <div key={ client.name } />;
|
if (!instructions) return <div key={ client.name } />;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue