Skip to content

Commit

Permalink
fixes ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster committed Dec 29, 2024
1 parent 6230561 commit 7b9685c
Show file tree
Hide file tree
Showing 17 changed files with 2,913 additions and 2 deletions.
2,491 changes: 2,491 additions & 0 deletions .output/chrome-mv3/background.js

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions .output/chrome-mv3/chunks/reload-html-BxzUToPe.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added .output/chrome-mv3/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .output/chrome-mv3/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .output/chrome-mv3/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .output/chrome-mv3/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions .output/chrome-mv3/manifest.json
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';"
}
}
Binary file added .output/chrome-mv3/robot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions .output/chrome-mv3/settings.html
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>
16 changes: 16 additions & 0 deletions .output/chrome-mv3/sidebar.html
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>
29 changes: 28 additions & 1 deletion .wxt/tsconfig.json
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"]
}
15 changes: 15 additions & 0 deletions .wxt/types/globals.d.ts
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
}
81 changes: 81 additions & 0 deletions .wxt/types/i18n.d.ts
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;
}
}
Loading

0 comments on commit 7b9685c

Please sign in to comment.