-
Notifications
You must be signed in to change notification settings - Fork 11.1k
feat(companion): one-off links #25355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+18
−5
Merged
Changes from 40 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
| # Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files | ||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
| # Expo | ||
| .expo/ | ||
| dist/ | ||
| web-build/ | ||
| expo-env.d.ts | ||
|
|
||
| # Native | ||
| .kotlin/ | ||
| *.orig.* | ||
| *.jks | ||
| *.p8 | ||
| *.p12 | ||
| *.key | ||
| *.mobileprovision | ||
|
|
||
| # Metro | ||
| .metro-health-check* | ||
|
|
||
| # debug | ||
| npm-debug.* | ||
| yarn-debug.* | ||
| yarn-error.* | ||
|
|
||
| # macOS | ||
| .DS_Store | ||
| *.pem | ||
|
|
||
| # local env files | ||
| .env*.local | ||
|
|
||
| # typescript | ||
| *.tsbuildinfo | ||
|
|
||
| # generated native folders | ||
| /ios | ||
| /android |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
123 changes: 123 additions & 0 deletions
123
companion/.output/chrome-mv3/content-scripts/content.js
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 @@ | ||
| {"manifest_version":3,"name":"Cal.com Companion","description":"Your calendar companion for quick booking and scheduling","version":"1.7.1","icons":{"16":"icon-16.png","48":"icon-48.png","128":"icon-128.png"},"permissions":["activeTab","http://localhost:8081/*","https://api.cal.com/*"],"content_security_policy":{"extension_pages":"script-src 'self'; object-src 'self'; frame-src 'self' http://localhost:8081;"},"action":{"default_title":"Cal.com Companion","default_icon":{"16":"icon-16.png","48":"icon-48.png","128":"icon-128.png"}},"background":{"service_worker":"background.js"},"content_scripts":[{"matches":["<all_urls>"],"js":["content-scripts/content.js"]}]} |
This file contains hidden or 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,56 @@ | ||
| const globals = { | ||
| "AutoMount": true, | ||
| "AutoMountOptions": true, | ||
| "Browser": true, | ||
| "ContentScriptAnchoredOptions": true, | ||
| "ContentScriptAppendMode": true, | ||
| "ContentScriptContext": true, | ||
| "ContentScriptInlinePositioningOptions": true, | ||
| "ContentScriptModalPositioningOptions": true, | ||
| "ContentScriptOverlayAlignment": true, | ||
| "ContentScriptOverlayPositioningOptions": true, | ||
| "ContentScriptPositioningOptions": true, | ||
| "ContentScriptUi": true, | ||
| "ContentScriptUiOptions": true, | ||
| "IframeContentScriptUi": true, | ||
| "IframeContentScriptUiOptions": true, | ||
| "InjectScriptOptions": true, | ||
| "IntegratedContentScriptUi": true, | ||
| "IntegratedContentScriptUiOptions": true, | ||
| "InvalidMatchPattern": true, | ||
| "MatchPattern": true, | ||
| "MigrationError": true, | ||
| "ScriptPublicPath": true, | ||
| "ShadowRootContentScriptUi": true, | ||
| "ShadowRootContentScriptUiOptions": true, | ||
| "StopAutoMount": true, | ||
| "StorageArea": true, | ||
| "StorageAreaChanges": true, | ||
| "StorageItemKey": true, | ||
| "WxtAppConfig": true, | ||
| "WxtStorage": true, | ||
| "WxtStorageItem": true, | ||
| "WxtWindowEventMap": true, | ||
| "browser": true, | ||
| "createIframeUi": true, | ||
| "createIntegratedUi": true, | ||
| "createShadowRootUi": true, | ||
| "defineAppConfig": true, | ||
| "defineBackground": true, | ||
| "defineContentScript": true, | ||
| "defineUnlistedScript": true, | ||
| "defineWxtPlugin": true, | ||
| "fakeBrowser": true, | ||
| "injectScript": true, | ||
| "storage": true, | ||
| "useAppConfig": true | ||
| } | ||
|
|
||
| export default { | ||
| name: "wxt/auto-imports", | ||
| languageOptions: { | ||
| globals, | ||
| /** @type {import('eslint').Linter.SourceType} */ | ||
| sourceType: "module", | ||
| }, | ||
| }; |
This file contains hidden or 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,28 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ESNext", | ||
| "module": "ESNext", | ||
| "moduleResolution": "Bundler", | ||
| "noEmit": true, | ||
| "esModuleInterop": true, | ||
| "forceConsistentCasingInFileNames": true, | ||
| "resolveJsonModule": true, | ||
| "strict": true, | ||
| "skipLibCheck": true, | ||
| "paths": { | ||
| "@": ["../extension"], | ||
| "@/*": ["../extension/*"], | ||
| "~": ["../extension"], | ||
| "~/*": ["../extension/*"], | ||
| "@@": [".."], | ||
| "@@/*": ["../*"], | ||
| "~~": [".."], | ||
| "~~/*": ["../*"] | ||
| } | ||
| }, | ||
| "include": [ | ||
| "../**/*", | ||
| "./wxt.d.ts" | ||
| ], | ||
| "exclude": ["../.output"] | ||
| } | ||
This file contains hidden or 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,15 @@ | ||
| // Generated by wxt | ||
| interface ImportMetaEnv { | ||
| readonly MANIFEST_VERSION: 2 | 3; | ||
| readonly BROWSER: string; | ||
| readonly CHROME: boolean; | ||
| readonly FIREFOX: boolean; | ||
| readonly SAFARI: boolean; | ||
| readonly EDGE: boolean; | ||
| readonly OPERA: boolean; | ||
| readonly COMMAND: "build" | "serve"; | ||
| readonly ENTRYPOINT: string; | ||
| } | ||
| interface ImportMeta { | ||
| readonly env: ImportMetaEnv | ||
| } |
This file contains hidden or 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,81 @@ | ||
| // Generated by wxt | ||
| import "wxt/browser"; | ||
|
|
||
| declare module "wxt/browser" { | ||
| /** | ||
| * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage | ||
| */ | ||
| interface GetMessageOptions { | ||
| /** | ||
| * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage | ||
| */ | ||
| escapeLt?: boolean | ||
| } | ||
|
|
||
| export interface WxtI18n extends I18n.Static { | ||
| /** | ||
| * The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message. | ||
| * Note: You can't use this message in a manifest file. | ||
| * | ||
| * "<browser.runtime.id>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@extension_id", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| /** | ||
| * "<browser.i18n.getUiLocale()>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@ui_locale", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| /** | ||
| * The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese. | ||
| * | ||
| * "<ltr|rtl>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@bidi_dir", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| /** | ||
| * If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr". | ||
| * | ||
| * "<rtl|ltr>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@bidi_reversed_dir", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| /** | ||
| * If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right". | ||
| * | ||
| * "<left|right>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@bidi_start_edge", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| /** | ||
| * If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left". | ||
| * | ||
| * "<right|left>" | ||
| */ | ||
| getMessage( | ||
| messageName: "@@bidi_end_edge", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| getMessage( | ||
| messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge", | ||
| substitutions?: string | string[], | ||
| options?: GetMessageOptions, | ||
| ): string; | ||
| } | ||
| } |
This file contains hidden or 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,20 @@ | ||
| // Generated by wxt | ||
| // Types for the #import virtual module | ||
| declare module '#imports' { | ||
| export { browser, Browser } from 'wxt/browser'; | ||
| export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'; | ||
| export { useAppConfig } from 'wxt/utils/app-config'; | ||
| export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context'; | ||
| export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'; | ||
| export { createIntegratedUi, IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'; | ||
| export { createShadowRootUi, ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'; | ||
| export { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'; | ||
| export { defineAppConfig, WxtAppConfig } from 'wxt/utils/define-app-config'; | ||
| export { defineBackground } from 'wxt/utils/define-background'; | ||
| export { defineContentScript } from 'wxt/utils/define-content-script'; | ||
| export { defineUnlistedScript } from 'wxt/utils/define-unlisted-script'; | ||
| export { defineWxtPlugin } from 'wxt/utils/define-wxt-plugin'; | ||
| export { injectScript, ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'; | ||
| export { InvalidMatchPattern, MatchPattern } from 'wxt/utils/match-patterns'; | ||
| export { fakeBrowser } from 'wxt/testing'; | ||
| } |
This file contains hidden or 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,50 @@ | ||
| // Generated by wxt | ||
| export {} | ||
| declare global { | ||
| const ContentScriptContext: typeof import('wxt/utils/content-script-context').ContentScriptContext | ||
| const InvalidMatchPattern: typeof import('wxt/utils/match-patterns').InvalidMatchPattern | ||
| const MatchPattern: typeof import('wxt/utils/match-patterns').MatchPattern | ||
| const browser: typeof import('wxt/browser').browser | ||
| const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi | ||
| const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi | ||
| const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi | ||
| const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig | ||
| const defineBackground: typeof import('wxt/utils/define-background').defineBackground | ||
| const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript | ||
| const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript | ||
| const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin | ||
| const fakeBrowser: typeof import('wxt/testing').fakeBrowser | ||
| const injectScript: typeof import('wxt/utils/inject-script').injectScript | ||
| const storage: typeof import('wxt/utils/storage').storage | ||
| const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig | ||
| } | ||
| // for type re-export | ||
| declare global { | ||
| // @ts-ignore | ||
| export type { Browser } from 'wxt/browser' | ||
| import('wxt/browser') | ||
| // @ts-ignore | ||
| export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage' | ||
| import('wxt/utils/storage') | ||
| // @ts-ignore | ||
| export type { WxtWindowEventMap } from 'wxt/utils/content-script-context' | ||
| import('wxt/utils/content-script-context') | ||
| // @ts-ignore | ||
| export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe' | ||
| import('wxt/utils/content-script-ui/iframe') | ||
| // @ts-ignore | ||
| export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated' | ||
| import('wxt/utils/content-script-ui/integrated') | ||
| // @ts-ignore | ||
| export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root' | ||
| import('wxt/utils/content-script-ui/shadow-root') | ||
| // @ts-ignore | ||
| export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types' | ||
| import('wxt/utils/content-script-ui/types') | ||
| // @ts-ignore | ||
| export type { WxtAppConfig } from 'wxt/utils/define-app-config' | ||
| import('wxt/utils/define-app-config') | ||
| // @ts-ignore | ||
| export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script' | ||
| import('wxt/utils/inject-script') | ||
| } |
This file contains hidden or 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,20 @@ | ||
| // Generated by wxt | ||
| import "wxt/browser"; | ||
|
|
||
| declare module "wxt/browser" { | ||
| export type PublicPath = | ||
| | "" | ||
| | "/" | ||
| | "/background.js" | ||
| | "/content-scripts/content.js" | ||
| | "/icon-128.png" | ||
| | "/icon-16.png" | ||
| | "/icon-48.png" | ||
| | "/icon.png" | ||
| | "/manifest.json" | ||
| type HtmlPublicPath = Extract<PublicPath, `${string}.html`> | ||
| export interface WxtRuntime { | ||
| getURL(path: PublicPath): string; | ||
| getURL(path: `${HtmlPublicPath}${string}`): string; | ||
| } | ||
| } |
This file contains hidden or 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,7 @@ | ||
| // Generated by wxt | ||
| /// <reference types="wxt/vite-builder-env" /> | ||
| /// <reference path="./types/paths.d.ts" /> | ||
| /// <reference path="./types/i18n.d.ts" /> | ||
| /// <reference path="./types/globals.d.ts" /> | ||
| /// <reference path="./types/imports-module.d.ts" /> | ||
| /// <reference path="./types/imports.d.ts" /> |
This file contains hidden or 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,32 @@ | ||
| { | ||
| "expo": { | ||
| "name": "expo-wxt-app", | ||
| "slug": "expo-wxt-app", | ||
| "scheme": "expo-wxt-app", | ||
| "version": "1.0.0", | ||
| "orientation": "portrait", | ||
| "icon": "./assets/icon.png", | ||
| "userInterfaceStyle": "light", | ||
| "newArchEnabled": true, | ||
| "splash": { | ||
| "image": "./assets/splash-icon.png", | ||
| "resizeMode": "contain", | ||
| "backgroundColor": "#ffffff" | ||
| }, | ||
| "ios": { | ||
| "supportsTablet": true, | ||
| "deploymentTarget": "18.0" | ||
| }, | ||
| "android": { | ||
| "adaptiveIcon": { | ||
| "foregroundImage": "./assets/adaptive-icon.png", | ||
| "backgroundColor": "#ffffff" | ||
| }, | ||
| "edgeToEdgeEnabled": true | ||
| }, | ||
| "web": { | ||
| "favicon": "./assets/favicon.png", | ||
| "bundler": "metro" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define compilerOptions.baseUrl before declaring paths so the alias map is honored; otherwise these path imports will not resolve in TypeScript.
Prompt for AI agents
✅ Addressed in
3dba738