-
Notifications
You must be signed in to change notification settings - Fork 20
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
6230561
commit 7b9685c
Showing
17 changed files
with
2,913 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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,92 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Syncia - Power of ChatGPT on any website", | ||
"description": "Syncia is a browser extension that allows you to use Open AI's GPT in any website.", | ||
"version": "1.5.3.0", | ||
"icons": { | ||
"16": "images/icon-16.png", | ||
"32": "images/icon-32.png", | ||
"48": "images/icon-48.png", | ||
"128": "images/icon-128.png" | ||
}, | ||
"action": { | ||
"default_title": "Syncia - Open Sidebar" | ||
}, | ||
"commands": { | ||
"open-sidebar": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+X", | ||
"mac": "Command+Shift+X" | ||
}, | ||
"description": "Open the sidebar" | ||
}, | ||
"wxt:reload-extension": { | ||
"description": "Reload the extension during development", | ||
"suggested_key": { | ||
"default": "Alt+R" | ||
} | ||
} | ||
}, | ||
"externally_connectable": { | ||
"ids": [ | ||
"*" | ||
] | ||
}, | ||
"permissions": [ | ||
"storage", | ||
"unlimitedStorage", | ||
"contextMenus", | ||
"tabs", | ||
"activeTab", | ||
"clipboardWrite", | ||
"scripting" | ||
], | ||
"background": { | ||
"service_worker": "background.js" | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"http://*/*", | ||
"https://*/*", | ||
"<all_urls>" | ||
], | ||
"js": [ | ||
"src/pages/content/sidebar.tsx" | ||
] | ||
}, | ||
{ | ||
"matches": [ | ||
"http://*/*", | ||
"https://*/*", | ||
"<all_urls>" | ||
], | ||
"js": [ | ||
"src/pages/content/quick-menu/initQuickMenu.tsx", | ||
"src/pages/content/quick-menu/listenContextMenu.tsx" | ||
], | ||
"all_frames": true | ||
} | ||
], | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": [ | ||
"src/pages/sidebar/index.html", | ||
"images/robot.png", | ||
"src/pages/settings/index.html" | ||
], | ||
"matches": [ | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} | ||
], | ||
"version_name": "1.5.3", | ||
"host_permissions": [ | ||
"http://localhost/*" | ||
], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval' http://localhost:3000; object-src 'self';", | ||
"sandbox": "script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:3000; sandbox allow-scripts allow-forms allow-popups allow-modals; child-src 'self';" | ||
} | ||
} |
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 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,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<script type="module" src="http://localhost:3000/@vite/client"></script> | ||
<script src="http://localhost:3000/@id/virtual:wxt-html-plugins" type="module"></script> | ||
<meta charset="UTF-8"> | ||
<title>Syncia Settings</title> <script type="module" crossorigin="" src="/chunks/reload-html-BxzUToPe.js"></script> | ||
</head> | ||
|
||
<body class="dark:cdx-bg-neutral-800 cdx-bg-neutral-50 dark:cdx-text-neutral-100 cdx-min-h-screen"> | ||
<div id="__root"></div> | ||
<script type="module" src="http://localhost:3000/src/entrypoints/settings/index.tsx"></script> | ||
</body> | ||
|
||
</html> |
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,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<script type="module" src="http://localhost:3000/@vite/client"></script> | ||
<script src="http://localhost:3000/@id/virtual:wxt-html-plugins" type="module"></script> | ||
<meta charset="UTF-8"> | ||
<title>Syncia Sidebar</title> <script type="module" crossorigin="" src="/chunks/reload-html-BxzUToPe.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="__root"></div> | ||
<script type="module" src="http://localhost:3000/src/entrypoints/sidebar/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
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,28 @@ | ||
{} | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"paths": { | ||
"@": ["../src"], | ||
"@/*": ["../src/*"], | ||
"~": ["../src"], | ||
"~/*": ["../src/*"], | ||
"@@": [".."], | ||
"@@/*": ["../*"], | ||
"~~": [".."], | ||
"~~/*": ["../*"] | ||
} | ||
}, | ||
"include": [ | ||
"../**/*", | ||
"./wxt.d.ts" | ||
], | ||
"exclude": ["../.output"] | ||
} |
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,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 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; | ||
} | ||
} |
Oops, something went wrong.