Skip to content

Commit

Permalink
Add the Cinny client
Browse files Browse the repository at this point in the history
Signed-off-by: 3nt3 <[email protected]>
  • Loading branch information
3nt3 committed Oct 12, 2022
1 parent fde5309 commit d174482
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 10 deletions.
19 changes: 19 additions & 0 deletions images/client-icons/cinny.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions src/open/clients/cinny.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
Copyright 2020 The Matrix.org Foundation C.I.C.
Copyright 2022 3nt3 <[email protected]>
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, FlathubLink, style } from "../types.js";

export class Cinny {
get id() {
return "cinny";
}
get name() {
return "Cinny";
}
get icon() {
return "images/client-icons/cinny.svg";
}
get author() {
return "???";
}
get homepage() {
return "https://cinny.in";
}
get platforms() {
return [
Platform.DesktopWeb,
Platform.Linux,
Platform.macOS,
Platform.Windows,
];
}
get description() {
return "A Matrix client focusing primarily on simple, elegant and secure interface. The main goal is to have an instant messaging application that is easy on people and has a modern touch.";
}
getMaturity(platform) {
return Maturity.Beta;
}
getDeepLink(platform, link) {
// cinny doesn't support deep links (?)
return;
}
canInterceptMatrixToLinks(platform) {
return false;
}

getLinkInstructions(platform, link) {
switch (platform.kind) {
case Platform.DesktopWeb:
return [
"Go to https://app.cinny.in",
"Click on '+' in the top left corner and paste the " +
(link.kind === LinkKind.User
? "username"
: "identifier"),
];
default:
return [
"Click on '+' in the top left corner and paste the " +
(link.kind === LinkKind.User
? "username"
: "identifier"),
];
}
}

getCopyString(platform, link) {
return link.identifier;
switch (link.kind) {
case LinkKind.User:
return `/invite ${link.identifier}`;
case LinkKind.Room:
return `/join ${link.identifier}`;
}
}

getInstallLinks(platform) {}

getPreferredWebInstance(link) {}
}
22 changes: 12 additions & 10 deletions src/open/clients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import {Element} from "./Element.js";
import {Weechat} from "./Weechat.js";
import {Nheko} from "./Nheko.js";
import {Fractal} from "./Fractal.js";
import {Quaternion} from "./Quaternion.js";
import {Tensor} from "./Tensor.js";
import {Fluffychat} from "./Fluffychat.js";
import {NeoChat} from "./NeoChat.js";
import {Syphon} from "./Syphon.js";
import {Thunderbird} from "./Thunderbird.js";
import { Element } from "./Element.js";
import { Weechat } from "./Weechat.js";
import { Nheko } from "./Nheko.js";
import { Fractal } from "./Fractal.js";
import { Quaternion } from "./Quaternion.js";
import { Tensor } from "./Tensor.js";
import { Fluffychat } from "./Fluffychat.js";
import { NeoChat } from "./NeoChat.js";
import { Syphon } from "./Syphon.js";
import { Thunderbird } from "./Thunderbird.js";
import { Cinny } from "./cinny.js";

export function createClients() {
return [
Expand All @@ -37,5 +38,6 @@ export function createClients() {
new NeoChat(),
new Syphon(),
new Thunderbird(),
new Cinny(),
];
}

0 comments on commit d174482

Please sign in to comment.