add button to share chat, add VDMDI tag, fixes
This commit is contained in:
@@ -36,7 +36,15 @@ export function SettingsPage(
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="content">
|
||||
<button
|
||||
class="standard width-input"
|
||||
on:click={settingsPageViewModel.chatViewModel.share}
|
||||
>
|
||||
<span>{coreViewModel.translations.chatPage.settings.transferLabel}</span>
|
||||
<span class="icon">share</span>
|
||||
</button>
|
||||
<hr></hr>
|
||||
<label class="tile flex-no">
|
||||
<span class="icon">forum</span>
|
||||
<div>
|
||||
|
||||
@@ -154,7 +154,26 @@ function SettingsInfoPane(
|
||||
coreViewModel.translations.settings.about
|
||||
.checkUpdatesButton
|
||||
}
|
||||
</button>
|
||||
</button>
|
||||
|
||||
<hr></hr>
|
||||
|
||||
<img
|
||||
class="width-100"
|
||||
style="max-width: 256px"
|
||||
src="/vdmdi-logo.png">
|
||||
</img>
|
||||
<button
|
||||
class="tile flex-row"
|
||||
on:click={coreViewModel.openVDPR}
|
||||
>
|
||||
<span class="icon">code</span>
|
||||
<div>
|
||||
<b>{coreViewModel.translations.settings.about.brand}</b>
|
||||
<span class="secondary">{coreViewModel.translations.settings.about.brandDescription}</span>
|
||||
</div>
|
||||
<span class="icon">open_in_new</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
+904
-892
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@ import ConnectionViewModel from "../Global/connectionViewModel";
|
||||
import * as React from "../../react";
|
||||
import implementFilter, { IndexManager } from "../../Model/Utility/utility";
|
||||
import ChatModel from "../../Model/Chat/chatModel";
|
||||
import FileTransferViewModel from "../Global/fileTransferViewModel";
|
||||
|
||||
export default class ChatListViewModel {
|
||||
notificationViewModel: NotificationViewModel;
|
||||
@@ -62,6 +63,7 @@ export default class ChatListViewModel {
|
||||
this.connectionViewModel,
|
||||
this,
|
||||
this.contactListViewModel,
|
||||
this.fileTransferViewModel
|
||||
);
|
||||
};
|
||||
|
||||
@@ -99,6 +101,7 @@ export default class ChatListViewModel {
|
||||
public readonly settingsViewModel: SettingsViewModel,
|
||||
public readonly connectionViewModel: ConnectionViewModel,
|
||||
public readonly contactListViewModel: ContactListViewModel,
|
||||
public readonly fileTransferViewModel: FileTransferViewModel,
|
||||
) {
|
||||
this.notificationViewModel = new NotificationViewModel(
|
||||
this,
|
||||
|
||||
@@ -22,6 +22,7 @@ import ChatModel, {
|
||||
ChatMessage,
|
||||
ChatMessageReaction,
|
||||
} from "../../Model/Chat/chatModel";
|
||||
import FileTransferViewModel from "../Global/fileTransferViewModel";
|
||||
|
||||
export default class ChatViewModel extends ContextHost<ChatPageTypes> {
|
||||
calendarViewModel: CalendarPageViewModel;
|
||||
@@ -81,6 +82,10 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
|
||||
this.index.value = index;
|
||||
};
|
||||
|
||||
share = (): void => {
|
||||
this.fileTransferViewModel.showDirectionSelectionModal();
|
||||
}
|
||||
|
||||
// load
|
||||
loadPageSelection = (): void => {
|
||||
const path: string[] = StorageModel.getPath(
|
||||
@@ -151,6 +156,7 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
|
||||
public readonly connectionViewModel: ConnectionViewModel,
|
||||
public readonly chatListViewModel: ChatListViewModel,
|
||||
public readonly contactListViewModel: ContactListViewModel,
|
||||
public readonly fileTransferViewModel: FileTransferViewModel,
|
||||
) {
|
||||
super("chat", coreViewModel);
|
||||
|
||||
|
||||
@@ -153,6 +153,11 @@ export default class CoreViewModel {
|
||||
}, 500);
|
||||
};
|
||||
|
||||
// VDPR
|
||||
openVDPR = (): void => {
|
||||
window.open("https://vdpr.org/VDMDI/CT");
|
||||
}
|
||||
|
||||
// init
|
||||
constructor(
|
||||
public readonly storageModel: StorageModel,
|
||||
|
||||
+2
-1
@@ -54,13 +54,14 @@ const contactListViewModel = new ContactListViewModel(
|
||||
settingsViewModel,
|
||||
);
|
||||
const connectionViewModel = new ConnectionViewModel(coreViewModel);
|
||||
const fileTransferViewModel = new FileTransferViewModel(coreViewModel);
|
||||
const chatListViewModel = new ChatListViewModel(
|
||||
coreViewModel,
|
||||
settingsViewModel,
|
||||
connectionViewModel,
|
||||
contactListViewModel,
|
||||
fileTransferViewModel
|
||||
);
|
||||
const fileTransferViewModel = new FileTransferViewModel(coreViewModel);
|
||||
const onboardingViewModel = new OnboardingViewModel(
|
||||
connectionViewModel,
|
||||
fileTransferViewModel,
|
||||
|
||||
Reference in New Issue
Block a user