Commit graph

795 commits

Author SHA1 Message Date
Nolan Lawson 11dcaf0cf3
Remove PseudoVirtualList (#385)
* start on removing pseudo virtual list

* rename, refactor

* remove unused file

* fix the tests

* actually fix tests

* okay actually fix tests
2018-06-09 22:55:58 -07:00
Nolan Lawson eeff84a587
Fix text overflow on status headers (#383)
* Fix text overflow on status headers

* fix tests

* really fix tests
2018-06-09 15:04:47 -07:00
Nolan Lawson e8d2cd9ffc
tests: quicker login, tweak test setup (#372)
* make tests faster by logging in directly

* downgrade testcafe

* Revert "downgrade testcafe"

This reverts commit 0f78f5ef63f25b6428de2faba476a353a338c695.

* try a delay

* the delay does not do anything

* disable concurrency in testcafe

* make setup script less noisy

* try transparency of 2?

* Revert "the delay does not do anything"

This reverts commit 438b3519a4e0c325e89f0c2a0eff6a7a4ae11ebd.

* try a delay of 400ms

* okay fine delay of 1s

* try concurrency of 4 again
2018-06-08 09:00:20 -07:00
Nolan Lawson df6323fba3
switch from copy icon to link icon (#343)
fixes #325
2018-05-26 17:23:27 -07:00
Nolan Lawson efdb0bc534
Remove testcafe roles and run in parallel x4 (#334)
* more attempts to fix test flakiness

* remove testcafe roles entirely

* really remove testcafe roles

* run testcafe in parallel x2

* run testcafe in parallel x4

* fix online/offline forcing in tests

* fix pin test
2018-05-26 13:51:41 -07:00
Nolan Lawson a51477b501
fix timelineType state read (#310) 2018-05-18 18:33:20 -07:00
Nolan Lawson 8035662f93
fix minor design issue (#297) 2018-05-13 18:53:37 -07:00
Nolan Lawson 2b309b242c
close first dialog when opening copy dialog (#292) 2018-05-13 11:13:35 -07:00
Nolan Lawson ad84adaf63
add ability to mute conversation (#291)
fixes another thing from #6
2018-05-12 22:49:01 -07:00
Nolan Lawson 3d8cdcd649
only allow public/unlisted statuses to be pinned (#290)
fixes #264
2018-05-12 15:45:50 -07:00
Nolan Lawson c0d0b4dd36
add option to copy link to clipboard (#289)
Fixes #288
2018-05-12 15:00:11 -07:00
Nolan Lawson fa4dd59f01
wrap code in dev block (#286) 2018-05-12 14:01:25 -07:00
Nolan Lawson 5a1e10dee0
refactor some stuff (#274) 2018-05-06 17:35:22 -07:00
Nolan Lawson 07fb5e867c
isolate autosuggestion state (#273)
fixes #261
2018-05-06 16:25:17 -07:00
Nolan Lawson a88fb70542
remove unnecessary sveltejs/svelte#1354 workarounds (#269) 2018-05-04 20:09:20 -07:00
Nolan Lawson 9e9a897ede
fix nav bar for pinned lists (#263) 2018-05-03 21:24:10 -07:00
Nolan Lawson b1a3be06ff
fix null in virtual list item (#260) 2018-05-03 20:41:55 -07:00
Nolan Lawson b7c90a4206
add animation for navigation bar indicator (#257) 2018-05-02 21:32:43 -07:00
Nolan Lawson ffa5dcb3ec
remove unnecessary item wrapping (#254)
* remove unnecessary item wrapping

* fix lint
2018-05-01 21:05:15 -07:00
Nolan Lawson 42be854521
upgrade to svelte 2.0 (#251)
* upgrade to svelte 2.0

* update svelte-loader to 2.9.0
2018-05-01 17:05:36 -07:00
Nolan Lawson 429df7fbc5
fix more svelte undefined warnings (#250) 2018-04-30 19:06:08 -07:00
Nolan Lawson 814716cc8d
remove deprecated observe() from stores, take 2 (#249) 2018-04-30 17:20:20 -07:00
Nolan Lawson dbba271f39
fix some svelte data warnings (#247) 2018-04-30 09:57:49 -07:00
Nolan Lawson f9792ae3d8
remove deprecated .observe() from components (#246) 2018-04-30 08:29:04 -07:00
Nolan Lawson c309e5842d
slightly improve Svelte 2.0 compatibility (#244)
* slightly improve Svelte 2.0 compatibility

* fixup

* fix lint
2018-04-29 22:13:41 -07:00
Nolan Lawson 8229d1c9e6
use svelte shorthand wherever possible (#242) 2018-04-29 18:42:03 -07:00
Nolan Lawson c4182c9ddc
remove unnecessary helpers (#241) 2018-04-29 18:41:56 -07:00
Nolan Lawson a368294b43
fix for malformed notiications (#238)
fixes #217
2018-04-29 18:41:47 -07:00
Nolan Lawson 9629a55a9f
remove all instances of string coercion (#240) 2018-04-29 17:45:03 -07:00
Nolan Lawson 40a9ff957a
fix null error in virtual list items (#239) 2018-04-29 17:33:58 -07:00
Nolan Lawson de7bc7e43d
avatar should not have gray background (#237)
fixes #233
2018-04-29 16:57:12 -07:00
Nolan Lawson 8089202977
add ability to pin and unpin statuses (#235)
* add ability to pin and unpin statuses

* add another test
2018-04-29 12:28:44 -07:00
Nolan Lawson ffb00fcc5c
approve/reject follow requests, unblock, unmute (#230)
* approve/reject follow requests, unblock, unmute

* make tests less flaky
2018-04-28 14:19:39 -07:00
codl 562d0d2774 emoji style fixes (#227)
* emoji style fixes

* fixes non-square emoji being stretched to fit a square, both in
  statuses and in autosuggestions
* sizes emoji proportionally to text, so emoji won't look all tiny in
  expanded statuses
* emoji sizing and positioning similar to mastodon web

* prevent emoji from pushing down the line below them
2018-04-27 18:19:37 -07:00
Nolan Lawson 75b4d09b64 remove AsyncLayout in favor of rAf + gBCR 2018-04-27 18:16:57 -07:00
Nolan Lawson 8a46f3b3d1 add test and aria-label 2018-04-26 22:37:39 -07:00
Nolan Lawson 7ec109c6af fix style nit 2018-04-26 22:37:39 -07:00
codl 03e0ac72d2 add lists of follows and followers 2018-04-26 22:37:39 -07:00
codl 7abf76f7f9 remove statusid parameter in muted and blocked lists (#213) 2018-04-22 11:20:05 -07:00
Nolan Lawson 6bd4b05a98
fix more bugs in autocomplete (#208)
* fix more bugs in autocomplete

fully fixes #170

* fixup

* fix tests
2018-04-21 14:57:02 -07:00
Nolan Lawson 12131bd807
refactor dialogs to be individually async (#206) 2018-04-21 09:56:53 -07:00
Nolan Lawson 1151a3be4b
fix null in Timeline.html get() (#205) 2018-04-21 09:56:45 -07:00
Nolan Lawson 78f44c7b51
make timeline components async (#204) 2018-04-21 08:45:41 -07:00
Nolan Lawson 36b8f15ba6
clean up icon animations (#203) 2018-04-21 08:32:40 -07:00
Nolan Lawson e4d2934c67
fix themes (#199)
Fixes #194
2018-04-21 00:33:42 -07:00
Nolan Lawson ec138f94ce
fix requestIdleCallback in edge/safari (#198)
Fixes #195
2018-04-21 00:33:36 -07:00
Nolan Lawson 286a93ecba
simplify Status.html using spread params (#190)
* simplify Status.html using spread params

* fixup
2018-04-21 00:33:30 -07:00
Nolan Lawson b72ed87c25
refactor Media.html (#191) 2018-04-20 10:36:20 -07:00
Nolan Lawson 64973757a3
slightly refactor compose box (#192) 2018-04-20 10:36:05 -07:00
Nolan Lawson 581a0fcd00
fix multiple compose autosuggest dropdowns (#188)
* fix multiple compose autosuggest dropdowns

Fixes #170

* fix failing test

* remove console.log
2018-04-20 06:26:36 -07:00
Nolan Lawson 77ba91c712
fix animations and cleanup store/component get() usage (#185)
fixes #181
2018-04-19 21:38:11 -07:00
Nolan Lawson bfc3c46462
use standard to lint HTML too (#186) 2018-04-19 21:38:01 -07:00
Nolan Lawson 79b848df2c
fix requestIdleCallback not defined in Edge (#180) 2018-04-19 10:35:34 -07:00
Nolan Lawson ebcade8035
constrain gif backgrounds (with modifications) (#176)
* constrain gif backgrounds. fixes #159

* nit: move background-* styles to AutoplayVideo.html
2018-04-19 10:04:44 -07:00
Nolan Lawson 8d5690d63d
remove get() with string from Svelte calls (#169)
* remove get() with string pt 1

* remove get() with string pt 2

* fix typo

* fix some null exceptions in get()

* fixup code style
2018-04-19 09:37:05 -07:00
Nolan Lawson 18c3064801
fix favicon logic (#175) 2018-04-19 09:34:56 -07:00
Nolan Lawson 7f5bea8f5b
remove deprecated store.onchange (#168) 2018-04-18 23:48:13 -07:00
Nolan Lawson a24177b62a
remove "class" prop in favor of "className" (#167) 2018-04-18 23:48:06 -07:00
Nolan Lawson e431c29efa
update and pin all deps (#164) 2018-04-18 20:43:13 -07:00
Nolan Lawson 2d5714a2ea
simplify ajax.js implementation (#157)
* simplify ajax.js implementation

* fix typo
2018-04-17 22:08:15 -07:00
Nolan Lawson 74ea773c25
remove lodash forEach to reduce bundle size (#156) 2018-04-17 21:47:39 -07:00
Nolan Lawson 7c548018c1
Simplify click delegate implementation (#155) 2018-04-17 21:47:30 -07:00
Nolan Lawson 00e71293d6
fix autosuggestion mixed with emoji (#154)
fixes #140
2018-04-17 18:38:36 -07:00
Nolan Lawson 980fec15ec
fix favorites/boosts reversed aria labels (#153)
Fixes #146
2018-04-17 18:38:27 -07:00
Maxime Le Conte des Floris eef54e992b focus container on page load (#116)
* focus container on page load

* only focus container on first page load

* add test for container focus on page load

* fix typo
2018-04-17 09:42:10 -07:00
Nolan Lawson b231466fff
Refactor database for better code-splitting (#144) 2018-04-16 20:56:21 -07:00
Nolan Lawson 8fb00a961c
refactor to avoid unnecessary emojify computations (#143) 2018-04-16 20:54:16 -07:00
Nolan Lawson 0efafdec90
only show "you are offline" notification once (#137)
Fixes #34
2018-04-15 16:00:16 -07:00
Nolan Lawson 300a399655
Mark permalinks with icons accessibly (#138)
Fixes #128
2018-04-15 16:00:09 -07:00
Nolan Lawson a21541ce4b
hide overflow menu for same-user profile (#136)
Fixes #130
2018-04-15 15:39:54 -07:00
Nolan Lawson e23aa97cf2
make PseudoVirtualList sync rather than async (#133)
Attempt to address #92
2018-04-15 14:43:41 -07:00
Nolan Lawson 7ff45dfb3f
mute and unmute accounts (#127) 2018-04-14 22:18:48 -07:00
Nolan Lawson 732d1fded4
Block and unblock an account (#125)
One of the many features listed in #6
2018-04-14 18:47:55 -07:00
Nolan Lawson 6230c2703e
content warnings can have emoji (#122)
fixes #105
2018-04-14 15:50:06 -07:00
Nolan Lawson a6e737bdbb
remove page flash due to LazyPage.html (#120) 2018-04-14 14:50:53 -07:00
Nolan Lawson 29c38c1f83
Don't show media in notifications (#112)
Fixes #70
2018-04-14 14:18:19 -07:00
Nolan Lawson dc91dbd1e7
fix excessive itemIdsToAdd updates (#117)
fixes #40
2018-04-14 11:52:47 -07:00
Nolan Lawson ff8e92df6c
preload content in CW (#110)
* preload content in CW

Fixes #63

* fix test
2018-04-14 10:47:53 -07:00
Nolan Lawson 707e89e899
faster hydrateContent() algorithm, add test (#109) 2018-04-14 10:08:43 -07:00
Nolan Lawson 6be77a6b25
Fix spinner button spinning background (#113)
Fixes #107
2018-04-14 10:07:45 -07:00
Maxime Le Conte des Floris e52130f1c8 add toot-cafe theme (#108)
* add toot-cafe theme

* rename "toot-cafe" theme to "sorcery"
2018-04-14 09:43:30 -07:00
Nolan Lawson fdcf2bc46b
fix blurry modal dialog on chrome/safari (#101)
Fixes #71
2018-04-13 09:46:47 -07:00
Nolan Lawson a208e5dedb
fix warning about max EventEmitter listeners (#100) 2018-04-13 09:46:38 -07:00
Nolan Lawson aaf0a16a48 remove mistaken code comment
[skip ci]
2018-04-12 22:30:40 -07:00
Nolan Lawson d2c5839873 tweak style for small devices 2018-04-12 22:13:05 -07:00
Nolan Lawson a82c44c21f
Replying returns focus to reply button (#98)
Fixes #42
2018-04-12 21:18:14 -07:00
Nolan Lawson a875386539
fix image hover description on Firefox (#97)
Fixes #57
2018-04-12 21:18:06 -07:00
Nolan Lawson b8d862618a
Use display:none for virtual list header (#96)
Fixes #59 by using display:none instead of opacity/pointer-events tricks while still showing an animation
2018-04-12 21:17:57 -07:00
Nolan Lawson 2c6576e09d
Fix compose button covering content (#95)
Fixes #43 for browsers that support fit-content
2018-04-12 20:23:38 -07:00
Nolan Lawson 7853285eea
Fix scrollTop jiggle in Firefox (#94)
Fixes #64
2018-04-12 19:58:18 -07:00
Nolan Lawson 3786473e34
Simplify PseudoVirtualList (#93)
Possible fix for #92
2018-04-12 19:38:41 -07:00
Nolan Lawson 7ece5d7ffc fix css typo 2018-04-12 19:37:37 -07:00
Nolan Lawson 84148912ee
Fix spoilers being posted after removal (#90)
Fixes #83
2018-04-11 22:55:11 -07:00
Nolan Lawson 1ad72f00c2
fix optimistic follow button (#91)
Fixes #85
2018-04-11 22:55:04 -07:00
Nolan Lawson 95c3349db7 fix bug where favicon changes incorrectly 2018-04-11 20:30:38 -07:00
Chris c8687635e8 add cobalt blue theme (#78)
* added cobalt blue theme

* lighten nav items
2018-04-11 20:11:47 -07:00
Nolan Lawson bdf658f54c fixup minor style nitpicks
[skip ci]
2018-04-11 20:01:45 -07:00
codl 8e08d08712 send status on ctrl+enter (#81)
* send status on ctrl+enter (#24)

* don't check for floating post button when pressing ctrl+enter

oops, I was too eager. it doesn't matter too much, except that if the
main compose form is off-screen but still focused, ctrl+enter would open
the compose modal instead of posting
2018-04-11 20:01:17 -07:00
Nolan Lawson a150613b53 tweak css variable names
[skip ci]
2018-04-11 19:53:43 -07:00
Spanky bdf547b561 made a variable for the AccountProfile page for its color overlay of the header image. (#84) 2018-04-11 19:47:24 -07:00
codl 6fcecce311 allow scroll-to-top to be canceled by a user scroll (#79) 2018-04-11 19:43:22 -07:00
Nolan Lawson 55782a5331 detect "selected" when doing smooth scroll to top 2018-04-10 23:15:22 -07:00
Maxime Le Conte des Floris 660362ed46 feat: click on curent column nav button to go to the top of the timeline 2018-04-10 23:15:22 -07:00
Nolan Lawson 9bfa2cf013 add perf mark for clicking spoiler button
[skip ci]
2018-04-10 22:30:22 -07:00
Nolan Lawson d95de24df5 add note about ad blockers / tracker blockers
[skip ci]
2018-04-10 22:14:10 -07:00
Nolan Lawson 7aceaa4d8c
remove role=alert from "show more" button (#68)
Possible solution for issue #59
2018-04-10 22:09:07 -07:00
Nolan Lawson 70b03eb56e
fix headings for timelines (#67)
Adds an sr-only class to make this easier in the future. Also fixes a missing aria-label.

Fixes #44
2018-04-10 22:08:14 -07:00
Nolan Lawson 9d706a3748
Add img title as well as alt (#66)
Fixes #57
2018-04-10 20:02:42 -07:00
Spanky 3a7d887531 Added 'Ozark' dark blue color theme (#62)
* added Ozark theme, based off of a personal color scheme I use elsewhere.

* fixed incorrect main color value
2018-04-10 20:02:28 -07:00
Nolan Lawson 494f906701
increase fetch timeout to 60 seconds for now (#55)
Fixes #29
2018-04-09 18:33:23 -07:00
Nolan Lawson 7ae3212c55
Fix alts for image uploads (#54)
* Fix alts for image uploads

Fixes #41

* fix alts mixed with no-alts
2018-04-09 18:30:15 -07:00
Maxime Le Conte des Floris 2b143ebeeb fix: allow trailing slash in instance name (#52)
Fix #31: allow trailing slash in instance name
2018-04-09 15:09:58 -07:00
Nolan Lawson 1f5a0c3694 add note about intro blog post 2018-04-09 09:35:58 -07:00
Nolan Lawson b2097d33d3 Fix typo that broke Pleroma
Fixes #26
2018-04-09 09:29:15 -07:00
Nolan Lawson ea717b74e3 loading bg for avatars 2018-04-08 17:36:05 -07:00
Nolan Lawson eb8cd5f83d simplify and refactor dialogs using event bus 2018-04-08 16:56:20 -07:00
Nolan Lawson bcc7fb47ef start using an event bus 2018-04-08 15:08:32 -07:00
Nolan Lawson ee8cda5d66 fix modifying replies to statuses 2018-04-08 13:42:31 -07:00
Nolan Lawson e7b1b2ba31 mentions open modal compose box 2018-04-07 00:21:00 -07:00
Nolan Lawson b8d93a5d96 add try catch for closing compose dialog 2018-04-06 08:49:15 -07:00
Nolan Lawson fe8ad175f2 more elegant fix for autosuggestion covering toolbar 2018-04-05 21:35:22 -07:00
Nolan Lawson f5943c3c24 Revert "fix issue with not being able to click toolbar"
This reverts commit 001f85eecc.
2018-04-05 21:00:30 -07:00
Nolan Lawson 001f85eecc fix issue with not being able to click toolbar 2018-04-05 20:30:52 -07:00
Nolan Lawson c54bde0a19 use scrollIntoView which is more consistent than previous strategy 2018-03-29 23:01:36 -07:00
Nolan Lawson b4fc6cf99e fix media in notifications not clickable 2018-04-05 18:18:23 -07:00
Nolan Lawson 57a40a4c41 simplify backdrop filter 2018-04-05 18:13:31 -07:00
Nolan Lawson 2544b71251 use lodash-es for slightly smaller bundle size 2018-04-05 17:57:36 -07:00
Nolan Lawson a6d2382f97 tweak status options 2018-04-05 07:44:10 -07:00
Nolan Lawson 8197c9e773 fix DM background color for replies 2018-04-04 23:03:26 -07:00
Nolan Lawson 8f24531d94 tweak dialog 2018-04-04 22:28:22 -07:00
Nolan Lawson 0ce79fed44 fix z-index 2018-04-04 22:20:12 -07:00
Nolan Lawson 33d595f239 add mention option to account profiles 2018-04-04 21:45:19 -07:00
Nolan Lawson 5a23235529 destroy entire dialog when closed 2018-04-04 20:33:17 -07:00
Nolan Lawson 8d6cb56421 make entire sticky banner pointer-events:auto 2018-04-04 20:32:54 -07:00
Nolan Lawson b17b554965 fix auto-focus for dialog compose 2018-04-04 19:49:05 -07:00
Nolan Lawson 760cafdeff don't allow clicking through to status if click is on toolbar 2018-04-04 18:53:52 -07:00
Nolan Lawson cbe7192928 use regular for loop for html dom element collection 2018-04-04 18:34:43 -07:00
Nolan Lawson eac398702d add console error message 2018-04-04 18:33:31 -07:00
Nolan Lawson cbf46ccae6 simplify language 2018-04-03 18:01:22 -07:00
Nolan Lawson bd183c9b37 fix default post privacy on replies 2018-04-03 17:50:48 -07:00
Nolan Lawson e0345ad750 fix typo 2018-04-03 17:27:30 -07:00
Nolan Lawson 48dc087e58 be optimistic about follow button 2018-04-03 09:51:34 -07:00
Nolan Lawson 79e33d7938 automatically insert CWs for replies to CWs 2018-04-03 09:45:17 -07:00
Nolan Lawson 3c0fe1effc number format account profile details 2018-04-03 08:57:01 -07:00
Nolan Lawson 584d94eea4 fix streaming gap issue for instance switching 2018-04-02 21:14:12 -07:00
Nolan Lawson 5b6af3c8d5 compose modal should auto-focus 2018-04-02 20:49:33 -07:00
Nolan Lawson cf2b6bfe2f refactor 2018-04-02 18:02:09 -07:00
Nolan Lawson cfb8e28fcc be less aggressive about throttling notifications 2018-04-02 18:00:45 -07:00
Nolan Lawson 3458c353e4 clicking avatar takes you to your profile 2018-04-02 17:53:04 -07:00
Nolan Lawson 7988222086 fix emoji dialog overflow 2018-04-01 23:41:35 -07:00