1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

[frontend] fix npm build (#2240)

This commit is contained in:
C_Q
2018-07-27 17:13:43 +08:00
committed by zheng xie
parent 77b8c1f148
commit e71b411f00
3 changed files with 3 additions and 160 deletions

View File

@@ -1,80 +0,0 @@
{
"bold": "Bold",
"italic": "Italic",
"inline_code": "Code",
"header_one": "Header1",
"header_two": "Header2",
"header_three": "Header3",
"header_four": "Header4",
"header_five": "Header5",
"header_six": "Header6",
"paragraph": "paragraph",
"quote": "Quote",
"ordered_list": "Ordered List",
"unordered_list": "Unordered List",
"check_list_item": "Check List Item",
"insert_image": "Insert Image",
"code": "Code Block",
"insert_link": "Insert Link",
"insert_table": "Insert Table",
"save": "Save",
"more": "More",
"edit": "Edit",
"invalid_url": "Invalid URL",
"enter_the_url_of_the_link": "Enter the URL of the Link",
"enter_the_url_of_the_image": "Enter the URL of the image",
"submit": "Submit",
"cancel": "Cancel",
"switch_to_plain_text_editor": "Switch to Plain Text Editor",
"switch_to_rich_text_editor": "Switch to Rich Text Editor",
"switch_to_viewer": "Switch to Markdown Viewer",
"help": "help",
"remove_table": "Remove Table",
"column": "Column",
"row": "Row",
"set_align": "Set align",
"left": "Left",
"center": "Center",
"right": "Right",
"file_saved": "File saved.",
"file_failed_to_save": "File failed to save.",
"userHelp": {
"title":"Keyboard shortcuts",
"userHelpData":[
{
"shortcutType":"Block shortcuts",
"shortcutData" :{
"Blockquote": [">", "space"],
"Header1":["# / *", "space"],
"Header2":["## / **", "space"],
"Header3":["### / ***", "space"],
"List":["* / + / -", "space"],
"Ordered list":["1.", "space"]
}
},
{
"shortcutType":"Inline shortcuts",
"shortcutData" :{
"Bold": ["**bold** / __bold__", "space"],
"Italic":["*italic* / _italic_", "space"],
"Italic + Bold":["***italic*** / ___italic___", "space"],
"Inline code":["`code`", "space"]
}
},
{
"shortcutType":"Save shortcuts",
"shortcutData" :{
"Save file": [["Ctrl", "Cmd"], "S"]
}
},
{
"shortcutType":"Image shortcuts",
"shortcutData" :{
"Upload Screenshot": [["Ctrl", "Cmd"], "V"],
"Drag image from anywhere to upload it":[]
}
}
]
}
}

View File

@@ -1,79 +0,0 @@
{
"bold": "粗体",
"italic": "斜体",
"inline_code": "代码",
"header_one": "一级标题",
"header_two": "二级标题",
"header_three": "三级标题",
"header_four": "四级标题",
"header_five": "五级标题",
"header_six": "六级标题",
"paragraph": "段落",
"quote": "引用",
"ordered_list": "有序列表",
"unordered_list": "无序列表",
"check_list_item": "任务列表",
"insert_image": "插入图片",
"code": "代码块",
"insert_link": "添加链接",
"insert_table": "添加表格",
"save": "保存",
"more": "更多",
"edit": "编辑",
"invalid_url": "无效链接",
"enter_the_url_of_the_image": "请输入图片的链接",
"enter_the_url_of_the_link": "请输入链接地址",
"submit": "提交",
"cancel": "取消",
"switch_to_plain_text_editor": "切换至普通文本编辑器",
"switch_to_rich_text_editor": "切换至富文本编辑器",
"switch_to_viewer": "切换到只读模式",
"help": "帮助",
"remove_table": "清除表格",
"column": "列",
"row": "行",
"set_align": "对齐方式",
"center": "居中",
"left": "左对齐",
"right": "右对齐",
"file_saved": "保存文件成功",
"file_failed_to_save": "保存文件失败",
"userHelp": {
"title": "键盘快捷键",
"userHelpData":[
{
"shortcutType":"块级操作",
"shortcutData" :{
"块级引用": [">", "space"],
"一级标题":["# / *", "space"],
"二级标题":["## / **", "space"],
"三级标题":["### / ***", "space"],
"列表":["* / + / -", "space"],
"有序列表":["1.", "space"]
}
},
{
"shortcutType":"行级操作",
"shortcutData" :{
"加粗": ["**bold** / __bold__", "space"],
"斜体":["*italic* / _italic_", "space"],
"斜体加粗":["***italic*** / ___italic___", "space"],
"行级代码":["`code`", "space"]
}
},
{
"shortcutType":"文件保存",
"shortcutData" :{
"保存修改": [["Ctrl","Cmd"], "S"]
}
},
{
"shortcutType":"图片操作",
"shortcutData" :{
"上传截图": [["Ctrl","Cmd"], "V"],
"拖拽任意图片上传":[]
}
}
]
}
}

View File

@@ -35,6 +35,8 @@ const useYarn = fs.existsSync(paths.yarnLockFile);
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
const localesPath = paths.appNodeModules + '/@seafile/seafile-editor/public/locales';
const localesBuildPath = paths.appBuild + '/locales';
// Warn and crash if required files are missing
if (!checkRequiredFiles([paths.appIndexJs])) {
process.exit(1);
@@ -143,7 +145,7 @@ function build(previousFileSizes) {
}
function copyPublicFolder() {
fs.copySync(paths.appPublic, paths.appBuild, {
fs.copySync(localesPath, localesBuildPath, {
dereference: true,
filter: file => file !== paths.appHtml,
});