You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.2 KiB
TypeScript
89 lines
3.2 KiB
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import { SessionSettingListItem, SessionSettingType } from './session/settings/SessionSettingListItem';
|
|
|
|
// interface State {
|
|
// }
|
|
|
|
// interface Props {
|
|
|
|
// }
|
|
|
|
// export class LeftPane extends React.Component<Props, State> {
|
|
// public state = {
|
|
// };
|
|
|
|
// public constructor(props: any) {
|
|
// super(props);
|
|
// }
|
|
|
|
|
|
// public render(): JSX.Element {
|
|
// return (
|
|
// <div>
|
|
// Lorem ipsum dolor sit amet consectetur, adipisicing elit. Debitis, pariatur dicta placeat corporis similique modi quod veritatis voluptatum impedit tempore voluptas nostrum magni aspernatur iure, labore ipsam odit possimus exercitationem?
|
|
// </div>
|
|
// );
|
|
// }
|
|
|
|
// }
|
|
|
|
export class MainViewController {
|
|
public static renderMessageView() {
|
|
const element = (
|
|
<div className="conversation-stack">
|
|
<div className="conversation placeholder">
|
|
<div className="conversation-header"></div>
|
|
<div className="container">
|
|
<div className="content">
|
|
<img src="images/session/brand.svg" className="session-filter-color-green session-logo-128"/>
|
|
<p className="session-logo-text">SESSION</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
ReactDOM.render(element, document.getElementById('main-view'));
|
|
}
|
|
|
|
public static renderSettingsView() {
|
|
const element = (
|
|
<div className="session-settings-list">
|
|
<SessionSettingListItem
|
|
title = "Typing Indicators"
|
|
description = "See and share when messages are being typed. This setting is optional and applies to all conversations."
|
|
type = { SessionSettingType.Toggle }
|
|
value = { true }
|
|
/>
|
|
<SessionSettingListItem
|
|
title = "Screen Lock"
|
|
description = "Unlock Loki Session using your password. Visit notification settings to customise."
|
|
type = { SessionSettingType.Toggle }
|
|
value = { false }
|
|
/>
|
|
<SessionSettingListItem
|
|
title = "Enable Screen Security"
|
|
description = "Prevent Loki Session previews from appearing in the app switcher"
|
|
type = { SessionSettingType.Toggle }
|
|
value = { true }
|
|
/>
|
|
<SessionSettingListItem
|
|
title = "Send Link Previews"
|
|
description = "Supported for imgur, Instagram, Pinterest, Reddit and YouTube."
|
|
type = { SessionSettingType.Toggle }
|
|
value = { true }
|
|
/>
|
|
<SessionSettingListItem
|
|
title = "Clear Conversation History"
|
|
type = { SessionSettingType.Button }
|
|
value = { false }
|
|
onClick = { () => alert("Cleaaarred!") }
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
ReactDOM.render(element, document.getElementById('main-view'));
|
|
}
|
|
} |