summaryrefslogtreecommitdiff
path: root/web
AgeCommit message (Collapse)AuthorFiles
2022-08-07[feature] Photoswipe gallery (#740)Libravatar f0x526
* implement photoswipe galleries * dependency wrangling * photoswipe-dynamic-caption plugin
2022-08-07[frontend] style blockquote nicely within content (#742)Libravatar tobi1
2022-07-30[frontend] Update client list and apply some minor fixes (#734)Libravatar Martijn de Boer2
* Add logos for Fedilab, Toot and Mastodon to assets folder Adds multiple logo's for the changes on the client list. * Add clients to the index page to give users a wider choice and some minor fixes Adds Fedilab, Toot! and "More clients" to the client list. Also adds periods after all descriptions, so they are unified in writing style. Adds target blank and rel noopener to external links. Changes the pinafore.social link to link to the homepage, like the other clients. * Add 'the' to the description text Adds the missing 'the' to the More clients description * Delete fedilab.png * Delete toot.png * Remove added clients, but keep More clients text. Removes the Fedilab and Toot! clients.
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 tobi4
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 tobi2
* 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 tobi2
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 tobi2
* 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-05[bugfix] Fix incorrect domain showing in profiles (#693)Libravatar tobi1
* use instance account_domain in profile * add instance account_domain field
2022-07-04[frontend] Redesign / color scheme (#688)Libravatar tobi12
* 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 f0x528
* 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 f0x5237
* 🐸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>
2022-06-08[feature] More consistent API error handling (#637)Libravatar tobi3
* update templates * start reworking api error handling * update template * return AP status at web endpoint if negotiated * start making api error handling much more consistent * update account endpoints to new error handling * use new api error handling in admin endpoints * go fmt ./... * use api error logic in app * use generic error handling in auth * don't export generic error handler * don't defer clearing session * user nicer error handling on oidc callback handler * tidy up the sign in handler * tidy up the token handler * use nicer error handling in blocksget * auth emojis endpoint * fix up remaining api endpoints * fix whoopsie during login flow * regenerate swagger docs * change http error logging to debug
2022-06-08[frontend] linkify header mascot+title (#633)Libravatar f0x523
2022-05-28[frontend] Reduce width of profile img with screen width (#615)Libravatar Sashanoraa3
The commit makes the profile image on the profile page reduce in width if the screen width is less then it's normal width while maintaining it's 1:1 aspect ration. Signed-off-by: Sashanoraa <sasha@noraa.gay>
2022-05-28[frontend] Add padding to the bottom of main (#616)Libravatar Sashanoraa2
This way the footer doesn't touch on the content on mobile. Signed-off-by: Sashanoraa <sasha@noraa.gay>
2022-05-15[accessibility] Add description for the pinafore logo (#568)Libravatar OniriCorpe1
Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2022-04-15[feature] Web profile pages for accounts (#449)Libravatar tobi10
* add default avatars * allow webModule to error * return errWithCode from account get * add AccountGetLocalByUsername * check nil requesting account * add timestampShort function for just month/year * move loading logic to New + add default avatars * add profile page view * update swagger docs * add excludeReblogs to GetAccountStatuses * ignore casing when selecting local account by username * appropriate redirects * css fiddling * add 'about' heading * adjust thread page to work with routing * return AP representation if requested + authorized * simplify auth check * go fmt * golangci-lint ignore math/rand
2022-02-16Use type=email for email input (#400)Libravatar Shadowfacts1
So that mobile devices with software keyboards use the email keyboard and turn off autocorrect/autocapitalization
2022-02-07[feature] add authorization to the already-existing authentication (#365)Libravatar Forest Johnson4
* add ensureUserIsAuthorizedOrRedirect to /oauth/authorize * adding authorization (email confirm, account approve, etc) to TokenCheck * revert un-needed changes to signin.go * oops what happened here * error css * add account.SuspendedAt check * remove redundant checks from oauth util Authed function * wip tests * tests passing * stop stripping useful information from ErrAlreadyExists * that feeling of scraping the dryer LINT off the screen * oops I didn't mean to get rid of this NewTestRouter function * make tests work with recorder * re-add ConfigureTemplatesWithGin to handle template path err Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-01-31[bug] Send plaintext emails to fix "message refused: Message is not RFC 2822 ↵Libravatar Forest Johnson4
compliant" (#366) * trying to fix "message refused: Message is not RFC 2822 compliant" * fix "message refused: Message is not RFC 2822 compliant" 550 5.7.1 Delivery not authorized, message refused: Message is not RFC 2822 compliant * remove silly regex * lint * fix tests * we should use text/template instead of html/template now
2022-01-30Bump nanoid from 3.1.25 to 3.2.0 in /web/gotosocial-styling (#364)Libravatar dependabot[bot]1
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.25 to 3.2.0. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.1.25...3.2.0) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-31smtp + email confirmation (#285)Libravatar tobi3
* add smtp configuration * add email confirm + reset templates * add email sender to testrig * flesh out the email sender interface * go fmt * golint * update from field with more clarity * tidy up the email formatting * fix tests * add email sender to processor * tidy client api processing a bit * further tidying in fromClientAPI * pin new account to user * send msg to processor on new account creation * generate confirm email uri * remove emailer from account processor again * add processCreateAccountFromClientAPI * move emailer accountprocessor => userprocessor * add email sender to user processor * SendConfirmEmail function * add noop email sender * use noop email sender in tests * only assemble message if callback is not nil * use noop email sender if no smtp host is defined * minify email html before sending * fix wrong email address * email confirm test * fmt * serve web hndler * add email confirm handler * init test log properly on testrig * log emails that *would* have been sent * go fmt ./... * unexport confirm email handler * updatedAt * test confirm email function * don't allow tokens older than 7 days * change error message a bit * add basic smtp docs * add a few more snippets * typo * add email sender to outbox tests * don't use dutch wikipedia link * don't minify email html
2021-10-13add new logo + credits (#277)Libravatar tobi2
2021-09-24Goreleaser (#241)Libravatar tobi3
* add goreleaser tooling * add files + hook * update hooks * allow passing build-dir using cli args * build tweaks * tweak more * update drone and goreleaser * chill out tests * remove postgres * docker push on snapshot * update releaser
2021-09-13fix viewport scaling for mobileLibravatar f0x1
2021-09-13include Fork-Awesome files in-repo (#222)Libravatar f0x5214
2021-09-13Thread views on the web (#207)Libravatar f0x5224
* 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 f0x523
2021-07-13Noescape (#88)Libravatar f0x521
* disable html escaping for short description * provide noescape function for templates * move template functions before template loading * go fmt * linter fixes
2021-07-09Css button tweak (#93)Libravatar f0x522
* 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 f0x522
* css styling tweaks * bundle * apply styling to textarea as well * bundle, whitespace
2021-07-08undo template no escape (#87)Libravatar Tobi Smethurst1
2021-07-08disable html escaping for short description (#84)Libravatar f0x521
2021-06-28Fix 404 contact (#74)Libravatar Tobi Smethurst1
* Fix a little bug in the contact href on 404
2021-06-28put version in binary properly (#73)Libravatar Tobi Smethurst1
Addresses #71 : Set version on the CLI framework. Add a build.sh script that injects variables into the build tooling using git and a version file. Set version in config.
2021-06-23Instance settings updates (#59)Libravatar Tobi Smethurst2
Allow admins to set instance settings through a PATCH to /api/v1/instance Update templates to reflect some of the new fields
2021-06-21Opengraph meta tags (#55)Libravatar f0x521
* add favicon * add opengraph tags with title and description
2021-06-21add 404 handler (#57)Libravatar f0x521
2021-06-21add favicon (#54)Libravatar f0x521
2021-06-21new styling for frontpage, update login and authorize templates (#46)Libravatar f0x5212
* new styling for frontpage, update login and authorize templates * run go fmt * add AssetBaseDir to command flag parsing * untested: move landing page to it's own router * go fmt, fix typo * fix package, adapt to proper Route structure
2021-03-22Oauth/token (#7)Libravatar Tobi Smethurst1
* add host and protocol options * some fiddling * tidying up and comments * tick off /oauth/token * tidying a bit * tidying * go mod tidy * allow attaching middleware to server * add middleware * more user friendly * add comments * comments * store account + app * tidying * lots of restructuring * lint + tidy
2021-03-20tidying upLibravatar tsmethurst1
2021-03-18auth flow working for codeLibravatar tsmethurst2
2021-03-03further funLibravatar tsmethurst1