Add the Cinny client (#286)
* Add the Cinny client Signed-off-by: 3nt3 <gott@3nt3.de> * Implement suggested edits by thibaultamartin Signed-off-by: 3nt3 <gott@3nt3.de> * fix instructions Signed-off-by: 3nt3 <gott@3nt3.de> * address things brought up in PR Signed-off-by: 3nt3 <gott@3nt3.de> --------- Signed-off-by: 3nt3 <gott@3nt3.de>
This commit is contained in:
parent
2cf8119800
commit
7b6233217c
3 changed files with 94 additions and 0 deletions
19
images/client-icons/cinny.svg
Normal file
19
images/client-icons/cinny.svg
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In -->
|
||||
<svg version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="18px" height="18px" viewBox="0 0 18 18" enable-background="new 0 0 18 18" xml:space="preserve">
|
||||
<defs>
|
||||
</defs>
|
||||
<g>
|
||||
<g>
|
||||
<circle fill="#FFFFFF" cx="9" cy="9" r="8.5"/>
|
||||
</g>
|
||||
<g>
|
||||
<path d="M9,0C4,0,0,4,0,9c0,5,4,9,9,9c5,0,9-4,9-9C18,4,14,0,9,0z M1.2,10.8l3.5-2.3c0-0.1,0-0.2,0-0.3c0-1.8,1.3-3.2,3.1-3.4
|
||||
c0.1,0,0.2,0,0.4,0c1.2,0,2.3,0.6,2.9,1.6c0.3-0.1,0.6-0.1,0.9-0.1c0.4,0,0.8,0,1.2,0.1c0.7,0.2,1.4,0.5,2,0.9
|
||||
C14.6,7.1,14,7,13.3,7c-1.2,0-2.2,0.4-2.9,1.4c-0.7,0.9-1.1,2-1.1,3.2c0,1.5-0.4,2.9-1.3,4.2c-0.3,0.4-0.5,0.7-0.8,1
|
||||
C4.2,16.1,1.9,13.8,1.2,10.8z"/>
|
||||
<circle cx="9.5" cy="6.4" r="0.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 871 B |
73
src/open/clients/Cinny.js
Normal file
73
src/open/clients/Cinny.js
Normal file
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||
Copyright 2022 3nt3 <gott@3nt3.de>
|
||||
|
||||
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 "Copyright (c) 2021-present Ajay Bura (ajbura) and contributors";
|
||||
}
|
||||
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.Stable;
|
||||
}
|
||||
|
||||
// cinny doesn't support deep links yet
|
||||
getDeepLink(platform, link) {}
|
||||
|
||||
canInterceptMatrixToLinks(platform) {
|
||||
return false;
|
||||
}
|
||||
|
||||
getLinkInstructions(platform, link) {
|
||||
return [
|
||||
"While in Home, Click on '+' in the top left corner, then 'Join with address' and paste the ",
|
||||
style.code(`${link.identifier} `),
|
||||
link.kind === LinkKind.User ? "username" : "identifier",
|
||||
];
|
||||
}
|
||||
|
||||
getCopyString(platform, link) {
|
||||
return link.identifier;
|
||||
}
|
||||
|
||||
getInstallLinks(platform) {}
|
||||
|
||||
getPreferredWebInstance(link) {}
|
||||
}
|
|
@ -24,6 +24,7 @@ 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 [
|
||||
|
@ -37,5 +38,6 @@ export function createClients() {
|
|||
new NeoChat(),
|
||||
new Syphon(),
|
||||
new Thunderbird(),
|
||||
new Cinny(),
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue