Skip to content

Commit 29f4aeb

Browse files
committed
Chapter 12 & 13 updates
1 parent 49e9571 commit 29f4aeb

File tree

138 files changed

+2596
-1197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2596
-1197
lines changed

Chapter 12/myProject/Sources/App/Modules/Blog/Controllers/BlogCategoryAdminController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vapor
22
import Fluent
33
import Leaf
44

5-
struct BlogCategoryAdminController: AdminViewController {
5+
struct BlogCategoryAdminController: ViperAdminViewController {
66
typealias Module = BlogModule
77
typealias Model = BlogCategoryModel
88
typealias EditForm = BlogCategoryEditForm

Chapter 12/myProject/Sources/App/Modules/Blog/Controllers/BlogPostAdminController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import Fluent
33
import Leaf
44
import Liquid
55

6-
struct BlogPostAdminController: AdminViewController {
6+
struct BlogPostAdminController: ViperAdminViewController {
7+
typealias Module = BlogModule
78
typealias Model = BlogCategoryModel
8-
typealias Model = BlogPostModel
99
typealias EditForm = BlogPostEditForm
1010

1111
private func generateUniqueAssetLocationKey() -> String {

Chapter 13/MyProjectApi/Sources/MyProjectApi/Api.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

Chapter 13/MyProjectApi/Sources/MyProjectApi/Blog/BlogCategoryObjects.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ public struct BlogCategoryPatchObject: Codable {
4545
self.title = title
4646
}
4747
}
48-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Foundation
2+
3+
public struct UserTokenGetObject: Codable {
4+
5+
public let id: UUID
6+
public let value: String
7+
8+
public init(id: UUID, value: String) {
9+
self.id = id
10+
self.value = value
11+
}
12+
}

Chapter 13/MyProjectApi/Tests/MyProjectApiTests/MyProjectApiTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import XCTest
22
@testable import MyProjectApi
33

44
final class MyProjectApiTests: XCTestCase {
5+
56
func testExample() {
6-
// This is an example of a functional test case.
7-
// Use XCTAssert and related functions to verify your tests produce the correct
8-
// results.
9-
XCTAssertEqual(MyProjectApi().text, "Hello, World!")
7+
XCTAssertTrue(true)
108
}
119

1210
static var allTests = [

Chapter 13/MyProjectClient/MyProjectClient.xcodeproj/project.pbxproj

Lines changed: 529 additions & 0 deletions
Large diffs are not rendered by default.

Chapter 13/MyProjectClient/MyProjectClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"scale" : "2x",
6+
"size" : "20x20"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"scale" : "3x",
11+
"size" : "20x20"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"scale" : "2x",
16+
"size" : "29x29"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"scale" : "3x",
21+
"size" : "29x29"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"scale" : "2x",
26+
"size" : "40x40"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"idiom" : "iphone",
35+
"scale" : "2x",
36+
"size" : "60x60"
37+
},
38+
{
39+
"idiom" : "iphone",
40+
"scale" : "3x",
41+
"size" : "60x60"
42+
},
43+
{
44+
"idiom" : "ipad",
45+
"scale" : "1x",
46+
"size" : "20x20"
47+
},
48+
{
49+
"idiom" : "ipad",
50+
"scale" : "2x",
51+
"size" : "20x20"
52+
},
53+
{
54+
"idiom" : "ipad",
55+
"scale" : "1x",
56+
"size" : "29x29"
57+
},
58+
{
59+
"idiom" : "ipad",
60+
"scale" : "2x",
61+
"size" : "29x29"
62+
},
63+
{
64+
"idiom" : "ipad",
65+
"scale" : "1x",
66+
"size" : "40x40"
67+
},
68+
{
69+
"idiom" : "ipad",
70+
"scale" : "2x",
71+
"size" : "40x40"
72+
},
73+
{
74+
"idiom" : "ipad",
75+
"scale" : "1x",
76+
"size" : "76x76"
77+
},
78+
{
79+
"idiom" : "ipad",
80+
"scale" : "2x",
81+
"size" : "76x76"
82+
},
83+
{
84+
"idiom" : "ipad",
85+
"scale" : "2x",
86+
"size" : "83.5x83.5"
87+
},
88+
{
89+
"idiom" : "ios-marketing",
90+
"scale" : "1x",
91+
"size" : "1024x1024"
92+
}
93+
],
94+
"info" : {
95+
"author" : "xcode",
96+
"version" : 1
97+
}
98+
}

0 commit comments

Comments
 (0)