Commit Graph

239 Commits (deepcrayonfish)

Author SHA1 Message Date
romnzs 5923082eb3 Move coord color definition to CSS 2021-11-05 16:14:13 +01:00
Benedikt Werner d88d82484f
editor: Fix selected turn on load 2021-08-21 08:06:21 +02:00
Niklas Fiekas c9094c0f42 update to chessops 0.10.0 (factored out variant name compat) 2021-08-17 18:06:00 +02:00
Benedikt Werner 21d5085c7d
Keep variant when opening editor (#9508)
* Keep variant when opening editor

* Prettier

* Handle underscores in initial editor fen

* Prettier
2021-08-09 08:50:40 +02:00
Benedikt Werner 25bc8beaed
Editor: Set values as prop instead of attr - fixes #6075 2021-07-31 13:13:01 +02:00
Benedikt Werner 593059146f
Change <a> without href to <button> 2021-07-21 22:46:56 +02:00
Thibault Duplessis c801cd46d3 refactor ui modals - after #9380 2021-07-16 14:56:47 +02:00
Sam Ezeh 6f44d923af
Run yarn run format 2021-06-27 18:04:52 +01:00
Sam Ezeh c2073e722e
Add endgame positions to board editor 2021-06-27 18:01:39 +01:00
Andrew Mazur e4db7c25e6
Icons private use area (#9136)
* move all glyphs to private area

* replace exclamation mark icon

* replace quotation mark icon

* replace rapid icon

* replace share icon

* replace patron icon

* replace gear icon

* replace phone icon

* replace streak icon

* replace die-six and ograve icons

* replace flag icon

* replace flame icon

* replace feather icon

* replace turtle icon

* replace nuclear icon

* replace arrow-streamline-target icon

* replace buffer icon

* replace upload-cloud icon

* replace number and some special characters icons

* replace upper case alphabet characters icons

* replace alphabet characters icons and a few special characters icons

* fixing some missing icons

* notifications icons fix

* a few more icons found

* changing a few more icons
2021-06-14 09:13:27 +02:00
Benedikt Werner e5bf76fc12
Types for LichessEditor 2021-04-21 15:20:01 +02:00
Niklas Fiekas eae0af47fe Keyboard extension is to blame, not this patch.
Revert "Revert "use more const wherever possible""

This reverts commit e997b87efb.
2021-04-08 10:38:18 +02:00
Niklas Fiekas e997b87efb Revert "use more const wherever possible"
This reverts commit b2cca042d9.
2021-04-08 10:36:04 +02:00
Niklas Fiekas b2cca042d9 use more const wherever possible
Relies on const hoisting in same cases. Checked that code already
assumes initialized variables.

Checked that initialization order in snabbdom modules remains the same,
by always using the following structure: Instanciate ctrl, initial patch,
declare redraw function.
2021-04-07 19:35:57 +02:00
Thibault Duplessis 4cf85456d6
Merge pull request #8546 from kraktus/register_puzzle
small bug fixes
2021-04-05 16:04:33 +02:00
topce d7b8491b8e fix no-duplicate-imports 2021-04-05 09:10:35 +02:00
topce a121f75636 fix format 2021-04-03 20:48:37 +02:00
topce 169c9ed280 upgrade to snabbdom
fix soome minor issues
2021-04-03 20:36:53 +02:00
kraktus 148e142d69 flip extra pieces immediately in `editor` when flipping the board
fix https://github.com/ornicar/lila/issues/8525
2021-04-02 17:13:52 +01:00
Thibault Duplessis d0a566fc03 I18nDict TS type 2021-03-27 14:04:28 +01:00
Niklas Fiekas 1374ea5ee4 prettier: format all files 2021-02-06 14:52:33 +01:00
Thibault Duplessis 84baff4cb0 upgrade mousetrap and related code 2020-09-28 12:02:45 +02:00
Thibault Duplessis af7dd0d2f2 s/window.lichess/lichess, remove const li 2020-09-13 09:40:24 +02:00
Thibault Duplessis 5c46100b9e JS tweaks and optimizations 2020-09-05 16:42:05 +02:00
Thibault Duplessis 45a420a2ab move modal to ui/common 2020-09-05 08:05:56 +02:00
Thibault Duplessis 945d6e32df JS components 2020-09-01 10:21:03 +02:00
Niklas Fiekas c02a0e8eda strict boolean return for TouchEvent 2020-07-17 16:26:33 +02:00
Thibault Duplessis 0f14fb5db9 apply arrow snap preference to board editor 2020-07-15 16:01:52 +02:00
Niklas Fiekas 7639ac9c08 update to chessground 7.8 (dests and pieces map) 2020-07-07 14:16:00 +02:00
Niklas Fiekas b22242668a clean up LichessEditor init 2020-07-01 11:10:19 +02:00
Niklas Fiekas 61fdfa63e7 editor: remember selected variant in browser history 2020-06-18 18:28:43 +02:00
Niklas Fiekas 9f9a2086e1 Revert "work around desynced snabbdom prop after page back to editor"
This reverts commit 3b8c5b2475.
2020-06-18 18:13:53 +02:00
Niklas Fiekas 3b8c5b2475 work around desynced snabbdom prop after page back to editor 2020-06-06 12:29:42 +02:00
kraktus 1f48eef169 Rename `coordsColour` to `coordsColor`
And it function `changeColourHandle` renamed to `changeColorHandle`
2020-04-26 21:57:20 +01:00
kraktus 493644de05 Code tweak 2020-04-26 21:11:42 +01:00
kraktus a852d4c3c1 Change color of inboard coords for the editor 2020-04-26 09:42:10 +01:00
Selman Ercan 78ca3b9f94 Added 'Clear board' button (#5742)
* Added 'Clear board' button

* Added 'Clear board' button
2019-12-12 09:17:48 -06:00
Niklas Fiekas aede13735f translate /study/as 2019-12-03 21:23:18 +01:00
Niklas Fiekas 6eb97bd27b fix missing redraw when selecting trash in editor 2019-11-26 14:13:52 +01:00
Niklas Fiekas fa65932d75 do not append initial fen to url 2019-11-24 16:23:02 +01:00
Niklas Fiekas 2b23a719a0 do not call history.replaceState from embed 2019-11-24 16:21:26 +01:00
Niklas Fiekas 4dbed3f5ac playable already entails check for standard chess 2019-11-24 02:10:41 +01:00
Niklas Fiekas 1f79bb3a40 fix copy & paste error with castling toggles 2019-11-24 02:09:49 +01:00
Niklas Fiekas f744fcd5b5 minor tweaks for editor ctrl 2019-11-23 21:55:19 +01:00
Niklas Fiekas 9f8e81141c also pass invalid fens to onChange 2019-11-23 21:30:27 +01:00
Niklas Fiekas ed37b11c41 restore placeholder in position selection 2019-11-23 21:24:57 +01:00
Niklas Fiekas 5dc2a98f23 history.replaceState for editor 2019-11-23 21:20:52 +01:00
Niklas Fiekas c35770afce fix editor position selector 2019-11-23 21:15:17 +01:00
Niklas Fiekas c26d7e19f9 fen input improvements 2019-11-23 20:41:15 +01:00
Niklas Fiekas c7bef6beb8 use snabbdom/props for fen input 2019-11-23 20:18:21 +01:00