Initial project setup - Phases 1-3 complete

This commit is contained in:
Trey t
2026-04-06 11:28:40 -05:00
commit c77e506db5
293 changed files with 14233 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import SwiftUI
struct MethodBadge: View {
let method: String
var color: Color {
switch method.uppercased() {
case "GET": .green
case "POST": .blue
case "PUT": .orange
case "PATCH": .purple
case "DELETE": .red
case "HEAD": .gray
case "OPTIONS": .teal
default: .secondary
}
}
var body: some View {
Text(method.uppercased())
.font(.caption2.weight(.bold))
.foregroundStyle(color)
.padding(.horizontal, 6)
.padding(.vertical, 2)
.background(color.opacity(0.12), in: RoundedRectangle(cornerRadius: 4))
}
}