on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
526 lines (525 loc) • 17.6 kB
JavaScript
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */
const e = "1月", t = "2月", o = "3月", n = "4月", s = "5月", r = "6月", a = "7月", l = "8月", i = "9月", c = "10月", d = "11月", p = "12月", m = "排版", u = "段落", C = "引用", g = "预格式化", T = "已更新", y = "新建", S = "模板", h = "名称", b = "内容", w = "加粗", E = "下划线", D = "删除线", L = "斜体", v = "响应式", A = "系列", f = "总计", k = "标签", I = "值", F = "颜色", M = "格式", R = "X", x = "Y", H = "大小", B = "URL", P = "锚点", U = "标题", V = "复制", z = "保存", N = "查看", Y = "复制", W = "取消", G = "编辑", O = "删除", X = "移除", q = "语言", J = "导出", _ = "您确定吗?", j = "浏览", K = "上传中", Z = "字数", Q = "字符", $ = "句子", ee = "段落", te = "撤销", oe = "重做", ne = "恢复", se = "脚注", re = "插入", ae = "分钟", le = "图例", ie = "应用", ce = "主题", de = "尺寸", pe = "宽度", me = "边框", ue = "颜色", Ce = "效果", ge = "断点", Te = "对齐", ye = "内边距", Se = "高度", he = "分割", be = "水平", we = "垂直", Ee = "合并", De = "移动", Le = "上", ve = "下", Ae = "设置", fe = "剪切", ke = "粘贴", Ie = "排序", Fe = "属性", Me = "单元格", Re = "移动端", xe = "平板", He = "桌面端", Be = "大", Pe = "超大", Ue = "流体", Ve = "计时器", ze = "常规", Ne = "天", Ye = "小时", We = "秒", Ge = "直到", Oe = "创建", Xe = "更新", qe = "操作", Je = "升序", _e = "参与者", je = "日历", Ke = "类别", Ze = "清除", Qe = "协作", $e = "数据", et = "降序", tt = "描述", ot = "事件", nt = "高", st = "导入", rt = "位置", at = "低", lt = "中", it = "方向", ct = "优先级", dt = "选择", pt = "标签", mt = "时间", ut = "提示", Ct = {
"New Block": "新块",
"Split Horizontally": "水平分割",
"Split Vertically": "垂直分割",
"Move Up": "上移",
"Move Down": "下移",
"Block 1": "块 1",
"Block 2": "块 2",
"Series 1": "系列 1",
"No valid data points to display": "没有有效的数据点可显示",
Jan: e,
Feb: t,
Mar: o,
Apr: n,
May: s,
Jun: r,
Jul: a,
Aug: l,
Sep: i,
Oct: c,
Nov: d,
Dec: p,
"Keyboard Shortcuts": "键盘快捷键",
"Insert Table": "插入表格",
"Add Row Above": "在上方添加行",
"Add Row Below": "在下方添加行",
"Add Column Left": "在左侧添加列",
"Add Column Right": "在右侧添加列",
"Delete Row": "删除行",
"Delete Column": "删除列",
"Delete Table": "删除表格",
"Merge Cells": "合并单元格",
"Split Cell": "拆分单元格",
"Set Cell Border": "设置单元格边框",
"Include header row": "包括标题行",
Typography: m,
"Typography Styles": "排版样式",
"Clear Formatting": "清除格式",
"Heading 1": "标题 1",
"Heading 2": "标题 2",
"Heading 3": "标题 3",
"Heading 4": "标题 4",
Paragraph: u,
Blockquote: C,
Preformatted: g,
"Horizontal Line": "水平线",
Updated: T,
"Insert Video": "插入视频",
"Are you sure you want to delete this template?": "您确定要删除此模板吗?",
New: y,
Templates: S,
Name: h,
Content: b,
"Insert YouTube Video": "插入 YouTube 视频",
"YouTube Video URL": "YouTube 视频 URL",
Bold: w,
Underline: E,
Strikethrough: D,
Italic: L,
"Responsive View": "响应式视图",
"Mobile View": "移动视图",
"Tablet View": "平板视图",
"Desktop View": "桌面视图",
"Large Desktop View": "大桌面视图",
"Ultra Wide View": "超宽视图",
Responsive: v,
"Select a viewport size to preview your content at different screen widths.<br>Use the resize handles in responsive mode to adjust the width manually.": "选择视口大小以在不同屏幕宽度下预览您的内容。<br>在响应模式下使用调整大小手柄手动调整宽度。",
Series: A,
Total: f,
"Data Points": "数据点",
"Add Point": "添加点",
Label: k,
Value: I,
Color: F,
Format: M,
"Delete Point": "删除点",
"Series Data": "系列数据",
"Add Series": "添加系列",
"Series name": "系列名称",
"Insert Code Block": "插入代码块",
"Copy to clipboard": "复制到剪贴板",
"+ Add Data Point": "+ 添加数据点",
X: R,
Y: x,
"Bullet List": "项目符号列表",
"Numbered List": "编号列表",
Size: H,
URL: B,
Anchor: P,
Title: U,
'Open in new tab (target="_blank")': '在新标签页中打开 (target="_blank")',
'Add rel="nofollow"': '添加 rel="nofollow"',
"Insert Chart": "插入图表",
"Enter your code here...": "在此输入您的代码...",
"Copied!": "已复制!",
Copy: V,
Save: z,
View: N,
Duplicate: Y,
Cancel: W,
Edit: G,
Delete: O,
Remove: X,
Language: q,
Export: J,
Error: "错误",
"Insert Link": "插入链接",
"Align Left": "左对齐",
"Align Center": "居中对齐",
"Align Right": "右对齐",
"Insert Image": "插入图片",
"Font Size": "字体大小",
"Font Family": "字体",
"Font Settings": "字体设置",
"Upload File": "上传文件",
"Plain Text": "纯文本",
"Markdown File": "Markdown 文件",
"HTML File": "HTML 文件",
"Use comments to provide feedback or suggestions.": "使用评论提供反馈或建议。",
"Delete Comment": "删除评论",
"Please select some text to comment on": "请选择一些文本来评论",
"Failed to insert comment. Please try selecting a simpler text range.": "插入评论失败。请尝试选择更简单的文本范围。",
"Insert Comment": "插入评论",
"Recent Colors": "最近使用的颜色",
Confirm: _,
"Background Color": "背景颜色",
"Text Color": "文字颜色",
"Drag and drop your file here, or": "将文件拖放到此处,或",
browse: j,
"Maximum file size: ": "最大文件大小:",
Uploading: K,
"File size exceeds 10MB limit": "文件大小超过 {{max}} 限制",
"Upload failed. Please try again.": "上传失败。请重试。",
Words: Z,
Characters: Q,
"Characters (without spaces)": "字符(不含空格)",
Sentences: $,
Paragraphs: ee,
"HTML Source": "HTML 源代码",
"View HTML": "查看 HTML",
Undo: te,
Redo: oe,
Restore: ne,
"Initial version": "初始版本",
"Changes from previous version:": "与上一版本的更改:",
"Edit History": "编辑历史",
"View History": "查看历史",
"Reading time": "阅读时间",
"Insert Footnote": "插入脚注",
Footnotes: se,
"Add Footnote": "添加脚注",
"Add explanatory or reference text that will appear at the bottom of the document": "添加将在文档底部显示的解释性或参考性文本",
Insert: re,
min: ae,
"Export PNG": "导出 PNG",
"Select template...": "选择模板...",
"Bar: Sales": "柱状图:销售",
"Pie: Expenses": "饼图:支出",
"Doughnut: Browsers": "环形图:浏览器",
"Line: Visitors": "折线图:访客",
"Chart Title": "图表标题",
"X Axis Label": "X 轴标签",
"Y Axis Label": "Y 轴标签",
Legend: le,
"Show Legend": "显示图例",
"Hide Legend": "隐藏图例",
"Table Properties": "表格属性",
Apply: ie,
"Style & Theme": "样式和主题",
"Table Style": "表格样式",
Theme: ce,
Dimensions: de,
Width: pe,
"Cell Padding": "单元格内边距",
Borders: me,
"Border Style": "边框样式",
"Border Width": "边框宽度",
"Border Color": "边框颜色",
Colors: ue,
"Header Background": "表头背景",
"Header Text Color": "表头文字颜色",
Effects: Ce,
"Zebra Stripe": "斑马纹",
"Hover Effect": "悬停效果",
"Responsive Settings": "响应式设置",
Breakpoint: ge,
"Enable Horizontal Scroll": "启用水平滚动",
"Enable Touch Support": "启用触摸支持",
"Enable Cards on Mobile": "在移动端启用卡片",
"Cell Formatting": "单元格格式",
"Text Formatting": "文本格式",
"Font Weight": "字体粗细",
"Font Style": "字体样式",
"Text Decoration": "文本装饰",
Alignment: Te,
"Horizontal Alignment": "水平对齐",
"Vertical Alignment": "垂直对齐",
Padding: ye,
Height: Se,
"Insert Lazy Table": "插入懒加载表格",
"Edit Lazy Table": "编辑懒加载表格",
"Fill Table": "填充表格",
"Fill Table with Data": "用数据填充表格",
"Update Table": "更新表格",
"Text Block": "文本块",
"Container Block": "容器块",
"Split Container": "分割容器",
Split: he,
Horizontally: be,
Vertically: we,
Merge: Ee,
Move: De,
Up: Le,
Down: ve,
Settings: Ae,
"Make Editable": "设为可编辑",
"Make Read-only": "设为只读",
"Insert Block": "插入块",
"Clear Cell": "清除单元格",
"Delete Cell": "删除单元格",
"Select All": "全选",
Cut: fe,
Paste: ke,
"Auto Size": "自动大小",
Sort: Ie,
"Sort Ascending": "升序排序",
"Sort Descending": "降序排序",
"Export Table": "导出表格",
"Import Table": "导入表格",
Properties: Fe,
Cells: Me,
Mobile: Re,
Tablet: xe,
Desktop: He,
Large: Be,
Ultra: Pe,
Fluid: Ue,
"Resize editor width": "调整编辑器宽度",
Timer: Ve,
General: ze,
days: Ne,
hours: Ye,
sec: We,
"Time expired": "时间已到",
Until: Ge,
"Edit Timer": "编辑计时器",
"Copy Timer": "复制计时器",
"Export Timer": "导出计时器",
"Import Timer": "导入计时器",
"Delete Timer": "删除计时器",
"Timer copied successfully": "计时器复制成功",
"Failed to copy timer": "复制计时器失败",
"Export failed": "导出失败",
"Timer imported successfully": "计时器导入成功",
"Import failed": "导入失败",
"Title is required": "标题是必需的",
"Target date is required": "目标日期是必需的",
"Target time is required": "目标时间是必需的",
"Invalid date/time format": "无效的日期/时间格式",
"Enter timer title": "输入计时器标题",
"Enter timer description": "输入计时器描述",
"Enter category": "输入类别",
"Enter tags separated by commas": "输入用逗号分隔的标签",
"New Timer": "新计时器",
Create: Oe,
Update: Xe,
"No timers found": "未找到计时器",
"Create your first timer to get started": "创建您的第一个计时器开始使用",
"Are you sure you want to delete this timer?": "您确定要删除这个计时器吗?",
Actions: qe,
"Add Column": "添加列",
"Add Event": "添加事件",
"Add Row": "添加行",
"All day event": "全天事件",
"Are you sure you want to delete this calendar?": "您确定要删除这个日历吗?",
Ascending: Je,
Attendees: _e,
"Auto Fit": "自动适应",
"Bar/Area Mode": "柱状图/面积图模式",
"Block Style": "块样式",
"Block Style Editor": "块样式编辑器",
"CSS Classes": "CSS类",
"CSS Selector (for HTML)": "CSS选择器(用于HTML)",
"CSV Delimiter": "CSV分隔符",
Calendar: je,
"Calendar Title": "日历标题",
"Calendar copied successfully": "日历复制成功",
"Calendar imported successfully": "日历导入成功",
Category: Ke,
"Cell Operations": "单元格操作",
"Chart Type": "图表类型",
Clear: Ze,
"Clear Table": "清除表格",
"Clipboard Operations": "剪贴板操作",
Collaboration: Qe,
"Copy Calendar": "复制日历",
"Copy Cell": "复制单元格",
"Copy Event": "复制事件",
"Copy Table": "复制表格",
"Create your first calendar to get started": "创建您的第一个日历来开始",
"Current locale - Click to change": "当前语言 - 点击更改",
"Current viewport - Click to change": "当前视口 - 点击更改",
"Cut Cell": "剪切单元格",
Data: $e,
"Data URL": "数据URL",
Date: "日期",
"Default Colors": "默认颜色",
"Delete Calendar": "删除日历",
"Delete Elements": "删除元素",
"Delete Event": "删除事件",
Descending: et,
Description: tt,
"Display Settings": "显示设置",
"Duplicated Block": "重复的块",
"Duration (minutes)": "持续时间(分钟)",
"Edit Calendar": "编辑日历",
"Edit Event": "编辑事件",
"Enter X axis label...": "输入X轴标签...",
"Enter Y axis label...": "输入Y轴标签...",
"Enter attendees (comma separated)": "输入参与者(逗号分隔)",
"Enter calendar description": "输入日历描述",
"Enter calendar title": "输入日历标题",
"Enter chart title...": "输入图表标题...",
"Enter event description": "输入事件描述",
"Enter event location": "输入事件地点",
"Enter event title": "输入事件标题",
"Enter tags (comma separated)": "输入标签(逗号分隔)",
Event: ot,
"Event copied successfully": "事件复制成功",
"Export Calendar": "导出日历",
"Export as PNG": "导出为PNG",
"Failed to copy calendar": "复制日历失败",
"Failed to copy event": "复制事件失败",
"First row contains headers": "第一行包含标题",
"Fluid width": "流动宽度",
"Format Cell": "格式化单元格",
High: nt,
Import: st,
"Import Calendar": "导入日历",
"Import Type": "导入类型",
"Import/Export": "导入/导出",
"Inline Styles": "内联样式",
"Insert Cell": "插入单元格",
"Insert Cell Above": "在上方插入单元格",
"Insert Cell Below": "在下方插入单元格",
"Insert Cell Left": "在左侧插入单元格",
"Insert Cell Right": "在右侧插入单元格",
"Insert Math": "插入数学公式",
"Language Settings": "语言设置",
"Large Desktop": "大桌面",
"Large desktop view": "大桌面视图",
"Line Height": "行高",
Location: rt,
Low: at,
Medium: lt,
"Merge Horizontally": "水平合并",
"Merge Vertically": "垂直合并",
"New Calendar": "新建日历",
"New Template": "新建模板",
"No calendars found": "未找到日历",
"No reminder": "无提醒",
"Note: Width is disabled when Horizontal Scroll is enabled": "注意:启用水平滚动时宽度被禁用",
Orientation: it,
"Paste Cell": "粘贴单元格",
"Please enter a valid URL": "请输入有效的URL",
"Print / PDF File": "打印 / PDF文件",
Priority: ct,
"Reminder (minutes before)": "提醒(分钟前)",
"Resize Columns": "调整列宽",
"Search shortcuts...": "搜索快捷键...",
"Select Column": "选择列",
"Select Elements": "选择元素",
"Select Row": "选择行",
"Select Viewport": "选择视口",
"Select category": "选择类别",
Selection: dt,
"Show Grid": "显示网格",
"Smartphone view": "智能手机视图",
"Sort Table": "排序表格",
"Spell Check": "拼写检查",
"Standard desktop": "标准桌面",
"Table ID (optional)": "表格ID(可选)",
"Table Management": "表格管理",
"Table Operations": "表格操作",
"Table Tools": "表格工具",
"Tablet view": "平板视图",
Tags: pt,
"Tags (comma separated)": "标签(逗号分隔)",
"Target Date": "目标日期",
"Target Time": "目标时间",
Time: mt,
Tips: ut,
"Ultra Wide": "超宽",
"Ultra wide screen": "超宽屏幕",
"• Responsive mode allows manual resizing": "• 响应式模式允许手动调整大小",
"• Tables adapt automatically to viewport size": "• 表格自动适应视口大小",
"• Use hotkeys for quick switching": "• 使用快捷键进行快速切换",
"• Viewport state is saved automatically": "• 视口状态自动保存"
};
export {
qe as Actions,
Te as Alignment,
P as Anchor,
ie as Apply,
n as Apr,
Je as Ascending,
_e as Attendees,
l as Aug,
C as Blockquote,
w as Bold,
me as Borders,
ge as Breakpoint,
je as Calendar,
W as Cancel,
Ke as Category,
Me as Cells,
Q as Characters,
Ze as Clear,
Qe as Collaboration,
F as Color,
ue as Colors,
_ as Confirm,
b as Content,
V as Copy,
Oe as Create,
fe as Cut,
$e as Data,
p as Dec,
O as Delete,
et as Descending,
tt as Description,
He as Desktop,
de as Dimensions,
ve as Down,
Y as Duplicate,
G as Edit,
Ce as Effects,
ot as Event,
J as Export,
t as Feb,
Ue as Fluid,
se as Footnotes,
M as Format,
ze as General,
Se as Height,
nt as High,
be as Horizontally,
st as Import,
re as Insert,
L as Italic,
e as Jan,
a as Jul,
r as Jun,
k as Label,
q as Language,
Be as Large,
le as Legend,
rt as Location,
at as Low,
o as Mar,
s as May,
lt as Medium,
Ee as Merge,
Re as Mobile,
De as Move,
h as Name,
y as New,
d as Nov,
c as Oct,
it as Orientation,
ye as Padding,
u as Paragraph,
ee as Paragraphs,
ke as Paste,
g as Preformatted,
ct as Priority,
Fe as Properties,
oe as Redo,
X as Remove,
v as Responsive,
ne as Restore,
z as Save,
dt as Selection,
$ as Sentences,
i as Sep,
A as Series,
Ae as Settings,
H as Size,
Ie as Sort,
he as Split,
D as Strikethrough,
xe as Tablet,
pt as Tags,
S as Templates,
ce as Theme,
mt as Time,
Ve as Timer,
ut as Tips,
U as Title,
f as Total,
m as Typography,
B as URL,
Pe as Ultra,
E as Underline,
te as Undo,
Ge as Until,
Le as Up,
Xe as Update,
T as Updated,
K as Uploading,
I as Value,
we as Vertically,
N as View,
pe as Width,
Z as Words,
R as X,
x as Y,
j as browse,
Ne as days,
Ct as default,
Ye as hours,
ae as min,
We as sec
};