Commit Graph

211 Commits (3b04fe0c63de0dd8432b60f5dfbe3bf87cd63d5f)

Author SHA1 Message Date
Brett Zamir bf261fd670 - Add in locales for English 2018-05-25 21:25:38 +08:00
Brett Zamir 8c9e40d349 - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`);
also expect one directory higher; incorporates #207 (@iuyiuy)
- Breaking change: Separate `extIconsPath` from `extPath` (not copying over icons)
- Breaking change: Don't reference `custom.css` in HTML; can instead be referenced in JavaScript through
    the config file (provided in `svgedit-config-sample-iife.js`/`svgedit-config-sample-es.js` as `svgedit-custom.css` for
    better namespacing); incorporates #207 (@iuyiuy)
- Breaking change: Remove minified jgraduate/spinbtn files (minified within Rollup routine)
- Fix: Zoom when scrolled; incorporates #169 (@AndrolGenhald), adapting for conventions; also allow avoidance when shift key pressed
- Fix: Update Atom feed reference in HTML
- Fixes related to recent commits: Some path and method name fixes needed, function order, missing methods, variable scope declaration, no need for DOMContentLoaded listeners in modules, switch back to non-default export, avoid trimming nullish, deal with mock tests, fix `math.matrixMultiply`, use jquery-svg where needed for array/SVG attributes; add babel-polyfill and defer script to imagelib; other misc. fixes
- Enhancement: Move config-sample.js out of `editor` directory
- Enhancement: For `callback`-style extensions, also provide config object; add following
   to that object: buildCanvgCallback, canvg, decode64, encode64, executeAfterLoads, getTypeMap, isChrome, ieIE, NS, text2xml
- Enhancement: Complete ES6 modules work (extensions, locales, tests), along with Babel;
    make Node build routine for converting modular source to non-modular,
    use `loadStylesheets` for modular stylehsheet defining (but parallel loading);
- Enhancement: Add `stylesheets` config for modular but parallel stylesheet loading with `@default` option for simple inclusion/exclusion of defaults (if not going with default).
- Refactoring: Clean up `svg-editor.html`: consistent indents; avoid extra lbs, avoid long lines
- Refactoring: Avoid embedded API adding inline JavaScript listener
- Refactoring: Move layers and context code to `draw.js`
- Refactoring: Move `pathActions` from `svgcanvas.js` (though preserve aliases to these methods on `canvas`) and `convertPath` from `svgutils.js` to `path.js`
- Refactoring: Move `getStrokedBBox` from `svgcanvas.js` (while keeping an alias) to `svgutils.js` (as `getStrokedBBoxDefaultVisible` to avoid conflict with existing)
- Docs: Remove "dependencies" comments in code except where summarizing role of jQuery or a non-obvious dependency
- Refactoring/Linting: Enfore `no-extra-semi` and `quote-props` rules
- Refactoring: Further avoidance of quotes on properties (as possible)
- Refactoring: Use `class` in place of functions where intended as classes
- Refactoring: Consistency and granularity in extensions imports
- Testing: Update QUnit to 2.6.1 (node_modules) and Sinon to 5.0.8 (and add sinon-test at 2.1.3) and enforce eslint-plugin-qunit linting rules; update custom extensions
- Testing: Add node-static for automating (and accessing out-of-directory contents)
- Testing: Avoid HTML attributes for styling
- Testing: Add npm `test` script
- Testing: Comment out unused jQuery SVG test
- Testing: Add test1 and svgutils_performance_test to all tests page
- Testing: Due apparently to Path having not been a formal class, the test was calling it without `new`; refactored now with sufficient mock data to take into account it is a class
- npm: Update devDeps
- npm: Add html modules and config build to test script
2018-05-25 20:03:14 +08:00
Brett Zamir ae2394f086 (INCOMPLETE: ES6 Module conversion and linting)
- Breaking change: Require `new` with `EmbeddedSVGEdit` (allows us to use `class` internally)
- Breaking change: If `svgcanvas.setUiStrings` must now be called if not using editor in order
    to get strings (for sake of i18n) (and if using path.js alone, must also have its `setUiStrings` called)
- Breaking change (ext-overview-window): Avoid global `overviewWindowGlobals`
- Breaking change (ext-imagelib): Change to object-based encoding for namespacing of
    messages (though keep stringifying/parsing ourselves until we remove IE9 support)
- Breaking change: Rename `jquery.js` to `jquery.min.js`
- Breaking change: Remove `scoped` attribute from `style`; it is now deprecated and
    obsolete; also move to head (after other stylesheets)
- Enhancement: Make SpinButton plugin independent of SVGEdit via
    generic state object for tool_scale
- Enhancement: Remove now unused Python l10n scripts (#238)
- Enhancement: ES6 Modules (including jQuery plugins but not jQuery)
- Enhancement: Further JSDoc (incomplete)
- Enhancement (Optimization): Compress images using imageoptim (and add
    npm script) (per #215)
- Fix: i18nize path.js strings and canvas notifications
- Fix: Attempt i18n for ext-markers
- Refactoring (ext-storage): Move locale info to own file imported by the extension (toward modularity; still should be split into separate files by language and *dynamically* imported, but we'll wait for better `import` support to refactor this)
- Refactoring: For imagelib, add local jQuery copy (using old 1.4.4 as had
    been using from server)
- Refactoring: For MathJax, add local copy (using old 2.3 as had been using from
    server); server had not been working
- Refactoring: Remove `use strict` (implicit in modules)
- Refactoring: Remove trailing whitespace, fix some code within comments
- Refactoring: Expect `jQuery` global rather than `$` for better modularity
    (also to adapt line later once available via `import`)
- Refactoring: Prefer `const` (and then `let`)
- Refactoring: Add block scope keywords closer to first block in which they appear
- Refactoring: Use ES6 `class`
- Refactoring `$.isArray` -> `Array.isArray` and avoid some other jQuery core methods
    with simple VanillaJS replacements
- Refactoring: Use abbreviated object property syntax
- Refactoring: Object destructuring
- Refactoring: Remove `uiStrings` contents in svg-editor.js (obtains from locale)
- Refactoring: Add favicon to embedded API file
- Refactoring: Use arrow functions for brief functions (incomplete)
- Refactoring: Use `Array.prototype.includes`/`String.prototype.includes`;
    `String.prototype.startsWith`, `String.prototype.trim`
- Refactoring: Remove now unnecessary svgutils do/while resetting of variables
- Refactoring: Use shorthand methods for object literals (avoid ": function")
- Refactoring: Avoid quoting object property keys where unnecessary
- Refactoring: Just do truthy/falsey check for lengths in place of comparison to 0
- Refactoring (Testing): Avoid jQuery usage within most test files (defer script,
    also in preparation for future switch to ES6 modules for tests)
- Refactoring: Make jpicker variable declaration indent bearable
- Refactoring (Linting): Finish svgcanvas.js
- Docs: Mention in comment no longer an entry file as before
- Docs: Migrate old config, extensions, and FAQ docs
- Licensing: Indicate MIT is license type of rgbcolor; rename/add license file name for
    jgraduate and screencast to reflect type (Apache 2.0); rename file to reflect it
    contains license information (of type MIT) for Raphael icons
2018-05-22 18:02:57 +08:00
Brett Zamir 7cf976cfb8 - Fix (Locale): Remove bad characters in Persian (fa) file
- Linting (ESLint): Locale files
- Docs: Fix code comment
- Remove BOM from documents (@drsassafras #237)
2018-05-20 15:04:11 +08:00
Brett Zamir 4bfbaacb5e - Complete conversion to 2-spaces, fixing issue #37 (also removed some extra/misplaced tabs/spaces in process) 2018-05-18 14:23:36 +08:00
Brett Zamir 89cbab7217 - Refactoring (minor): Simplify (empty string is falsey)
- Refactoring (minor): Consistent HTML indenting/no-namespacing and title/icon use
- Testing: Add browser bug test with reference to issue
2018-05-18 11:35:24 +08:00
Neil Fraser f9fb7f47ae Residual linting
{object} -> {Object}
Remove extra semicolons.
Use jQuery’s .empty().
Make nodelist loops O(n) rather than O(n^2).
Specify radix in parseInt to prevent guessing octal.
2018-05-17 11:57:28 -07:00
Brett Zamir 820964334c - Fix: Broken lv locale, inconsistent tabs/spaces pt-PR
- Linting: Add ESLint script and devDeps and begin ESLint conversion (completed locales and jspdf directories only)
2018-05-13 11:03:45 +08:00
Jeff Schiller 90b8837aa2 Merge pull request #111 from q2apro/patch-1
Improved DE translation
2016-11-11 08:49:01 -08:00
Sylvain Chiron 644f5c2448 Updated/reviewed French translation
Signed-off-by: Sylvain Chiron <chironsylvain@orange.fr>
2016-08-12 23:34:05 +02:00
q2apro.com b3b44cd964 Improved DE translation 2016-05-08 18:26:47 +03:00
StalderT c40c67748f Update lang.fa.js 2015-12-02 10:51:19 +01:00
StalderT 693de51a21 Update lang.yi.js 2015-12-02 10:48:54 +01:00
StalderT e4875ba514 Update lang.ro.js 2015-12-02 10:42:34 +01:00
StalderT 8ba484b5cb Update lang.zh-TW.js 2015-12-01 12:26:17 +01:00
StalderT 31f9b43f1c Update lang.zh-HK.js 2015-12-01 12:25:54 +01:00
StalderT 11e4175f2c Update lang.zh-CN.js 2015-12-01 12:22:25 +01:00
StalderT 81903988da Update lang.yi.js 2015-12-01 12:21:59 +01:00
StalderT 9939bf1f84 Update lang.vi.js 2015-12-01 12:20:44 +01:00
StalderT 1477b48a47 Update lang.uk.js 2015-12-01 12:19:39 +01:00
StalderT 9e59a7c334 Update lang.tr.js 2015-12-01 12:18:53 +01:00
StalderT 1771c7a24e Update lang.tl.js 2015-12-01 12:18:17 +01:00
StalderT b9e8b8ad1c Update lang.th.js 2015-12-01 12:17:55 +01:00
StalderT 3296647b36 Update lang.sw.js 2015-12-01 12:16:37 +01:00
StalderT 8a150f44bf Update lang.sv.js 2015-12-01 12:14:24 +01:00
StalderT 1e2e578e8f Update lang.sr.js 2015-12-01 12:12:28 +01:00
StalderT 9111fb7b7b Update lang.sq.js 2015-12-01 12:12:05 +01:00
StalderT 11cd561a88 Update lang.ru.js 2015-12-01 12:11:19 +01:00
StalderT 1e3def544b Update lang.ro.js 2015-12-01 12:10:50 +01:00
StalderT ffe7fb042d Update lang.pt-PT.js 2015-12-01 12:09:22 +01:00
StalderT b4a99becee Update lang.no.js 2015-12-01 12:08:43 +01:00
StalderT 832e4e3ef6 Update lang.nl.js 2015-12-01 12:08:16 +01:00
StalderT 7dc5f52264 Update lang.mt.js 2015-12-01 12:07:59 +01:00
StalderT ae246c6d16 Update lang.ms.js 2015-12-01 12:07:42 +01:00
StalderT 114a63e582 Update lang.mk.js 2015-12-01 12:07:25 +01:00
StalderT d8625d6c20 Update lang.lv.js 2015-12-01 12:07:07 +01:00
StalderT ec887e29fd Update lang.lt.js 2015-12-01 12:06:47 +01:00
StalderT 9ff1eaef0f Update lang.ko.js 2015-12-01 12:06:19 +01:00
StalderT 6b276cef46 Update lang.ja.js 2015-12-01 12:06:00 +01:00
StalderT 97f0ff959b Update lang.it.js 2015-12-01 12:05:40 +01:00
StalderT 97f27fa706 Update lang.is.js 2015-12-01 12:05:18 +01:00
StalderT 0cd931fdec Update lang.id.js 2015-12-01 12:04:59 +01:00
StalderT 3af3537eee Update lang.hu.js 2015-12-01 12:04:26 +01:00
StalderT d213983acd Update lang.hr.js 2015-12-01 12:04:06 +01:00
StalderT 64ff6434bd Update lang.hi.js 2015-12-01 12:03:30 +01:00
StalderT 2ff1827c4c Update lang.he.js 2015-12-01 12:02:34 +01:00
StalderT 3f97780057 Update lang.gl.js 2015-12-01 12:01:57 +01:00
StalderT 263098c544 Update lang.ga.js 2015-12-01 12:01:11 +01:00
StalderT 2cee136268 Update lang.fy.js 2015-12-01 12:00:44 +01:00
StalderT c071c7c150 Update lang.fr.js 2015-12-01 11:53:09 +01:00