Skip to content

Commit 5f9387c

Browse files
committed
feat: add @hackmd/ot package and integrate operational transformation
- Added @hackmd/ot as a dependency in package.json. - Created a patch to modify the scriptsDir export in @hackmd/ot to prevent it from being used directly. - Updated public/js/index.js to import the OT library from @hackmd/ot and ensure proper usage of the global 'ot' object. - Modified vite.config.js to define __dirname for browser compatibility and explicitly include OT files in the build.
1 parent e710517 commit 5f9387c

File tree

6 files changed

+1099
-116
lines changed

6 files changed

+1099
-116
lines changed

locales/en.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,26 @@
117117
"Powered by %s": "Powered by %s",
118118
"Register": "Register",
119119
"Export with pandoc": "Export with pandoc",
120-
"Select output format": "Select output format"
120+
"Select output format": "Select output format",
121+
"CONNECTED": "CONNECTED",
122+
"ONLINE": "ONLINE",
123+
"OFFLINE": "OFFLINE",
124+
"Anyone can edit": "Anyone can edit",
125+
"Freely": "Freely",
126+
"Signed-in people can edit": "Signed-in people can edit",
127+
"Editable": "Editable",
128+
"Signed-in people can edit (forbid guests)": "Signed-in people can edit (forbid guests)",
129+
"Limited": "Limited",
130+
"Only owner can edit": "Only owner can edit",
131+
"Locked": "Locked",
132+
"Only owner can edit (forbid guests)": "Only owner can edit (forbid guests)",
133+
"Protected": "Protected",
134+
"Only owner can view & edit": "Only owner can view & edit",
135+
"Private": "Private",
136+
"Delete this note": "Delete this note",
137+
"owned this note": "owned this note",
138+
"Expand all": "Expand all",
139+
"Collapse all": "Collapse all",
140+
"Back to top": "Back to top",
141+
"Go to bottom": "Go to bottom"
121142
}

0 commit comments

Comments
 (0)