-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added transcription, added search result optimization, fixed lengthy …
…task popover, fixed Chinese, Simplified translations
- Loading branch information
1 parent
8b047db
commit 7384622
Showing
14 changed files
with
544 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Extension+IndexItem.swift | ||
// Sidekick | ||
// | ||
// Created by Bean John on 10/19/24. | ||
// | ||
|
||
import Foundation | ||
import SimilaritySearchKit | ||
|
||
public extension IndexItem { | ||
|
||
/// Computed property returning the result's source's URL | ||
var sourceUrl: URL? { | ||
guard let source: String = self.metadata["source"] else { return nil } | ||
return URL(string: source) | ||
} | ||
|
||
/// Computed property returning the result's source's URL text | ||
var sourceUrlText: String? { | ||
if sourceUrl?.isWebURL ?? false { | ||
return sourceUrl?.absoluteString | ||
} | ||
return sourceUrl?.posixPath | ||
} | ||
|
||
|
||
/// Computed property returning the result's source's index | ||
var itemIndex: Int? { | ||
guard let itemIndex: String = self.metadata["itemIndex"] else { return nil } | ||
return Int(itemIndex) | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
<true/> | ||
</dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</plist> | ||
|
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.