2020-11-12 10:54:13 +01:00
|
|
|
{
|
Migrate to protobuf-es (#2547)
* Fix .no-reduce-motion missing from graphs spinner, and not being honored
* Begin migration from protobuf.js -> protobuf-es
Motivation:
- Protobuf-es has a nicer API: messages are represented as classes, and
fields which should exist are not marked as nullable.
- As it uses modules, only the proto messages we actually use get included
in our bundle output. Protobuf.js put everything in a namespace, which
prevented tree-shaking, and made it awkward to access inner messages.
- ./run after touching a proto file drops from about 8s to 6s on my machine. The tradeoff
is slower decoding/encoding (#2043), but that was mainly a concern for the
graphs page, and was unblocked by
https://github.com/ankitects/anki/commit/37151213cd9d431f449ba4b3bc4c0329a1d9af78
Approach/notes:
- We generate the new protobuf-es interface in addition to existing
protobuf.js interface, so we can migrate a module at a time, starting
with the graphs module.
- rslib:proto now generates RPC methods for TS in addition to the Python
interface. The input-arg-unrolling behaviour of the Python generation is
not required here, as we declare the input arg as a PlainMessage<T>, which
marks it as requiring all fields to be provided.
- i64 is represented as bigint in protobuf-es. We were using a patch to
protobuf.js to get it to output Javascript numbers instead of long.js
types, but now that our supported browser versions support bigint, it's
probably worth biting the bullet and migrating to bigint use. Our IDs
fit comfortably within MAX_SAFE_INTEGER, but that may not hold for future
fields we add.
- Oneofs are handled differently in protobuf-es, and are going to need
some refactoring.
Other notable changes:
- Added a --mkdir arg to our build runner, so we can create a dir easily
during the build on Windows.
- Simplified the preference handling code, by wrapping the preferences
in an outer store, instead of a separate store for each individual
preference. This means a change to one preference will trigger a redraw
of all components that depend on the preference store, but the redrawing
is cheap after moving the data processing to Rust, and it makes the code
easier to follow.
- Drop async(Reactive).ts in favour of more explicit handling with await
blocks/updating.
- Renamed add_inputs_to_group() -> add_dependency(), and fixed it not adding
dependencies to parent groups. Renamed add() -> add_action() for clarity.
* Remove a couple of unused proto imports
* Migrate card info
* Migrate congrats, image occlusion, and tag editor
+ Fix imports for multi-word proto files.
* Migrate change-notetype
* Migrate deck options
* Bump target to es2020; simplify ts lib list
Have used caniuse.com to confirm Chromium 77, iOS 14.5 and the Chrome
on Android support the full es2017-es2020 features.
* Migrate import-csv
* Migrate i18n and fix missing output types in .js
* Migrate custom scheduling, and remove protobuf.js
To mostly maintain our old API contract, we make use of protobuf-es's
ability to convert to JSON, which follows the same format as protobuf.js
did. It doesn't cover all case: users who were previously changing the
variant of a type will need to update their code, as assigning to a new
variant no longer automatically removes the old one, which will cause an
error when we try to convert back from JSON. But I suspect the large majority
of users are adjusting the current variant rather than creating a new one,
and this saves us having to write proxy wrappers, so it seems like a
reasonable compromise.
One other change I made at the same time was to rename value->kind for
the oneofs in our custom study protos, as 'value' was easily confused
with the 'case/value' output that protobuf-es has.
With protobuf.js codegen removed, touching a proto file and invoking
./run drops from about 8s to 6s.
This closes #2043.
* Allow tree-shaking on protobuf types
* Display backend error messages in our ts alert()
* Make sourcemap generation opt-in for ts-run
Considerably slows down build, and not used most of the time.
2023-06-14 14:47:37 +02:00
|
|
|
"@bufbuild/protobuf@1.2.1": {
|
|
|
|
"licenses": "(Apache-2.0 AND BSD-3-Clause)",
|
|
|
|
"repository": "https://github.com/bufbuild/protobuf-es",
|
|
|
|
"path": "node_modules/@bufbuild/protobuf",
|
|
|
|
"licenseFile": "node_modules/@bufbuild/protobuf/README.md"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@floating-ui/core@0.5.1": {
|
2022-03-02 05:21:19 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/floating-ui/floating-ui",
|
|
|
|
"publisher": "atomiks",
|
|
|
|
"path": "node_modules/@floating-ui/core",
|
|
|
|
"licenseFile": "node_modules/@floating-ui/core/README.md"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@floating-ui/dom@0.3.1": {
|
2022-03-02 05:21:19 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/floating-ui/floating-ui",
|
|
|
|
"publisher": "atomiks",
|
|
|
|
"path": "node_modules/@floating-ui/dom",
|
|
|
|
"licenseFile": "node_modules/@floating-ui/dom/README.md"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"@fluent/bundle@0.17.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/projectfluent/fluent.js",
|
|
|
|
"publisher": "Mozilla",
|
|
|
|
"email": "l10n-drivers@mozilla.org",
|
|
|
|
"path": "node_modules/@fluent/bundle",
|
|
|
|
"licenseFile": "node_modules/@fluent/bundle/README.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"@mapbox/node-pre-gyp@1.0.10": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/mapbox/node-pre-gyp",
|
|
|
|
"publisher": "Dane Springmeyer",
|
|
|
|
"email": "dane@mapbox.com",
|
|
|
|
"path": "node_modules/@mapbox/node-pre-gyp",
|
|
|
|
"licenseFile": "node_modules/@mapbox/node-pre-gyp/LICENSE"
|
|
|
|
},
|
2022-08-01 12:15:22 +02:00
|
|
|
"@mdi/svg@7.0.96": {
|
2021-03-29 15:27:42 +02:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/Templarian/MaterialDesign-SVG",
|
|
|
|
"publisher": "Austin Andrews",
|
|
|
|
"path": "node_modules/@mdi/svg",
|
|
|
|
"licenseFile": "node_modules/@mdi/svg/LICENSE"
|
2021-03-29 14:54:10 +02:00
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@popperjs/core@2.11.4": {
|
2021-04-14 14:29:06 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/popperjs/popper-core",
|
|
|
|
"publisher": "Federico Zivolo",
|
|
|
|
"email": "federico.zivolo@gmail.com",
|
|
|
|
"path": "node_modules/@popperjs/core",
|
|
|
|
"licenseFile": "node_modules/@popperjs/core/LICENSE.md"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"@tootallnate/once@2.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/TooTallNate/once",
|
|
|
|
"publisher": "Nathan Rajlich",
|
|
|
|
"email": "nathan@tootallnate.net",
|
|
|
|
"url": "http://n8.io/",
|
|
|
|
"path": "node_modules/@tootallnate/once",
|
|
|
|
"licenseFile": "node_modules/@tootallnate/once/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"@types/lodash-es@4.17.6": {
|
2021-04-25 11:05:19 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/lodash-es",
|
|
|
|
"licenseFile": "node_modules/@types/lodash-es/LICENSE"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@types/lodash@4.14.180": {
|
2021-04-25 11:05:19 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/lodash",
|
|
|
|
"licenseFile": "node_modules/@types/lodash/LICENSE"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@types/marked@4.0.3": {
|
2021-05-16 13:41:40 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/marked",
|
|
|
|
"licenseFile": "node_modules/@types/marked/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"abab@2.0.5": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/jsdom/abab",
|
|
|
|
"publisher": "Jeff Carpenter",
|
|
|
|
"email": "gcarpenterv@gmail.com",
|
|
|
|
"path": "node_modules/abab",
|
|
|
|
"licenseFile": "node_modules/abab/LICENSE.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"abbrev@1.1.1": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/abbrev-js",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"path": "node_modules/abbrev",
|
|
|
|
"licenseFile": "node_modules/abbrev/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"acorn-globals@6.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/ForbesLindesay/acorn-globals",
|
|
|
|
"publisher": "ForbesLindesay",
|
|
|
|
"path": "node_modules/acorn-globals",
|
|
|
|
"licenseFile": "node_modules/acorn-globals/LICENSE"
|
|
|
|
},
|
|
|
|
"acorn-walk@7.2.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/acornjs/acorn",
|
|
|
|
"path": "node_modules/acorn-walk",
|
|
|
|
"licenseFile": "node_modules/acorn-walk/LICENSE"
|
|
|
|
},
|
|
|
|
"acorn@7.4.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/acornjs/acorn",
|
Migrate to protobuf-es (#2547)
* Fix .no-reduce-motion missing from graphs spinner, and not being honored
* Begin migration from protobuf.js -> protobuf-es
Motivation:
- Protobuf-es has a nicer API: messages are represented as classes, and
fields which should exist are not marked as nullable.
- As it uses modules, only the proto messages we actually use get included
in our bundle output. Protobuf.js put everything in a namespace, which
prevented tree-shaking, and made it awkward to access inner messages.
- ./run after touching a proto file drops from about 8s to 6s on my machine. The tradeoff
is slower decoding/encoding (#2043), but that was mainly a concern for the
graphs page, and was unblocked by
https://github.com/ankitects/anki/commit/37151213cd9d431f449ba4b3bc4c0329a1d9af78
Approach/notes:
- We generate the new protobuf-es interface in addition to existing
protobuf.js interface, so we can migrate a module at a time, starting
with the graphs module.
- rslib:proto now generates RPC methods for TS in addition to the Python
interface. The input-arg-unrolling behaviour of the Python generation is
not required here, as we declare the input arg as a PlainMessage<T>, which
marks it as requiring all fields to be provided.
- i64 is represented as bigint in protobuf-es. We were using a patch to
protobuf.js to get it to output Javascript numbers instead of long.js
types, but now that our supported browser versions support bigint, it's
probably worth biting the bullet and migrating to bigint use. Our IDs
fit comfortably within MAX_SAFE_INTEGER, but that may not hold for future
fields we add.
- Oneofs are handled differently in protobuf-es, and are going to need
some refactoring.
Other notable changes:
- Added a --mkdir arg to our build runner, so we can create a dir easily
during the build on Windows.
- Simplified the preference handling code, by wrapping the preferences
in an outer store, instead of a separate store for each individual
preference. This means a change to one preference will trigger a redraw
of all components that depend on the preference store, but the redrawing
is cheap after moving the data processing to Rust, and it makes the code
easier to follow.
- Drop async(Reactive).ts in favour of more explicit handling with await
blocks/updating.
- Renamed add_inputs_to_group() -> add_dependency(), and fixed it not adding
dependencies to parent groups. Renamed add() -> add_action() for clarity.
* Remove a couple of unused proto imports
* Migrate card info
* Migrate congrats, image occlusion, and tag editor
+ Fix imports for multi-word proto files.
* Migrate change-notetype
* Migrate deck options
* Bump target to es2020; simplify ts lib list
Have used caniuse.com to confirm Chromium 77, iOS 14.5 and the Chrome
on Android support the full es2017-es2020 features.
* Migrate import-csv
* Migrate i18n and fix missing output types in .js
* Migrate custom scheduling, and remove protobuf.js
To mostly maintain our old API contract, we make use of protobuf-es's
ability to convert to JSON, which follows the same format as protobuf.js
did. It doesn't cover all case: users who were previously changing the
variant of a type will need to update their code, as assigning to a new
variant no longer automatically removes the old one, which will cause an
error when we try to convert back from JSON. But I suspect the large majority
of users are adjusting the current variant rather than creating a new one,
and this saves us having to write proxy wrappers, so it seems like a
reasonable compromise.
One other change I made at the same time was to rename value->kind for
the oneofs in our custom study protos, as 'value' was easily confused
with the 'case/value' output that protobuf-es has.
With protobuf.js codegen removed, touching a proto file and invoking
./run drops from about 8s to 6s.
This closes #2043.
* Allow tree-shaking on protobuf types
* Display backend error messages in our ts alert()
* Make sourcemap generation opt-in for ts-run
Considerably slows down build, and not used most of the time.
2023-06-14 14:47:37 +02:00
|
|
|
"path": "node_modules/acorn",
|
|
|
|
"licenseFile": "node_modules/acorn/LICENSE"
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
},
|
|
|
|
"acorn@8.7.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/acornjs/acorn",
|
Migrate to protobuf-es (#2547)
* Fix .no-reduce-motion missing from graphs spinner, and not being honored
* Begin migration from protobuf.js -> protobuf-es
Motivation:
- Protobuf-es has a nicer API: messages are represented as classes, and
fields which should exist are not marked as nullable.
- As it uses modules, only the proto messages we actually use get included
in our bundle output. Protobuf.js put everything in a namespace, which
prevented tree-shaking, and made it awkward to access inner messages.
- ./run after touching a proto file drops from about 8s to 6s on my machine. The tradeoff
is slower decoding/encoding (#2043), but that was mainly a concern for the
graphs page, and was unblocked by
https://github.com/ankitects/anki/commit/37151213cd9d431f449ba4b3bc4c0329a1d9af78
Approach/notes:
- We generate the new protobuf-es interface in addition to existing
protobuf.js interface, so we can migrate a module at a time, starting
with the graphs module.
- rslib:proto now generates RPC methods for TS in addition to the Python
interface. The input-arg-unrolling behaviour of the Python generation is
not required here, as we declare the input arg as a PlainMessage<T>, which
marks it as requiring all fields to be provided.
- i64 is represented as bigint in protobuf-es. We were using a patch to
protobuf.js to get it to output Javascript numbers instead of long.js
types, but now that our supported browser versions support bigint, it's
probably worth biting the bullet and migrating to bigint use. Our IDs
fit comfortably within MAX_SAFE_INTEGER, but that may not hold for future
fields we add.
- Oneofs are handled differently in protobuf-es, and are going to need
some refactoring.
Other notable changes:
- Added a --mkdir arg to our build runner, so we can create a dir easily
during the build on Windows.
- Simplified the preference handling code, by wrapping the preferences
in an outer store, instead of a separate store for each individual
preference. This means a change to one preference will trigger a redraw
of all components that depend on the preference store, but the redrawing
is cheap after moving the data processing to Rust, and it makes the code
easier to follow.
- Drop async(Reactive).ts in favour of more explicit handling with await
blocks/updating.
- Renamed add_inputs_to_group() -> add_dependency(), and fixed it not adding
dependencies to parent groups. Renamed add() -> add_action() for clarity.
* Remove a couple of unused proto imports
* Migrate card info
* Migrate congrats, image occlusion, and tag editor
+ Fix imports for multi-word proto files.
* Migrate change-notetype
* Migrate deck options
* Bump target to es2020; simplify ts lib list
Have used caniuse.com to confirm Chromium 77, iOS 14.5 and the Chrome
on Android support the full es2017-es2020 features.
* Migrate import-csv
* Migrate i18n and fix missing output types in .js
* Migrate custom scheduling, and remove protobuf.js
To mostly maintain our old API contract, we make use of protobuf-es's
ability to convert to JSON, which follows the same format as protobuf.js
did. It doesn't cover all case: users who were previously changing the
variant of a type will need to update their code, as assigning to a new
variant no longer automatically removes the old one, which will cause an
error when we try to convert back from JSON. But I suspect the large majority
of users are adjusting the current variant rather than creating a new one,
and this saves us having to write proxy wrappers, so it seems like a
reasonable compromise.
One other change I made at the same time was to rename value->kind for
the oneofs in our custom study protos, as 'value' was easily confused
with the 'case/value' output that protobuf-es has.
With protobuf.js codegen removed, touching a proto file and invoking
./run drops from about 8s to 6s.
This closes #2043.
* Allow tree-shaking on protobuf types
* Display backend error messages in our ts alert()
* Make sourcemap generation opt-in for ts-run
Considerably slows down build, and not used most of the time.
2023-06-14 14:47:37 +02:00
|
|
|
"path": "node_modules/jsdom/node_modules/acorn",
|
|
|
|
"licenseFile": "node_modules/jsdom/node_modules/acorn/LICENSE"
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
},
|
|
|
|
"agent-base@6.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/TooTallNate/node-agent-base",
|
|
|
|
"publisher": "Nathan Rajlich",
|
|
|
|
"email": "nathan@tootallnate.net",
|
|
|
|
"url": "http://n8.io/",
|
|
|
|
"path": "node_modules/agent-base",
|
|
|
|
"licenseFile": "node_modules/agent-base/README.md"
|
|
|
|
},
|
|
|
|
"amator@1.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/anvaka/amator",
|
|
|
|
"publisher": "Andrei Kashcha",
|
|
|
|
"path": "node_modules/amator",
|
|
|
|
"licenseFile": "node_modules/amator/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"ansi-regex@5.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/chalk/ansi-regex",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/ansi-regex",
|
|
|
|
"licenseFile": "node_modules/ansi-regex/license"
|
|
|
|
},
|
|
|
|
"aproba@2.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/iarna/aproba",
|
|
|
|
"publisher": "Rebecca Turner",
|
|
|
|
"email": "me@re-becca.org",
|
|
|
|
"path": "node_modules/aproba",
|
|
|
|
"licenseFile": "node_modules/aproba/LICENSE"
|
|
|
|
},
|
|
|
|
"are-we-there-yet@2.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/are-we-there-yet",
|
|
|
|
"publisher": "GitHub Inc.",
|
|
|
|
"path": "node_modules/are-we-there-yet",
|
|
|
|
"licenseFile": "node_modules/are-we-there-yet/LICENSE.md"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"asynckit@0.4.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/alexindigo/asynckit",
|
|
|
|
"publisher": "Alex Indigo",
|
|
|
|
"email": "iam@alexindigo.com",
|
|
|
|
"path": "node_modules/asynckit",
|
|
|
|
"licenseFile": "node_modules/asynckit/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"balanced-match@1.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/juliangruber/balanced-match",
|
|
|
|
"publisher": "Julian Gruber",
|
|
|
|
"email": "mail@juliangruber.com",
|
|
|
|
"url": "http://juliangruber.com",
|
|
|
|
"path": "node_modules/balanced-match",
|
|
|
|
"licenseFile": "node_modules/balanced-match/LICENSE.md"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"bezier-easing@2.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/gre/bezier-easing",
|
|
|
|
"publisher": "Gaëtan Renaudeau",
|
|
|
|
"email": "renaudeau.gaetan@gmail.com",
|
|
|
|
"path": "node_modules/bezier-easing",
|
|
|
|
"licenseFile": "node_modules/bezier-easing/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"bootstrap-icons@1.8.1": {
|
2021-02-27 04:01:33 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/twbs/icons",
|
|
|
|
"publisher": "mdo",
|
|
|
|
"path": "node_modules/bootstrap-icons",
|
|
|
|
"licenseFile": "node_modules/bootstrap-icons/LICENSE.md"
|
|
|
|
},
|
2021-06-29 03:25:14 +02:00
|
|
|
"bootstrap@5.0.2": {
|
2021-02-27 04:01:33 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/twbs/bootstrap",
|
|
|
|
"publisher": "The Bootstrap Authors",
|
|
|
|
"url": "https://github.com/twbs/bootstrap/graphs/contributors",
|
|
|
|
"path": "node_modules/bootstrap",
|
|
|
|
"licenseFile": "node_modules/bootstrap/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"brace-expansion@1.1.11": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/juliangruber/brace-expansion",
|
|
|
|
"publisher": "Julian Gruber",
|
|
|
|
"email": "mail@juliangruber.com",
|
|
|
|
"url": "http://juliangruber.com",
|
|
|
|
"path": "node_modules/brace-expansion",
|
|
|
|
"licenseFile": "node_modules/brace-expansion/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"browser-process-hrtime@1.0.0": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/kumavis/browser-process-hrtime",
|
|
|
|
"publisher": "kumavis",
|
|
|
|
"path": "node_modules/browser-process-hrtime",
|
|
|
|
"licenseFile": "node_modules/browser-process-hrtime/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"canvas@2.11.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/Automattic/node-canvas",
|
|
|
|
"publisher": "TJ Holowaychuk",
|
|
|
|
"email": "tj@learnboost.com",
|
|
|
|
"path": "node_modules/canvas",
|
|
|
|
"licenseFile": "node_modules/canvas/Readme.md"
|
|
|
|
},
|
2022-09-10 10:46:59 +02:00
|
|
|
"character-entities@2.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/wooorm/character-entities",
|
|
|
|
"publisher": "Titus Wormer",
|
|
|
|
"email": "tituswormer@gmail.com",
|
|
|
|
"url": "https://wooorm.com",
|
|
|
|
"path": "node_modules/character-entities",
|
|
|
|
"licenseFile": "node_modules/character-entities/license"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"chownr@2.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/chownr",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/chownr",
|
|
|
|
"licenseFile": "node_modules/chownr/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"codemirror@5.65.2": {
|
2021-06-17 14:44:03 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/codemirror/CodeMirror",
|
|
|
|
"publisher": "Marijn Haverbeke",
|
|
|
|
"email": "marijnh@gmail.com",
|
|
|
|
"url": "http://marijnhaverbeke.nl",
|
|
|
|
"path": "node_modules/codemirror",
|
|
|
|
"licenseFile": "node_modules/codemirror/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"color-support@1.1.3": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/color-support",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/color-support",
|
|
|
|
"licenseFile": "node_modules/color-support/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"combined-stream@1.0.8": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/felixge/node-combined-stream",
|
|
|
|
"publisher": "Felix Geisendörfer",
|
|
|
|
"email": "felix@debuggable.com",
|
|
|
|
"url": "http://debuggable.com/",
|
|
|
|
"path": "node_modules/combined-stream",
|
|
|
|
"licenseFile": "node_modules/combined-stream/License"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"commander@7.2.0": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/tj/commander.js",
|
|
|
|
"publisher": "TJ Holowaychuk",
|
|
|
|
"email": "tj@vision-media.ca",
|
|
|
|
"path": "node_modules/commander",
|
|
|
|
"licenseFile": "node_modules/commander/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"concat-map@0.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/substack/node-concat-map",
|
|
|
|
"publisher": "James Halliday",
|
|
|
|
"email": "mail@substack.net",
|
|
|
|
"url": "http://substack.net",
|
|
|
|
"path": "node_modules/concat-map",
|
|
|
|
"licenseFile": "node_modules/concat-map/LICENSE"
|
|
|
|
},
|
|
|
|
"console-control-strings@1.1.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/iarna/console-control-strings",
|
|
|
|
"publisher": "Rebecca Turner",
|
|
|
|
"email": "me@re-becca.org",
|
|
|
|
"url": "http://re-becca.org/",
|
|
|
|
"path": "node_modules/console-control-strings",
|
|
|
|
"licenseFile": "node_modules/console-control-strings/LICENSE"
|
|
|
|
},
|
2020-12-31 16:27:52 +01:00
|
|
|
"css-browser-selector@0.6.5": {
|
|
|
|
"licenses": "CC-BY-SA-2.5",
|
|
|
|
"repository": "https://github.com/verbatim/css_browser_selector",
|
|
|
|
"publisher": "Rafael Lima",
|
|
|
|
"path": "node_modules/css-browser-selector",
|
|
|
|
"licenseFile": "node_modules/css-browser-selector/README.mkdn"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"cssom@0.3.8": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/NV/CSSOM",
|
|
|
|
"publisher": "Nikita Vasilyev",
|
|
|
|
"email": "me@elv1s.ru",
|
|
|
|
"path": "node_modules/cssstyle/node_modules/cssom",
|
|
|
|
"licenseFile": "node_modules/cssstyle/node_modules/cssom/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"cssom@0.5.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/NV/CSSOM",
|
|
|
|
"publisher": "Nikita Vasilyev",
|
|
|
|
"email": "me@elv1s.ru",
|
|
|
|
"path": "node_modules/cssom",
|
|
|
|
"licenseFile": "node_modules/cssom/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"cssstyle@2.3.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/cssstyle",
|
|
|
|
"path": "node_modules/cssstyle",
|
|
|
|
"licenseFile": "node_modules/cssstyle/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-array@3.2.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-array",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-array",
|
|
|
|
"licenseFile": "node_modules/d3-array/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-axis@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-axis",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-axis",
|
|
|
|
"licenseFile": "node_modules/d3-axis/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-brush@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-brush",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-brush",
|
|
|
|
"licenseFile": "node_modules/d3-brush/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-chord@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-chord",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-chord",
|
|
|
|
"licenseFile": "node_modules/d3-chord/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-color@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-color",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-color",
|
|
|
|
"licenseFile": "node_modules/d3-color/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-contour@4.0.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-contour",
|
2020-11-12 12:07:59 +01:00
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-contour",
|
|
|
|
"licenseFile": "node_modules/d3-contour/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-delaunay@6.0.2": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/d3/d3-delaunay",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-delaunay",
|
|
|
|
"licenseFile": "node_modules/d3-delaunay/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-dispatch@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-dispatch",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-dispatch",
|
|
|
|
"licenseFile": "node_modules/d3-dispatch/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-drag@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-drag",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-drag",
|
|
|
|
"licenseFile": "node_modules/d3-drag/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-dsv@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-dsv",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-dsv",
|
|
|
|
"licenseFile": "node_modules/d3-dsv/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-ease@3.0.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/d3/d3-ease",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-ease",
|
|
|
|
"licenseFile": "node_modules/d3-ease/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-fetch@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-fetch",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-fetch",
|
|
|
|
"licenseFile": "node_modules/d3-fetch/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-force@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-force",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-force",
|
|
|
|
"licenseFile": "node_modules/d3-force/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-format@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-format",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-format",
|
|
|
|
"licenseFile": "node_modules/d3-format/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-geo@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-geo",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-geo",
|
|
|
|
"licenseFile": "node_modules/d3-geo/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-hierarchy@3.1.2": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-hierarchy",
|
2020-11-12 12:07:59 +01:00
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-hierarchy",
|
|
|
|
"licenseFile": "node_modules/d3-hierarchy/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-interpolate@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-interpolate",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-interpolate",
|
|
|
|
"licenseFile": "node_modules/d3-interpolate/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-path@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-path",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-path",
|
|
|
|
"licenseFile": "node_modules/d3-path/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-polygon@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-polygon",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-polygon",
|
|
|
|
"licenseFile": "node_modules/d3-polygon/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-quadtree@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-quadtree",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-quadtree",
|
|
|
|
"licenseFile": "node_modules/d3-quadtree/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-random@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-random",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-random",
|
|
|
|
"licenseFile": "node_modules/d3-random/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-scale-chromatic@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-scale-chromatic",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-scale-chromatic",
|
|
|
|
"licenseFile": "node_modules/d3-scale-chromatic/LICENSE"
|
|
|
|
},
|
update to latest rules_nodejs & switch to ts_project
ts_library() is deprecated and will presumably be dropped from a
future rules_nodejs, and it wasn't working with the jest tests
after updating, so we switch over to ts_project().
There are some downsides:
- It's a bit slower, as the worker mode doesn't appear to function
at the moment.
- Getting it working with a mix of source files and generated files
was quite tricky, especially as things behave differently on Windows,
and differently when editing with VS Code. Solved with a small patch
to the rules, and a wrapper script that copies everything into the
bin folder first. To keep VS Code working correctly as well, the built
files are symlinked into the source folder.
- TS libraries are not implicitly linked to node_modules, so they
can't be imported with an absolute name like "lib/proto" - we need
to use relative paths like "../lib/proto" instead. Adjusting "paths"
in tsconfig.json makes it work for TS compilation, but then it fails
at the esbuild stage. We could resolve it by wrapping the TS
libraries in a subsequent js_library() call, but that has the downside
of losing the transient dependencies, meaning they need to be listed
again. Alternatively we might be able to solve it in the future by
adjusting esbuild, but for now the paths have been made relative to
keep things simple.
Upsides:
- Along with updates to the Svelte tooling, Svelte typing has improved.
All exports made in a Svelte file are now visible to other files that
import them, and we no longer rebuild the Svelte files when TS files
are updated, as the Svelte files do no type checking themselves, and
are just a simple transpilation. Svelte-check now works on Windows again,
and there should be no errors when editing in VS Code after you've
built the project. The only downside seems to be that cmd+clicking
on a Svelte imports jumps to the .d.ts file instead of the original now;
presumably they'll fix that in a future plugin update.
- Each subfolder now has its own tsconfig.json, and tsc can be called
directly for testing purposes (but beware it will place build products
in the source tree): ts/node_modules/.bin/tsc -b ts
- We can drop the custom esbuild_toolchain, as it's included in the
latest rules_nodejs.
Other changes:
- "image_module_support" is moved into lib/, and imported with
<reference types=...>
- Images are now imported directly from their npm package; the
extra copy step has been removed.
Windows users may need to use "bazel clean" before building this,
due to old files lying around in the build folder.
2021-09-30 14:16:29 +02:00
|
|
|
"d3-scale@4.0.2": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-scale",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-scale",
|
|
|
|
"licenseFile": "node_modules/d3-scale/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-selection@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-selection",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-selection",
|
|
|
|
"licenseFile": "node_modules/d3-selection/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-shape@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-shape",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-shape",
|
|
|
|
"licenseFile": "node_modules/d3-shape/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-time-format@4.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-time-format",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-time-format",
|
|
|
|
"licenseFile": "node_modules/d3-time-format/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-time@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-time",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-time",
|
|
|
|
"licenseFile": "node_modules/d3-time/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-timer@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-timer",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-timer",
|
|
|
|
"licenseFile": "node_modules/d3-timer/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-transition@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-transition",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-transition",
|
|
|
|
"licenseFile": "node_modules/d3-transition/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-zoom@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-zoom",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-zoom",
|
|
|
|
"licenseFile": "node_modules/d3-zoom/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3@7.6.1": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3",
|
|
|
|
"licenseFile": "node_modules/d3/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"data-urls@3.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/data-urls",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/data-urls",
|
|
|
|
"licenseFile": "node_modules/data-urls/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"debug@4.3.4": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/debug-js/debug",
|
|
|
|
"publisher": "Josh Junon",
|
|
|
|
"email": "josh.junon@protonmail.com",
|
|
|
|
"path": "node_modules/debug",
|
|
|
|
"licenseFile": "node_modules/debug/LICENSE"
|
|
|
|
},
|
|
|
|
"decimal.js@10.3.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/MikeMcl/decimal.js",
|
|
|
|
"publisher": "Michael Mclaughlin",
|
|
|
|
"email": "M8ch88l@gmail.com",
|
|
|
|
"path": "node_modules/decimal.js",
|
|
|
|
"licenseFile": "node_modules/decimal.js/LICENCE.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"decompress-response@4.2.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/decompress-response",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/decompress-response",
|
|
|
|
"licenseFile": "node_modules/decompress-response/license"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"deep-is@0.1.4": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/thlorenz/deep-is",
|
|
|
|
"publisher": "Thorsten Lorenz",
|
|
|
|
"email": "thlorenz@gmx.de",
|
|
|
|
"url": "http://thlorenz.com",
|
|
|
|
"path": "node_modules/deep-is",
|
|
|
|
"licenseFile": "node_modules/deep-is/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"delaunator@5.0.0": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/mapbox/delaunator",
|
|
|
|
"publisher": "Vladimir Agafonkin",
|
|
|
|
"path": "node_modules/delaunator",
|
|
|
|
"licenseFile": "node_modules/delaunator/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"delayed-stream@1.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/felixge/node-delayed-stream",
|
|
|
|
"publisher": "Felix Geisendörfer",
|
|
|
|
"email": "felix@debuggable.com",
|
|
|
|
"url": "http://debuggable.com/",
|
|
|
|
"path": "node_modules/delayed-stream",
|
|
|
|
"licenseFile": "node_modules/delayed-stream/License"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"delegates@1.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/visionmedia/node-delegates",
|
|
|
|
"path": "node_modules/delegates",
|
|
|
|
"licenseFile": "node_modules/delegates/License"
|
|
|
|
},
|
|
|
|
"detect-libc@2.0.1": {
|
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/lovell/detect-libc",
|
|
|
|
"publisher": "Lovell Fuller",
|
|
|
|
"email": "npm@lovell.info",
|
|
|
|
"path": "node_modules/detect-libc",
|
|
|
|
"licenseFile": "node_modules/detect-libc/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"domexception@4.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/domexception",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/domexception",
|
|
|
|
"licenseFile": "node_modules/domexception/LICENSE.txt"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"emoji-regex@8.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/mathiasbynens/emoji-regex",
|
|
|
|
"publisher": "Mathias Bynens",
|
|
|
|
"url": "https://mathiasbynens.be/",
|
|
|
|
"path": "node_modules/emoji-regex",
|
|
|
|
"licenseFile": "node_modules/emoji-regex/LICENSE-MIT.txt"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"escodegen@2.0.0": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/estools/escodegen",
|
|
|
|
"path": "node_modules/escodegen",
|
|
|
|
"licenseFile": "node_modules/escodegen/LICENSE.BSD"
|
|
|
|
},
|
|
|
|
"esprima@4.0.1": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/jquery/esprima",
|
|
|
|
"publisher": "Ariya Hidayat",
|
|
|
|
"email": "ariya.hidayat@gmail.com",
|
|
|
|
"path": "node_modules/esprima",
|
|
|
|
"licenseFile": "node_modules/esprima/LICENSE.BSD"
|
|
|
|
},
|
|
|
|
"estraverse@5.3.0": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/estools/estraverse",
|
|
|
|
"path": "node_modules/estraverse",
|
|
|
|
"licenseFile": "node_modules/estraverse/LICENSE.BSD"
|
|
|
|
},
|
|
|
|
"esutils@2.0.3": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/estools/esutils",
|
|
|
|
"path": "node_modules/esutils",
|
|
|
|
"licenseFile": "node_modules/esutils/LICENSE.BSD"
|
|
|
|
},
|
|
|
|
"fabric@5.3.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/fabricjs/fabric.js",
|
|
|
|
"publisher": "Juriy Zaytsev",
|
|
|
|
"email": "kangax@gmail.com",
|
|
|
|
"path": "node_modules/fabric",
|
|
|
|
"licenseFile": "node_modules/fabric/LICENSE"
|
|
|
|
},
|
|
|
|
"fast-levenshtein@2.0.6": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/hiddentao/fast-levenshtein",
|
|
|
|
"publisher": "Ramesh Nair",
|
|
|
|
"email": "ram@hiddentao.com",
|
|
|
|
"url": "http://www.hiddentao.com/",
|
|
|
|
"path": "node_modules/fast-levenshtein",
|
|
|
|
"licenseFile": "node_modules/fast-levenshtein/LICENSE.md"
|
|
|
|
},
|
|
|
|
"form-data@4.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/form-data/form-data",
|
|
|
|
"publisher": "Felix Geisendörfer",
|
|
|
|
"email": "felix@debuggable.com",
|
|
|
|
"url": "http://debuggable.com/",
|
|
|
|
"path": "node_modules/form-data",
|
|
|
|
"licenseFile": "node_modules/form-data/License"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"fs-minipass@2.1.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/fs-minipass",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/fs-minipass",
|
|
|
|
"licenseFile": "node_modules/fs-minipass/LICENSE"
|
|
|
|
},
|
|
|
|
"fs.realpath@1.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/fs.realpath",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/fs.realpath",
|
|
|
|
"licenseFile": "node_modules/fs.realpath/LICENSE"
|
|
|
|
},
|
Fuzzy search in symbol insertion overlay (#2059)
* Add flag for enabling insert symbols feature
* Add symbols overlay directory
* Detect if :xy is inserted into editable
* Allow naive updating of overlay, and special handling of ':'
* First step towards better Virtual Element support
* Update floating to reference range on insert text
* Position SymbolsOverlay always on top or bottom
* Add a data-provider to emulate API
* Show correct suggestions in symbols overlay
* Rename to replacementLength
* Allow replacing via clicking in menu
* Optionally remove inline padding of Popover
* Hide Symbols overlay on blur of content editable
* Add specialKey to inputHandler and generalize how arrow movement is detected
- This way macOS users can use Ctrl-N to mean down, etc.
* Detect special key from within SymbolsOverlay
* Implement full backwards search while typing
* Allow navigating symbol menu and accepting with enter
* Add some entries to data-provider
* Satisfy eslint
* Generate symbolsTable from sources
* Use other github source, allow multiple names
In return, symbol must be unique
* Automatically scroll in symbols dropdown
* Use from npm packages rather than downloading from URL
* Remove console.log
* Remove print
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Add pointerDown event to input-handler
- so that SymbolsOverlay can reset on field click
* Make tab do the same as enter
* Make font a bit smaller but increase relative icon size
* Satisfy type requirement of handlerlist
* Revert changing default size of DropdownItems
* Remove some now unused code for bootstrap dropdowns
* Use fuse to allow fuzzy searching of symbols
* Remove unnecessary async handling in data-provider
I did that because at first I was still expecting to fetch the symbols
from the backend
* Apply field font family in symbol preview
* Remove inline padding from latex popover
* Rename data-provier to symbols-table
* Add some explaining comments to interface
* Allow for auto insertion symbols
* Use deleteData and after instead of replaceData
* Allow using html in symbols
* Show html symbols as html
* Add SymbolsEntry component
* Also include containshtml at low search precedence
* Put character entities and gemoji into their own files
* Factor out prepareInsertion method
* Allow deletion while searching for correct symbol
* Respect insertCompositionText
* Delete data-provider
* Restrict auto insert queries to max 5 characters
* Satisfy svelte check
* Fix the overlay sometimes not showing
This will make sure to always normalize text nodes before searching.
However it adjacent text is partially formatted, this will still not
find the whole query.
For example, currently, entering `<b>:for</b>al` and then inputting `l`,
will not trigger a search for `forall`, because of the <b> formatting
* Add empty line
* Do not trigger overlay, when last character is whitespace or colon
* Add missing fuse license
2022-09-13 06:19:19 +02:00
|
|
|
"fuse.js@6.6.2": {
|
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/krisk/Fuse",
|
|
|
|
"publisher": "Kiro Risk",
|
|
|
|
"email": "kirollos@gmail.com",
|
|
|
|
"url": "http://kiro.me",
|
|
|
|
"path": "node_modules/fuse.js",
|
|
|
|
"licenseFile": "node_modules/fuse.js/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"gauge@3.0.2": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/iarna/gauge",
|
|
|
|
"publisher": "Rebecca Turner",
|
|
|
|
"email": "me@re-becca.org",
|
|
|
|
"path": "node_modules/gauge",
|
|
|
|
"licenseFile": "node_modules/gauge/LICENSE"
|
|
|
|
},
|
2022-09-10 10:46:59 +02:00
|
|
|
"gemoji@7.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/wooorm/gemoji",
|
|
|
|
"publisher": "Titus Wormer",
|
|
|
|
"email": "tituswormer@gmail.com",
|
|
|
|
"url": "https://wooorm.com",
|
|
|
|
"path": "node_modules/gemoji",
|
|
|
|
"licenseFile": "node_modules/gemoji/license"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"glob@7.2.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/node-glob",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/glob",
|
|
|
|
"licenseFile": "node_modules/glob/LICENSE"
|
|
|
|
},
|
|
|
|
"has-unicode@2.0.1": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/iarna/has-unicode",
|
|
|
|
"publisher": "Rebecca Turner",
|
|
|
|
"email": "me@re-becca.org",
|
|
|
|
"path": "node_modules/has-unicode",
|
|
|
|
"licenseFile": "node_modules/has-unicode/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"html-encoding-sniffer@3.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/html-encoding-sniffer",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/html-encoding-sniffer",
|
|
|
|
"licenseFile": "node_modules/html-encoding-sniffer/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"http-proxy-agent@5.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/TooTallNate/node-http-proxy-agent",
|
|
|
|
"publisher": "Nathan Rajlich",
|
|
|
|
"email": "nathan@tootallnate.net",
|
|
|
|
"url": "http://n8.io/",
|
|
|
|
"path": "node_modules/http-proxy-agent",
|
|
|
|
"licenseFile": "node_modules/http-proxy-agent/README.md"
|
|
|
|
},
|
|
|
|
"https-proxy-agent@5.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/TooTallNate/node-https-proxy-agent",
|
|
|
|
"publisher": "Nathan Rajlich",
|
|
|
|
"email": "nathan@tootallnate.net",
|
|
|
|
"url": "http://n8.io/",
|
|
|
|
"path": "node_modules/https-proxy-agent",
|
|
|
|
"licenseFile": "node_modules/https-proxy-agent/README.md"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"iconv-lite@0.6.3": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/ashtuchkin/iconv-lite",
|
|
|
|
"publisher": "Alexander Shtuchkin",
|
|
|
|
"email": "ashtuchkin@gmail.com",
|
|
|
|
"path": "node_modules/iconv-lite",
|
|
|
|
"licenseFile": "node_modules/iconv-lite/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"inflight@1.0.6": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/inflight",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/inflight",
|
|
|
|
"licenseFile": "node_modules/inflight/LICENSE"
|
|
|
|
},
|
|
|
|
"inherits@2.0.4": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/inherits",
|
|
|
|
"path": "node_modules/inherits",
|
|
|
|
"licenseFile": "node_modules/inherits/LICENSE"
|
|
|
|
},
|
2021-09-22 15:16:41 +02:00
|
|
|
"internmap@2.0.3": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/mbostock/internmap",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/internmap",
|
|
|
|
"licenseFile": "node_modules/internmap/LICENSE"
|
|
|
|
},
|
2021-09-22 15:16:41 +02:00
|
|
|
"intl-pluralrules@1.3.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/eemeli/intl-pluralrules",
|
|
|
|
"publisher": "Eemeli Aro",
|
|
|
|
"email": "eemeli@gmail.com",
|
|
|
|
"path": "node_modules/intl-pluralrules",
|
|
|
|
"licenseFile": "node_modules/intl-pluralrules/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"is-fullwidth-code-point@3.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/is-fullwidth-code-point",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/is-fullwidth-code-point",
|
|
|
|
"licenseFile": "node_modules/is-fullwidth-code-point/license"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"is-potential-custom-element-name@1.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/mathiasbynens/is-potential-custom-element-name",
|
|
|
|
"publisher": "Mathias Bynens",
|
|
|
|
"url": "https://mathiasbynens.be/",
|
|
|
|
"path": "node_modules/is-potential-custom-element-name",
|
|
|
|
"licenseFile": "node_modules/is-potential-custom-element-name/LICENSE-MIT.txt"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"jquery-ui-dist@1.13.1": {
|
2020-12-31 03:18:49 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jquery/jquery-ui",
|
|
|
|
"publisher": "jQuery Foundation and other contributors",
|
2022-02-25 06:29:49 +01:00
|
|
|
"url": "https://github.com/jquery/jquery-ui/blob/1.13.1/AUTHORS.txt",
|
2020-12-31 03:18:49 +01:00
|
|
|
"path": "node_modules/jquery-ui-dist",
|
|
|
|
"licenseFile": "node_modules/jquery-ui-dist/LICENSE.txt"
|
|
|
|
},
|
2021-03-27 06:02:02 +01:00
|
|
|
"jquery@3.6.0": {
|
2020-12-31 03:18:49 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jquery/jquery",
|
2021-03-27 06:02:02 +01:00
|
|
|
"publisher": "OpenJS Foundation and other contributors",
|
|
|
|
"url": "https://github.com/jquery/jquery/blob/3.6.0/AUTHORS.txt",
|
2020-12-31 03:18:49 +01:00
|
|
|
"path": "node_modules/jquery",
|
|
|
|
"licenseFile": "node_modules/jquery/LICENSE.txt"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"jsdom@19.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/jsdom",
|
|
|
|
"path": "node_modules/jsdom",
|
|
|
|
"licenseFile": "node_modules/jsdom/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"levn@0.3.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/gkz/levn",
|
|
|
|
"publisher": "George Zahariev",
|
|
|
|
"email": "z@georgezahariev.com",
|
Migrate to protobuf-es (#2547)
* Fix .no-reduce-motion missing from graphs spinner, and not being honored
* Begin migration from protobuf.js -> protobuf-es
Motivation:
- Protobuf-es has a nicer API: messages are represented as classes, and
fields which should exist are not marked as nullable.
- As it uses modules, only the proto messages we actually use get included
in our bundle output. Protobuf.js put everything in a namespace, which
prevented tree-shaking, and made it awkward to access inner messages.
- ./run after touching a proto file drops from about 8s to 6s on my machine. The tradeoff
is slower decoding/encoding (#2043), but that was mainly a concern for the
graphs page, and was unblocked by
https://github.com/ankitects/anki/commit/37151213cd9d431f449ba4b3bc4c0329a1d9af78
Approach/notes:
- We generate the new protobuf-es interface in addition to existing
protobuf.js interface, so we can migrate a module at a time, starting
with the graphs module.
- rslib:proto now generates RPC methods for TS in addition to the Python
interface. The input-arg-unrolling behaviour of the Python generation is
not required here, as we declare the input arg as a PlainMessage<T>, which
marks it as requiring all fields to be provided.
- i64 is represented as bigint in protobuf-es. We were using a patch to
protobuf.js to get it to output Javascript numbers instead of long.js
types, but now that our supported browser versions support bigint, it's
probably worth biting the bullet and migrating to bigint use. Our IDs
fit comfortably within MAX_SAFE_INTEGER, but that may not hold for future
fields we add.
- Oneofs are handled differently in protobuf-es, and are going to need
some refactoring.
Other notable changes:
- Added a --mkdir arg to our build runner, so we can create a dir easily
during the build on Windows.
- Simplified the preference handling code, by wrapping the preferences
in an outer store, instead of a separate store for each individual
preference. This means a change to one preference will trigger a redraw
of all components that depend on the preference store, but the redrawing
is cheap after moving the data processing to Rust, and it makes the code
easier to follow.
- Drop async(Reactive).ts in favour of more explicit handling with await
blocks/updating.
- Renamed add_inputs_to_group() -> add_dependency(), and fixed it not adding
dependencies to parent groups. Renamed add() -> add_action() for clarity.
* Remove a couple of unused proto imports
* Migrate card info
* Migrate congrats, image occlusion, and tag editor
+ Fix imports for multi-word proto files.
* Migrate change-notetype
* Migrate deck options
* Bump target to es2020; simplify ts lib list
Have used caniuse.com to confirm Chromium 77, iOS 14.5 and the Chrome
on Android support the full es2017-es2020 features.
* Migrate import-csv
* Migrate i18n and fix missing output types in .js
* Migrate custom scheduling, and remove protobuf.js
To mostly maintain our old API contract, we make use of protobuf-es's
ability to convert to JSON, which follows the same format as protobuf.js
did. It doesn't cover all case: users who were previously changing the
variant of a type will need to update their code, as assigning to a new
variant no longer automatically removes the old one, which will cause an
error when we try to convert back from JSON. But I suspect the large majority
of users are adjusting the current variant rather than creating a new one,
and this saves us having to write proxy wrappers, so it seems like a
reasonable compromise.
One other change I made at the same time was to rename value->kind for
the oneofs in our custom study protos, as 'value' was easily confused
with the 'case/value' output that protobuf-es has.
With protobuf.js codegen removed, touching a proto file and invoking
./run drops from about 8s to 6s.
This closes #2043.
* Allow tree-shaking on protobuf types
* Display backend error messages in our ts alert()
* Make sourcemap generation opt-in for ts-run
Considerably slows down build, and not used most of the time.
2023-06-14 14:47:37 +02:00
|
|
|
"path": "node_modules/escodegen/node_modules/levn",
|
|
|
|
"licenseFile": "node_modules/escodegen/node_modules/levn/LICENSE"
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
},
|
2021-04-16 12:07:49 +02:00
|
|
|
"lodash-es@4.17.21": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/lodash/lodash",
|
|
|
|
"publisher": "John-David Dalton",
|
|
|
|
"email": "john.david.dalton@gmail.com",
|
2021-04-16 12:07:49 +02:00
|
|
|
"path": "node_modules/lodash-es",
|
|
|
|
"licenseFile": "node_modules/lodash-es/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"lru-cache@6.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/node-lru-cache",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"path": "node_modules/lru-cache",
|
|
|
|
"licenseFile": "node_modules/lru-cache/LICENSE"
|
|
|
|
},
|
|
|
|
"make-dir@3.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/make-dir",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/make-dir",
|
|
|
|
"licenseFile": "node_modules/make-dir/license"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"marked@4.0.12": {
|
2021-05-16 13:41:40 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/markedjs/marked",
|
|
|
|
"publisher": "Christopher Jeffrey",
|
|
|
|
"path": "node_modules/marked",
|
|
|
|
"licenseFile": "node_modules/marked/LICENSE.md"
|
|
|
|
},
|
2022-12-04 09:01:26 +01:00
|
|
|
"mathjax@3.2.2": {
|
2020-12-09 06:47:34 +01:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/mathjax/MathJax",
|
|
|
|
"path": "node_modules/mathjax",
|
|
|
|
"licenseFile": "node_modules/mathjax/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"mime-db@1.52.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jshttp/mime-db",
|
|
|
|
"path": "node_modules/mime-db",
|
|
|
|
"licenseFile": "node_modules/mime-db/LICENSE"
|
|
|
|
},
|
|
|
|
"mime-types@2.1.35": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jshttp/mime-types",
|
|
|
|
"path": "node_modules/mime-types",
|
|
|
|
"licenseFile": "node_modules/mime-types/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"mimic-response@2.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/mimic-response",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "https://sindresorhus.com",
|
|
|
|
"path": "node_modules/mimic-response",
|
|
|
|
"licenseFile": "node_modules/mimic-response/license"
|
|
|
|
},
|
|
|
|
"minimatch@3.1.2": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/minimatch",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me",
|
|
|
|
"path": "node_modules/minimatch",
|
|
|
|
"licenseFile": "node_modules/minimatch/LICENSE"
|
|
|
|
},
|
|
|
|
"minipass@3.3.6": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/minipass",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/minipass",
|
|
|
|
"licenseFile": "node_modules/minipass/LICENSE"
|
|
|
|
},
|
|
|
|
"minipass@4.0.3": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/minipass",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/tar/node_modules/minipass",
|
|
|
|
"licenseFile": "node_modules/tar/node_modules/minipass/LICENSE"
|
|
|
|
},
|
|
|
|
"minizlib@2.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/isaacs/minizlib",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/minizlib",
|
|
|
|
"licenseFile": "node_modules/minizlib/LICENSE"
|
|
|
|
},
|
|
|
|
"mkdirp@1.0.4": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/isaacs/node-mkdirp",
|
|
|
|
"path": "node_modules/mkdirp",
|
|
|
|
"licenseFile": "node_modules/mkdirp/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"ms@2.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/zeit/ms",
|
|
|
|
"path": "node_modules/ms",
|
|
|
|
"licenseFile": "node_modules/ms/license.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"nan@2.17.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/nodejs/nan",
|
|
|
|
"path": "node_modules/nan",
|
|
|
|
"licenseFile": "node_modules/nan/LICENSE.md"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"ngraph.events@1.2.2": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/anvaka/ngraph.events",
|
|
|
|
"publisher": "Andrei Kashcha",
|
|
|
|
"path": "node_modules/ngraph.events",
|
|
|
|
"licenseFile": "node_modules/ngraph.events/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"node-fetch@2.6.9": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/bitinn/node-fetch",
|
|
|
|
"publisher": "David Frank",
|
|
|
|
"path": "node_modules/node-fetch",
|
|
|
|
"licenseFile": "node_modules/node-fetch/LICENSE.md"
|
|
|
|
},
|
|
|
|
"nopt@5.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/nopt",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/nopt",
|
|
|
|
"licenseFile": "node_modules/nopt/LICENSE"
|
|
|
|
},
|
|
|
|
"npmlog@5.0.1": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/npmlog",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/npmlog",
|
|
|
|
"licenseFile": "node_modules/npmlog/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"nwsapi@2.2.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/dperini/nwsapi",
|
|
|
|
"publisher": "Diego Perini",
|
|
|
|
"email": "diego.perini@gmail.com",
|
|
|
|
"url": "http://www.iport.it/",
|
|
|
|
"path": "node_modules/nwsapi",
|
|
|
|
"licenseFile": "node_modules/nwsapi/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"object-assign@4.1.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/object-assign",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/object-assign",
|
|
|
|
"licenseFile": "node_modules/object-assign/license"
|
|
|
|
},
|
|
|
|
"once@1.4.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/once",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/once",
|
|
|
|
"licenseFile": "node_modules/once/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"optionator@0.8.3": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/gkz/optionator",
|
|
|
|
"publisher": "George Zahariev",
|
|
|
|
"email": "z@georgezahariev.com",
|
Migrate to protobuf-es (#2547)
* Fix .no-reduce-motion missing from graphs spinner, and not being honored
* Begin migration from protobuf.js -> protobuf-es
Motivation:
- Protobuf-es has a nicer API: messages are represented as classes, and
fields which should exist are not marked as nullable.
- As it uses modules, only the proto messages we actually use get included
in our bundle output. Protobuf.js put everything in a namespace, which
prevented tree-shaking, and made it awkward to access inner messages.
- ./run after touching a proto file drops from about 8s to 6s on my machine. The tradeoff
is slower decoding/encoding (#2043), but that was mainly a concern for the
graphs page, and was unblocked by
https://github.com/ankitects/anki/commit/37151213cd9d431f449ba4b3bc4c0329a1d9af78
Approach/notes:
- We generate the new protobuf-es interface in addition to existing
protobuf.js interface, so we can migrate a module at a time, starting
with the graphs module.
- rslib:proto now generates RPC methods for TS in addition to the Python
interface. The input-arg-unrolling behaviour of the Python generation is
not required here, as we declare the input arg as a PlainMessage<T>, which
marks it as requiring all fields to be provided.
- i64 is represented as bigint in protobuf-es. We were using a patch to
protobuf.js to get it to output Javascript numbers instead of long.js
types, but now that our supported browser versions support bigint, it's
probably worth biting the bullet and migrating to bigint use. Our IDs
fit comfortably within MAX_SAFE_INTEGER, but that may not hold for future
fields we add.
- Oneofs are handled differently in protobuf-es, and are going to need
some refactoring.
Other notable changes:
- Added a --mkdir arg to our build runner, so we can create a dir easily
during the build on Windows.
- Simplified the preference handling code, by wrapping the preferences
in an outer store, instead of a separate store for each individual
preference. This means a change to one preference will trigger a redraw
of all components that depend on the preference store, but the redrawing
is cheap after moving the data processing to Rust, and it makes the code
easier to follow.
- Drop async(Reactive).ts in favour of more explicit handling with await
blocks/updating.
- Renamed add_inputs_to_group() -> add_dependency(), and fixed it not adding
dependencies to parent groups. Renamed add() -> add_action() for clarity.
* Remove a couple of unused proto imports
* Migrate card info
* Migrate congrats, image occlusion, and tag editor
+ Fix imports for multi-word proto files.
* Migrate change-notetype
* Migrate deck options
* Bump target to es2020; simplify ts lib list
Have used caniuse.com to confirm Chromium 77, iOS 14.5 and the Chrome
on Android support the full es2017-es2020 features.
* Migrate import-csv
* Migrate i18n and fix missing output types in .js
* Migrate custom scheduling, and remove protobuf.js
To mostly maintain our old API contract, we make use of protobuf-es's
ability to convert to JSON, which follows the same format as protobuf.js
did. It doesn't cover all case: users who were previously changing the
variant of a type will need to update their code, as assigning to a new
variant no longer automatically removes the old one, which will cause an
error when we try to convert back from JSON. But I suspect the large majority
of users are adjusting the current variant rather than creating a new one,
and this saves us having to write proxy wrappers, so it seems like a
reasonable compromise.
One other change I made at the same time was to rename value->kind for
the oneofs in our custom study protos, as 'value' was easily confused
with the 'case/value' output that protobuf-es has.
With protobuf.js codegen removed, touching a proto file and invoking
./run drops from about 8s to 6s.
This closes #2043.
* Allow tree-shaking on protobuf types
* Display backend error messages in our ts alert()
* Make sourcemap generation opt-in for ts-run
Considerably slows down build, and not used most of the time.
2023-06-14 14:47:37 +02:00
|
|
|
"path": "node_modules/escodegen/node_modules/optionator",
|
|
|
|
"licenseFile": "node_modules/escodegen/node_modules/optionator/LICENSE"
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
},
|
|
|
|
"panzoom@9.4.3": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/anvaka/panzoom",
|
|
|
|
"publisher": "Andrei Kashcha",
|
|
|
|
"path": "node_modules/panzoom",
|
|
|
|
"licenseFile": "node_modules/panzoom/LICENSE"
|
|
|
|
},
|
|
|
|
"parse5@6.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/inikulin/parse5",
|
|
|
|
"publisher": "Ivan Nikulin",
|
|
|
|
"email": "ifaaan@gmail.com",
|
|
|
|
"url": "https://github.com/inikulin",
|
|
|
|
"path": "node_modules/parse5",
|
|
|
|
"licenseFile": "node_modules/parse5/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"path-is-absolute@1.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/path-is-absolute",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/path-is-absolute",
|
|
|
|
"licenseFile": "node_modules/path-is-absolute/license"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"prelude-ls@1.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/gkz/prelude-ls",
|
|
|
|
"publisher": "George Zahariev",
|
|
|
|
"email": "z@georgezahariev.com",
|
|
|
|
"path": "node_modules/prelude-ls",
|
|
|
|
"licenseFile": "node_modules/prelude-ls/LICENSE"
|
|
|
|
},
|
|
|
|
"psl@1.8.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/lupomontero/psl",
|
|
|
|
"publisher": "Lupo Montero",
|
|
|
|
"email": "lupomontero@gmail.com",
|
|
|
|
"url": "https://lupomontero.com/",
|
|
|
|
"path": "node_modules/psl",
|
|
|
|
"licenseFile": "node_modules/psl/LICENSE"
|
|
|
|
},
|
|
|
|
"punycode@2.1.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/bestiejs/punycode.js",
|
|
|
|
"publisher": "Mathias Bynens",
|
|
|
|
"url": "https://mathiasbynens.be/",
|
|
|
|
"path": "node_modules/punycode",
|
|
|
|
"licenseFile": "node_modules/punycode/LICENSE-MIT.txt"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"readable-stream@3.6.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/nodejs/readable-stream",
|
|
|
|
"path": "node_modules/readable-stream",
|
|
|
|
"licenseFile": "node_modules/readable-stream/LICENSE"
|
|
|
|
},
|
|
|
|
"rimraf@3.0.2": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/rimraf",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/rimraf",
|
|
|
|
"licenseFile": "node_modules/rimraf/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"robust-predicates@3.0.1": {
|
|
|
|
"licenses": "Unlicense",
|
|
|
|
"repository": "https://github.com/mourner/robust-predicates",
|
|
|
|
"publisher": "Vladimir Agafonkin",
|
|
|
|
"path": "node_modules/robust-predicates",
|
|
|
|
"licenseFile": "node_modules/robust-predicates/LICENSE"
|
|
|
|
},
|
2021-01-26 15:08:57 +01:00
|
|
|
"rw@1.3.3": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/mbostock/rw",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/rw",
|
|
|
|
"licenseFile": "node_modules/rw/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"safe-buffer@5.2.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/feross/safe-buffer",
|
|
|
|
"publisher": "Feross Aboukhadijeh",
|
|
|
|
"email": "feross@feross.org",
|
|
|
|
"url": "https://feross.org",
|
|
|
|
"path": "node_modules/string_decoder/node_modules/safe-buffer",
|
|
|
|
"licenseFile": "node_modules/string_decoder/node_modules/safe-buffer/LICENSE"
|
|
|
|
},
|
2021-01-26 15:08:57 +01:00
|
|
|
"safer-buffer@2.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/ChALkeR/safer-buffer",
|
|
|
|
"publisher": "Nikita Skovoroda",
|
|
|
|
"email": "chalkerx@gmail.com",
|
|
|
|
"url": "https://github.com/ChALkeR",
|
|
|
|
"path": "node_modules/safer-buffer",
|
|
|
|
"licenseFile": "node_modules/safer-buffer/LICENSE"
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
},
|
|
|
|
"saxes@5.0.1": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/lddubeau/saxes",
|
|
|
|
"publisher": "Louis-Dominique Dubeau",
|
|
|
|
"email": "ldd@lddubeau.com",
|
|
|
|
"path": "node_modules/saxes",
|
|
|
|
"licenseFile": "node_modules/saxes/README.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"semver@6.3.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/node-semver",
|
|
|
|
"path": "node_modules/make-dir/node_modules/semver",
|
|
|
|
"licenseFile": "node_modules/make-dir/node_modules/semver/LICENSE"
|
|
|
|
},
|
|
|
|
"semver@7.3.5": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/node-semver",
|
|
|
|
"path": "node_modules/semver",
|
|
|
|
"licenseFile": "node_modules/semver/LICENSE"
|
|
|
|
},
|
|
|
|
"set-blocking@2.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/yargs/set-blocking",
|
|
|
|
"publisher": "Ben Coe",
|
|
|
|
"email": "ben@npmjs.com",
|
|
|
|
"path": "node_modules/set-blocking",
|
|
|
|
"licenseFile": "node_modules/set-blocking/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"signal-exit@3.0.7": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/tapjs/signal-exit",
|
|
|
|
"publisher": "Ben Coe",
|
|
|
|
"email": "ben@npmjs.com",
|
|
|
|
"path": "node_modules/signal-exit",
|
|
|
|
"licenseFile": "node_modules/signal-exit/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"simple-concat@1.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/feross/simple-concat",
|
|
|
|
"publisher": "Feross Aboukhadijeh",
|
|
|
|
"email": "feross@feross.org",
|
|
|
|
"url": "https://feross.org",
|
|
|
|
"path": "node_modules/simple-concat",
|
|
|
|
"licenseFile": "node_modules/simple-concat/LICENSE"
|
|
|
|
},
|
|
|
|
"simple-get@3.1.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/feross/simple-get",
|
|
|
|
"publisher": "Feross Aboukhadijeh",
|
|
|
|
"email": "feross@feross.org",
|
|
|
|
"url": "http://feross.org/",
|
|
|
|
"path": "node_modules/simple-get",
|
|
|
|
"licenseFile": "node_modules/simple-get/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"source-map@0.6.1": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/mozilla/source-map",
|
|
|
|
"publisher": "Nick Fitzgerald",
|
|
|
|
"email": "nfitzgerald@mozilla.com",
|
|
|
|
"path": "node_modules/source-map",
|
|
|
|
"licenseFile": "node_modules/source-map/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"string-width@4.2.3": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/sindresorhus/string-width",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/string-width",
|
|
|
|
"licenseFile": "node_modules/string-width/license"
|
|
|
|
},
|
|
|
|
"string_decoder@1.3.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/nodejs/string_decoder",
|
|
|
|
"path": "node_modules/string_decoder",
|
|
|
|
"licenseFile": "node_modules/string_decoder/LICENSE"
|
|
|
|
},
|
|
|
|
"strip-ansi@6.0.1": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/chalk/strip-ansi",
|
|
|
|
"publisher": "Sindre Sorhus",
|
|
|
|
"email": "sindresorhus@gmail.com",
|
|
|
|
"url": "sindresorhus.com",
|
|
|
|
"path": "node_modules/strip-ansi",
|
|
|
|
"licenseFile": "node_modules/strip-ansi/license"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"symbol-tree@3.2.4": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/js-symbol-tree",
|
|
|
|
"publisher": "Joris van der Wel",
|
|
|
|
"email": "joris@jorisvanderwel.com",
|
|
|
|
"path": "node_modules/symbol-tree",
|
|
|
|
"licenseFile": "node_modules/symbol-tree/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"tar@6.1.13": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/node-tar",
|
|
|
|
"publisher": "GitHub Inc.",
|
|
|
|
"path": "node_modules/tar",
|
|
|
|
"licenseFile": "node_modules/tar/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"tough-cookie@4.0.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/salesforce/tough-cookie",
|
|
|
|
"publisher": "Jeremy Stashewsky",
|
|
|
|
"email": "jstash@gmail.com",
|
|
|
|
"path": "node_modules/tough-cookie",
|
|
|
|
"licenseFile": "node_modules/tough-cookie/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"tr46@0.0.3": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/Sebmaster/tr46.js",
|
|
|
|
"publisher": "Sebastian Mayr",
|
|
|
|
"email": "npm@smayr.name",
|
|
|
|
"path": "node_modules/node-fetch/node_modules/tr46"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"tr46@3.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/tr46",
|
|
|
|
"publisher": "Sebastian Mayr",
|
|
|
|
"email": "npm@smayr.name",
|
|
|
|
"path": "node_modules/tr46",
|
|
|
|
"licenseFile": "node_modules/tr46/LICENSE.md"
|
|
|
|
},
|
|
|
|
"type-check@0.3.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/gkz/type-check",
|
|
|
|
"publisher": "George Zahariev",
|
|
|
|
"email": "z@georgezahariev.com",
|
|
|
|
"path": "node_modules/type-check",
|
|
|
|
"licenseFile": "node_modules/type-check/LICENSE"
|
|
|
|
},
|
|
|
|
"universalify@0.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/RyanZim/universalify",
|
|
|
|
"publisher": "Ryan Zimmerman",
|
|
|
|
"email": "opensrc@ryanzim.com",
|
|
|
|
"path": "node_modules/universalify",
|
|
|
|
"licenseFile": "node_modules/universalify/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"util-deprecate@1.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/TooTallNate/util-deprecate",
|
|
|
|
"publisher": "Nathan Rajlich",
|
|
|
|
"email": "nathan@tootallnate.net",
|
|
|
|
"url": "http://n8.io/",
|
|
|
|
"path": "node_modules/util-deprecate",
|
|
|
|
"licenseFile": "node_modules/util-deprecate/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"w3c-hr-time@1.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/w3c-hr-time",
|
|
|
|
"publisher": "Timothy Gu",
|
|
|
|
"email": "timothygu99@gmail.com",
|
|
|
|
"path": "node_modules/w3c-hr-time",
|
|
|
|
"licenseFile": "node_modules/w3c-hr-time/LICENSE.md"
|
|
|
|
},
|
|
|
|
"w3c-xmlserializer@3.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/w3c-xmlserializer",
|
|
|
|
"path": "node_modules/w3c-xmlserializer",
|
|
|
|
"licenseFile": "node_modules/w3c-xmlserializer/LICENSE.md"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"webidl-conversions@3.0.1": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/jsdom/webidl-conversions",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/node-fetch/node_modules/webidl-conversions",
|
|
|
|
"licenseFile": "node_modules/node-fetch/node_modules/webidl-conversions/LICENSE.md"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"webidl-conversions@7.0.0": {
|
|
|
|
"licenses": "BSD-2-Clause",
|
|
|
|
"repository": "https://github.com/jsdom/webidl-conversions",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/webidl-conversions",
|
|
|
|
"licenseFile": "node_modules/webidl-conversions/LICENSE.md"
|
|
|
|
},
|
|
|
|
"whatwg-encoding@2.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/whatwg-encoding",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/whatwg-encoding",
|
|
|
|
"licenseFile": "node_modules/whatwg-encoding/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"whatwg-mimetype@3.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/whatwg-mimetype",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/whatwg-mimetype",
|
|
|
|
"licenseFile": "node_modules/whatwg-mimetype/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"whatwg-url@10.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/whatwg-url",
|
|
|
|
"publisher": "Sebastian Mayr",
|
|
|
|
"email": "github@smayr.name",
|
|
|
|
"path": "node_modules/whatwg-url",
|
|
|
|
"licenseFile": "node_modules/whatwg-url/LICENSE.txt"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"whatwg-url@5.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jsdom/whatwg-url",
|
|
|
|
"publisher": "Sebastian Mayr",
|
|
|
|
"email": "github@smayr.name",
|
|
|
|
"path": "node_modules/node-fetch/node_modules/whatwg-url",
|
|
|
|
"licenseFile": "node_modules/node-fetch/node_modules/whatwg-url/LICENSE.txt"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"wheel@1.0.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/anvaka/wheel",
|
|
|
|
"publisher": "Andrei Kashcha",
|
|
|
|
"path": "node_modules/wheel",
|
|
|
|
"licenseFile": "node_modules/wheel/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"wide-align@1.1.5": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/iarna/wide-align",
|
|
|
|
"publisher": "Rebecca Turner",
|
|
|
|
"email": "me@re-becca.org",
|
|
|
|
"url": "http://re-becca.org/",
|
|
|
|
"path": "node_modules/wide-align",
|
|
|
|
"licenseFile": "node_modules/wide-align/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"word-wrap@1.2.3": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jonschlinkert/word-wrap",
|
|
|
|
"publisher": "Jon Schlinkert",
|
|
|
|
"url": "https://github.com/jonschlinkert",
|
|
|
|
"path": "node_modules/word-wrap",
|
|
|
|
"licenseFile": "node_modules/word-wrap/LICENSE"
|
|
|
|
},
|
2023-05-18 09:04:58 +02:00
|
|
|
"wrappy@1.0.2": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/npm/wrappy",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/wrappy",
|
|
|
|
"licenseFile": "node_modules/wrappy/LICENSE"
|
|
|
|
},
|
Feature image occlusion (#2367)
* add note types with occlusions and image fields
* generate image occlusion cloze div data
- generate div element with data-* atrributes for canvas shape generate for reviewer
* getting image data & deck id and adding notes
the implementation added into backend
- added service index in backend.proto for image occlusion request
- created image_occlusion.proto with required message and service
- implementation in backend for getting image and adding notes, also during editing return imagecloze note and update notes
- add notes to selected deck, if no notetype then add image occlusion notetypes
- reuse notetype from stock notetypes when not exist
* script for generating shapes using canvas api in reviewer
- the flash issues fixed by loading image and using image size to draw canvas, also when image get resized, calculate scale using natural width and canvas width to draw shape at right position
- limit size of canvas for safari
* init image occlusion page in ts and build page
with
- fabricjs for editing shapes
- panzoom for drag and zoom
- pickr for color picker
- build page using web.rs
* implement top toolbar for canvas shapes
- undo & redo tools
- zoom in, zoom out and zoom fit
- group & ungroup
- copy & paste
- set transparency of shapes
- align tools
* implement side toolbar for drawing shapes
add top toolbar and the side toolbar contains following tools
- cursor for selecting shapes
- zoom for drag and zoom shapes in mask editor
- rectangle for creating it
- ellipse for creating it
- polygon for creating it using points
- shape fill color
- question mask color (currently only single color can be added for all shapes)
* add maskeditor page for editing mask
- add side toolbar and sidebar include toptoolbar
- load maskeditor in two mode
- for adding note using path to image
- for editing note using note id
* implement note editor page for adding notes
- the note editor page have simple button (B/I/U) and option to toggle html view
- option to select deck for adding notes into that deck
- option to generate to hide all, guess one & hide one, guess one notes
* add image occlusion page
add side toolbar, top toolbar, mask editor and note editor
- option to switch between mask editor and note editor
* implement generates notes and save notes
implemention to show toast components for messages
* removed pickr & implemented color picker component
- remove pickr
- implemented using html5 canvas
- range input for changing color
- another range input for opacity changes
- hex and rgba value support
* rename methods name & rust unwrap safety
- change plural names to singular
- create respone message in proto and return response with imagecloze note or error if not found with note id
- remove image_occlusion from post handler list
- rename service name in mediasrv.py
- rename methods name for image occlusion in backend and image_occlusion
- update frontend also for update functions' names
- handle error in frontend mask-editor.ts, when error getting notes then toast message shown to frontend
* extract to function & add comments & remove global
- extract function in mask-editor.ts to reduce duplicate
- remove unused global from css
- add comments to store.ts explaining usage
- changes id to noteId in lib.ts
- add comments for limitSize, becuase of duplicate implementation
* remove image_occlusion notetype
- remove from stock notetype, stdmodels
- add implementation for notetype to image occlusion
- add i18n for errors
* update smooth scroll, always show cursor tools
- change questionmask to qmask
- make selectable for shape true in all tools to simplify edits and draw shapes
- update image occlusion in reviewer ts to load image properly
* add and get notetype else return errors
* fix: not showing occlusion
* Use a oneof for ImageClozeNoteResponse
Makes it clearer that only one of them can be returned
* Don't crash if image filename not provided
The second unwrap should be ok, as the input is utf8
* Refactor get_image_cloze_note
- fixes crash when note doesn't exist - Ok(None) case was not covered
- decouples business logic from native error->proto error conversion
- no need for original copy
- field[x] is more idiomatic than field.get(x).unwrap()
- don't need mutable access to fields
* Fix crash if image file unreadable
+ Use our read_file helper for better error context
* Add metadata() helper
* Fix crash if file metadata can't be read
* remove color picker, qmask and shape color
- remove strings from ftl
- remove color picker component
- remove from cloze generation
- remove icons for two buttons
- use constant color for shapes
* update color in reviewer and ftl strings
* fix shape position in canvas & add border to shape
- rename mask to inactive shape and active shape color
- border witdth and border color
- change decimal point deserializing string and toFixed(2)
- add thin border in mask editor, may be image background was transparent
* fix shape position in canvas after modified
- do not draw fixed ratio shapes by turn of uniformScaling
- fix rectangle width,height
- fix ellipse rx,ry,width,height
- fix polygon postion and points
- draw outside of canvas also
* fix border width and color in reviewer canvas
- rename variable
* refactor cloze div generate and remove angle
* fix origin when drawn outside of canvas from right
* fix shape at boundry & not include rx,ry rectangle
- move shapes at boundry when pointer is outside of canvas
- include rx, ry for ellipse only
- include points for polygon only
* fix lint errors & update image size in editor canvas based on height and width
* remove unsupported layerX & layerX for touchscreen
- fix shapes at edges
* implemented undo redo with canvas state
- implemented undo redo using fabric canvas events
- polygon is special case and implemented only added and modified event
- rectangle and ellipse have object:added, object:modified and object:removed case
- change id to undo and redo
* remove background image from canvas and used css to put image tag below canvas editor
- set image width and height after adding image
* fix for polygon points, add br in cloze strings, & toogle masks button
- fix shapes at edges
- toggle masks button to show/hide masks
- hide clozes string, it contains <br>
- set height for div container (used 'relative' in css)
* refactor top toolbar, add space and border radius
- rename cursor tools
- add left and right border
* fix undo after undo happen, use transparent color in draw mode
2023-03-29 04:33:19 +02:00
|
|
|
"ws@8.5.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/websockets/ws",
|
|
|
|
"publisher": "Einar Otto Stangvik",
|
|
|
|
"email": "einaros@gmail.com",
|
|
|
|
"url": "http://2x.io",
|
|
|
|
"path": "node_modules/ws",
|
|
|
|
"licenseFile": "node_modules/ws/LICENSE"
|
|
|
|
},
|
|
|
|
"xml-name-validator@4.0.0": {
|
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/jsdom/xml-name-validator",
|
|
|
|
"publisher": "Domenic Denicola",
|
|
|
|
"email": "d@domenic.me",
|
|
|
|
"url": "https://domenic.me/",
|
|
|
|
"path": "node_modules/xml-name-validator",
|
|
|
|
"licenseFile": "node_modules/xml-name-validator/LICENSE.txt"
|
|
|
|
},
|
|
|
|
"xmlchars@2.2.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/lddubeau/xmlchars",
|
|
|
|
"publisher": "Louis-Dominique Dubeau",
|
|
|
|
"email": "ldd@lddubeau.com",
|
|
|
|
"path": "node_modules/xmlchars",
|
|
|
|
"licenseFile": "node_modules/xmlchars/LICENSE"
|
2023-05-18 09:04:58 +02:00
|
|
|
},
|
|
|
|
"yallist@4.0.0": {
|
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/isaacs/yallist",
|
|
|
|
"publisher": "Isaac Z. Schlueter",
|
|
|
|
"email": "i@izs.me",
|
|
|
|
"url": "http://blog.izs.me/",
|
|
|
|
"path": "node_modules/yallist",
|
|
|
|
"licenseFile": "node_modules/yallist/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
}
|
2020-11-12 10:54:13 +01:00
|
|
|
}
|
|
|
|
|