Skip to content

Commit 84c29df

Browse files
author
Robert Quander
committed
Cleaned up some files
1 parent 070164a commit 84c29df

File tree

12 files changed

+10
-84
lines changed

12 files changed

+10
-84
lines changed

NUL

Lines changed: 0 additions & 1 deletion
This file was deleted.

service/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file contains ignore-rules for files that are not tracked by docker for container builds.
22
data/
33
.git/
4+
45
#Dockerfile
56
docker-compose.yml
67
.dockerignore

service/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ service/datadbdir/*
55
postgres_data/*
66
service/postgres_data/*
77
uploads/
8+
NUL

service/NUL

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

service/Package.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// swift-tools-version:5.2
21
import PackageDescription
32

43
let package = Package(
@@ -11,7 +10,6 @@ let package = Package(
1110
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.0.0"),
1211
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
1312
.package(name: "vapor", url: "https://github.com/vapor/vapor.git", from: "4.0.0")
14-
//.package(url: "https://github.com/twostraws/SwiftGD.git", from: "2.4.0")
1513

1614
],
1715
targets: [
@@ -21,7 +19,6 @@ let package = Package(
2119
.product(name: "Vapor", package: "vapor"),
2220
.product(name: "Fluent", package: "fluent"),
2321
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver")
24-
//.product(name: "SwiftGD", package: "SwiftGD")
2522

2623
]),
2724
.target(name: "Run", dependencies: ["App"]),

service/Public/finstergram.png

-1.67 MB
Binary file not shown.

service/Sources/App/Models/CreateProfileFollow.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,4 @@ struct CreateProfileFollow: AsyncMigration {
1313
func revert(on db: Database) async throws {
1414
try await db.schema("profile_follows").delete()
1515
}
16-
}
17-
18-
/* Add follower logic and accounts of others you can visit
19-
20-
Idea: When opening account page it shows uuid of user in the url; can be used for exploit
21-
22-
*/
16+
}

service/Sources/App/Models/CreateToken.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ struct CreateToken: AsyncMigration {
1414
func revert(on db: Database) async throws {
1515
try await db.schema("tokens").delete()
1616
}
17-
}
18-
19-
// Improve API so posting could be a little easier
17+
}

service/Sources/App/Models/User.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ final class User: Model, Content {
1616
@Field(key: "post_counter")
1717
var postCounter: Int64
1818

19-
20-
//@Timestamp(key: "created_at", on: .create)
21-
//var createdAt: Date?
22-
2319
init() { }
2420

2521
init(id: UUID? = nil, username: String, passwordHash: String, postCounter: Int64 = 0) {

service/Sources/App/Tasks/CleanupTask.swift

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

0 commit comments

Comments
 (0)