-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d170f54
commit 4f7f314
Showing
7 changed files
with
111 additions
and
5 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,36 @@ | ||
chrome | ||
facetime | ||
fax | ||
file | ||
ftp | ||
git | ||
http | ||
https | ||
imap | ||
jabber | ||
ldap | ||
ldaps | ||
mailto | ||
maps | ||
ms-access | ||
ms-excel | ||
ms-powerpoint | ||
ms-remotedesktop | ||
ms-word | ||
msteams | ||
news | ||
nfs | ||
notes | ||
sftp | ||
skype | ||
slack | ||
smb | ||
smtp | ||
spotify | ||
ssh | ||
steam | ||
things | ||
vnc | ||
vscode | ||
webcal | ||
zoommtg |
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 |
---|---|---|
|
@@ -9,4 +9,3 @@ preboot | |
Sonoma | ||
UTI | ||
UTIs | ||
WebCal |
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 +1,2 @@ | ||
export { infoPlistFactory } from './infoPlist'; | ||
export { urlTypeFactory } from './urlType'; |
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,49 @@ | ||
import type { URLType } from '@/src/types'; | ||
import { faker } from '@faker-js/faker'; | ||
import { Factory } from 'fishery'; | ||
|
||
class URLTypeFactory extends Factory<URLType> {} | ||
|
||
export const urlTypeFactory = URLTypeFactory.define(() => { | ||
const urlScheme = faker.helpers.arrayElement([ | ||
'chrome', | ||
'facetime', | ||
'fax', | ||
'file', | ||
'ftp', | ||
'git', | ||
'http', | ||
'https', | ||
'imap', | ||
'jabber', | ||
'ldap', | ||
'ldaps', | ||
'mailto', | ||
'maps', | ||
'ms-excel', | ||
'ms-powerpoint', | ||
'ms-remotedesktop', | ||
'ms-word', | ||
'msteams', | ||
'news', | ||
'nfs', | ||
'notes', | ||
'sftp', | ||
'skype', | ||
'slack', | ||
'smb', | ||
'smtp', | ||
'spotify', | ||
'ssh', | ||
'steam', | ||
'things', | ||
'vnc', | ||
'vscode', | ||
'webcal', | ||
'zoommtg', | ||
]); | ||
|
||
return { | ||
CFBundleURLSchemes: [urlScheme], | ||
}; | ||
}); |
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