- l10n: Add zh-CN dist files

- Linting (ESLint): Add back `no-console`; while useful for debugging, could flag incomplete code (and was breaking at reporting of unused directives)
- Docs (CHANGES): Add changes and apply more formal style
- Build: Rebuild with updated Babel/Rollup
- npm: Update devDeps
This commit is contained in:
Brett Zamir
2018-12-04 14:36:02 +08:00
parent 8b44af5398
commit cf476ed8ea
49 changed files with 698 additions and 287 deletions

View File

@@ -352,9 +352,11 @@ var svgEditorExtension_arrows = (function () {
}, _callee, this);
}));
return function addLangData(_x2) {
function addLangData(_x2) {
return _addLangData.apply(this, arguments);
};
}
return addLangData;
}(),
selectedChanged: function selectedChanged(opts) {
// Use this to update the current selected elements
@@ -397,9 +399,11 @@ var svgEditorExtension_arrows = (function () {
}, _callee2, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -162,9 +162,11 @@ var svgEditorExtension_closepath = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -686,9 +686,11 @@ var svgEditorExtension_connector = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -195,9 +195,11 @@ var svgEditorExtension_eyedropper = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -359,9 +359,11 @@ var svgEditorExtension_foreignobject = (function () {
}, _callee2, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -140,8 +140,9 @@ var svgEditorExtension_grid = (function () {
overflow: 'visible',
display: 'none'
});
canvBG.append(canvasGrid); // grid-pattern
gridDefs = svgdoc.createElementNS(NS.SVG, 'defs');
canvBG.append(canvasGrid);
gridDefs = svgdoc.createElementNS(NS.SVG, 'defs'); // grid-pattern
gridPattern = svgdoc.createElementNS(NS.SVG, 'pattern');
assignAttributes(gridPattern, {
id: 'gridpattern',
@@ -212,7 +213,7 @@ var svgEditorExtension_grid = (function () {
})
});
case 25:
case 27:
case "end":
return _context.stop();
}
@@ -220,9 +221,11 @@ var svgEditorExtension_grid = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -180,9 +180,11 @@ var svgEditorExtension_helloworld = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -573,9 +573,11 @@ var svgEditorExtension_imagelib = (function () {
}, _callee2, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -0,0 +1,25 @@
var svgEditorExtensionLocale_arrows_zh_CN = (function () {
'use strict';
var zhCN = {
name: '箭头',
langList: [{
id: 'arrow_none',
textContent: '无箭头'
}],
contextTools: [{
title: '选择箭头类型',
options: {
none: '无箭头',
end: '---->',
start: '<----',
both: '<--->',
mid: '-->--',
mid_bk: '--<--'
}
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,15 @@
var svgEditorExtensionLocale_closepath_zh_CN = (function () {
'use strict';
var zhCN = {
name: '闭合路径',
buttons: [{
title: '打开路径'
}, {
title: '关闭路径'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,17 @@
var svgEditorExtensionLocale_connector_zh_CN = (function () {
'use strict';
var zhCN = {
name: '连接器',
langList: [{
id: 'mode_connect',
title: '连接两个对象'
}],
buttons: [{
title: '连接两个对象'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,14 @@
var svgEditorExtensionLocale_eyedropper_zh_CN = (function () {
'use strict';
var zhCN = {
name: '滴管',
buttons: [{
title: '滴管工具',
key: 'I'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,25 @@
var svgEditorExtensionLocale_foreignobject_zh_CN = (function () {
'use strict';
var zhCN = {
name: '外部对象',
buttons: [{
title: '外部对象工具'
}, {
title: '编辑外部对象内容'
}],
contextTools: [{
title: '改变外部对象宽度',
label: 'w'
}, {
title: '改变外部对象高度',
label: 'h'
}, {
title: '改变外部对象文字大小',
label: '文字大小'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,13 @@
var svgEditorExtensionLocale_grid_zh_CN = (function () {
'use strict';
var zhCN = {
name: '网格视图',
buttons: [{
title: '显示/隐藏网格'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,14 @@
var svgEditorExtensionLocale_helloworld_zh_CN = (function () {
'use strict';
var zhCN = {
name: 'Hello World',
text: 'Hello World!\n\n 请点击: {x}, {y}',
buttons: [{
title: "输出 'Hello World'"
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,81 @@
var svgEditorExtensionLocale_markers_zh_CN = (function () {
'use strict';
var zhCN = {
name: '标记',
langList: [{
id: 'nomarker',
title: '无标记'
}, {
id: 'leftarrow',
title: '左箭头'
}, {
id: 'rightarrow',
title: '右箭头'
}, {
id: 'textmarker',
title: '文本'
}, {
id: 'forwardslash',
title: '斜杠'
}, {
id: 'reverseslash',
title: '反斜杠'
}, {
id: 'verticalslash',
title: '垂直线'
}, {
id: 'box',
title: '方块'
}, {
id: 'star',
title: '星形'
}, {
id: 'xmark',
title: 'X'
}, {
id: 'triangle',
title: '三角形'
}, {
id: 'mcircle',
title: '圆形'
}, {
id: 'leftarrow_o',
title: '左箭头(空心)'
}, {
id: 'rightarrow_o',
title: '右箭头(空心)'
}, {
id: 'box_o',
title: '方块(空心)'
}, {
id: 'star_o',
title: '星形(空心)'
}, {
id: 'triangle_o',
title: '三角形(空心)'
}, {
id: 'mcircle_o',
title: '圆形(空心)'
}],
contextTools: [{
title: '起始标记',
label: 's'
}, {
title: '选择起始标记类型'
}, {
title: '中段标记',
label: 'm'
}, {
title: '选择中段标记类型'
}, {
title: '末端标记',
label: 'e'
}, {
title: '选择末端标记类型'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,13 @@
var svgEditorExtensionLocale_mathjax_zh_CN = (function () {
'use strict';
var zhCN = {
name: '数学',
buttons: [{
title: '添加数学计算'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,13 @@
var svgEditorExtensionLocale_panning_zh_CN = (function () {
'use strict';
var zhCN = {
name: '移动',
buttons: [{
title: '移动'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,17 @@
var svgEditorExtensionLocale_polygon_zh_CN = (function () {
'use strict';
var zhCN = {
name: '多边形',
buttons: [{
title: '多边形工具'
}],
contextTools: [{
title: '边数',
label: '边数'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,10 @@
var svgEditorExtensionLocale_server_moinsave_zh_CN = (function () {
'use strict';
var zhCN = {
saved: '已保存! 返回视图!'
};
return zhCN;
}());

View File

@@ -0,0 +1,10 @@
var svgEditorExtensionLocale_server_opensave_zh_CN = (function () {
'use strict';
var zhCN = {
uploading: '正在上传...'
};
return zhCN;
}());

View File

@@ -0,0 +1,29 @@
var svgEditorExtensionLocale_shapes_zh_CN = (function () {
'use strict';
var zhCN = {
loading: '正在加载...',
categories: {
basic: '基本',
object: '对象',
symbol: '符号',
arrow: '箭头',
flowchart: '工作流',
animal: '动物',
game: '棋牌',
dialog_balloon: '会话框',
electronics: '电子',
math: '数学',
music: '音乐',
misc: '其他',
raphael_1: 'raphaeljs.com 集合 1',
raphael_2: 'raphaeljs.com 集合 2'
},
buttons: [{
title: '图元库'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,23 @@
var svgEditorExtensionLocale_star_zh_CN = (function () {
'use strict';
var zhCN = {
name: '星形',
buttons: [{
title: '星形工具'
}],
contextTools: [{
title: '顶点',
label: '顶点'
}, {
title: '钝度',
label: '钝度'
}, {
title: '径向',
label: '径向'
}]
};
return zhCN;
}());

View File

@@ -0,0 +1,17 @@
var svgEditorExtensionLocale_storage_zh_CN = (function () {
'use strict';
var zhCN = {
message: '默认情况下, SVG-Edit 在本地保存配置参数和画布内容. 如果基于隐私考虑, ' + '您可以勾选以下选项修改配置.',
storagePrefsAndContent: '本地存储配置参数和SVG图',
storagePrefsOnly: '本地只存储配置参数',
storagePrefs: '本地存储配置参数',
storageNoPrefsOrContent: '本地不保存配置参数和SVG图',
storageNoPrefs: '本地不保存配置参数',
rememberLabel: '记住选择?',
rememberTooltip: '如果您勾选记住选择,将不再弹出本窗口.'
};
return zhCN;
}());

View File

@@ -0,0 +1,13 @@
var svgEditorExtensionLocale_webappfind_zh_CN = (function () {
'use strict';
var zhCN = {
name: 'WebAppFind',
buttons: [{
title: '保存图片到磁盘'
}]
};
return zhCN;
}());

View File

@@ -759,9 +759,11 @@ var svgEditorExtension_markers = (function () {
}, _callee3, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -309,9 +309,11 @@ var svgEditorExtension_mathjax = (function () {
}, _callee, this, [[7, 13]]);
}));
return function click() {
function click() {
return _click.apply(this, arguments);
};
}
return click;
}()
}
}];
@@ -359,9 +361,11 @@ var svgEditorExtension_mathjax = (function () {
}, _callee2, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -115,9 +115,11 @@ var svgEditorExtension_panning = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -301,9 +301,11 @@ var svgEditorExtension_polygon = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -4861,10 +4861,12 @@ var svgEditorExtension_server_moinsave = (function () {
svgEditor = this;
svgCanvas = svgEditor.canvas;
saveSvgAction = '/+modify'; // Create upload target (hidden iframe)
// Hiding by size instead of display to avoid FF console errors
// with `getBBox` in browser.js `supportsPathBBox_`)
/* const target = */
$('<iframe name="output_frame" src="#"/>').hide().appendTo('body');
$('<iframe name="output_frame" style="width: 0; height: 0;" src="#"/>').appendTo('body');
svgEditor.setCustomHandlers({
save: function () {
var _save = _asyncToGenerator(
@@ -4915,9 +4917,11 @@ var svgEditorExtension_server_moinsave = (function () {
}, _callee, this);
}));
return function save(_x2, _x3) {
function save(_x2, _x3) {
return _save.apply(this, arguments);
};
}
return save;
}()
});
@@ -4929,9 +4933,11 @@ var svgEditorExtension_server_moinsave = (function () {
}, _callee2, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -4993,8 +4993,10 @@ var svgEditorExtension_server_opensave = (function () {
saveSvgAction = svgEditor.curConfig.extPath + 'filesave.php', saveImgAction = svgEditor.curConfig.extPath + 'filesave.php'; // Create upload target (hidden iframe)
cancelled = false;
$('<iframe name="output_frame" src="#"/>').hide().appendTo('body');
cancelled = false; // Hiding by size instead of display to avoid FF console errors
// with `getBBox` in browser.js `supportsPathBBox_`)
$('<iframe name="output_frame" style="width: 0; height: 0;" src="#"/>').appendTo('body');
svgEditor.setCustomHandlers({
save: function save(win, data) {
var svg = '<?xml version="1.0" encoding="UTF-8"?>\n' + data,
@@ -5094,9 +5096,11 @@ var svgEditorExtension_server_opensave = (function () {
}, _callee, this);
}));
return function exportImage(_x2, _x3) {
function exportImage(_x2, _x3) {
return _exportImage.apply(this, arguments);
};
}
return exportImage;
}()
}); // Do nothing if client support is found
@@ -5182,9 +5186,11 @@ var svgEditorExtension_server_opensave = (function () {
}, _callee5, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -412,9 +412,11 @@ var svgEditorExtension_shapes = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -286,9 +286,11 @@ var svgEditorExtension_star = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -415,9 +415,11 @@ var svgEditorExtension_storage = (function () {
}, _callee, this);
}));
return function langReady(_x) {
function langReady(_x) {
return _langReady.apply(this, arguments);
};
}
return langReady;
}()
};
}

View File

@@ -166,9 +166,11 @@ var svgEditorExtension_webappfind = (function () {
}, _callee, this);
}));
return function init(_x) {
function init(_x) {
return _init.apply(this, arguments);
};
}
return init;
}()
};

View File

@@ -3146,9 +3146,11 @@
}, _callee2, this);
}));
return function click(_x2) {
function click(_x2) {
return _click.apply(this, arguments);
};
}
return click;
}()
}
}, [// If we wanted interactive versions despite security risk:
@@ -3254,9 +3256,11 @@
}, _callee, this);
}));
return function $submit() {
function $submit() {
return _$submit.apply(this, arguments);
};
}
return $submit;
}()
},
$on: {