Make the text field of the text tool appear at the position where the text will be written.
* improved Text tool
* ignore layers for now
* only assert value is not null or undefined / allow 0 as value
* remove unused layer code
* Reformat text.js
Co-authored-by: Robert Beach <rdbeach@gmail.com>
Co-authored-by: @finnboeger
* Initial Changes (#1)
* Move socket event handlers and initial connection to connect function
* Converted await statements to .then()
* Toggle tool if clicked again and toggling option exists
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
Co-authored-by: Robert Beach <rdbeach@gmail.com>
* Updated client styles
- disable selecting text in tool menu
- change design of tool boxes to be square and smaller
- reduce text size in sliders
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Changed Apple Touch Icon
* Update size and opacity icon, include fontawesome for future use
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Changed favicon svg
* replace font-family with valid value
* Added icons and icomoon font
* change eraser and zoom icon
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
* Revert icon change for now
* Revert "Converted await statements to .then()"
This reverts commit b35e0207df.
* Revert "Revert icon change for now"
This reverts commit 34e354f00f.
* Restored new Icons
* Restored favicon
* Remove fontawesome
* Increase icon sizes
* Update the zoom icon
See https://github.com/lovasoa/whitebophir/pull/39#issuecomment-619524098
* set display inline block for tool names, otherwise firefox doesn't respect margin-bottom
* Rework tool icons
* fix color presets position
Co-authored-by: finnboeger <finnboeger@users.noreply.github.com>
Co-authored-by: Robert Beach <rdbeach@gmail.com>
Co-authored-by: Finn Böger <finnboeger@googlemail.com>
The behavior of `Date.parse` is implementation-dependent and hence
cannot be relied on for security purposes. In particular, the
implementation in Node.js does accept strings such as
`../../../etc/foobar-0` as valid (thanks to the trailing digit).
The failure to properly validate the filename is not exploitable, as
slashes will never be contained in `parts[2]` thanks to the foregoing
`split`, but it is probably still better to have a proper validation in
place.
* Do not install on run
The docker image should contains already resolved dependencies.
No need for a start.sh, you could just run node directly.
* Simplify Dockerfile