Merge branch 'main' into add-syphon
This commit is contained in:
commit
3b3e99f937
1405
images/client-icons/thunderbird.svg
Normal file
1405
images/client-icons/thunderbird.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 43 KiB |
65
src/open/clients/Thunderbird.js
Normal file
65
src/open/clients/Thunderbird.js
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Maturity, Platform, LinkKind, WebsiteLink, style} from "../types.js";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Information on how to deep link to a given matrix client.
|
||||||
|
*/
|
||||||
|
export class Thunderbird {
|
||||||
|
get id() { return "thunderbird"; }
|
||||||
|
get name() { return "Thunderbird"; }
|
||||||
|
get icon() { return "images/client-icons/thunderbird.svg"; }
|
||||||
|
get author() { return "MZLA Technologies Corporation"; }
|
||||||
|
get homepage() { return "https://www.thunderbird.net"; }
|
||||||
|
get platforms() {
|
||||||
|
return [
|
||||||
|
Platform.Windows, Platform.macOS, Platform.Linux,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
get description() { return "Thunderbird is a free open-source email, calendar & chat app."; }
|
||||||
|
getMaturity(platform) {
|
||||||
|
return Maturity.Beta;
|
||||||
|
}
|
||||||
|
|
||||||
|
getInstallLinks(platform) {
|
||||||
|
return [new WebsiteLink(this.homepage)];
|
||||||
|
}
|
||||||
|
|
||||||
|
getLinkInstructions(platform, link) {
|
||||||
|
if (link.kind === LinkKind.User) {
|
||||||
|
return "Open the Chat tab, click on 'Add Contact' and paste the username.";
|
||||||
|
}
|
||||||
|
if (link.kind === LinkKind.Room) {
|
||||||
|
return [
|
||||||
|
"Open the Chat tab, click on 'Join Chat' and paste the identifier or type ",
|
||||||
|
style.code(`/join ${link.identifier}`),
|
||||||
|
" in an existing Matrix conversation."
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getCopyString(platform, link) {
|
||||||
|
if (link.kind === LinkKind.User || link.kind === LinkKind.Room) {
|
||||||
|
return link.identifier;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getDeepLink(platform, link) {}
|
||||||
|
|
||||||
|
canInterceptMatrixToLinks(platform) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
getPreferredWebInstance(link) {}
|
||||||
|
}
|
@ -23,6 +23,7 @@ import {Tensor} from "./Tensor.js";
|
|||||||
import {Fluffychat} from "./Fluffychat.js";
|
import {Fluffychat} from "./Fluffychat.js";
|
||||||
import {NeoChat} from "./NeoChat.js";
|
import {NeoChat} from "./NeoChat.js";
|
||||||
import {Syphon} from "./Syphon.js";
|
import {Syphon} from "./Syphon.js";
|
||||||
|
import {Thunderbird} from "./Thunderbird.js";
|
||||||
|
|
||||||
export function createClients() {
|
export function createClients() {
|
||||||
return [
|
return [
|
||||||
@ -35,5 +36,6 @@ export function createClients() {
|
|||||||
new Fluffychat(),
|
new Fluffychat(),
|
||||||
new NeoChat(),
|
new NeoChat(),
|
||||||
new Syphon(),
|
new Syphon(),
|
||||||
|
new Thunderbird(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user