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
// ==UserScript== | |
// @name Poland Visa Script | |
// @namespace e-konsulat.gov.pl | |
// @include https://*.e-konsulat.gov.pl/* | |
// @grant none | |
// @author Intekhab Alam (Intek13x_) | |
// @description Useless to me, may be useful to you.. | |
// @version 0.07 | |
// ==/UserScript== |
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
import BSON | |
import SwiftUI | |
import APIClient | |
import LoggerKit | |
import Foundation | |
import ImagePicker | |
import ECSharedModels | |
import VNRecognizeFeature | |
import AttachmentS3Client | |
import UserDefaultsClient |
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
import BSON | |
import Vapor | |
import Foundation | |
public struct ClientAppModel: Codable, Equatable { | |
static let collectionName = "client_apps" | |
var id: ObjectId | |
var ownerId: ObjectId |
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
public struct AppDelegateReducer: Reducer { | |
public typealias State = UserSettings | |
public enum Action: Equatable { | |
case didFinishLaunching | |
case userNotifications(UserNotificationClient.DelegateEvent) | |
case userSettingsLoaded(TaskResult<UserSettings>) | |
} | |
public init() {} |
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
[["_id": ObjectId("6439027922330f2e38b0e0ab"), "createdAt": 2023-04-14 07:36:25 +0000, "isReadFromNotification": false, "isReadFromView": false, "level": "Beginner", "isComplete": false, "isActive": true, "russian": ["word": "яблоко", "definition": "Кто ест одно яблоко в день, держит врача подальше!"], "updatedAt": 2023-04-14 07:36:25 +0000, "bangla": ["word": "আপেল", "definition": "প্রতিদিন একটি করে আপেল খান ডাক্তারকে দূরে রাখে!"], "english": ["word": "Mongo", "definition": "A mango is a sweet tropical fruit"], "icon": BSON.Null(), "from": ["word": "আপেল", "definition": "প্রতিদিন একটি করে আপেল খান ডাক্তারকে দূরে রাখে!"], "to": ["word": "яблоко", "definition": "Кто ест одно яблоко в день, держит врача подальше!"]], ["_id": ObjectId("64390390574538dfced05613"), "isActive": true, "level": "Beginner", "isComplete": false, "isReadFromNotification": false, "icon": BSON.Null(), "isReadFromView": false, "russian": ["word": "яблоко", "definition": "Кто ест одно яблоко в день, держит врача подальше!"], "bangla": ["wor |
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
import Foundation | |
import ComposableArchitecture | |
public struct AppFeature: ReducerProtocol { | |
public struct State: Equatable { | |
var path = StackState<Path.State>() | |
var articlesList = ArticleListReducer.State() | |
} | |
public enum Action: Equatable { |
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
func testFillUpIsValidForm() async { | |
let store = TestStore( | |
initialState: GenericPassForm.State(vCard: .empty) | |
) { | |
GenericPassForm() | |
} withDependencies: { | |
$0.attachmentS3Client = .happyPath | |
} |
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
public var body: some View { | |
WithViewStore(store) { viewStore in | |
VStack { | |
VStack(alignment: .leading) { | |
HStack { | |
if let imageUrl = viewStore.vCard.imageURLs.first(where: { $0.type == .icon }) { | |
AsyncImage(url: URL(string: imageUrl.urlString)) { phase in | |
if let image = phase.image { | |
image.resizable() |
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
// MARK: - VCard | |
public struct VCard: Codable, Equatable { | |
public struct Contact: Codable, Equatable { | |
/// The last name of the contact. | |
public var lastName: String | |
/// The first name of the contact. | |
public var firstName: String |
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
import BSON | |
import PassKit | |
import SwiftUI | |
import APIClient | |
import Foundation | |
import ImagePicker | |
import ECardifySharedModels | |
import ComposableArchitecture | |
import VNRecognizeFeature | |
import AttachmentS3Client |