ChWebsiteApp/CHDataManagement/Views/Settings/General/GeneralSettingsDetailView.swift
2025-02-18 22:05:19 +01:00

55 lines
2.1 KiB
Swift

import SwiftUI
struct GeneralSettingsDetailView: View {
@ObservedObject
var generalSettings: GeneralSettings
var body: some View {
ScrollView {
VStack(alignment: .leading) {
StringPropertyView(
title: "Website URL",
text: $generalSettings.url,
footer: "The base path where the website is deployed, to generate absolute links")
IntegerPropertyView(
title: "Link Preview Image Width",
value: $generalSettings.linkPreviewImageWidth,
footer: "The maximum width of a link preview image")
IntegerPropertyView(
title: "Link Preview Image Height",
value: $generalSettings.linkPreviewImageHeight,
footer: "The maximum height of a link preview image")
StringPropertyView(
title: "Upload User",
text: $generalSettings.remoteUserForUpload,
footer: "The user on the server to connect via ssh for upload")
IntegerPropertyView(
title: "Upload Port",
value: $generalSettings.remotePortForUpload,
footer: "The port on the server to rsync the generated website")
StringPropertyView(
title: "Upload Folder",
text: $generalSettings.remotePathForUpload,
footer: "The path to the folder on the server where the files should be uploaded to")
OptionalStringPropertyView(
title: "Push Notification URL",
text: $generalSettings.urlForPushNotification,
footer: "The url to send push notifications to")
OptionalStringPropertyView(
title: "Push Notification Access Token",
text: $generalSettings.pushNotificationAccessToken,
footer: "The access token to use for sending push notifications")
}
.padding()
}
}
}