From f71296620393bdeee4217cbca97e839e0416a7d4 Mon Sep 17 00:00:00 2001 From: Dominik Tobschall Date: Mon, 10 Jun 2024 13:17:22 +0200 Subject: [PATCH] Added support for Cal Video links --- .../calcom_icon.imageset/Contents.json | 12 ++++++++++++ .../calcom_icon.imageset/calcom_icon.png | Bin 0 -> 1788 bytes MeetingBar/MeetingServices.swift | 6 ++++++ MeetingBarTests/MeetingServicesTests.swift | 1 + 4 files changed, 19 insertions(+) create mode 100644 MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/Contents.json create mode 100644 MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/calcom_icon.png diff --git a/MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/Contents.json b/MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/Contents.json new file mode 100644 index 00000000..0508b4f7 --- /dev/null +++ b/MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "calcom_icon.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/calcom_icon.png b/MeetingBar/Assets.xcassets/vendor-icons/calcom_icon.imageset/calcom_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ffa076315f78f9e6dc7446c1d0ca2939be559d5f GIT binary patch literal 1788 zcmb7^dpy$%AIE=k-A3*uC(JV>9n40{C^eM1Y>uW3<+jaam^Ha%p-j#x(Zwp)mfLYZ zZij=pcU-5HJrNNnw;a?6$0X05Kc7GPvM`{Wi@g`cYCpbm1oRa8JC zAqzE*cY38!GDvoZ6%BMkUHwTJzl~@(N^OVGFDKBqR##RSpH}~9Y#p|JpRl^q_Hun{ z=WR>$d)C%u_Q(*s1wY;|cbdv!3l!1>iV9p+ZSElz49pUPgeIS*CR0vJ&IY9+ zmXyAwB$38YC5c?}_W*JK$|;+7S2j_l(v|sEH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FgK4nYLvHgZ3o1n;$7d$L!SsM-fzkBQZz?F{)v`*`jJnMO1Nq-wM9le;O045n7 z#2`xqK)?|erf_Rh3o8QL8jY|*TfmRO;b=IV&k$k%2MCKGg-~L@544(NHzdHtID!|` zBOn?|XGBm!Xk;iemQIF-(3wF15R>y^O;I88g0b-cesBmo=K)B=AZ9@jb(p%#Lk($l ys6(P NSRegularExpression? { @@ -621,6 +623,10 @@ func getIconForMeetingService(_ meetingService: MeetingServices?) -> NSImage { image = NSImage(named: "gather_icon")! image.size = NSSize(width: 16, height: 16) + case .some(.calcom): + image = NSImage(named: "calcom_icon")! + image.size = NSSize(width: 16, height: 16) + case .some(.url): image = NSImage(named: NSImage.touchBarOpenInBrowserTemplateName)! image.size = NSSize(width: 16, height: 16) diff --git a/MeetingBarTests/MeetingServicesTests.swift b/MeetingBarTests/MeetingServicesTests.swift index 6fdf4d44..9acca400 100644 --- a/MeetingBarTests/MeetingServicesTests.swift +++ b/MeetingBarTests/MeetingServicesTests.swift @@ -42,6 +42,7 @@ let meetings = [ MeetingLink(service: .pumble, url: URL(string: "https://meet.pumble.com/vly-hggs-xsn")!), MeetingLink(service: .suitConference, url: URL(string: "https://turkcell.conference.istesuit.com/username")!), MeetingLink(service: .doxyMe, url: URL(string: "https://bbc.doxy.me/dr.who")!) + MeetingLink(service: .calcom, url: URL(string: "https://app.cal.com/video/1de4BmdXEb983kIUHomUnA")!) ] class MeetingServicesTests: XCTestCase {