Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CONST.ts « src - github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 283226ba76c08cab1145f857a3c892d4f82b2f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import incomingMessageSoundFile from '../sound/notification.mp3';
import incomingCallSoundFile from '../sound/incoming-call.mp3';
import noticeSoundFile from '../sound/ping.mp3';

export let NOTIFICATION_DEFAULT = 'default';
export let NOTIFICATION_GRANTED = 'granted';
export let NOTIFICATION_DENIED = 'denied';
export let STATUS = ['offline', 'dnd', 'xa', 'away', 'chat', 'online'];
export let SOUNDS = {
   MSG: <string>(<any>incomingMessageSoundFile),
   CALL: <string>(<any>incomingCallSoundFile),
   NOTICE: <string>(<any>noticeSoundFile),
};
export let REGEX = {
   JID: new RegExp('\\b[^"&\'\\/:<>@\\s]+@[\\w-_.]+\\b', 'i'),
   URL: new RegExp(/(aesgcm:\/\/|https?:\/\/|www\.)[^\s<>'"]+/gi),
   GEOURI: new RegExp(
      /geo:(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)(?:,-?\d+(?:\.\d+)?)?(?:;crs=[\w-]+)?(?:;u=(\d+(?:\.\d+)?))?(?:;[\w-]+=(?:[\w-_.!~*'()]|%[\da-f][\da-f])+)*/,
      'g'
   ),
};
export let NS = {
   CARBONS: 'urn:xmpp:carbons:2',
   FORWARD: 'urn:xmpp:forward:0',
};
export let HIDDEN = 'hidden';
export let SHOWN = 'shown';