odforge 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {odforge-0.3.0 → odforge-0.3.1}/.gitignore +0 -3
- {odforge-0.3.0 → odforge-0.3.1}/PKG-INFO +1 -1
- odforge-0.3.1/src/odforge/__init__.py +1 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/render/odp.py +10 -2
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_render_odp.py +26 -0
- odforge-0.3.1/web/editor.html +13 -0
- odforge-0.3.1/web/index.html +23 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/App.tsx +10 -1
- {odforge-0.3.0 → odforge-0.3.1}/web/src/styles/app.css +3 -10
- odforge-0.3.0/src/odforge/__init__.py +0 -1
- odforge-0.3.0/web/editor.html +0 -12
- odforge-0.3.0/web/index.html +0 -23
- {odforge-0.3.0 → odforge-0.3.1}/LICENSE +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/README.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/constraints.txt +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/hatch_build.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/pyproject.toml +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/SKILL.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/academic.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/clay.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/color-system.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/crimson.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/dark.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/forest.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/gold.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/minimal.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/navy.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/plum.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/sky.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/slate.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/teal.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/skills/odforge-design/themes/violet.md +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/benchmark.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/check.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/cli.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/components.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/critic.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/docfonts.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/editor_api.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/editor_launch.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/editor_routes.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/extract.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/feedback.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/fontembed.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/ir.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/layoutcheck.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/llm.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/localguard.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/mcp_server.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/media.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/odpedit.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/package.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/pagefacts.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/preview.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/references.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/render/__init__.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/render/ods.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/render/odt.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/scene.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/setup_agents.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/templates.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/textmetrics.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/textutil.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/themes.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/validate.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/watch.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/webapi.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/xmlsafe.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/src/odforge/zipguard.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/conftest.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_benchmark.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_check.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_cli.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_critic.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_deck_quality.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_editor.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_editor_launch.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_extract.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_integration_pipeline.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_ir.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_layoutcheck.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_llm.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_localguard.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_mcp.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_media.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_package.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_pagefacts.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_preview.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_render_ods.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_render_odt.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_setup_agents.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_sources.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_templates.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_textmetrics.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_validate.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_watch.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_webapi.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/tests/test_zipguard.py +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/package-lock.json +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/package.json +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/App.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/ConfirmBar.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/ConfirmBar.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/DiscoveryPanel.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/DiscoveryPanel.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/DownloadDock.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/DownloadDock.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/ErrorPanel.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/ErrorPanel.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/GateRail.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/GateRail.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/HomeDashboard.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/HomeDashboard.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/OutlineRail.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/OutlineRail.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/PreviewStage.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/PromptBar.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/PromptBar.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/SideNav.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/StatusNarrator.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/TemplateGallery.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/TemplateGallery.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/TemplatesPage.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/UnitCell.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/UnitDetail.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/UnitDetail.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/WaitingCard.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/display.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/components/preview.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/main.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/Bars.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/Canvas.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/Comments.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/EditorApp.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/Elements.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/PageList.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/SlideView.test.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/SlideView.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/api.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/editor.css +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/geometry.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/geometry.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/main.tsx +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/richtext.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/richtext.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/next/types.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/smoke.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/api.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/api.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/cockpit.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/cockpit.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/discovery.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/discovery.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/errors.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/errors.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/mockStream.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/mockStream.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/sse.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/sse.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/subscribe.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/taskName.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/taskName.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/throttle.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/throttle.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/state/types.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/styles/layout.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/test/setup.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/theme/contrast.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/theme/tokens.css +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/theme/useTheme.test.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/src/theme/useTheme.ts +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/tsconfig.json +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/tsconfig.test.json +0 -0
- {odforge-0.3.0 → odforge-0.3.1}/web/vite.config.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: odforge
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Forge natural language into native ODF documents (.odt/.odp/.ods)
|
|
5
5
|
Project-URL: Homepage, https://github.com/FantasySakura0515/ODForge
|
|
6
6
|
Project-URL: Source, https://github.com/FantasySakura0515/ODForge
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.1"
|
|
@@ -1653,8 +1653,16 @@ _COVER_META_W = 8.2
|
|
|
1653
1653
|
def _cover_meta(slide: Slide, branding: Branding | None) -> list[str]:
|
|
1654
1654
|
"""What the cover's info card lists: the title slide's own bullets
|
|
1655
1655
|
(單位、講者、日期、期間). The app-owned byline stays verbatim on its own
|
|
1656
|
-
line — it is the user's words, not material to re-layout.
|
|
1657
|
-
|
|
1656
|
+
line — it is the user's words, not material to re-layout. A nested item
|
|
1657
|
+
is a label with its value, so it reads as one ``標題:內容`` row."""
|
|
1658
|
+
rows = []
|
|
1659
|
+
for item in _coerce_bullet_items(slide.bullets):
|
|
1660
|
+
if isinstance(item, tuple):
|
|
1661
|
+
text, children = item
|
|
1662
|
+
item = f"{text}:{'、'.join(children)}"
|
|
1663
|
+
if item.strip():
|
|
1664
|
+
rows.append(item)
|
|
1665
|
+
return rows[:5]
|
|
1658
1666
|
|
|
1659
1667
|
|
|
1660
1668
|
def _cover_meta_xml(
|
|
@@ -2431,6 +2431,32 @@ def test_byline_is_drawn_on_the_cover_verbatim():
|
|
|
2431
2431
|
assert not [x for x in page.findall(".//text:p", NS) if x.text and "王小明" in x.text]
|
|
2432
2432
|
|
|
2433
2433
|
|
|
2434
|
+
@pytest.mark.parametrize("style", ["passport", "classic", "keynote"])
|
|
2435
|
+
def test_a_cover_with_nested_bullets_lists_them_as_label_and_value(style):
|
|
2436
|
+
# Agents give the cover's facts as nested bullets too; this used to crash
|
|
2437
|
+
# the whole deck with "'BulletItem' object has no attribute 'strip'".
|
|
2438
|
+
deck = Presentation(
|
|
2439
|
+
title="封面資訊",
|
|
2440
|
+
style=style,
|
|
2441
|
+
slides=[
|
|
2442
|
+
{
|
|
2443
|
+
"layout": "title",
|
|
2444
|
+
"title": "臺灣入侵植物離線辨識",
|
|
2445
|
+
"bullets": [
|
|
2446
|
+
{"text": "研究範圍", "children": ["40 種入侵植物"]},
|
|
2447
|
+
{"text": "執行期程"},
|
|
2448
|
+
"申請經費 73,000 元",
|
|
2449
|
+
],
|
|
2450
|
+
},
|
|
2451
|
+
{"layout": "title-content", "title": "內容頁", "bullets": ["一點"]},
|
|
2452
|
+
],
|
|
2453
|
+
)
|
|
2454
|
+
page = _content_root(deck, THEMES["academic"]).findall(".//draw:page", NS)[0]
|
|
2455
|
+
drawn = "".join(page.itertext())
|
|
2456
|
+
for row in ("研究範圍:40 種入侵植物", "執行期程", "申請經費 73,000 元"):
|
|
2457
|
+
assert row in drawn
|
|
2458
|
+
|
|
2459
|
+
|
|
2434
2460
|
def test_no_branding_renders_exactly_as_before():
|
|
2435
2461
|
plain = _branded_deck()
|
|
2436
2462
|
plain = Presentation(title=plain.title, slides=plain.slides)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-Hant">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGl0bGU+T0RGb3JnZSDmlofpjZs8L3RpdGxlPjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiByeD0iMjIiIGZpbGw9IiMxZDQzODQiLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5IDcpIHNjYWxlKC44MikiPjxwYXRoIGQ9Ik00IDYwSDkwVjY3UTkwIDcxIDg2IDcxSDcwTDY0IDc5SDc0VjkySDI2Vjc5SDM2TDMwIDcxSDIwUTggNzEgNCA2MFoiIGZpbGw9IiM5ZmMwZjUiLz48cGF0aCBkPSJNMzAgOEg1OEw3MiAyMlY1OEgzMFoiIGZpbGw9IiNmZmYiIHN0cm9rZT0iIzEzMjk0ZiIgc3Ryb2tlLXdpZHRoPSI2IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTU4IDhWMjJINzIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzEzMjk0ZiIgc3Ryb2tlLXdpZHRoPSI2IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTM5IDMySDYzTTM5IDQxSDYzTTM5IDQ5SDUzIiBzdHJva2U9IiMxMzI5NGYiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PHBhdGggZD0iTTc3IDE3TDg2IDlNODAgMjdMOTIgMjVNNzEgMTBMNzMgMyIgc3Ryb2tlPSIjZTA0NTdiIiBzdHJva2Utd2lkdGg9IjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvZz48L3N2Zz4=" />
|
|
7
|
+
<title>文鍛 編輯器</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/next/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-Hant">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="color-scheme" content="light dark" />
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="用一句話生成可編輯、經過結構與 LibreOffice 驗證的原生 OpenDocument 文件。"
|
|
10
|
+
/>
|
|
11
|
+
<meta name="theme-color" content="#e9e6dc" />
|
|
12
|
+
<link
|
|
13
|
+
rel="icon"
|
|
14
|
+
type="image/svg+xml"
|
|
15
|
+
href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGl0bGU+T0RGb3JnZSDmlofpjZs8L3RpdGxlPjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiByeD0iMjIiIGZpbGw9IiMxZDQzODQiLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5IDcpIHNjYWxlKC44MikiPjxwYXRoIGQ9Ik00IDYwSDkwVjY3UTkwIDcxIDg2IDcxSDcwTDY0IDc5SDc0VjkySDI2Vjc5SDM2TDMwIDcxSDIwUTggNzEgNCA2MFoiIGZpbGw9IiM5ZmMwZjUiLz48cGF0aCBkPSJNMzAgOEg1OEw3MiAyMlY1OEgzMFoiIGZpbGw9IiNmZmYiIHN0cm9rZT0iIzEzMjk0ZiIgc3Ryb2tlLXdpZHRoPSI2IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTU4IDhWMjJINzIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzEzMjk0ZiIgc3Ryb2tlLXdpZHRoPSI2IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTM5IDMySDYzTTM5IDQxSDYzTTM5IDQ5SDUzIiBzdHJva2U9IiMxMzI5NGYiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PHBhdGggZD0iTTc3IDE3TDg2IDlNODAgMjdMOTIgMjVNNzEgMTBMNzMgMyIgc3Ryb2tlPSIjZTA0NTdiIiBzdHJva2Utd2lkdGg9IjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvZz48L3N2Zz4="
|
|
16
|
+
/>
|
|
17
|
+
<title>文鍛 ODForge|把一句話鍛成可交付的文件</title>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="root"></div>
|
|
21
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -385,7 +385,16 @@ export default function App() {
|
|
|
385
385
|
<header className="sitebar">
|
|
386
386
|
<div className="sitebar-inner">
|
|
387
387
|
<button type="button" className="brand" aria-label="回到首頁" onClick={goHome}>
|
|
388
|
-
<
|
|
388
|
+
<svg className="brand-seal" viewBox="0 0 100 100" aria-hidden="true">
|
|
389
|
+
<rect width="100" height="100" rx="22" fill="#1d4384" />
|
|
390
|
+
<g transform="translate(9 7) scale(.82)">
|
|
391
|
+
<path d="M4 60H90V67Q90 71 86 71H70L64 79H74V92H26V79H36L30 71H20Q8 71 4 60Z" fill="#9fc0f5" />
|
|
392
|
+
<path d="M30 8H58L72 22V58H30Z" fill="#fff" stroke="#13294f" strokeWidth="6" strokeLinejoin="round" />
|
|
393
|
+
<path d="M58 8V22H72" fill="none" stroke="#13294f" strokeWidth="6" strokeLinejoin="round" />
|
|
394
|
+
<path d="M39 32H63M39 41H63M39 49H53" stroke="#13294f" strokeWidth="5" strokeLinecap="round" />
|
|
395
|
+
<path d="M77 17L86 9M80 27L92 25M71 10L73 3" stroke="#e0457b" strokeWidth="6" strokeLinecap="round" />
|
|
396
|
+
</g>
|
|
397
|
+
</svg>
|
|
389
398
|
<span className="brand-copy">
|
|
390
399
|
<span className="mark">文鍛</span>
|
|
391
400
|
<span className="en">ODForge</span>
|
|
@@ -112,17 +112,10 @@ button { color: inherit; }
|
|
|
112
112
|
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
|
|
113
113
|
|
|
114
114
|
.brand-seal {
|
|
115
|
-
display:
|
|
115
|
+
display: block;
|
|
116
116
|
width: 38px;
|
|
117
117
|
height: 38px;
|
|
118
|
-
|
|
119
|
-
color: var(--on-accent);
|
|
120
|
-
background: var(--accent);
|
|
121
|
-
border-radius: 4px 11px 4px 4px;
|
|
122
|
-
font-family: var(--f-brand);
|
|
123
|
-
font-size: 20px;
|
|
124
|
-
font-weight: 700;
|
|
125
|
-
line-height: 1;
|
|
118
|
+
border-radius: 9px;
|
|
126
119
|
box-shadow: 0 8px 20px -10px var(--glow);
|
|
127
120
|
}
|
|
128
121
|
|
|
@@ -3591,7 +3584,7 @@ button.finding:focus-visible { outline: 2px solid var(--accent); outline-offset:
|
|
|
3591
3584
|
}
|
|
3592
3585
|
|
|
3593
3586
|
.brand { gap: 9px; }
|
|
3594
|
-
.brand-seal { width: 34px; height: 34px;
|
|
3587
|
+
.brand-seal { width: 34px; height: 34px; }
|
|
3595
3588
|
.brand .mark { font-size: 17px; }
|
|
3596
3589
|
.brand .en { display: none; }
|
|
3597
3590
|
.sitebar-status { gap: 7px; }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.0"
|
odforge-0.3.0/web/editor.html
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="zh-Hant">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>文鍛 編輯器</title>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<div id="root"></div>
|
|
10
|
-
<script type="module" src="/src/next/main.tsx"></script>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
odforge-0.3.0/web/index.html
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="zh-Hant">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<meta name="color-scheme" content="light dark" />
|
|
7
|
-
<meta
|
|
8
|
-
name="description"
|
|
9
|
-
content="用一句話生成可編輯、經過結構與 LibreOffice 驗證的原生 OpenDocument 文件。"
|
|
10
|
-
/>
|
|
11
|
-
<meta name="theme-color" content="#e9e6dc" />
|
|
12
|
-
<link
|
|
13
|
-
rel="icon"
|
|
14
|
-
type="image/svg+xml"
|
|
15
|
-
href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iNyIgZmlsbD0iIzIzNGU5ZSIvPjx0ZXh0IHg9IjE2IiB5PSIyMyIgZm9udC1zaXplPSIyMSIgZm9udC1mYW1pbHk9Ikdlb3JnaWEsJmFwb3M7Tm90byBTZXJpZiBUQyZhcG9zOyxzZXJpZiIgZm9udC13ZWlnaHQ9IjcwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iI2ZmZiI+5paHPC90ZXh0Pjwvc3ZnPg=="
|
|
16
|
-
/>
|
|
17
|
-
<title>文鍛 ODForge|把一句話鍛成可交付的文件</title>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="root"></div>
|
|
21
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
22
|
-
</body>
|
|
23
|
-
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|