дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
Adds Editor Only / Editor and Preview / Preview Only layouts for .mdx files. - Safe Static Mode on open: frontmatter, GFM, math, Mermaid, MDX comments and documentation tags (Steps, CardGroup, Note, Tabs, Accordion) render through the sanitized Markdown pipeline with scroll sync and no script execution. - Run JSX (or Trust Project in Restricted Mode) lazy-loads @mdx-js/mdx and sucrase and evaluates JSX, workspace/tsconfig/node_modules imports, .mdx transclusions, stylesheets, assets and custom layouts inside an opaque-origin sandboxed iframe with its own CSP, no network and no IPC. - The host-guest bridge is a per-document MessagePort; image, media, module and link resolution stay inside the window's project roots, checked lexically and after canonicalization (new fs_canonicalize command, which rejects parent traversal). - Execution requires a current, affirmative trust result for the file's owning project, including attached workspace members, whose trust changes now emit ProjectTrustChanged. - External links open only from a real click on an anchor in the frame and always go through a confirmation dialog showing the parsed destination. - Settings > Languages & Frameworks > Markdown adds MDX component execution (Ask before running / Run automatically in trusted projects / Disabled), a user-only setting that project settings cannot enable. Closes #6876 Co-authored-by: dengliu <[email protected]>
55 рядки
2.0 KiB
JSON
55 рядки
2.0 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "OpenIDEA",
|
|
"version": "0.1.56",
|
|
"identifier": "ai.l0ng.openidea",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "pnpm build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"create": false,
|
|
"title": "OpenIDEA",
|
|
"width": 1440,
|
|
"height": 900,
|
|
"minWidth": 400,
|
|
"minHeight": 500,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"backgroundColor": "#E9EAEE",
|
|
"dragDropEnabled": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self'; img-src 'self' asset: data: blob: http: https:; media-src 'self' data: blob:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; connect-src ipc: http://ipc.localhost; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self' blob:; frame-src http://127.0.0.1:* openidea-plugin: http://openidea-plugin.localhost; frame-ancestors 'none'; base-uri 'self'; form-action 'none'"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"createUpdaterArtifacts": true,
|
|
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"],
|
|
"category": "DeveloperTool",
|
|
"copyright": "Copyright © 2026 OpenIDEA contributors",
|
|
"license": "Apache-2.0",
|
|
"shortDescription": "An open-source IDE inspired by IntelliJ IDEA",
|
|
"longDescription": "OpenIDEA is an open-source IDE inspired by IntelliJ IDEA. Not affiliated with JetBrains.",
|
|
"macOS": {
|
|
"entitlements": "./Entitlements.plist",
|
|
"minimumSystemVersion": "11.0"
|
|
}
|
|
},
|
|
"mainBinaryName": "openidea",
|
|
"plugins": {
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDFCOUU0MUFFOUY4NzZCNkQKUldSdGE0ZWZya0dlRzNnRFJUR2loUVdNZ1BmamxkNzFoaWNPUTBsRmI0cjhxZFRqQURybkMwakEK",
|
|
"endpoints": ["https://github.com/l0ng-ai/openidea/releases/latest/download/latest.json"]
|
|
}
|
|
}
|
|
}
|