Skip to content

Commit 8ed2de9

Browse files
committed
updates
1 parent c18f2c3 commit 8ed2de9

File tree

4 files changed

+47
-177
lines changed

4 files changed

+47
-177
lines changed

FinderOpen/InfoPlist.xcstrings

-54
This file was deleted.

Pearcleaner.xcodeproj/project.pbxproj

-8
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */; };
5252
C7FB173B2B96321300B96F9A /* AppsListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FB173A2B96321300B96F9A /* AppsListView.swift */; };
5353
C7FEBA112BDC422200AE195F /* AppSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FEBA102BDC422200AE195F /* AppSearchView.swift */; };
54-
F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */; };
55-
F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */; };
5654
/* End PBXBuildFile section */
5755

5856
/* Begin PBXContainerItemProxy section */
@@ -145,8 +143,6 @@
145143
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
146144
C7FB173A2B96321300B96F9A /* AppsListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppsListView.swift; sourceTree = "<group>"; };
147145
C7FEBA102BDC422200AE195F /* AppSearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSearchView.swift; sourceTree = "<group>"; };
148-
F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
149-
F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
150146
/* End PBXFileReference section */
151147

152148
/* Begin PBXFrameworksBuildPhase section */
@@ -237,7 +233,6 @@
237233
C77B90242AF2D796009CC655 /* Pearcleaner.entitlements */,
238234
C77B90072AF18E2F009CC655 /* Assets.xcassets */,
239235
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */,
240-
F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */,
241236
);
242237
path = Resources;
243238
sourceTree = "<group>";
@@ -295,7 +290,6 @@
295290
C78121642BC892A000BE06BD /* FinderOpen */ = {
296291
isa = PBXGroup;
297292
children = (
298-
F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */,
299293
C78121652BC892A000BE06BD /* FinderOpen.swift */,
300294
C78121672BC892A000BE06BD /* Info.plist */,
301295
C78121682BC892A000BE06BD /* FinderOpen.entitlements */,
@@ -429,7 +423,6 @@
429423
files = (
430424
C77B90082AF18E2F009CC655 /* Assets.xcassets in Resources */,
431425
C7A27E812AFD7C4600166168 /* com.alienator88.PearcleanerSentinel.plist in Resources */,
432-
F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */,
433426
C7F8436B2CBF066F00E3E30A /* Localizable.xcstrings in Resources */,
434427
);
435428
runOnlyForDeploymentPostprocessing = 0;
@@ -438,7 +431,6 @@
438431
isa = PBXResourcesBuildPhase;
439432
buildActionMask = 2147483647;
440433
files = (
441-
F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */,
442434
C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */,
443435
C7A6DBF12C9DD27200CFA042 /* Assets.xcassets in Resources */,
444436
);

Pearcleaner/Resources/InfoPlist.xcstrings

-114
This file was deleted.

Pearcleaner/Views/DevelopmentView.swift

+47-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ struct EnvironmentCleanerView: View {
8484
ScrollView {
8585
ForEach(selectedEnvironment.paths, id: \.self) { path in
8686
PathRowView(path: path)
87+
// CardView(path: path)
8788
}
8889
}
8990

@@ -122,6 +123,7 @@ struct PathRowView: View {
122123
openInFinder(matchedPath)
123124
}
124125
.foregroundColor(.blue)
126+
.buttonStyle(.borderedProminent)
125127

126128
Button("Delete Folder") {
127129
deleteFolder(matchedPath)
@@ -148,7 +150,10 @@ struct PathRowView: View {
148150
}
149151
}
150152
}
151-
.padding(5)
153+
.padding(8)
154+
.background(RoundedRectangle(cornerRadius: 10)
155+
.fill(.secondary.opacity(0.2))
156+
.shadow(radius: 2))
152157
.onAppear {
153158
checkPath(path)
154159
}
@@ -380,3 +385,44 @@ struct PathLibrary {
380385
.sorted { $0.name < $1.name } // Sort environments by name
381386
}
382387
}
388+
389+
390+
391+
struct CardView: View {
392+
var path: String
393+
394+
var body: some View {
395+
VStack(alignment: .leading, spacing: 10) {
396+
Text(path)
397+
.font(.body)
398+
.foregroundColor(.primary)
399+
.lineLimit(1)
400+
.truncationMode(.tail)
401+
402+
HStack {
403+
Button(action: { print("Open \(path)") }) {
404+
Label("Open", systemImage: "folder")
405+
}
406+
.buttonStyle(.borderedProminent)
407+
.tint(.blue)
408+
409+
Button(action: { print("Delete Folder \(path)") }) {
410+
Label("Delete Folder", systemImage: "trash")
411+
}
412+
.buttonStyle(.bordered)
413+
.tint(.red)
414+
415+
Button(action: { print("Delete Contents \(path)") }) {
416+
Label("Delete Contents", systemImage: "trash.circle")
417+
}
418+
.buttonStyle(.bordered)
419+
.tint(.orange)
420+
}
421+
}
422+
.frame(maxWidth: .infinity)
423+
.padding()
424+
.background(RoundedRectangle(cornerRadius: 10)
425+
.fill(.secondary.opacity(0.2))
426+
.shadow(radius: 2))
427+
}
428+
}

0 commit comments

Comments
 (0)