Refactor project name from "Open Claude Design" to "Open Design"

- Updated project name in package.json, package-lock.json, and README files.
- Changed CLI commands and references from "ocd" to "od".
- Adjusted file structure references in documentation and code to reflect new naming conventions.
- Enhanced .gitignore to include new runtime data files.
- Updated metadata in LICENSE file to match new project name.
This commit is contained in:
pftom
2026-04-28 14:48:45 +08:00
parent a98096a042
commit af3f96379a
122 changed files with 952 additions and 474 deletions
+4 -4
View File
@@ -9,9 +9,9 @@
* When `options.deck` is set we also inject a `postMessage` listener that
* lets the host advance / rewind slides without relying on the iframe
* having keyboard focus. The host posts:
* { type: 'ocd:slide', action: 'next' | 'prev' | 'first' | 'last' | 'go', index?: number }
* { type: 'od:slide', action: 'next' | 'prev' | 'first' | 'last' | 'go', index?: number }
* and the iframe responds with:
* { type: 'ocd:slide-state', active: number, count: number }
* { type: 'od:slide-state', active: number, count: number }
* after every navigation so the host can render its own counter / dots.
*/
export function buildSrcdoc(
@@ -55,7 +55,7 @@ function injectDeckBridge(doc: string): string {
try {
var list = slides();
window.parent.postMessage({
type: 'ocd:slide-state',
type: 'od:slide-state',
active: activeIndex(),
count: list.length,
}, '*');
@@ -63,7 +63,7 @@ function injectDeckBridge(doc: string): string {
}
window.addEventListener('message', function(ev){
var data = ev && ev.data;
if (!data || data.type !== 'ocd:slide') return;
if (!data || data.type !== 'od:slide') return;
var list = slides();
var i = activeIndex();
if (data.action === 'next') go(i + 1);