|
| 1 | +/* |
| 2 | +Copyright 2020 The Matrix.org Foundation C.I.C. |
| 3 | +Copyright 2022 3nt3 <[email protected]> |
| 4 | +
|
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +*/ |
| 17 | + |
| 18 | +import { Maturity, Platform, LinkKind, FlathubLink, style } from "../types.js"; |
| 19 | + |
| 20 | +export class Cinny { |
| 21 | + get id() { |
| 22 | + return "cinny"; |
| 23 | + } |
| 24 | + get name() { |
| 25 | + return "Cinny"; |
| 26 | + } |
| 27 | + get icon() { |
| 28 | + return "images/client-icons/cinny.svg"; |
| 29 | + } |
| 30 | + get author() { |
| 31 | + return "Copyright (c) 2021-present Ajay Bura (ajbura) and contributors"; |
| 32 | + } |
| 33 | + get homepage() { |
| 34 | + return "https://cinny.in"; |
| 35 | + } |
| 36 | + get platforms() { |
| 37 | + return [ |
| 38 | + Platform.DesktopWeb, |
| 39 | + Platform.Linux, |
| 40 | + Platform.macOS, |
| 41 | + Platform.Windows, |
| 42 | + ]; |
| 43 | + } |
| 44 | + get description() { |
| 45 | + 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."; |
| 46 | + } |
| 47 | + getMaturity(platform) { |
| 48 | + return Maturity.Stable; |
| 49 | + } |
| 50 | + |
| 51 | + // cinny doesn't support deep links yet |
| 52 | + getDeepLink(platform, link) {} |
| 53 | + |
| 54 | + canInterceptMatrixToLinks(platform) { |
| 55 | + return false; |
| 56 | + } |
| 57 | + |
| 58 | + getLinkInstructions(platform, link) { |
| 59 | + return [ |
| 60 | + "While in Home, Click on '+' in the top left corner, then 'Join with address' and paste the ", |
| 61 | + style.code(`${link.identifier} `), |
| 62 | + link.kind === LinkKind.User ? "username" : "identifier", |
| 63 | + ]; |
| 64 | + } |
| 65 | + |
| 66 | + getCopyString(platform, link) { |
| 67 | + return link.identifier; |
| 68 | + } |
| 69 | + |
| 70 | + getInstallLinks(platform) {} |
| 71 | + |
| 72 | + getPreferredWebInstance(link) {} |
| 73 | +} |
0 commit comments