Commit graph

223 commits

Author SHA1 Message Date
Jay Sitter
99de15b10b fix(a11y): Make foreground of 'remove image button' white 2023-06-24 19:58:06 -04:00
Jay Sitter
47aafed45f fix(a11y): Fix some a11y markup in Searchable Select component 2023-06-24 19:52:30 -04:00
Jay Sitter
dccfc72e73 fix(a11y): Change image remove button to true button element 2023-06-24 19:44:22 -04:00
Jay Sitter
d3b8943341 fix: Ignore rule for clickaway div; 'Esc' works for this 2023-06-24 19:24:09 -04:00
Jay Sitter
b543ef5ecb fix: Fix another class 2023-06-24 18:43:12 -04:00
Jay Sitter
83ab9e4d8e fix: Fix some Bootstrap 5 font classes 2023-06-24 18:41:29 -04:00
Jay Sitter
93da81c210
Merge branch 'main' into feat/vote-components 2023-06-24 16:33:45 -04:00
Jay Sitter
cf15af7c74
Merge branch 'main' into fix/a11y-fixes 2023-06-24 16:33:17 -04:00
Jay Sitter
f6a40fbb28
Merge branch 'main' into feat/create-private-message-updates 2023-06-24 16:30:35 -04:00
Jay Sitter
b98939dd0f fix: Fix some emoji escape logic 2023-06-24 16:29:41 -04:00
Jay Sitter
ffa98c8e3a
Merge branch 'main' into feat/vote-components 2023-06-24 15:00:52 -04:00
Jay Sitter
5ed7352359 fix: Emoji picker can be closed with escape key, other a11y fixes 2023-06-24 01:58:21 -04:00
Jay Sitter
8184e33c9f fix: Fix up some interface language logic and design 2023-06-24 00:44:01 -04:00
Jay Sitter
a9e6b47ad8 fix: Clarify a comment 2023-06-24 00:38:17 -04:00
Jay Sitter
f8228b5af9 fix: Add triangle alert icon to language warning 2023-06-24 00:15:04 -04:00
SleeplessOne1917
6dd871f42d Give function better name 2023-06-24 00:14:11 -04:00
SleeplessOne1917
543de49622 Make date distance format use correct verbiage 2023-06-24 00:14:11 -04:00
SleeplessOne1917
de3cdb421e Replace momentjs with date-fns 2023-06-24 00:14:10 -04:00
Jay Sitter
d78514c665 fix: Add aria-describedby for language warning 2023-06-24 00:14:10 -04:00
Jay Sitter
d735369db0
Update src/shared/components/common/markdown-textarea.tsx
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-24 00:06:40 -04:00
Jay Sitter
4959d342bb
Update src/shared/components/common/markdown-textarea.tsx
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-24 00:06:18 -04:00
Jay Sitter
5d85e3a7c9 fix: Disable save button if no text is entered 2023-06-23 23:43:49 -04:00
Jay Sitter
7145e0be27 fix: Fix some more private message form stuff 2023-06-23 23:38:39 -04:00
Jay Sitter
b231fd1e5b feat: Clean up the Create Private Message page a bit 2023-06-23 23:13:09 -04:00
Jay Sitter
251592c1bf fix: Use simpler syntax for languageId array 2023-06-23 22:09:27 -04:00
SleeplessOne1917
7cbdfce24c
Merge branch 'main' into feat/default-to-user-primary-lang 2023-06-24 00:53:03 +00:00
Jay Sitter
2bd8fdac33 fix: Add triangle alert icon to language warning 2023-06-23 17:50:30 -04:00
SleeplessOne1917
dac0fa50ad
Merge branch 'main' into fix/add-aria-describedby-lang-warn 2023-06-23 21:34:43 +00:00
Jay Sitter
ccf0a6dbaa fix: Fix language selection bug 2023-06-23 17:24:07 -04:00
Jay Sitter
87e8ce8d79 fix: Add aria-describedby for language warning 2023-06-23 15:20:49 -04:00
SleeplessOne1917
2b8ee2fa31 Give function better name 2023-06-23 14:33:26 -04:00
Jay Sitter
41c9b3baf9 fix: Specify vote content type so buttons work for both comments and posts 2023-06-23 12:14:49 -04:00
Jay Sitter
787a75396b fix!: Try to get Vote Buttons component working in Comments 2023-06-23 12:14:48 -04:00
SleeplessOne1917
8f9b231487 Make date distance format use correct verbiage 2023-06-23 10:33:07 -04:00
Jay Sitter
094429ff1e fix: Rework some vote buttons architecture 2023-06-22 23:48:53 -04:00
SleeplessOne1917
d0dff77377 Replace momentjs with date-fns 2023-06-22 19:33:02 -04:00
Jay Sitter
7af899ee75 fix: Remove tippy duplicate functions 2023-06-22 17:06:33 -04:00
Jay Sitter
be6ec3692e Merge remote-tracking branch 'origin/main' into feat/vote-components
* origin/main: (26 commits)
  Adding jsit to codeowners.
  Cleanup, only check for /u/ if /c/ and /m/ checks fail
  Rename function to be more generic, since it parses users
  Typescript linter fixes
  bandaid fix our video embeds
  Remove pipe from community link regex
  Add missing classes
  Use shorter regex in community link parser
  Move regex pattern to config
  Update community link markdown parsing
  Fix avatar alignment issue (#1475)
  Omit user-scalable to use default
  Update getHttpBase dependency reference
  Enable users to zoom on mobile
  rethink it a bit
  rethink it a bit
  add fallback style tag
  Add community link class
  prettier
  Add local community link parser plugin for Markdown-It
  ...
2023-06-22 16:56:08 -04:00
Jay Sitter
443c128e05 fix: Revert to old mobile vote style 2023-06-22 14:02:15 -04:00
Jay Sitter
7c13b8dba1 feat: Move vote buttons to separate component 2023-06-22 13:36:38 -04:00
SleeplessOne1917
aa72a7d805
Fix avatar alignment issue (#1475) 2023-06-22 12:52:47 -04:00
Ivo Barros
7fc35ff699
Merge branch 'main' into main 2023-06-22 15:36:05 +01:00
Alec Armbruster
fc40b473d7
move env utils into folder 2023-06-22 09:02:48 -04:00
Ivo Barros
c06d386337 prettier 2023-06-22 04:52:04 +01:00
Ivo Barros
aa36fe6e5e
Merge branch 'main' into main 2023-06-22 04:23:35 +01:00
Ivo Barros
0beb2a4341 Merge remote-tracking branch 'upstream/main' into main 2023-06-22 02:17:22 +01:00
SleeplessOne1917
eae0990442 Fix I18 next circular reference 2023-06-21 20:54:35 -04:00
Alec Armbruster
043b522ff1
utils.ts organization, round two (#1427)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update src/shared/utils/app/convert-comment-sort-type.ts

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>

* prettier pass

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-21 18:28:24 -04:00
Ivo Barros
0e052602ad
Merge branch 'main' into main 2023-06-21 20:45:58 +01:00
0c78cf22a7 Centering emojimart in view. 2023-06-21 14:44:37 -04:00
Jay Sitter
40eefb0c67
fix(tabs): Fix tab semantics and a11y (#1382)
* fix: Fix tab semantics for Settings page

* fix: Use new tabpanel markup for admin settings

* fix: Remove unused currentTab behavior

* fix: Remove Bootstrap tab JS dependency

* fix: Add tabpanel role to rate limit tab panels

* fix: Fix style of tabs

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-21 08:27:27 -04:00
Jay Sitter
deed524a7f fix: Small adjustments to create post form 2023-06-21 00:20:05 -04:00
Ivo Barros
a07fc75972
Merge branch 'main' into main 2023-06-20 23:07:57 +01:00
SleeplessOne1917
4da34c1370
Merge branch 'main' into breakout-role-utils 2023-06-20 21:12:18 +00:00
Alec Armbruster
cc4ecb585e
forgot an import 2023-06-20 15:51:37 -04:00
djvs
5033b024f6 component classes v2 2023-06-20 14:46:16 -04:00
Alec Armbruster
b8fd516f02
Merge branch 'main' into breakout-role-utils 2023-06-20 10:17:52 -04:00
Jay Sitter
c77086a9d5
feat: Bootstrap 5 (#1378)
* feat: Use Bootstrap 5; remove Bootstrap 4

* feat: Add link decoration override global var

* fix: Change sr-only to visually-hidden

* fix: Fix missing toggle button classes

* fix: Use darker green to pass 3:1 contrast and allow foreground color generation

* fix: Replace all mr- and ml- classes with me- (end) and ms- (start) classes

* fix: Replace all pr- and pl- classes with pe- (end) and ps- (start) classes

* fix: Replace custom-select with form-select d-inline-block

* fix: Change max-width to Bootstrap 4's max-width

* fix: Fix badge colors

* fix: Replace deprecated btn-block class with d-block

* fix: Temporary fix for missing btn-block styles

* fix: Fix margin-left auto and margin-right auto

* fix: Fix default border color

* fix: Fix some button widths

* fix: Fix form row margins

* fix: Remove theme color maps; no longer necessary in Bootstrap 5

* fix: Remove unused gray

* test commit

* fix: Fix deprecated input-group-append usage

* fix: Add missing col-form-label classes

* fix: Fix some column widths

* fix: Fix language dropdown style regression

* fix: Fix toast background color

* fix: Fix missing colors in red themes

* fix: Fix default radio button appearance for toggles

* fix: Fix missing margin in search form

* fix: Fix search form widths

* fix: Fix rate limit form columns

* fix: Fix search filters layout

* fix: Fix weird table background issue; re-compile from main updates

* fix: Fix modlog filter layout

* fix: Fix some horizontal margins

* fix: Fix incorrect usage of input-group

* chore: Empty commit to re-trigger Woodpecker job

* fix: Fix incorrect Bootstrap 5 padding class

* fix: Tighten up the home filter bars for the hell of it

* fix: Fix home filter bar gap

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-20 08:01:29 -04:00
Alec Armbruster
79bdb7e8e8
Merge branch 'main' into breakout-role-utils 2023-06-19 21:49:01 -04:00
Alec Armbruster
69a123b6d8
update imports 2023-06-19 21:48:38 -04:00
b7da6851aa Fixing missing class for language select. 2023-06-19 11:53:18 -04:00
Dessalines
02ffa85b58
Merge branch 'main' into breakout-role-utils 2023-06-19 10:04:19 -04:00
Jay Sitter
0d302c0e40 fix: Cleaner logic 2023-06-17 15:32:29 -04:00
Jay Sitter
ff4d37d03a fix(a11y): Fix some a11y issues in Site Sidebar and use native Bootstrap Collapse and Card classes 2023-06-17 13:52:23 -04:00
Alec Armbruster
f8fd90cc2e
fix accidental changes 2023-06-17 08:47:43 -04:00
Alec Armbruster
7f48a38b72
Merge branch 'main' into breakout-role-utils 2023-06-17 08:44:47 -04:00
Ivo Barros
3ca24607fb add hours as sorting options 2023-06-17 09:37:03 +01:00
Jay Sitter
fef03525f1 fix: Fix rounded top corners in markdown textarea 2023-06-17 01:43:05 -04:00
Jay Sitter
cd259cd416
Merge branch 'main' into fix/markdown-bootstrap-classes 2023-06-16 21:48:33 -05:00
Jay Sitter
133951bc84 fix: Remove inline styles and use Bootstrap classes 2023-06-16 22:43:46 -04:00
Jay Sitter
fb678d10f8
Merge branch 'main' into feat/add-badges-common-component 2023-06-16 21:35:14 -05:00
Jay Sitter
4ec7c26707
Merge branch 'main' into feat/add-badges-common-component 2023-06-16 21:31:03 -05:00
SleeplessOne1917
72655e0714
Merge branch 'main' into fix-nsfw-blur-spill 2023-06-17 02:29:33 +00:00
Jay Sitter
d951fb57da fix: Fix missing prop 2023-06-16 22:25:35 -04:00
SleeplessOne1917
879e3b6f70
Merge branch 'main' into fix-nsfw-blur-spill 2023-06-17 02:17:04 +00:00
Jay Sitter
f7f8ddcd7c fix: Add total users in site sidebar 2023-06-16 21:44:45 -04:00
Jay Sitter
fe64edd2fc fix: Re-add 'number of communities' to site sidebar 2023-06-16 20:56:01 -04:00
Jay Sitter
cb72180f97 fix: Fix broken link 2023-06-16 20:54:13 -04:00
Jay Sitter
8bbb6c9652 Merge remote-tracking branch 'origin/main' into feat/add-badges-common-component
* origin/main:
  handle login failures correctly
  wrap login call in try/catch for error handling
  Remove extra div in post sidebar
  Add a class to the more button on a comment node
  Switch navbar classes to ids
  Adding a few more 0.18.0 API changes. (#1324)
  Use aside semantic HTML tag for sidebars
  Use article semantic HTML tag for posts/comments
  Use footer semantic HTML tag
  Adding codeowners.
  Add lemmy-site class for easier detection
  Add ID's and classes to sidebars
  Add clases and ID's to post form/listing
  Add classes to post and comment repy textareas
  Rename markdown-textarea ID's
  Add nav and footer ID's
2023-06-16 20:35:44 -04:00
Jay Sitter
e540b1e4a9
Merge branch 'main' into feat/markdown-format-bar-above 2023-06-16 19:14:48 -05:00
Jay Sitter
f037220d5e fix: Fix rounded textarea in Markdown box 2023-06-16 20:13:25 -04:00
Jay Sitter
3d24a108ae feat: Fix some colors on dark mode 2023-06-16 20:02:07 -04:00
Jay Sitter
f9f4caf260 feat: Redesign the format bar / textarea into a single bordered area with divider 2023-06-16 19:49:28 -04:00
Alec Armbruster
8fcde4bdd0
more cleanup 2023-06-16 19:14:35 -04:00
Alec Armbruster
e164a3b9a1
attempt to fix crazy merge fiasco 2023-06-16 19:10:25 -04:00
Alec Armbruster
3ee47d38b8
Merge branch 'LemmyNet:main' into breakout-role-utils 2023-06-16 18:57:20 -04:00
Alec Armbruster
6c6ddd5b51
reset, merge issues 2023-06-16 18:56:23 -04:00
Jay Sitter
f8f1f49250 feat: Move Badges to common component 2023-06-16 18:31:47 -04:00
Jay Sitter
ebba5bdd80 feat: Move text formatting bar above textarea 2023-06-16 17:47:43 -04:00
Alec Armbruster
9c37cea106
Merge branch 'main' into breakout-role-utils 2023-06-16 17:33:46 -04:00
Alec Armbruster
976ed12d07
break out browser and helper methods 2023-06-16 17:25:53 -04:00
SleeplessOne1917
65079cf61e
Merge branch 'main' into fix-nsfw-blur-spill 2023-06-16 19:57:12 +00:00
Zetaphor
a5dc5c0b3f Rename markdown-textarea ID's 2023-06-16 14:09:35 -03:00
Jay Sitter
b228214cd0
Re-arrange elements beneath markdown textarea #1057 (#1288)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 10:53:46 -04:00
Dessalines
b44ae192d2
Merge branch 'main' into fix-nsfw-blur-spill 2023-06-16 10:49:42 -04:00
Yuri Pieters
882efe128a
Match more specific locales to supported ones (#1241)
To do this, replace the current system for choosing the language with one that makes use of i18next features.

Co-authored-by: Yuri Pieters <yuri@zopatista.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-16 10:49:23 -04:00
SleeplessOne1917
d84af4a3ef
Merge branch 'main' into fix-nsfw-blur-spill 2023-06-14 23:16:26 +00:00
SleeplessOne1917
2b1af707c3
Use http client (#1081)
* Beginning work on websocket -> http client conversion.

* About 30% done.

* half done.

* more done.

* Almost passing lint.

* Passing lint, but untested.

* Add back in event listeners.

* Fixing some community forms.

* Remove webpack cache.

* fixing some more.

* Fixed ISOwrappers.

* A few more fixes.

* Refactor utils

* Fix instance add/remove buttons

* Not catching errors in isoWrapper.

* Wrap Http client

* Fixing up tagline and ratelimit forms.

* Make all http client wrapping be in one place

* Reworking some more forms.

* Upgrading lemmy-js-client.

* Fixing verify email.

* Fix linting errors

* Upgrading woodpecker node.

* Fix comment scrolling rerender bug.

* Fixing a few things, commenting out props for now.

* v0.18.0-beta.1

* Trying to fix woodpecker, 1.

* Trying to fix woodpecker, 2.

* Handroll prompt

* Add navigation prompt to other pages

* Fix prompt navigation bug

* Fix prompt bug introduced from last bug fix

* Fix PWA bug

* Fix isoData not working

* Fix search page update url

* Fix sharp issue.

* v0.18.0-beta.2

* Make create post pre-fetch communities

* Fix bug from last commit

* Fix issue of posts/comments not being switched when changing select options

* Fix unnecessary fetches on home screen

* Make circular icon buttons not look stupid

* Prevent unnecessary fetches

* Make login experience smoother

* Add PWA shortcuts

* Add related application to PWA

* Update translations

* Forgot to add post editing.

* Fixing site setup.

* Deploy script setup.

* v0.18.0-beta.4

* Sanitize again.

* Adding sanitize json function.

* Upping version.

* Another sanitize fix.

* Upping version.

* Prevent search nav item from disappearing when on search page

* Allow admin and mod actions on non-local comments.

* Fix mobile menu collapse bug

* Completely fix prompt component

* Fix undefined value checks in use_http_client_2 (#1230)

* fix: filter out undefined from posts

* fix: emoji initialisation passing undefined

* fix: || => ?? to be more explicit

* linting

---------

Co-authored-by: Alex Maras <alexmaras@gmail.com>

* Re-add accidentally removed state

* Fix dropdown bug

* Use linkEvent where appropriate

* Fix navigation warnings.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Alex Maras <dev@alexmaras.com>
Co-authored-by: Alex Maras <alexmaras@gmail.com>
2023-06-14 08:20:40 -04:00
Florian Heft
14775734fa Fixed NSFW image blur spilling outside the preview
* Hide overflow of wrapping picture element
  to contain the blur of the inner img element.
* This aligns the visible image area to the
  clickable area.
* fixes #1245
2023-06-14 10:11:27 +02:00
Zetaphor
31257b9dd4
Add title to pictrs-image
This adds a title tag to images, uses the alt tag value. This improves accessibility for sighted users and screen readers.
2023-06-13 12:24:15 -05:00