atelier-mcp 0.1.0

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.
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Be Vietnam Pro Project Authors (https://github.com/bettergui/BeVietnamPro),
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/web/index.html ADDED
@@ -0,0 +1,118 @@
1
+ <!doctype html>
2
+ <html lang="vi">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Atelier</title>
7
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 26 L16 4 L28 26 Z' fill='none' stroke='%236ea0d8' stroke-width='2.5'/%3E%3Cpath d='M10 21 L16 10 L22 21 Z' fill='%236ea0d8' opacity='.35'/%3E%3C/svg%3E" />
8
+ <script type="module" crossorigin src="/assets/index-Cu5-rpTP.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-CpODXMVG.css">
10
+ </head>
11
+ <body data-view="split">
12
+ <header class="top">
13
+ <div class="brand">
14
+ <svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true">
15
+ <path d="M4 26 L16 4 L28 26 Z" fill="none" stroke="currentColor" stroke-width="2.5" />
16
+ <path d="M10 21 L16 10 L22 21 Z" fill="currentColor" opacity=".35" />
17
+ </svg>
18
+ <span class="brand-name">Atelier</span>
19
+ <span class="brand-sep" aria-hidden="true"></span>
20
+ <span id="project-name" class="project-name" data-i18n="app.connecting">đang kết nối…</span>
21
+ </div>
22
+ <div class="top-right">
23
+ <button id="share-btn" class="share-btn" data-i18n="share.btn" data-i18n-title="share.title" title="Copy link CHỈ-XEM gửi người thân — họ thấy live nhưng không sửa được; thu hồi link: POST /share/rotate">chia sẻ</button>
24
+ <button id="lang-btn" class="share-btn" data-i18n-title="lang.title" title="Switch interface language">EN</button>
25
+ <nav class="views" role="tablist" aria-label="Chế độ xem">
26
+ <button class="view-btn" data-view-btn="plan" role="tab" data-i18n="view.plan">Mặt bằng</button>
27
+ <button class="view-btn" data-view-btn="3d" role="tab" data-i18n="view.3d">3D</button>
28
+ <button class="view-btn is-active" data-view-btn="split" role="tab" aria-selected="true" data-i18n="view.split">Chia đôi</button>
29
+ </nav>
30
+ </div>
31
+ </header>
32
+
33
+ <main class="work">
34
+ <aside class="rail" aria-label="Công cụ">
35
+ <button class="tool is-active" id="tool-select" data-i18n-title="tool.select" title="Chọn / di chuyển — kéo tường, cửa, nội thất; đang kéo gõ số để chốt chính xác; Alt bỏ snap; R xoay nội thất đang chọn">V</button>
36
+ <button class="tool" disabled data-i18n-title="tool.wall" title="Vẽ tường — giai đoạn sau">1</button>
37
+ <button class="tool" disabled data-i18n-title="tool.door" title="Đặt cửa đi — giai đoạn sau">2</button>
38
+ <button class="tool" disabled data-i18n-title="tool.window" title="Đặt cửa sổ — giai đoạn sau">3</button>
39
+ <button class="tool" disabled data-i18n-title="tool.room" title="Vẽ phòng — giai đoạn sau">4</button>
40
+ <button class="tool" id="tool-furniture" data-i18n-title="tool.furniture" title="Nội thất — mở catalog, chọn món rồi click vào mặt bằng để đặt; Esc/V để thôi">5</button>
41
+ <button class="tool" disabled data-i18n-title="tool.measure" title="Đo — giai đoạn sau">M</button>
42
+ </aside>
43
+
44
+ <section class="canvas">
45
+ <div id="pane2d" class="pane pane-2d">
46
+ <div class="pane-empty" id="empty2d" data-i18n="pane2d.empty">Đang chờ dự án — Claude sẽ dựng đến đâu, bản vẽ mọc đến đó.</div>
47
+ <div class="paper-viewport" id="paper-viewport">
48
+ <div class="paper" id="paper"></div>
49
+ </div>
50
+ <div class="pane-actions">
51
+ <button id="fit2d" class="pane-btn" data-i18n="fit2d" data-i18n-title="fit2d.title" title="Khớp bản vẽ vào khung">khớp khung</button>
52
+ </div>
53
+ <div class="pane-hint" data-i18n="pane2d.hint">kéo đối tượng — di chuyển · gõ số khi kéo — chốt chính xác · Alt — bỏ snap</div>
54
+ </div>
55
+ <div id="pane3d" class="pane pane-3d">
56
+ <canvas id="canvas3d"></canvas>
57
+ <div class="pane-actions">
58
+ <button id="walk3d" class="pane-btn" data-i18n="walk.btn" data-i18n-title="walk.title" title="Đi bộ trong nhà — WASD di chuyển, chuột nhìn, Shift chạy, Esc thoát">đi bộ</button>
59
+ <button id="sun3d" class="pane-btn" data-i18n="sun.btn" data-i18n-title="sun.title" title="Xem nắng theo giờ + tháng (vĩ độ lấy từ brief)">nắng</button>
60
+ <button id="reset3d" class="pane-btn" data-i18n="reset3d" data-i18n-title="reset3d.title" title="Về góc nhìn mặc định">về góc chuẩn</button>
61
+ </div>
62
+ <div id="sun-controls" class="sun-controls" hidden>
63
+ <label><span data-i18n="sun.hour">giờ</span> <input id="sun-hour" type="range" min="6" max="18" step="0.5" value="9" /> <span id="sun-hour-val">9:00</span></label>
64
+ <label><span data-i18n="sun.month">tháng</span> <input id="sun-month" type="range" min="1" max="12" step="1" value="6" /> <span id="sun-month-val">6</span></label>
65
+ </div>
66
+ <div class="pane-hint" id="hint3d" data-i18n="hint3d.orbit">kéo — xoay · lăn — zoom · chuột phải — trượt</div>
67
+ </div>
68
+ </section>
69
+
70
+ <aside class="side">
71
+ <section class="panel" id="panel-props">
72
+ <h2 class="panel-title" data-i18n="panel.props">Thuộc tính</h2>
73
+ <div class="panel-body" id="props-body">
74
+ <p class="panel-empty"><span data-i18n="props.empty">Chạm một đối tượng trên bản vẽ để xem thông số.</span><br /><span class="dim" data-i18n="props.empty.sub">Kéo để di chuyển — đang kéo thì gõ số là chốt chính xác.</span></p>
75
+ </div>
76
+ </section>
77
+ <section class="panel panel-grow" id="panel-issues">
78
+ <h2 class="panel-title"><span data-i18n="panel.issues">Kiểm tra</span> <span id="issues-count" class="count" hidden></span></h2>
79
+ <div class="panel-body" id="issues-body">
80
+ <p class="panel-empty" data-i18n="issues.pending">Chưa có kết quả kiểm tra.</p>
81
+ </div>
82
+ </section>
83
+ </aside>
84
+ </main>
85
+
86
+ <footer class="status" aria-label="Khung tên">
87
+ <div class="cell cell-levels">
88
+ <span class="cell-label" data-i18n="footer.levels">Tầng</span>
89
+ <span class="cell-value" id="level-tabs"></span>
90
+ </div>
91
+ <div class="cell">
92
+ <span class="cell-label" data-i18n="footer.revision">Revision</span>
93
+ <span class="cell-value"><span id="rev-seal" class="rev-seal">—</span></span>
94
+ </div>
95
+ <div class="cell">
96
+ <span class="cell-label" data-i18n="footer.conn">Kết nối</span>
97
+ <span class="cell-value"><span id="conn-dot" class="dot"></span><span id="conn-text" data-i18n="conn.connecting">đang nối…</span></span>
98
+ </div>
99
+ <div class="cell cell-flex">
100
+ <span class="cell-label" data-i18n="footer.claude">Claude</span>
101
+ <span class="cell-value" id="claude-note">—</span>
102
+ </div>
103
+ <div class="cell">
104
+ <span class="cell-label" data-i18n="footer.undo">Hoàn tác</span>
105
+ <span class="cell-value">
106
+ <button id="btn-undo" class="hist-btn" disabled data-i18n-title="undo.title" title="Hoàn tác (Ctrl+Z) — chỉ thao tác của bạn">⟲</button>
107
+ <button id="btn-redo" class="hist-btn" disabled data-i18n-title="redo.title" title="Làm lại (Ctrl+Y)">⟳</button>
108
+ </span>
109
+ </div>
110
+ <div class="cell cell-dim">
111
+ <span class="cell-label" data-i18n="footer.snap">Snap</span>
112
+ <span class="cell-value"><input id="snap-input" class="snap-input" type="number" value="50" min="0" step="25" data-i18n-title="snap.title" title="Bước lưới snap (mm) — 0 là tắt" /> mm</span>
113
+ </div>
114
+ </footer>
115
+
116
+ <div id="toasts" aria-live="polite"></div>
117
+ </body>
118
+ </html>