Skip to content

Commit

Permalink
clean useless config
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 committed Apr 9, 2024
1 parent 2c32bf8 commit bd396c3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 369 deletions.
12 changes: 0 additions & 12 deletions SwiftPamphletApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
08026C512869B43500792EF1 /* 190.md in Resources */ = {isa = PBXBuildFile; fileRef = 08026C502869B41B00792EF1 /* 190.md */; };
08026C522869B43D00792EF1 /* 191.md in Resources */ = {isa = PBXBuildFile; fileRef = 08026C3E2869AD7800792EF1 /* 191.md */; };
08026C532869B44400792EF1 /* 192.md in Resources */ = {isa = PBXBuildFile; fileRef = 08026C3F2869B00D00792EF1 /* 192.md */; };
08038767276700F100519B15 /* CCYRESTfulAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08038766276700F100519B15 /* CCYRESTfulAPI.swift */; };
0805F4962BAAABEA0008BB52 /* ViewStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0805F4952BAAABEA0008BB52 /* ViewStyle.swift */; };
083554E12756503B0095E0EE /* AnimateLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 083554E02756503B0095E0EE /* AnimateLayout.swift */; };
08397E232B9EE8F400DFDD02 /* InfoDataModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08397E222B9EE8F400DFDD02 /* InfoDataModel.swift */; };
Expand Down Expand Up @@ -280,7 +279,6 @@
08026C402869B1BF00792EF1 /* 183.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = 183.md; sourceTree = "<group>"; };
08026C422869B22E00792EF1 /* 176.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = 176.md; sourceTree = "<group>"; };
08026C502869B41B00792EF1 /* 190.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = 190.md; sourceTree = "<group>"; };
08038766276700F100519B15 /* CCYRESTfulAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCYRESTfulAPI.swift; sourceTree = "<group>"; };
0805F4952BAAABEA0008BB52 /* ViewStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewStyle.swift; sourceTree = "<group>"; };
083554E02756503B0095E0EE /* AnimateLayout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimateLayout.swift; sourceTree = "<group>"; };
08397E222B9EE8F400DFDD02 /* InfoDataModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InfoDataModel.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -551,14 +549,6 @@
path = APMAndBuilder;
sourceTree = "<group>";
};
080387652766FF3200519B15 /* Network */ = {
isa = PBXGroup;
children = (
08038766276700F100519B15 /* CCYRESTfulAPI.swift */,
);
path = Network;
sourceTree = "<group>";
};
08397E212B9EE83F00DFDD02 /* InfoOrganizer */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1081,7 +1071,6 @@
08ED801A2B9D1EDA0069B7EC /* Setting */,
080124FD27EC62DC00E44222 /* SwiftPamphletAppDebug.entitlements */,
08CD61FB27758B22008C0935 /* Core */,
080387652766FF3200519B15 /* Network */,
086A5F482744EF2B00FECE02 /* ViewComponet */,
086A5F472744EF0800FECE02 /* Resource */,
086A5F0A2744E89100FECE02 /* Assets.xcassets */,
Expand Down Expand Up @@ -1626,7 +1615,6 @@
08BF26DA276B65160064DDAC /* CCYGitHubAPI.swift in Sources */,
08C411F227951152006FC340 /* PlayFoundation.swift in Sources */,
08448F0B2797F73200B61353 /* PlayArchitecture.swift in Sources */,
08038767276700F100519B15 /* CCYRESTfulAPI.swift in Sources */,
08522BD827CF344B005FF059 /* PlaySliderView.swift in Sources */,
08A9E1A22BC25D0700A73764 /* ViewComponentMarkdown.swift in Sources */,
0887A59A2BA28F6D00131359 /* CSGuideView.swift in Sources */,
Expand Down
64 changes: 1 addition & 63 deletions SwiftPamphletApp/App/SwiftPamphletAppConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,12 @@ struct SPC {

static let detailMinWidth: CGFloat = 550
static let githubHost = "https://github.com/"
static let pamphletIssueRepoName = "ming1016/SwiftPamphletApp"

static let timerForDevsSec: Double = 160
static let timerForExpSec: Double = 125
static let timerForRssSec: Double = 60 * 60

static let unreadMagicNumber = 99999

static func loadCustomIssues(jsonFileName: String) -> [CustomIssuesModel] {
let lc: [CustomIssuesModel] = loadBundleJSONFile(jsonFileName + ".json")
return lc
}

static func activeDevelopers() -> [SPActiveDevelopersModel] {
let ad: [SPActiveDevelopersModel] = loadBundleJSONFile("developers.json")
return ad
}

static func repos() -> [SPReposModel] {
let re: [SPReposModel] = loadBundleJSONFile("repos.json")
return re
}

static func rssFeed() -> [RSSFeedModel] {
let re: [RSSFeedModel] = loadBundleJSONFile("rssfeed.json")
return re
}


static func rssStyle() -> String {
let data = loadBundleData("css_cn.html")
return String(data: data, encoding: .utf8) ?? ""
Expand All @@ -54,45 +32,5 @@ struct SPC {
let data = loadBundleData("footer_js.html")
return String(data: data, encoding: .utf8) ?? ""
}

static func outputRepo() {
let re = repos()
for r in re {
print("#### \(r.name)")
for ar in r.repos {
let arr = ar.id.components(separatedBy: "/")
print("* \(arr[1])\(ar.des ?? "") (https://github.com/\(ar.id))")
}
}
}
}

struct SPActiveDevelopersModel: Jsonable {
var id: Int64
var name: String
var users: [ADeveloperModel]
}

struct ADeveloperModel: Jsonable {
var id: String
var des: String?
}

struct SPReposModel: Jsonable {
var id: Int64
var name: String
var repos: [ARepoModel]
}

struct ARepoModel: Jsonable {
var id: String
var des: String?
}

struct RSSFeedModel: Jsonable {
var id: Int64
var title: String
var des: String
var siteLink: String
var feedLink: String
}
1 change: 0 additions & 1 deletion SwiftPamphletApp/GitHubAPI/DetailView/GuideView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ struct GuideView: View {
}
.padding(EdgeInsets(top: 10, leading: 10, bottom: 2, trailing: 10))
WebUIView(html: wrapperHtmlContent(content: MarkdownParser().html(from: "\(loadBundleString("\(number)" + ".md"))")), baseURLStr: "")
.frame(minWidth: SPC.detailMinWidth)
}
}
1 change: 0 additions & 1 deletion SwiftPamphletApp/GitHubAPI/DetailView/RepoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct RepoCommitsView: View {
RepoCommitLabelView(repo: repo, commit: commit, isUnRead: unReadCount > 0 && i < unReadCount)
} // end ForEach
} // end List
.frame(minWidth: SPC.detailMinWidth)
} // end body
}

Expand Down
Loading

0 comments on commit bd396c3

Please sign in to comment.