-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show admin-account and contact (IOS-20)
- Loading branch information
1 parent
53f0e57
commit 7c78687
Showing
6 changed files
with
145 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Mastodon/Scene/Settings/Server Details/Table View Components/AboutInstance.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright © 2023 Mastodon gGmbH. All rights reserved. | ||
|
||
import Foundation | ||
import MastodonSDK | ||
|
||
enum AboutInstanceSection: Hashable { | ||
case main | ||
} | ||
|
||
enum AboutInstanceItem: Hashable { | ||
case adminAccount(Mastodon.Entity.Account) | ||
case contactAdmin(String) | ||
} |
5 changes: 5 additions & 0 deletions
5
Mastodon/Scene/Settings/Server Details/Table View Components/AdminTableViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Copyright © 2023 Mastodon gGmbH. All rights reserved. | ||
|
||
import UIKit | ||
|
||
typealias AdminTableViewCell = SearchResultsProfileTableViewCell |
20 changes: 20 additions & 0 deletions
20
Mastodon/Scene/Settings/Server Details/Table View Components/ContactAdminTableViewCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright © 2023 Mastodon gGmbH. All rights reserved. | ||
|
||
import UIKit | ||
import MastodonAsset | ||
|
||
class ContactAdminTableViewCell: UITableViewCell { | ||
|
||
static let reuseIdentifier = "ContactAdminTableViewCell" | ||
|
||
func configure() { | ||
var configuration = defaultContentConfiguration() | ||
|
||
configuration.textProperties.color = Asset.Colors.Brand.blurple.color | ||
configuration.image = UIImage(systemName: "envelope") | ||
configuration.imageProperties.tintColor = Asset.Colors.Brand.blurple.color | ||
configuration.text = "Contact Admin" | ||
|
||
contentConfiguration = configuration | ||
} | ||
} |