Skip to content

Commit

Permalink
Remove unused project decoding keys
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed Dec 1, 2023
1 parent 6133cdf commit 683454c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"%@ %@" : {
"comment" : "The cause of a deployment in the projects list\nDeploy hook cause icon and name\nLabel for a deployment caused by a deploy hook ({icon} {name})",
"comment" : "Label for a deployment caused by a deploy hook ({icon} {name})\nThe cause of a deployment in the projects list\nDeploy hook cause icon and name",
"localizations" : {
"en" : {
"stringUnit" : {
Expand Down
40 changes: 0 additions & 40 deletions Shared/Models/VercelProjectModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,12 @@ import SwiftUI
struct VercelProject: Decodable, Identifiable {
typealias ID = String
let accountId: String
let autoExposeSystemEnvs: Bool?
let buildCommand: String?
let createdAt: Int
let devCommand: String?
let directoryListing: Bool
let framework: VercelFramework?
let gitForkProtection: Bool?
let id: ID
let latestDeployments: [VercelDeployment]?
let name: String
let nodeVersion: String
let outputDirectory: String?
let passwordProtection: ProtectionSettings?
let publicSource: Bool?
let rootDirectory: String?
let serverlessFunctionRegion: String?
let sourceFilesOutsideRootDirectory: Bool?
let ssoProtection: ProtectionSettings?
let targets: Targets?
let transferCompletedAt: Int?
let transferStartedAt: Int?
let transferToAccountId: String?
let transferredFromAccountId: String?
let updatedAt: Int?
let live: Bool?
let link: VercelRepositoryLink?
}

Expand Down Expand Up @@ -67,27 +48,6 @@ struct Pagination: Codable {
let next: Int?
}

enum VercelFramework: String, Codable {
case blitzjs, nextjs, gatsby, remix, astro, hexo, eleventy, docusaurus, preact, solidstart, dojo, ember, vue, scully, angular, polymer, svelte, sveltekit, gridsome, umijs, sapper, saber, stencil, nuxtjs, redwoodjs, hugo, jekyll, brunch, middleman, zola, vite, parcel, sanity

case createReactApp = "create-react-app"
case ionicReact = "ionic-react"
case ionicAngular = "ionic-angular"
case docusaurus2 = "docusaurus-2"
}

extension VercelProject {
struct ProtectionSettings: Codable {
let deploymentType: DeploymentTypeProtection?
}
}

enum DeploymentTypeProtection: String, Codable {
case standard = "prod_deployment_urls_and_all_previews"
case preview
case all
}

struct VercelEnv: Codable, Identifiable, Hashable {
let id: String
let type: EnvType
Expand Down

0 comments on commit 683454c

Please sign in to comment.