commit
2931fdb548
43
images/client-icons/fluffychat.svg
Normal file
43
images/client-icons/fluffychat.svg
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 181.4 181.9" style="enable-background:new 0 0 181.4 181.9;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{fill:url(#SVGID_1_);}
|
||||||
|
.st1{fill:#F094BE;}
|
||||||
|
.st2{fill:#4D3F92;}
|
||||||
|
.st3{fill:#FFFFFF;}
|
||||||
|
</style>
|
||||||
|
<g id="Capa_1">
|
||||||
|
<rect x="0" y="0" style="color:#FFFFFF" width="181.4" height="181.9" class="st3"/>
|
||||||
|
</g>
|
||||||
|
<g id="Capa_2">
|
||||||
|
<g>
|
||||||
|
<path class="st2" d="M151.6,95.1c1.5-0.3,2.8-1,3.8-2c4-5.3,0.8-11.8-4.5-12.6c-0.8,0-1.5-0.8-1.5-1.5c0-0.3,0-0.5,0-0.5
|
||||||
|
c0.8-0.8,1.5-1.8,2.5-3.3c8.1-10.8,11.8-50.6,3.8-53.7c-9.8-3.3-29.7,6.3-38.3,17.4c-0.5-0.3-1-1-1-1.8c0.3-3-1.3-5.5-3.5-6.8
|
||||||
|
c-4.5-2.3-8.8,0-10.6,3.3c-0.5,0.8-1.3,1.3-2,1c-0.8,0-1.5-0.8-1.5-1.5c-0.5-2.5-2-4.5-4.3-5.5c-4.8-2-9.8,0.8-10.6,5.3
|
||||||
|
c-0.3,0.8-0.8,1.5-1.5,1.5c-0.8,0.3-1.5-0.3-2-1c-1.5-2.3-4-3.8-6.5-3.8c-4,0-7.6,3.3-7.8,7.3v0.3v0.3c0,0.8-0.5,1.5-1,1.8h-0.3
|
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4.8-2-6.5c-0.5-0.5-0.8-1.3-0.5-2s1-1.3,1.8-1.3c1.8,0,3.8-0.5,5-2
|
||||||
|
c4.3-4.5,2.3-10.6-2.5-12.6c-0.8-0.3-1.3-1-1.3-2C150.1,95.8,150.8,95.1,151.6,95.1z"/>
|
||||||
|
<path class="st3" d="M131.4,42.2c0.5,1.5,0.5,3,0,4.5c-0.3,0.8,0,1.5,0.5,2s1.3,0.8,2,0.5c1-0.5,2-0.5,3-0.5c2.3,0,4.3,1,5.8,3
|
||||||
|
c1,1.3,1.8,3,1.5,4.8c0,1.5-0.5,2.8-1.3,4c-0.5,0.5-0.5,1.5,0,2c0.3,0.3,0.5,0.8,1,0.8c1-0.3,2-1,2.8-2c4.5-6.3,5.3-26.2,0.8-27.7
|
||||||
|
c-4.5-1.5-12.3,1.5-17.9,6C130.7,40.1,131.2,40.9,131.4,42.2z"/>
|
||||||
|
<path class="st3" d="M39,63.6c0.3-0.3,0.5-0.5,0.8-0.8c0.5-0.8,0.3-1.5,0-2C38.5,59,38.2,57,38.5,55c0.5-2.8,2.8-5,5.5-5.8
|
||||||
|
c1.5-0.5,3-0.3,4.5,0.3c0.8,0.3,1.5,0,2-0.5c0.5-0.5,0.8-1.3,0.5-2c-0.5-1.5-0.5-3,0-4.5c0.3-1,0.8-2,1.5-2.8
|
||||||
|
c-5.5-4.5-13.9-7.8-18.4-6.3S30.4,54.8,35,61.1C36,62.6,37.2,63.3,39,63.6z"/>
|
||||||
|
<g>
|
||||||
|
<circle class="st3" cx="60.9" cy="94.6" r="9.3"/>
|
||||||
|
<path class="st3" d="M100.7,94.6c0,5.3-4.3,9.3-9.3,9.3c-5.3,0-9.3-4.3-9.3-9.3S100.7,89.3,100.7,94.6z"/>
|
||||||
|
<circle class="st3" cx="121.6" cy="94.6" r="9.3"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.0 KiB |
82
src/open/clients/Fluffychat.js
Normal file
82
src/open/clients/Fluffychat.js
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
/*
|
||||||
|
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, FlathubLink, AppleStoreLink, PlayStoreLink, WebsiteLink } from "../types.js";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Information on how to deep link to a given matrix client.
|
||||||
|
*/
|
||||||
|
export class Fluffychat {
|
||||||
|
get id() { return "im.fluffychat"; }
|
||||||
|
get name() { return "FluffyChat"; }
|
||||||
|
get icon() { return "images/client-icons/fluffychat.svg"; }
|
||||||
|
get author() { return "Krille Fear"; }
|
||||||
|
get homepage() { return "https://fluffychat.im"; }
|
||||||
|
get platforms() {
|
||||||
|
return [
|
||||||
|
Platform.Android, Platform.iOS,
|
||||||
|
Platform.Windows, Platform.macOS, Platform.Linux,
|
||||||
|
Platform.DesktopWeb,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
get description() { return "Chat with your friends using the cutest messenger in the Matrix network"; }
|
||||||
|
getMaturity(platform) {
|
||||||
|
switch (platform) {
|
||||||
|
case Platform.Android: return Maturity.Stable;
|
||||||
|
case Platform.iOS: return Maturity.Stable;
|
||||||
|
case Platform.DesktopWeb: return Maturity.Stable;
|
||||||
|
case Platform.Linux: return Maturity.Stable;
|
||||||
|
case Platform.macOS: return Maturity.Beta;
|
||||||
|
case Platform.Windows: return Maturity.Beta;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getInstallLinks(platform) {
|
||||||
|
switch (platform) {
|
||||||
|
case Platform.iOS: return [new AppleStoreLink("fluffychat", "id1551469600")];
|
||||||
|
case Platform.Android: return [new PlayStoreLink("chat.fluffy.fluffychat")];
|
||||||
|
case Platform.Linux: return [new FlathubLink("im.fluffychat.Fluffychat")];
|
||||||
|
default: return [new WebsiteLink("https://fluffychat.im")];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getLinkInstructions(platform, link) {
|
||||||
|
if (link.kind === LinkKind.User) {
|
||||||
|
switch (platform) {
|
||||||
|
case Platform.Android: return;
|
||||||
|
case Platform.DesktopWeb: return "Open the web app at https://fluffychat.im/web/ and log in to your account. Click on '+' and paste the username.";
|
||||||
|
default: return "Open the app and click on '+' and paste the username.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (link.kind === LinkKind.Room) {
|
||||||
|
switch (platform) {
|
||||||
|
case Platform.Android: return;
|
||||||
|
case Platform.DesktopWeb: return "Open the web app at https://fluffychat.im/web/ and log in to your account. Click on 'Discover' and paste the identifier.";
|
||||||
|
default: return "Open the app on your device. Click on 'Discover' and paste the identifier.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getCopyString(platform, link) {
|
||||||
|
if (link.kind === LinkKind.User || link.kind === LinkKind.Room) {
|
||||||
|
return link.identifier;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getDeepLink(platform, link) { }
|
||||||
|
canInterceptMatrixToLinks(platform) {
|
||||||
|
return platform === Platform.Android;
|
||||||
|
}
|
||||||
|
|
||||||
|
getPreferredWebInstance(link) {}
|
||||||
|
}
|
@ -20,6 +20,7 @@ import {Nheko} from "./Nheko.js";
|
|||||||
import {Fractal} from "./Fractal.js";
|
import {Fractal} from "./Fractal.js";
|
||||||
import {Quaternion} from "./Quaternion.js";
|
import {Quaternion} from "./Quaternion.js";
|
||||||
import {Tensor} from "./Tensor.js";
|
import {Tensor} from "./Tensor.js";
|
||||||
|
import {Fluffychat} from "./Fluffychat.js";
|
||||||
|
|
||||||
export function createClients() {
|
export function createClients() {
|
||||||
return [
|
return [
|
||||||
@ -29,5 +30,6 @@ export function createClients() {
|
|||||||
new Fractal(),
|
new Fractal(),
|
||||||
new Quaternion(),
|
new Quaternion(),
|
||||||
new Tensor(),
|
new Tensor(),
|
||||||
|
new Fluffychat(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user