Skip to content

Commit 325e473

Browse files
committed
style(app): update deprecation messages to English and clean up whitespace in utilities and services files
1 parent 47c80e3 commit 325e473

9 files changed

Lines changed: 34 additions & 12 deletions

File tree

ConfigForge/Services/FileWatcherService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,4 @@ class FileWatcherService: @unchecked Sendable {
288288
deinit {
289289
stopAllWatching()
290290
}
291-
}
291+
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import Foundation
22

3-
// 确保导入 SwiftGen 生成的字符串文件
4-
// 如果你有专门的导入文件或它在同一模块中自动可用,则不需要显式导入
5-
63
struct ConfigForgeConstants {
74
// All constants have been moved to more specific files.
85
// This struct is kept for potential future app-wide constants.
9-
}
6+
}

ConfigForge/Utilities/LocalizationExtensions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ extension Text {
88
}
99

1010
extension String {
11-
@available(*, deprecated, message: "请使用 SwiftGen 生成的 L10n 类型,例如 L10n.App.save")
11+
@available(*, deprecated, message: "Please use the L10n types generated by SwiftGen, for example L10n.App.save")
1212
var cfLocalized: String {
1313
return self
1414
}
15-
@available(*, deprecated, message: "请使用 SwiftGen 生成的 L10n 类型,例如 L10n.Kubernetes.Cluster.edit(clusterName)")
15+
@available(*, deprecated, message: "Please use the L10n types generated by SwiftGen, for example L10n.Kubernetes.Cluster.edit(clusterName)")
1616
func cfLocalized(with arguments: CVarArg...) -> String {
1717
let format = NSLocalizedString(self, bundle: .main, comment: "")
1818
return String(format: format, arguments: arguments)
@@ -29,4 +29,4 @@ struct L10nText: View {
2929
var body: some View {
3030
Text(key)
3131
}
32-
}
32+
}

ConfigForge/Utilities/SSHConfigConstants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import Foundation
33
struct SSHConfigConstants {
44
static let defaultSSHConfigPath = "~/.ssh/config"
55
static let defaultBackupFileName = "ssh_config_backup"
6-
}
6+
}

ConfigForge/ViewModels/ConfigEditorViewModel.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// ConfigEditorViewModel.swift
3+
// ConfigForge
4+
//
5+
// Created by samzong on 4/2/25.
6+
//
7+
18
import SwiftUI
29
import Combine
310
import Foundation

ConfigForge/ViewModels/MainViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// SSHConfigViewModel.swift
2+
// MainViewModel.swift
33
// ConfigForge
44
//
55
// Created by samzong on 4/2/25.

ConfigForge/Views/Components/TerminalLauncherButton.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// TerminalLauncherButton.swift
3+
// ConfigForge
4+
//
5+
// Created by samzong on 4/2/25.
6+
//
7+
18
import SwiftUI
29

310
struct TerminalLauncherButton: View {
@@ -109,4 +116,4 @@ struct TerminalLauncherButton: View {
109116
}
110117
}
111118
}
112-
}
119+
}

ConfigForge/Views/ContentView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
1+
//
2+
// ContentView.swift
3+
// ConfigForge
4+
//
5+
// Created by samzong on 4/2/25.
6+
//
27
import SwiftUI
38
import UniformTypeIdentifiers
49

ConfigForge/Views/Editors/ConfigEditorView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//
2+
// ConfigEditorView.swift
3+
// ConfigForge
4+
//
5+
// Created by samzong on 4/2/25.
6+
//
17
import SwiftUI
28

39
struct ConfigEditorView: View {

0 commit comments

Comments
 (0)