Compare commits
3 commits
05aecec833
...
8cd6ba97b6
Author | SHA1 | Date | |
---|---|---|---|
8cd6ba97b6 | |||
0b5efb0a88 | |||
580216f11a |
5 changed files with 22 additions and 11 deletions
13
config.json
13
config.json
|
@ -1,13 +1,8 @@
|
||||||
{
|
{
|
||||||
"defaultHomeserver": 3,
|
"defaultHomeserver": 0,
|
||||||
"homeserverList": [
|
"homeserverList": [
|
||||||
"0wnz.at",
|
"chat.naskya.net",
|
||||||
"converser.eu",
|
"chat.sup39.dev"
|
||||||
"envs.net",
|
|
||||||
"matrix.org",
|
|
||||||
"monero.social",
|
|
||||||
"mozilla.org",
|
|
||||||
"xmr.se"
|
|
||||||
],
|
],
|
||||||
"allowCustomHomeservers": true
|
"allowCustomHomeservers": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||||
<title>Cinny</title>
|
<title>Cinny@さぽなす</title>
|
||||||
<meta name="name" content="Cinny" />
|
<meta name="name" content="Cinny" />
|
||||||
<meta name="author" content="Ajay Bura" />
|
<meta name="author" content="Ajay Bura" />
|
||||||
<meta
|
<meta
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
|
|
||||||
<link id="favicon" rel="shortcut icon" href="./public/favicon.ico" />
|
<link id="favicon" rel="shortcut icon" href="./public/favicon.ico" />
|
||||||
|
<link rel="stylesheet" href="/mx-uc.css" />
|
||||||
|
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
|
|
4
public/mx-uc.css
Normal file
4
public/mx-uc.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
:root {
|
||||||
|
--mx-uc--sup39-chat_sup39_dev: #2ee5b8;
|
||||||
|
/* --mx-uc--naskya-chat_naskya_net: ; */
|
||||||
|
}
|
|
@ -3,7 +3,7 @@ import { Box, Text, as } from 'folds';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { MatrixClient, MatrixEvent, Room } from 'matrix-js-sdk';
|
import { MatrixClient, MatrixEvent, Room } from 'matrix-js-sdk';
|
||||||
import * as css from './Reaction.css';
|
import * as css from './Reaction.css';
|
||||||
import { getHexcodeForEmoji, getShortcodeFor } from '../../plugins/emoji';
|
import { getHexcodeForEmoji, getShortcodeFor, getEmojiUrl, isUsingTwemoji } from '../../plugins/emoji';
|
||||||
import { getMemberDisplayName } from '../../utils/room';
|
import { getMemberDisplayName } from '../../utils/room';
|
||||||
import { eventWithShortcode, getMxIdLocalPart } from '../../utils/matrix';
|
import { eventWithShortcode, getMxIdLocalPart } from '../../utils/matrix';
|
||||||
|
|
||||||
|
@ -31,6 +31,13 @@ export const Reaction = as<
|
||||||
src={mx.mxcUrlToHttp(reaction) ?? reaction}
|
src={mx.mxcUrlToHttp(reaction) ?? reaction}
|
||||||
alt={reaction}
|
alt={reaction}
|
||||||
/>
|
/>
|
||||||
|
) : isUsingTwemoji() ? (
|
||||||
|
<img
|
||||||
|
className={css.ReactionImg}
|
||||||
|
src={getEmojiUrl(reaction)}
|
||||||
|
alt={reaction}
|
||||||
|
title={getShortcodeFor(getHexcodeForEmoji(reaction))}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Text as="span" size="Inherit" truncate>
|
<Text as="span" size="Inherit" truncate>
|
||||||
{reaction}
|
{reaction}
|
||||||
|
|
|
@ -33,6 +33,10 @@ const copyFiles = {
|
||||||
src: 'public/res/android',
|
src: 'public/res/android',
|
||||||
dest: 'public/',
|
dest: 'public/',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
src: 'public/mx-uc.css',
|
||||||
|
dest: '',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
src: 'twemoji/assets/svg/*',
|
src: 'twemoji/assets/svg/*',
|
||||||
dest: 'twemoji/',
|
dest: 'twemoji/',
|
||||||
|
|
Loading…
Reference in a new issue