Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alienator88 committed Nov 25, 2024
1 parent c18f2c3 commit 8ed2de9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 177 deletions.
54 changes: 0 additions & 54 deletions FinderOpen/InfoPlist.xcstrings

This file was deleted.

8 changes: 0 additions & 8 deletions Pearcleaner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */; };
C7FB173B2B96321300B96F9A /* AppsListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FB173A2B96321300B96F9A /* AppsListView.swift */; };
C7FEBA112BDC422200AE195F /* AppSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FEBA102BDC422200AE195F /* AppSearchView.swift */; };
F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */; };
F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -145,8 +143,6 @@
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
C7FB173A2B96321300B96F9A /* AppsListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppsListView.swift; sourceTree = "<group>"; };
C7FEBA102BDC422200AE195F /* AppSearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSearchView.swift; sourceTree = "<group>"; };
F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -237,7 +233,6 @@
C77B90242AF2D796009CC655 /* Pearcleaner.entitlements */,
C77B90072AF18E2F009CC655 /* Assets.xcassets */,
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */,
F6DBC0A12CF3EA2300D8EF91 /* InfoPlist.xcstrings */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -295,7 +290,6 @@
C78121642BC892A000BE06BD /* FinderOpen */ = {
isa = PBXGroup;
children = (
F6DBC09F2CF3EA2300D8EF91 /* InfoPlist.xcstrings */,
C78121652BC892A000BE06BD /* FinderOpen.swift */,
C78121672BC892A000BE06BD /* Info.plist */,
C78121682BC892A000BE06BD /* FinderOpen.entitlements */,
Expand Down Expand Up @@ -429,7 +423,6 @@
files = (
C77B90082AF18E2F009CC655 /* Assets.xcassets in Resources */,
C7A27E812AFD7C4600166168 /* com.alienator88.PearcleanerSentinel.plist in Resources */,
F6DBC0A22CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */,
C7F8436B2CBF066F00E3E30A /* Localizable.xcstrings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -438,7 +431,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F6DBC0A02CF3EA2300D8EF91 /* InfoPlist.xcstrings in Resources */,
C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */,
C7A6DBF12C9DD27200CFA042 /* Assets.xcassets in Resources */,
);
Expand Down
114 changes: 0 additions & 114 deletions Pearcleaner/Resources/InfoPlist.xcstrings

This file was deleted.

48 changes: 47 additions & 1 deletion Pearcleaner/Views/DevelopmentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct EnvironmentCleanerView: View {
ScrollView {
ForEach(selectedEnvironment.paths, id: \.self) { path in
PathRowView(path: path)
// CardView(path: path)
}
}

Expand Down Expand Up @@ -122,6 +123,7 @@ struct PathRowView: View {
openInFinder(matchedPath)
}
.foregroundColor(.blue)
.buttonStyle(.borderedProminent)

Button("Delete Folder") {
deleteFolder(matchedPath)
Expand All @@ -148,7 +150,10 @@ struct PathRowView: View {
}
}
}
.padding(5)
.padding(8)
.background(RoundedRectangle(cornerRadius: 10)
.fill(.secondary.opacity(0.2))
.shadow(radius: 2))
.onAppear {
checkPath(path)
}
Expand Down Expand Up @@ -380,3 +385,44 @@ struct PathLibrary {
.sorted { $0.name < $1.name } // Sort environments by name
}
}



struct CardView: View {
var path: String

var body: some View {
VStack(alignment: .leading, spacing: 10) {
Text(path)
.font(.body)
.foregroundColor(.primary)
.lineLimit(1)
.truncationMode(.tail)

HStack {
Button(action: { print("Open \(path)") }) {
Label("Open", systemImage: "folder")
}
.buttonStyle(.borderedProminent)
.tint(.blue)

Button(action: { print("Delete Folder \(path)") }) {
Label("Delete Folder", systemImage: "trash")
}
.buttonStyle(.bordered)
.tint(.red)

Button(action: { print("Delete Contents \(path)") }) {
Label("Delete Contents", systemImage: "trash.circle")
}
.buttonStyle(.bordered)
.tint(.orange)
}
}
.frame(maxWidth: .infinity)
.padding()
.background(RoundedRectangle(cornerRadius: 10)
.fill(.secondary.opacity(0.2))
.shadow(radius: 2))
}
}

0 comments on commit 8ed2de9

Please sign in to comment.