Commit Graph

114 Commits (19dd5482d8ca3c6d9023a3ec21cdea4b36f4efbb)

Author SHA1 Message Date
JFH 01b022b1e7 identation requirement to eslint 2021-05-28 10:35:46 +02:00
JFH 04dab1edcf update screenshot and fix issue 2021-05-21 21:34:44 +02:00
JFH e71958e705 fix several configuration issue and linter 2021-05-19 23:09:40 +02:00
JFH 9a68ba6358 fix some useless console.log 2021-05-15 16:20:13 +02:00
JFH d3974f8f17 enforce a few eslint rules 2021-05-13 01:00:09 +02:00
JFH 593c415664 update master to V7 2021-05-09 19:29:45 +02:00
jfh e22ea424db use a fixed import for canvg 2020-08-29 00:02:35 +02:00
Brett Zamir 40ff7380ee - Build: Update
- Fix: Regression with Rollup config path
- Docs: Update reference to location of IIFE config file
2020-08-03 15:35:14 +08:00
JFH 92635ba721 restore all eslint rules 2020-08-01 01:23:28 +02:00
Brett Zamir 7100111d62 - Fix more paths (Rollup, build, eslint) paths
- Restore checking of a few modified "external" packages
2020-07-18 19:21:41 +08:00
JFH 09c786abe9 fix eslint issues 2020-07-14 12:56:33 +02:00
JFH 01418b44f3 move files to adequate folders and fix imports 2020-07-14 01:47:46 +02:00
Brett Zamir 859d09c1be - docs: Update release instructions
- npm: work on release scripts
- submodules: Add old versions as submodules for availability on Github Pages
2020-07-13 10:20:14 +08:00
Brett Zamir 66529391f6 - Docs: Clarify config file instructions (in comparison to extensions) 2020-07-06 21:24:24 +08:00
Brett Zamir 171e1ce856 docs(jsdoc): link/naming fixes 2020-05-06 12:14:02 +08:00
Brett Zamir 27ff9c3240 - Exclude cypress directory from jsdoc 2020-04-02 13:12:30 +08:00
Brett Zamir 7c6f512512 - Linting: Lint hidden `ncurc.js` file
- Docs: Add 6.0.0.md migration file
- Docs: Update Contributing, Testing (renamed to Development), Linting and ReleaseInstructions
- Docs: Info on submodules
- npm: Add scripts for updating submodules
- npm: Add `license-badges`, `build-docs`, and `copy` scripts to `prepublishOnly` script
- npm: Bump to 6.0.0
2020-02-22 14:16:12 +08:00
Brett Zamir 105037ef79 - npm: Add `add-release` script (Newer versions of Git might be able to use `set-branch`, but the Git version with Mac does not so using another approach)
- Docs: Fix `ReleaseInstructions.md`
2020-02-22 10:32:53 +08:00
Brett Zamir 334dc09c63 - Docs: Update `ReleaseInstructions` per new procedures 2020-02-21 11:08:06 +08:00
Brett Zamir 9ce26bafc8 - Docs: Update `ReleaseInstructions` per new procedures 2020-02-21 11:07:23 +08:00
Brett Zamir 178374afdf - Linting (ESLint): Ignore `releases` (Fixes #387)
- npm: Ignore `releases`, `gh-disabled-workflows`, `.travis.yml`
- npm: Change `open-tests` script to run `instrument`
- Docs: Clarifications on testing
2020-02-21 08:43:58 +08:00
Brett Zamir f59481340f - Docs: Clarify; update CHANGES 2020-02-20 12:50:42 +08:00
Brett Zamir 091b3b707e - Docs: Add to testing re: Cypress config/environmental variable info 2020-02-20 12:42:42 +08:00
Brett Zamir 08bf6f63b8 - Docs: Update testing info; update CHANGES
- `editorconfig`: Use 4 spaces for Markdown
- npm: Rename and group various development scripts
2020-02-20 12:31:06 +08:00
Pavol Rusnak 2fa2bfac1e
- docs: update Pavol's email address 2020-02-15 13:20:32 +01:00
Brett Zamir 860dca4339 - Optimization: Remove unmaintained chrome-app, firefox-extension,
opera-widget (an updated WebExtensions replacement (or such)
  would be welcome.)
2020-01-07 09:57:25 +08:00
Igin 4adb290459
Add screenshot 2020-01-06 23:44:33 +08:00
Brett Zamir 97f64d2189 - Refactoring: Move `build-html` to `build` directory
- Optimization: Remove old build/tools closure/yuicompressor code
- Testing: Produce mochawesome report
- Testing: Cypress with multiple reporters (was expecting we'd need, but doesn't hurt to add for now)
- Docs: Add testing badge
- Docs: Reprioritize `docs` in commit lists (prioritize user-facing)
- npm: Update `package-lock.json` (seems to have fixed so Cypress shows incremental results)
2020-01-06 13:42:52 +08:00
Brett Zamir 4b33c73f00 - Refactoring: Remove BBQ in favor of `deparam` (with npm script to copy in)
- Fix: `initFill`/`initStroke` `color`, and `bkgd_color` problematic when using decimal-component-only hex; fixes #314
2020-01-05 17:58:50 +08:00
Brett Zamir b37d7608f6 - Docs: Update release instructions 2019-12-25 22:07:01 +08:00
Brett Zamir 6f8d45cda9 - Docs: Remove outdated info on jsdoc linting (now just part of eslint config)
- npm: Rename open script to open-tests, and add `open` script for opening instance of svgedit
- npm: Ensure starting server for open scripts
2019-12-25 16:06:44 +08:00
Brett Zamir 4785aa9cae - Docs: Add vulnerabilities badge; reorder
- npm: Bump to 5.1.0
2019-11-16 10:52:24 +08:00
Brett Zamir ed2e6e8a97 - npm: Rename `build-config` to `build-by-config` 2019-07-12 19:14:49 -07:00
Brett Zamir 4177146acd - Linting (ESLint): Remove now unneeded config and add per new update
- Refactoring: Prefer for-of, event.key (newly enforced linting)
- Refactoring: Better var. names
- npm: Update devDeps and update local copies
2019-06-11 16:40:28 +08:00
Brett Zamir 8d179aee0c - Deprecated: Should now use `avoidClientSideDownload` in place of
`avoidClientSide` (config for `ext-server_opensave.js`).
- Enhancement: Added `avoidClientSideOpen` config for
    `ext-server_opensave.js`
- npm: Update devDeps (including switching from deprecate opn-cli
    package to open-cli)
2019-05-21 17:50:56 +08:00
Brett Zamir fc0c53f61a - Breaking change: Switch from deprecated `@babel/polyfill` to
`core-js-bundle` and `regenerator-runtime` replacements
- Fix: Fully redirect extension entrances for lacking browser support
- Docs: Simplify comments in HTML files re: script purposes
- Docs: Update release instructions
- npm: Update devDeps (jsdoc, security audit)
- npm: Bump to 5.0.0
2019-05-07 08:02:32 +08:00
Brett Zamir 1d56d75837 - Linting (JSDoc): Reenable jsdoc/valid-jsdoc as fixed; notes re: `valid-jsdoc` replacement; use same namepath
- npm: Update devDep
2019-04-17 19:12:55 +08:00
Brett Zamir 879022a3c5 - Docs: Avoid parsing externally copied files for docs 2019-04-09 09:01:19 +08:00
Brett Zamir 5abd183c43 - Docs (Accessibility): Link to rule issues 2019-04-03 18:01:25 +08:00
Brett Zamir bff04dd58a - Docs (Accessibility): Refer to known issues 2019-04-03 17:33:25 +08:00
Brett Zamir 056f4f197c - Enhancement (svgIcons): Fix JSDoc param def; add `alt` options
- Accessibility: Begin work, add aria-label to some buttons and
    form controls; add `role=main`; `<img alt>`; `<iframe title>`
- i18n: Add `lang` attribute
- Refactoring: lbs, simplify i18nized element retrieval call
- Docs: Some JSDoc descriptions, JSDoc spacing, fix svgIcons param
    def; add todo
- Testing: Avoid reporting meta-viewport (have own zooming
    controls and difficult to fix)
2019-04-03 16:32:14 +08:00
Brett Zamir c6d07fbb7c - Fix: Extension locales with hyphens
- npm: Bump to 4.1.0
2018-11-29 20:41:50 +08:00
Brett Zamir 2e5c7557a9 - Breaking change: `loadSvgString` now returns a `Promise` rather than accepting a callback
- Breaking change: Treat callbacks to `editor.ready` as Promises, only resolving after all resolve
- Breaking change: Make `editor.runCallbacks` return a `Promise` which resolves upon all callbacks resolving
- Breaking change: Require `npx` (used with `babel-node`) to allow Node files
  for HTML building and JSDoc type checking to be expressed as ESM.
- Breaking change: `addExtension` now throws upon a repeated attempt to add an already-added extension
- Breaking change (storage preference cookies): Namespace the cookie as "svgeditstore" instead of just "store"
- Breaking change (API): Remove `svgCanvas.rasterExport` fourth (callback) argument, collapsing fifth (options) to fourth
- Breaking change (API): Remove `svgCanvas.exportPDF` third (callback) argument
- Breaking change (API): `editor/contextmenu.js` `add` now throws instead of giving a console error only upon detecting a bad menuitem or preexisting context menu
- Breaking change (API): Remove `svgCanvas.embedImage` second (callback) argument
- Breaking change (API): Make `getHelpXML` a class instead of instance method of `RGBColor`
- Breaking change (internal API): Refactor `dbox` (and `alert`/`confirm`/`process`/`prompt`/`select`) to avoid a callback argument in favor of return a Promise
- Fix: Avoid running in extension `langReady` multiple times or serially
- Enhancement (API): Add svgCanvas.runExtension to run just one extension and add `nameFilter` callback to `runExtensions`
- Enhancement (API): Supply `$` (our wrapped jQuery) to extensions so can use its plugins, e.g., dbox with its `alert`
- Enhancement: Use alert dialog in place of `alert` in webappfind
- Enhancement: `editor.ready` now returns a Promise resolving when all callbacks have resolved
- Enhancement: Allow `noAlert` option as part of second argument to `loadSvgString` (and `loadFromURL` and `loadFromDataURI`) to avoid UI alert (and trigger promise rejection)
- Enhancement: Make `dbox` as a separate module for alert, prompt, etc. dialogs
- Refactoring: Internal `PaintBox` as class; other misc. tweaks; no bitwise in canvg
- Linting (ESLint): Further linting changes (for editor); rename `.eslintrc` -> `.eslintrc.json` per recommendation
- Optimization: Recompress images (imageoptim-cli updated)
- npm: Update devDeps
- npm: Bump to 4.0.0
2018-11-16 12:48:23 +08:00
Brett Zamir 901c9547fe TODO: Besides splitting this out from previous commit, should really avoid markdown field in favor of modifying jsdoc to report wherever it lays out "prettyprint"; still probably missing some one-liners; see https://github.com/google/code-prettify; update builds to confirm new stackblur is working; add below to CHANGES; add back for eslint-plugin-jsdoc once merged (though need new version `^3.9.1`); move any linting changes to other linting branch
- Refactoring (minor): Add favicon to canvas demo
- Linting (ESLint Markdown JavaScript): Add `eslint-plugin-markdown` with
  slightly loosened config (`no-undef` and `padded-blocks` off and
  `no-unused-vars` as a warning)
- Linting (ESLint JSDoc code comments): Add `eslint-plugin-jsdoc` and apply to
    JSDoc code comments
- Linting (ESLint): Completely avoid unescaped tabs in files
- Docs (Linting): Add linting info file
- npm: Rename `copy-deps` script to `copy`
- Refactoring: Add stackblur-canvas as a dependency and copy it in (until such time as we can do so for canvg)
2018-11-07 14:51:09 +08:00
Brett Zamir afa5576ed1 TODO: Check out https://github.com/qard/remark-lint-code and https://www.npmjs.com/package/remark-lint-code-eslint ; add below to CHANGES
- Docs (JSDocs) Switch to JS-based config file
- Leverage syntax highlighting reporting of JSDoc to lint our code (npm version does not seem to reflect that on Github, so we use Github version we need)
- Docs (ESLint): Apply most of our ESLint rules (except `no-undefined` and `padded-blocks`) to sample code blocks
2018-11-04 16:49:27 +08:00
Brett Zamir 14aad38bd6 - Docs (3.0.0): Clarify 2018-10-26 08:44:19 +08:00
Brett Zamir 126b2cb840 - Docs (3.0.0): Clarify 2018-10-26 08:08:26 +08:00
Brett Zamir 5c96501507 - Docs (ReleaseInstructions): Clarify need for npm permissions to publish 2018-10-25 11:05:48 +08:00
Brett Zamir b573a85fba - Fix: Save broken on Firefox (since FF version?)
- Docs: Mention potentially more frequent release schedule
- Docs (ReleaseInstructions): Update per new testing; update
  `grep-doc` -> `types-doc` and indicate current failing status; indicate
  when `build-doc` will be used; clarify `npm pack`
- npm: Add newly renamed `jsdoc-check-overly-generic-types.js` to ignore
- npm: Bump to 3.1.1
2018-10-25 10:45:57 +08:00
Brett Zamir 6b0e54af07 - Docs (ReleaseInstructions): Clarify build instructions for release 2018-10-25 09:43:08 +08:00