44 lines
1.1 KiB
Swift
44 lines
1.1 KiB
Swift
//
|
|
// InstanceInfo.swift
|
|
// duduji
|
|
//
|
|
// Created by ching on 2023/5/3.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct InstanceInfo: View {
|
|
var body: some View {
|
|
Form {
|
|
InstanceInfoSection()
|
|
}
|
|
}
|
|
}
|
|
|
|
struct InstanceInfoSection: View {
|
|
var body: some View {
|
|
Section("服务器信息") {
|
|
LabeledContent("名称", value: "nofan | Fanyou in Mastodon")
|
|
Text("给饭友的自留地")
|
|
LabeledContent("邮件", value: "^^")
|
|
LabeledContent("版本") {
|
|
Text("3.5.3").monospaced()
|
|
}
|
|
LabeledContent("用户", value: "1206")
|
|
LabeledContent("嘟文", value: "489974")
|
|
LabeledContent("域名", value: "11648")
|
|
}
|
|
Section("服务器规则") {
|
|
Text("保持友善,善用折叠屏蔽功能")
|
|
Text("不鼓励发布色情暴力内容,如发布,务必主动标记为敏感内容")
|
|
Text("请尽量避免将用户消息截图转发至其他平台")
|
|
}
|
|
}
|
|
}
|
|
|
|
struct InstanceInfo_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
InstanceInfo()
|
|
}
|
|
}
|