mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 20:15:01 +00:00
c438f0fef1
- Login and Register mostly working. - Starting to work on creating communities.
9 lines
350 B
TypeScript
9 lines
350 B
TypeScript
import { UserOperation } from './interfaces';
|
|
|
|
export let repoUrl = 'https://github.com/dessalines/rust-reddit-fediverse';
|
|
export let wsUri = (window.location.protocol=='https:'&&'wss://'||'ws://')+window.location.host + '/service/ws/';
|
|
|
|
export function msgOp(msg: any): UserOperation {
|
|
let opStr: string = msg.op;
|
|
return UserOperation[opStr];
|
|
}
|