Commit graph

553 commits

Author SHA1 Message Date
Hans5958
d4db79ac18 Revert to match migrator
@mxdanger, the current one would be 166 (migrator), please discuss if you want 164 instead
2022-05-05 16:16:58 +07:00
Hans5958
54e06ea212 Swap if start > end 3 2022-05-05 16:06:57 +07:00
Hans5958
d4fcc4d57d Swap if start > end* 2 2022-05-05 16:03:04 +07:00
Hans5958
06fc5d51df Swap if end > start 2022-05-05 15:09:56 +07:00
mxdanger
30f2f77126 Added snapping for time controls slider
The slider should snap to the default period (such as before the whiteout)
2022-05-05 00:20:56 -07:00
mxdanger
cdd80a2b51 Added period range tick marks
Updated drawable range
Added placeholder streamerless in variations config
2022-05-04 23:56:09 -07:00
mxdanger
d90c269179 Added .editorconfig
Use tab instead of spaces
2022-05-04 14:37:47 -07:00
mxdanger
8dc6914f4b Fixed iOS SubmitEvent submitter value
Related bug: https://bugs.webkit.org/show_bug.cgi?id=229660
2022-05-04 14:08:39 -07:00
mxdanger
a67e883e61 Fixed minor issues
Added minlength to subreddit input  as a redundancy
2022-04-30 22:22:18 -07:00
Hans5958
be9e74d838 Extract needed values when pasting Discord and subreddit links
If possible
2022-05-01 12:10:25 +07:00
Hans5958
a95d21c77c Fix regex match to remove invalids, more strict subreddit pattern 2022-05-01 11:50:12 +07:00
mxdanger
12a98f7154 Actually use proper button disable 2022-04-30 21:35:36 -07:00
Hans5958
9413a235de Use proper way for default values on args 2022-05-01 11:06:04 +07:00
Hans5958
abf9209359 Use proper button disable 2022-05-01 11:05:16 +07:00
Hans5958
251e6b7af8 Disable delete button when only 1 period
Disable it or hide it?
2022-04-30 11:52:11 +07:00
Hans5958
736db1bc98 Use different way to remove an array item 2022-04-30 11:50:14 +07:00
Hans5958
89c82f6785 Remember that you need to deep clone! 2022-04-30 11:36:00 +07:00
Hans5958
8728ca1d1b Fix period generation 2022-04-30 11:28:20 +07:00
mxdanger
55bc870531 Use form validator for preview button
Updated test entries to just the variant code "T" instead of "T:"
2022-04-29 15:58:56 -07:00
Hans5958
49f0e631cb Avoid another update on hash linking, allow code-only period on default
The code-only period is just "".
2022-04-29 21:11:01 +07:00
Hans5958
da47e0f3a8 Add linking specific period, support code-only periods
Code-only periods (such as T, excluding default even though it is possible) will take the default value.
2022-04-29 20:48:40 +07:00
Hans5958
50585d1686 Set path so it is positioned on top of center 2022-04-29 17:01:58 +07:00
Hans5958
d83e6d040b Move variation change logic to be earlier 2022-04-29 13:41:25 +07:00
mxdanger
f93e3d85fc Fixed detection of blank entry link
Shortened website text by removing "www."
2022-04-28 22:55:11 -07:00
Hans5958
5eb1c54cd7 Improve lead paragraph on about, update author, fix capitalization 2022-04-29 12:31:12 +07:00
Hans5958
786f2c1782 Disable debug log 2 2022-04-29 12:16:54 +07:00
Hans5958
ce2882e85b Disable debug log 2022-04-29 12:14:22 +07:00
Hans5958
89129347e2 Merge remote-tracking branch 'upstream/remaster' into remaster 2022-04-29 11:49:52 +07:00
Hans5958
16691ff691 Add set of drawable periods
(so whiteouts can't be selected oh man)
2022-04-29 11:49:28 +07:00
mxdanger
bea259334d Merge branch 'remaster' of https://github.com/placeAtlas/atlas into remaster 2022-04-28 21:40:32 -07:00
mxdanger
5e102a6d5f Clear reset button state on focus loss
Periods spacing changes
2022-04-28 21:40:16 -07:00
Hans5958
8c74460bf2 Show tooltip when setting period on draw 2022-04-29 11:37:25 +07:00
mxdanger
5634f58b8d Added preview button
Added another test entry
2022-04-28 21:16:33 -07:00
Hans5958
2fbd1afa66 Add per-group errors 2022-04-29 10:46:11 +07:00
Hans5958
54aed55574 Improve changing canvas on draw 2022-04-29 10:13:51 +07:00
mxdanger
01b07ffef6 Infoblock link text truncate 2022-04-28 11:50:30 -07:00
Hans5958
5b107599b4 Add domain on website links 2022-04-28 18:54:26 +07:00
Hans5958
252d39390f Convert svgs to font icons, use aria-hidden, add icons on links 2022-04-28 18:53:51 +07:00
Hans5958
e32435a1b1 Convert remaining /r/place to r/place 2022-04-28 17:43:03 +07:00
mxdanger
268e69cc04 Updated loading overlay 2022-04-28 02:44:46 -07:00
mxdanger
30ae06ceba Animated atlas shift
Fixed tooltip issue
2022-04-28 01:32:06 -07:00
mxdanger
2411f3a351 Updated time controls slider appearance 2022-04-27 14:13:25 -07:00
mxdanger
517a381cb6 Fixed timeline tooltip going off screen
* Fixed tooltip hover and focus activation
* Fixed "Entries List" typo
2022-04-27 12:40:27 -07:00
mxdanger
6beb77a3c5 Changed /r/place to r/place 2022-04-26 01:00:25 -07:00
mxdanger
0a6cfc0a54 Added entries overflow notice 2022-04-26 00:52:44 -07:00
mxdanger
6d074be100 Export entry flair label
* Added emphasis on flair label
* Updated flair label to be contextual based on new or edit
* Updated bottom bar layout
2022-04-25 23:58:07 -07:00
mxdanger
332684c604 Merge branch 'remaster' into interface 2022-04-25 16:56:23 -07:00
Hans5958
a7fb35e19e Make reset working
Resolves #1345
2022-04-24 15:18:24 +07:00
mxdanger
f9b990ec56 Fixed various issues 2022-04-24 00:51:41 -07:00
Hans5958
7196e47b0e Only do final for TFC, hide sliders when only one version is on the variation 2022-04-23 20:49:22 +07:00
Hans5958
3069717da9 Change attribution to "Place Atlas contributors" 2022-04-23 20:30:54 +07:00
Hans5958
8764f8e985 Use const 2022-04-23 20:29:22 +07:00
Hans5958
02a6ad3499 Remove console log comments 2022-04-23 20:28:32 +07:00
mxdanger
4332ba8224 Added object info inputs
Other changes:
* Accessibility improvements
2022-04-22 18:20:59 -07:00
mxdanger
7080605d03 Updated period editor
Other changes:
* Added r/place and TFC logo for period variation selector
* Updated to treat infoblock description newline and double newline separately
* Fixed textarea dynamic sizing
2022-04-21 23:10:03 -07:00
mxdanger
c34af77348 Merge remote-tracking branch 'upstream/remaster' into interface 2022-04-21 17:33:30 -07:00
mxdanger
48e471585f Update view.js 2022-04-21 10:56:50 -07:00
mxdanger
5823e27f67 Various additions/fixes
* Added wiki link to navbar
* Updated info block card header to be body color instead of link color
* Updated logo with no padding
* Updated logo to switch based on media query
* Fixed entries list to be hidden when drawing
* Fixed -webkit-backdrop-filter supports media query
2022-04-21 00:25:05 -07:00
mxdanger
c55d3b8b24 Major UI redesign 2022-04-20 01:54:58 -07:00
Hans5958
74b8073a7b Do stricter (and proper) subreddit regex 2
I forgot that I made it so it excludes underscore, here's a proper fix
2022-04-19 16:42:20 +07:00
Hans5958
1bca3bb9c5 Do stricter (and proper) subreddit regex
3-21 instead of 1-20
2022-04-19 16:34:52 +07:00
Hans5958
2f417e433a Optimize new center algo a little bit
incl. Don't use modules
2022-04-17 14:12:34 +07:00
Hans5958
91465afda1 Fix bugs of new center algorithm to make it work 2022-04-17 13:51:59 +07:00
Fabian Wunsch
c01610774d
Merge branch 'remaster' into new-center-algorithm 2022-04-17 08:31:51 +02:00
Hans5958
49a0c85c27 Fix pattern to compensate R/ on links object 2022-04-17 13:18:43 +07:00
Hans5958
80af47e5c1 Forgot to include Discord and wiki on export, small refactor
Also better regex from formatter
2022-04-17 13:08:30 +07:00
Hans5958
3833b208ea Do not draw is no path is defined when drawing 2022-04-17 12:37:31 +07:00
Hans5958
67998c479e Try to fix tooltip positioning 2022-04-17 12:27:53 +07:00
Hans5958
adcdc56a81 Avoid aborted errors 2022-04-17 09:53:43 +07:00
Hans5958
19b695734c Fetch layers in parallel instead of in series 2022-04-16 23:58:13 +07:00
Hans5958
264175811d Fix timestamp to be more accurate 2022-04-16 23:47:18 +07:00
Hans5958
44454490a7 30-minute r/place canvas
Images courtesy of Scaevolus#7213
Add extra images of the canvas, final from prod is now used
2022-04-16 23:06:42 +07:00
Hans5958
004f1157f9 The Final Clean canvases 2022-04-16 22:53:04 +07:00
Hans5958
bb27a82550 Attempt to fix inaccurate background updating 2022-04-16 22:26:37 +07:00
Hans5958
684f70270a Remove function that I somehow used but not defined 2022-04-16 22:26:37 +07:00
Hans5958
7fd620088c Fix blank pixel calculation 2022-04-16 22:26:37 +07:00
Hans5958
a384577050 Remove console logs, use info and error console logs 2022-04-16 22:26:37 +07:00
Hans5958
14151b639d Fix errors when nothing returned on updateCategory 2022-04-16 22:26:37 +07:00
Hans5958
2e728ef20f Fix no-var problems (ESLint), run formatter on JS 2022-04-16 22:26:37 +07:00
Hans5958
4be8a36839 Fix prefer-const problems (ESLint) 2022-04-16 22:26:37 +07:00
Hans5958
ca80770793 Add copying paths to other period groups 2022-04-16 22:26:37 +07:00
Hans5958
18edfdd867 Fix switching variations on draw mode fails 2022-04-16 22:26:37 +07:00
Hans5958
35bedfac34 Fix bug when period capping on 100
Co-authored-by: Fabian Wunsch <42294590+fabi321@users.noreply.github.com>
2022-04-16 22:26:37 +07:00
Hans5958
1afbd77b82 Layer based loading, use separate object for cache, deprecate timeConfig 2022-04-16 22:26:37 +07:00
Hans5958
bfb9764200 Match position when only 1 can be selected on slider
Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
2022-04-16 22:26:37 +07:00
Hans5958
f2671f2e9b Merge branch 'upstream/cleanup' into edit 2022-04-16 22:26:37 +07:00
Hans5958
12efb7608f Comment out console logs 2022-04-16 22:25:11 +07:00
Hans5958
d676dff31a Editing on canvas variations done, rename vars for clarity 2022-04-16 22:25:11 +07:00
Hans5958
81ba896e73 Viewing on canvas variations done 2022-04-16 22:25:11 +07:00
Hans5958
4648401a38 Put multiple periods in different groups, fix diff
Multiple periods part is untested
2022-04-16 22:25:11 +07:00
Hans5958
e11ba73337 Fix reappearing atlas outlines on explore 2022-04-16 22:25:11 +07:00
Hans5958
bbcf813bde Discord and Reddit fields, bug fix on drawing new entries, auto-resize text area 2022-04-16 22:25:11 +07:00
Hans5958
cdc4e4458c Implement links object, convert old format to new on init
Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
Co-authored-by: mxdanger <32040254+mxdanger@users.noreply.github.com>
2022-04-16 22:25:11 +07:00
Hans5958
9df8c3dd8a Update time when atlas loaded
Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
2022-04-16 22:25:11 +07:00
Hans5958
34fcec8aa3 Fix bugs from Fabi
Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
2022-04-16 22:25:11 +07:00
Hans5958
347d2f9dff Improvements on validator
Should now detect conflicts/overlaps and insufficient paths
2022-04-16 22:25:11 +07:00
Hans5958
ab00863b73 Make exporting and view work 2022-04-16 22:25:11 +07:00
Hans5958
14f1ec4afa Fix broken undo button
Reporter below

Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
2022-04-16 22:25:11 +07:00
Hans5958
a13b9b2a3a Bring back time changing when changing start/stop, improve disable drawing 2022-04-16 22:25:11 +07:00
Hans5958
ee9edb8031 Further improvements 2022-04-16 22:25:11 +07:00
Hans5958
9639c9ee4f Make base work for new entries 2022-04-16 22:25:11 +07:00
Hans5958
a6868219fd Implement base of period groups 2022-04-16 22:25:11 +07:00
Hans5958
225d44b146 Use URLSearchParams, keep using search params for edit id 2022-04-16 22:25:11 +07:00
Hans5958
e8fc67f91d Add style on highlight checkbox, sync period to be edited 2022-04-16 22:25:11 +07:00
Hans5958
1070a5aa65 Add support for overlap, remove debug logs 2022-04-16 22:25:11 +07:00
Hans5958
2d20e0931d Add entry periods 2022-04-16 22:25:11 +07:00
Hans5958
dd5e809e4f Support editing, return to previous step instead of resetting 2022-04-16 22:25:10 +07:00
Hans5958
84a8e4c141 Tiny refactor, do not wait until fetch for updating tooltip 2022-04-14 21:05:45 +07:00
Hans5958
0a1d5c01ee Forgot to fix resize fix
Please no Netlify gimmicko again
2022-04-14 21:05:45 +07:00
Hans5958
0744836aa6 setTimeout instead of setInterval 2022-04-14 21:05:45 +07:00
Hans5958
904fee390b Improve canvas loading
A
2022-04-14 21:05:45 +07:00
Fabian Wunsch
3476089dcb Removed debug output 2022-04-12 17:32:30 +02:00
Fabian Wunsch
aa227a612e Included tinyqueue 2022-04-12 17:31:35 +02:00
Fabian Wunsch
1e52cdaa95 Added algorithm customizations 2022-04-12 17:29:40 +02:00
Fabian Wunsch
53a92f29c3 First actually somewhat working js version 2022-04-12 16:56:34 +02:00
Fabian Wunsch
4ae1bab064 final import fix 2022-04-12 16:45:07 +02:00
Fabian Wunsch
def634aec8 Several import fixes 2022-04-12 16:21:14 +02:00
Fabian Wunsch
8bf6b23524 Firs try at getting the original polylabel.js to work 2022-04-12 16:08:47 +02:00
Hans5958
104e003b74 Fixing the ghost shifting, once and for all
Resolves #1232
2022-04-11 20:44:58 +07:00
Wayland-Smithy
64f957eab6 Do not forget about overlap 2022-04-11 19:52:07 +07:00
Wayland-Smithy
f00f68a17a Hash (tag) takeover 2022-04-11 19:52:07 +07:00
Wayland-Smithy
e86d3f4258 Use hash for id highlight 2022-04-11 19:52:07 +07:00
AnonymousRandomPerson
e0728154ad Merge branch 'master' into cleanup 2022-04-10 14:13:14 -04:00
Stefano
2008edd35a
Merge branch 'master' into timeline-tooltip 2022-04-10 12:23:11 +02:00
Stefano
4306b49ff0
Merge branch 'master' into logo 2022-04-10 11:44:04 +02:00
Hans5958
b1d87f1e30 Add tooltip on timeline 2022-04-10 14:03:08 +07:00
mxdanger
c4cc72faad Updated logos, favicon, and metadata 2022-04-09 23:32:42 -07:00
Stefano
fa8c58164f
Merge pull request #1158 from fabi321/update-center
Update center of entries
2022-04-09 22:49:17 +02:00
Fabian Wunsch
93dc57d618 Small bugfix in js 2022-04-09 21:22:56 +02:00
Fabian Wunsch
bf834a6565 Cleaned up calculateCenter function
While I still don't understand what it's doing exactly, I noticed that
the 2 iterations of the loop are unnecessary, and afterwards found out
that the change to area is equal to f. Furthermore I replaced the `~~`
flooring with Math.floor for better readability, since this function
get's executed once per submission and the speed benefits of `~~` are
neglectable.
2022-04-09 21:04:08 +02:00
Hans5958
2dadfdb255
Port 63ed091
I forgor
2022-04-09 22:49:27 +07:00
Hans5958
4ce2afb60b Console logs haven't been removed?! 2022-04-09 17:24:30 +07:00
Hans5958
a870d33cf8 Refactor to avoid code duplicates 2022-04-09 16:33:10 +07:00
Hans5958
331e7bdb5a Use arguments on one log
You can use arguments on console log and you can access the error like normal
2022-04-09 16:33:10 +07:00
Hans5958
f6b89ac7c1 Remove redundant here and link "our Discord server" instead 2022-04-09 16:33:10 +07:00
Hans5958
7b2e9af945 Improve Donation window 2022-04-09 16:33:10 +07:00
Hans5958
0dad9761dc Use commas instead of x for coords
Since the coords shown on top left is in comma
2022-04-09 16:33:10 +07:00
Hans5958
98e60fc14b Avoid creating duplicates on diff mode
So we don't have more than 2x as much of entries on this mode
2022-04-09 16:33:10 +07:00
Hans5958
d7861baff3 Finally make explore mode work, small refactor
Oh man, these element structures were quite inefficient...
2022-04-09 16:33:10 +07:00
Hans5958
ae4ca99262 Redirect error reports to Discord 2022-04-09 16:33:10 +07:00
Hans5958
804159e116 Reduce copyright notice, add 2022 contributors, add missing notice
The lengthy boilerplate is unnecessary, especially since it is already linked. The type of license can stay there instead.
2022-04-09 16:33:10 +07:00
Hans5958
a19ee7d65a Use HTTPS link to license 2022-04-09 16:33:09 +07:00
Hans5958
b20ebed52d Fix prod domain 2022-04-09 16:33:09 +07:00
Hans5958
7c1fcf06e3 Hide diff on prod domain 2022-04-09 16:33:09 +07:00
Hans5958
2723f9ed17 Convert it into dropdown 2022-04-09 16:33:09 +07:00
Stefano
bb5db95158
Merge branch 'master' into diffdel 2022-04-08 23:37:02 +02:00
Stefano
d47d95e93b
Merge branch 'master' into feature/passive_scroll 2022-04-08 23:34:13 +02:00
unknown
68f5f8b5e5 Improved diffview 2022-04-08 17:12:39 -03:00
unknown
f5b84f2331 Collapsable coordinate box 2022-04-08 14:39:10 -03:00
unknown
be7e1ec28d Coord box 2022-04-08 13:39:41 -03:00