summaryrefslogtreecommitdiff
path: root/web/source
AgeCommit message (Collapse)AuthorFiles
2022-11-15[chore] fix profile spacing on very small screens (#1050)Libravatar f0x521
2022-11-15[feature] Serialize local account role via API, and show it via web view (#1045)Libravatar tobi3
* [feature] Add 'role' field to api serialization of local accounts * [chore] Add a bit of license text while I'm here * [frogend] render account role on same line as username in web view of profile * style tweaking on role badges, general profile header layout * profile stats wrapping * don't render standard 'user' role on web view Co-authored-by: f0x <f0x@cthu.lu>
2022-11-10[chore/frontend] CI steps for frontend stuff (#997)Libravatar f0x523
* re-add eslint * fix oauth url getting too long * actually attach single emoji get and delete routes * basic emoji details + deletion using rtk query * refactor emoji upload to rtk query * clean up old redux api+reducers for custom emoji * fix validation order * refactor custom emoji form fields * remove unused requires * cleanup, fix most eslint errors * more small eslint fixes * eslint & web bundle in CI * fix directories, move lint+build to scripts * working dirs * test linter and build errors * upgrade skulk for better error handling * Revert "test linter and build errors" This reverts commit dc047d5b444c41a90209d02bb4ed4893ccf0885f. * fix max emoji size * tiny bit of function documentation * sign drone.yml Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-11-08[frontend] fix conflict introduced by merge (#1007)Libravatar f0x521
2022-11-08[feature] Make instance thumbnail configurable via admin panel (#973)Libravatar tobi2
* [feature] Make instance thumbnail configurable via admin panel * log db errors in InstanceToAPIInstance * only update instance in db if necessary * start adding tests * finish test
2022-11-08[frontend] Custom Emoji Deletion (#994)Libravatar f0x5231
* re-add eslint * fix oauth url getting too long * actually attach single emoji get and delete routes * basic emoji details + deletion using rtk query * refactor emoji upload to rtk query * clean up old redux api+reducers for custom emoji * fix validation order * refactor custom emoji form fields * remove unused requires * cleanup, fix most eslint errors * more small eslint fixes * fix max emoji size * tiny bit of function documentation
2022-11-02[frontend] change bundler to skulk (#942)Libravatar f0x5211
* replace web bundler with skulk * upgrade skulk * add license
2022-11-02[frontend] Fix #923 and markdown css (#925)Libravatar Mia Heidenstedt2
* fix url in CONTRIBUTING.md * prevent img from overflow and allow to center the img * fix #923 and guide browser to select entire username
2022-10-13[frontend] Use new GET custom_emoji admin api (#908)Libravatar f0x525
* use new GET custom_emoji admin api * use url instead of static_url, add link to emoji admin api tracking issue * fetch all local emoji
2022-10-12[frontend] use ISO639 library for language selection (#909)Libravatar f0x523
2022-10-12[frontend] small fixes (#907)Libravatar f0x523
* add missing watchify dependency * replace svg rss icon with forkawesome+styling * use $white1 instead of hardcoding white * fix toot overflow
2022-10-08[feature] Add opt-in RSS feed for account's latest Public posts (#897)Libravatar tobi3
* start adding rss functionality * add gorilla/feeds dependency * first bash at building rss feed still needs work, this is an interim commit * tidy up a bit * add publicOnly option to GetAccountLastPosted * implement rss endpoint * fix test * add initial user docs for rss * update rss logo * docs update * add rssFeed to frontend * feed -> feed.rss * enableRSS * increase rss logo size a lil bit * add rss toggle * move emojify to text package * fiddle with rss feed formatting * add Text field to test statuses * move status to rss item to typeconverter * update bun schema for enablerss * simplify 304 checking * assume account not rss * update tests * update swagger docs * allow more characters in title, trim nicer * update last posted to be more consistent
2022-10-06[frontend] Make emojis v. slightly larger (#891)Libravatar tobi2
* make emojis v. slightly larger 2.5ex -> 2.75 ex by default (they still fit fine), and make em scale a bit larger on hover as well * use em for emoji margin
2022-10-03[frontend] scroll to highlighted toot, improve highlight (#885)Libravatar f0x522
2022-10-03[frontend] change spacing of status, text always on it's own line, move ↵Libravatar f0x521
status date on mobile (#883)
2022-10-03[chore] Old browser fixes (#882)Libravatar f0x522
* reasonable css sizing fallbacks * add browser field for bug report template
2022-10-03[chore] Bundler restructure (#880)Libravatar f0x5239
* re-structure bundler, settings panel files * add more info logging * tidy up CSS syntax errors * split into lib/ files * livereloading server * fix factor function for production builds * remove testing console.log * default to production env, saves 300kb bundle size
2022-10-02[feature] Enlarge active/hovered custom emojis in statuses (#877)Libravatar tobi1
* enlarge active/hovered custom emojis in statuses * use transform, make emojis pop a lil more * tweak emoji hover timing, styling Co-authored-by: f0x <f0x@cthu.lu>
2022-10-02[chore] Use shorter timestamps in frontend for replies (#875)Libravatar tobi1
* rename timestampShort -> timestampVague * add ParseISO8601 * start fiddling with timestamp * pad/margin a bit more consistently * remove visibilty icon, change timestamp use * update timestamp logic * check + log errors * properly cut-off long display- and usernames Co-authored-by: f0x <f0x@cthu.lu>
2022-09-29[frontend] Unified panels (#812)Libravatar f0x5252
* settings panel restructuring * clean up old Gin handlers * colorscheme redesign, some other small css tweaks * basic router layout, error boundary * colorscheme redesign, some other small css tweaks * kebab-case consistency * superfluous padding on applist * remove unused consts * redux, whitespace changes.. * use .jsx extensions for components * login flow up till app registration * full redux oauth implementation, with basic error handling * split oauth api functions * oauth api revocation handling * basic profile change submission * move old dir * profile overview * fix keeping track of the wrong instance url (for different instance/api domains) * use redux state for profile form * delete old/index.js, old/basic.js, fully implemented * implement old/user/profile.js * implement password change * remove debug logging * support future api for removing files * customize profile css * remove unneeded wrapper components * restructure form fields * start on admin pages * admin panel settings * admin settings panel * remove old/admin files * add top-level redirect * refactor/cleanup forms * only do API checks on logged-in state * admin-status based routing * federation block routing * federation blocks * upgrade dependencies * react 18 changes * media cleanup * fix useEffect hooks * remove unused require * custom emoji base * emoji uploader * delete last old panel files * sidebar styling, remove unused page * refactor submit functions * fix sidebar boxshadow-border * fix old css variables * fix fake-toot avatar * fix non-square emoji * fix user settings redux keys * properly get admin account contact from instance response * Account.source default values * source.status_format key * mobile responsiveness * mobile element tweaks * proper redirect after removing block * add redirects for old setting panel urls * deletes * fix mobile overflow * clean up debug logging calls
2022-09-12[feature] Allow users to set custom css for their profiles + threads (#808)Libravatar tobi3
* add custom css account property + db func to fetch * allow account to get/set custom css * serve custom css for an account * go fmt * use monospace for customcss, add link * add custom css to account cache * fix broken field * add custom css docs to user guide * add `accounts-allow-custom-css` config flag * add allow custom css to /api/v1/instance response * only show/set custom css if allowed to do so * only set/serve custom account css if enabled * update swagger docs * chain promise * make bool a bit clearer * use cache for GetAccountCustomCSSByUsername
2022-09-05[bugfix] Catch json syntax errors in the frontend + display a more helpful ↵Libravatar tobi1
message (#804) * catch json syntax errors * update error msg * re-throw error with cause Co-authored-by: f0x52 <f0x@cthu.lu>
2022-09-02[feature] Emojify spoiler and content in web templates (#785)Libravatar Blackle Morisanchetto1
* Emojify spoiler and content in web templates * Use more performance emojify code (thanks NyaaaWhatsUpDoc!)
2022-08-30[Admin panel] Make Description boxes multi-line (#781)Libravatar Blackle Morisanchetto1
2022-08-27[frontend] gentle css fiddling (#761)Libravatar tobi1
* gentle css fiddling * Make grid alignment a lil more consistent too
2022-08-14[frontend] Sensitive media spoilers (#752)Libravatar f0x522
* sensitive media spoilers * small tweaks, use pointer-events (thanks @owl!) * allow hiding all media * add button roles * add tabindices * s/Show media/Show sensitive media/ * show hovering alt-text on hidden sensitive images Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2022-08-12[frontend] Style scrollbars site-wide (not just in code) (#753)Libravatar tobi2
2022-08-11[frontend] Status styling tweaks (#751)Libravatar tobi1
* style hr * start work on code styling in statuses * pad top + bottom of content * squircle code * pad less actually * get code blocks formatted nicely phew * fix some silliness (thanks f0x) * update code block styling Co-authored-by: f0x <f0x@cthu.lu>
2022-08-08[bugfix] Fix placeholder typo in user panel (#745)Libravatar tobi1
2022-08-08[feature] Add first iteration of a user panel at `/user` (#736)Libravatar tobi18
* start work on user panel * parse source first before checking if empty form * newline * set avi + header nicely * add posts settings * render signin a bit nicer on mobile * return OK json on successful change * return unauthorized on bad password * clarify message on insecure password * make login a bit prettier * add alt text + border round image previews * add logout button * add password change * styling updates * redirect /auth/edit to /user * update tests * fix validation tests * better labels, link to more info * make submit button generic component * move submit button inside forms * add autocomplete labels to password fields * fix indentation (thx eslint) * update eslintrc * eslint: no-unescaped-entities * initial deduplication between user and admin panel * add default status/post format setting * user panel styling for inputs * update user panel styling, include normalize css * add placeholder text * input padding Co-authored-by: f0x <f0x@cthu.lu>
2022-08-07[chore] Update js deps (#744)Libravatar f0x523
* dependency wrangling * update postcss-custom-prop-vars to 0.0.5 (postcss 8)
2022-08-07[feature] Photoswipe gallery (#740)Libravatar f0x525
* implement photoswipe galleries * dependency wrangling * photoswipe-dynamic-caption plugin
2022-08-07[frontend] style blockquote nicely within content (#742)Libravatar tobi1
2022-07-18[frontend] Tweak border radius for header + avatar (#713)Libravatar tobi2
2022-07-15[frontend] Footer styling adjustments (#709)Libravatar tobi1
* adjust footer rendering * use max-width instead of orientation * remove margin-top when screen small
2022-07-13[bugfix] Fix profile card display issues on smaller screens w/responsive ↵Libravatar tobi3
query (#696) * add responsive media query to profile css * break username on all screen sizes if necessary * embed avatar inside header on smaller screen sizes * align items to the left in small screen view * more consistent profile scaling accross firefox and chrome * simplify things a little bit * make sure bio fits in profile * word-break content if necessary Co-authored-by: f0x <f0x@cthu.lu>
2022-07-13[feature] Add back/next buttons to profiles for paging through statuses (#708)Libravatar tobi1
* add GetAccountWebStatuses to db * add WebStatusesGet func to processor * don't add limit to next/prev links if 0 * take query params for next/prev statuses * add separate next + prev links for convenience * show 'nothing here' message if no statuses exist * add back / next links to profiles * allow paging down only * go fmt ./... * 'recent public toots' -> 'latest public toots'
2022-07-09[bugfix] Fix display names in thread view causing wrapping issues on small ↵Libravatar tobi1
screens (#698) * use account.Acct for username * allow username + displayname to wrap with ellipses * use span 2 for displayname always * remove commented-out line
2022-07-09[frontend] Fix up status 'show more' and z-index (#701)Libravatar tobi1
* put spoiler items in a flexbox * make the whole status top of z index this allows text to be selected properly * allow status spoiler text to break across lines
2022-07-08[bugfix] Various fixes (#699)Libravatar Forever1
* [bugfix] Correctly style inputs and buttons <input>, <textarea>, and <button> were incorrectly using the system-ui font previously; this commit fixes that. text-align: center; was added to <button> due to an inconsistency with .button where text-align would be off. * [chore] Update binary installation instructions This commit updates the example release mentioned in the docs, and mentions Caddy in the reverse proxy options. * [bugfix] Remove redundant Caddyfile Caddy automatically upgrades HTTP to HTTPS (see https://caddyserver.com/docs/automatic-https) so the upgrading part of the Caddyfile is redundant.
2022-07-06[bugfix] Allow instance titles to wrap (#695)Libravatar tobi1
2022-07-05[bugfix] Fix footer info fields not wrapping (#694)Libravatar tobi1
* flex-wrap footer items * add testrig instance entry with more info set
2022-07-04[frontend] Redesign / color scheme (#688)Libravatar tobi4
* fix css indentation * profile styling update * update status styling to match profile * empty header fix * generate random avatars for thread views * appease the linter gods * upgrade deps * turn profile accent into border + $bg background * upgrade deps * small accessibility tweaks * general redesign, clearer css variables * configure instance.Version for testrig * footer styling * add sublte borders to box-shadow for separation * accessible blues, other tweaks * background bg_accent * fix viewport * change client entry buttons to links * cw button styling * status display+username spacing * small thread view tweaks * color tweaks for accessible contrasts * use Noto Sans * biiit less dark bg * .info contrast, border Co-authored-by: f0x <f0x@cthu.lu>
2022-06-21[frontend] Profile pages upgrade (#640)Libravatar f0x525
* fix css indentation * profile styling update * update status styling to match profile * empty header fix * generate random avatars for thread views * appease the linter gods * upgrade deps * turn profile accent into border + $bg background * upgrade deps * small accessibility tweaks Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2022-06-20[frontend] add Accept header to oauthed api requests (#657)Libravatar tobi1
2022-06-09[frontend] Restructure Frontend Sources (#634)Libravatar f0x5220
* 🐸restructure frontend stuff, include admin and future user panel in main repo, properly deduplicate bundles for css+js across uses * rename bundled to dist, caught by gitignore * re-include status.css for profile template * default to localhost * serve frontend panels * add todo message for abstraction * refactor oauth registration flow * oauth restructure * update footer template * change panel routes * remove superfluous css imports * write bundle to disk from test server, use forked budo-express * wrap all page content in container for robustness with addons etc injection other elements in body * update documentation, goreleaser, Dockerfile * update template meta tags * add AGPL-3.0+ license header everywhere * only attach update listener on EventEmitter * cleaner config for various frontend bundles * fix bundler script paths * Merge commit 'd191931932b9293ce1be44ed08a1e69b9fcc1e25' * fix up dockerfile, goreleaser * go mod tidy * add uglifyify * move status hide/show js to frontend bundle * fix stylesheet color( func regressions * update contributing docs for new build path * update goreleaser + docker building * resolve dependency paths properly * update package name * use api errorhandler Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2021-09-13Thread views on the web (#207)Libravatar f0x524
* Webviews for status threads * fix up templates * add ForkAwesome and gotosocial-styling into repo * clean up gotosocial-styling, old styling * update CONTRIBUTING with new css building, and nodemon recommendation * update Dockerfile with new css bundling * those weren't supposed to make it in * upgrade gotosocial-styling deps * update authorize template with main wrapper * update css pipeline * abstract status from thread to avoid copy-pasting * basic CW implementation * fix PR review suggestions * fix no-image-desc icon alignment * remove template loading println * remove println * remove changes to testmodels * reset changes to testmodels
2021-07-13frontpage template tweaks (#99)Libravatar f0x521
2021-07-09Css button tweak (#93)Libravatar f0x521
* css styling tweaks * bundle * apply styling to textarea as well * bundle, whitespace * generalize .button class styling * bundle * give .button a pointer cursor too * bundle
2021-07-08Css input/select styling tweak (#91)Libravatar f0x521
* css styling tweaks * bundle * apply styling to textarea as well * bundle, whitespace