Add rate vernissage link to settings
This commit is contained in:
parent
a2153a2cf7
commit
76dbcfe4d9
|
@ -202,6 +202,8 @@
|
|||
"settings.title.privacyPolicy" = "Privacy policy";
|
||||
"settings.title.terms" = "Terms & Conditions";
|
||||
"settings.title.sourceCode" = "Source code";
|
||||
"settings.title.rate" = "Rate Vernissage";
|
||||
"settings.title.socials" = "Socials";
|
||||
|
||||
// Mark: Signin view.
|
||||
"signin.navigationBar.title" = "Sign in to Pixelfed";
|
||||
|
|
|
@ -202,6 +202,8 @@
|
|||
"settings.title.privacyPolicy" = "Polityka prywatności";
|
||||
"settings.title.terms" = "Zasady i warunki";
|
||||
"settings.title.sourceCode" = "Kod źródłowy";
|
||||
"settings.title.rate" = "Oceń Vernissage";
|
||||
"settings.title.socials" = "Społeczności";
|
||||
|
||||
// Mark: Signin view.
|
||||
"signin.navigationBar.title" = "Zaloguj się do Pixelfed";
|
||||
|
|
|
@ -207,6 +207,7 @@
|
|||
F8CEEDFA29ABAFD200DBED66 /* ImageFileTranseferable.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8CEEDF929ABAFD200DBED66 /* ImageFileTranseferable.swift */; };
|
||||
F8D5444329D4066C002225D6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8D5444229D4066C002225D6 /* AppDelegate.swift */; };
|
||||
F8DF38E429DD68820047F1AA /* ViewOffsetKey.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8DF38E329DD68820047F1AA /* ViewOffsetKey.swift */; };
|
||||
F8DF38E629DDB98A0047F1AA /* SocialsSectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8DF38E529DDB98A0047F1AA /* SocialsSectionView.swift */; };
|
||||
F8E6D03329CDD52500416CCA /* EditProfileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8E6D03229CDD52500416CCA /* EditProfileView.swift */; };
|
||||
F8E6D03529CE161B00416CCA /* UIImage+Jpeg.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8E6D03429CE161B00416CCA /* UIImage+Jpeg.swift */; };
|
||||
F8E9391F29C0BCFA002BB3B8 /* ImageContextMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8E9391E29C0BCFA002BB3B8 /* ImageContextMenu.swift */; };
|
||||
|
@ -434,6 +435,7 @@
|
|||
F8CEEDF929ABAFD200DBED66 /* ImageFileTranseferable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageFileTranseferable.swift; sourceTree = "<group>"; };
|
||||
F8D5444229D4066C002225D6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
F8DF38E329DD68820047F1AA /* ViewOffsetKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewOffsetKey.swift; sourceTree = "<group>"; };
|
||||
F8DF38E529DDB98A0047F1AA /* SocialsSectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialsSectionView.swift; sourceTree = "<group>"; };
|
||||
F8E6D03229CDD52500416CCA /* EditProfileView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EditProfileView.swift; sourceTree = "<group>"; };
|
||||
F8E6D03429CE161B00416CCA /* UIImage+Jpeg.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIImage+Jpeg.swift"; sourceTree = "<group>"; };
|
||||
F8E9391E29C0BCFA002BB3B8 /* ImageContextMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageContextMenu.swift; sourceTree = "<group>"; };
|
||||
|
@ -713,6 +715,7 @@
|
|||
F86A4306299AA5E900DF7645 /* ThanksView.swift */,
|
||||
F8B05ACA29B489B100857221 /* HapticsSectionView.swift */,
|
||||
F8B05ACD29B48E2F00857221 /* MediaSettingsView.swift */,
|
||||
F8DF38E529DDB98A0047F1AA /* SocialsSectionView.swift */,
|
||||
);
|
||||
path = Subviews;
|
||||
sourceTree = "<group>";
|
||||
|
@ -1306,6 +1309,7 @@
|
|||
F8FA9920299FDDC3007AB130 /* TextInputField.swift in Sources */,
|
||||
F86A4303299A9AF500DF7645 /* TipsStore.swift in Sources */,
|
||||
F8C5E56229892CC300ADF6A7 /* FirstAppear.swift in Sources */,
|
||||
F8DF38E629DDB98A0047F1AA /* SocialsSectionView.swift in Sources */,
|
||||
F864F7A529BBA01D00B13921 /* CoreDataError.swift in Sources */,
|
||||
F8864CEB29ACBAA80020C534 /* TextModel.swift in Sources */,
|
||||
F8C14394296AF21B001FE31D /* Double+Round.swift in Sources */,
|
||||
|
|
|
@ -46,6 +46,9 @@ struct SettingsView: View {
|
|||
// Other.
|
||||
OtherSectionView()
|
||||
|
||||
// Socials.
|
||||
SocialsSectionView()
|
||||
|
||||
// Version.
|
||||
self.version()
|
||||
}
|
||||
|
|
|
@ -10,75 +10,33 @@ struct OtherSectionView: View {
|
|||
var body: some View {
|
||||
Section("settings.title.other") {
|
||||
NavigationLink(value: RouteurDestinations.thirdParty) {
|
||||
Text("settings.title.thirdParty", comment: "Third party")
|
||||
Label("settings.title.thirdParty", systemImage: "shippingbox")
|
||||
}
|
||||
|
||||
HStack {
|
||||
Text("settings.title.privacyPolicy", comment: "Privacy policy")
|
||||
Spacer()
|
||||
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/privacy-policy.html")!)
|
||||
.font(.footnote)
|
||||
Link(destination: URL(string: "https://mczachurski.dev/vernissage/privacy-policy.html")!) {
|
||||
Label("settings.title.privacyPolicy", systemImage: "hand.raised.square")
|
||||
}
|
||||
.tint(.mainTextColor)
|
||||
|
||||
HStack {
|
||||
Text("settings.title.terms", comment: "Terms & Conditions")
|
||||
Spacer()
|
||||
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/terms.html")!)
|
||||
.font(.footnote)
|
||||
Link(destination: URL(string: "https://mczachurski.dev/vernissage/terms.html")!) {
|
||||
Label("settings.title.terms", systemImage: "doc.text")
|
||||
}
|
||||
.tint(.mainTextColor)
|
||||
|
||||
HStack {
|
||||
Text("settings.title.sourceCode", comment: "Source code")
|
||||
Spacer()
|
||||
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://github.com/VernissageApp/Vernissage")!)
|
||||
.font(.footnote)
|
||||
Link(destination: URL(string: "https://apps.apple.com/app/id1663543216?action=write-review")!) {
|
||||
Label("settings.title.rate", systemImage: "star")
|
||||
}
|
||||
.tint(.mainTextColor)
|
||||
|
||||
HStack {
|
||||
Text("settings.title.reportBug", comment: "Report a bug")
|
||||
Spacer()
|
||||
Link(NSLocalizedString("settings.title.githubIssues", comment: "Issues on GitHub"), destination: URL(string: "https://github.com/VernissageApp/Home/issues")!)
|
||||
.font(.footnote)
|
||||
Link(destination: URL(string: "https://github.com/VernissageApp/Vernissage")!) {
|
||||
Label("settings.title.sourceCode", systemImage: "swift")
|
||||
}
|
||||
.tint(.mainTextColor)
|
||||
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.followVernissage", comment: "Follow Vernissage")
|
||||
Text("Mastodon account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@vernissage", destination: URL(string: "https://mastodon.social/@vernissage")!)
|
||||
.font(.footnote)
|
||||
}
|
||||
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.follow", comment: "Follow me")
|
||||
Text("settings.title.mastodonAccount", comment: "Mastodon account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@mczachurski", destination: URL(string: "https://mastodon.social/@mczachurski")!)
|
||||
.font(.footnote)
|
||||
}
|
||||
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.follow", comment: "Follow me")
|
||||
Text("settings.title.pixelfedAccount", comment: "Pixelfed account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@mczachurski", destination: URL(string: "https://pixelfed.social/@mczachurski")!)
|
||||
.font(.footnote)
|
||||
Link(destination: URL(string: "https://github.com/VernissageApp/Vernissage/issues")!) {
|
||||
Label("settings.title.reportBug", systemImage: "ant")
|
||||
}
|
||||
.tint(.mainTextColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,52 @@
|
|||
//
|
||||
// https://mczachurski.dev
|
||||
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
||||
// Licensed under the Apache License 2.0.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct SocialsSectionView: View {
|
||||
var body: some View {
|
||||
Section("settings.title.socials") {
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.followVernissage", comment: "Follow Vernissage")
|
||||
Text("settings.title.mastodonAccount", comment: "Mastodon account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@vernissage", destination: URL(string: "https://mastodon.social/@vernissage")!)
|
||||
.font(.footnote)
|
||||
}
|
||||
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.follow", comment: "Follow me")
|
||||
Text("settings.title.mastodonAccount", comment: "Mastodon account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@mczachurski", destination: URL(string: "https://mastodon.social/@mczachurski")!)
|
||||
.font(.footnote)
|
||||
}
|
||||
|
||||
HStack {
|
||||
VStack(alignment: .leading) {
|
||||
Text("settings.title.follow", comment: "Follow me")
|
||||
Text("settings.title.pixelfedAccount", comment: "Pixelfed account")
|
||||
.font(.footnote)
|
||||
.foregroundColor(.lightGrayColor)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
Link("@mczachurski", destination: URL(string: "https://pixelfed.social/@mczachurski")!)
|
||||
.font(.footnote)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue