-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: add support for js and add improvements to paging
- Loading branch information
1 parent
3da150f
commit 0691aaa
Showing
44 changed files
with
2,736 additions
and
2,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ struct SharedModels: _Shared { | |
Tagged() | ||
ComposableArchitecture() | ||
Semver() | ||
JSValueCoder() | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Sources/Clients/DatabaseClient/Models/Extensions/Module+.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Module+.swift | ||
// | ||
// | ||
// Created by ErrorErrorError on 11/12/23. | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
public extension Module { | ||
var mainJSFile: URL { | ||
self.directory.appendingPathComponent("main") | ||
.appendingPathExtension("js") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Sources/Clients/DatabaseClient/Resources/MochiSchema.xcdatamodeld/Model.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// Client+.swift | ||
// | ||
// | ||
// Created by ErrorErrorError on 11/12/23. | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
public extension FileClient { | ||
func createModuleDirectory(_ url: URL) throws { | ||
try create( | ||
self.url(.documentDirectory, .userDomainMask, nil, true) | ||
.reposDir() | ||
.appendingPathComponent(url.absoluteString) | ||
) | ||
} | ||
|
||
func retrieveModuleDirectory(_ url: URL) throws -> URL { | ||
try self.url(.documentDirectory, .userDomainMask, nil, false) | ||
.reposDir() | ||
.appendingPathComponent(url.absoluteString) | ||
} | ||
} | ||
|
||
private extension URL { | ||
func reposDir() -> URL { | ||
self.appendingPathComponent("Repos", isDirectory: true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.