Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

UserStyles.world

Free/Libre and Open-Source platform for hosting userstyles.
Collective - Host: opensource - https://opencollective.com/userstyles - Website: https://userstyles.world - Code: https://github.com/userstyles-world

refactor(proxy): use an already available function

github.com/userstyles-world/userstyles.world - 9a4695ce07027291e8af761a79e9f5a829c4c34b authored about 2 years ago by vednoc <[email protected]>
fix(proxy): avoid proxying images larger than 8MB

While I thought `io.LimitReader` would do the job, turns out that it
reads an image up to a cert...

github.com/userstyles-world/userstyles.world - 656dad776777e35bdbbc35a051e3d3cf768f16ae authored about 2 years ago by vednoc <[email protected]>
refactor(proxy): use `net/http` to download images

- Instead of using Fiber's agent to download the image, use `net/http`'s
client to do this. This...

github.com/userstyles-world/userstyles.world - f90a497d13fc13c55d24c90ad169d7192b1993ac authored about 2 years ago by Gusted <[email protected]>
refactor(api): offload botnet check to NGINX

github.com/userstyles-world/userstyles.world - e4c35f4e431429f43d3b85ee8b30918c8508d5f5 authored about 2 years ago by vednoc <[email protected]>
refactor(server): simplify checking for admin role

github.com/userstyles-world/userstyles.world - 6315a915b465846fe709c889c9c93a3c0ab4ac78 authored about 2 years ago by vednoc <[email protected]>
refactor(server): separate pprof middleware routes

By putting it in a group, Fiber won't route every request through it.

github.com/userstyles-world/userstyles.world - 7742288f7854a77fda854fc419954f28f848aae2 authored about 2 years ago by vednoc <[email protected]>
refactor(server): remove compress middleware

We'll offload this to functionality to NGINX for now, too.

github.com/userstyles-world/userstyles.world - cfad12c3944b427e516f3692c7464490b5ae2651 authored about 2 years ago by vednoc <[email protected]>
refactor(server): remove rate limiter middleware

It appears to be buggy for some unknown reason(s), so I'm going to
offload this functionality to...

github.com/userstyles-world/userstyles.world - ee2dfb9af18193070d4b69f333eaf3b993191c9a authored about 2 years ago by vednoc <[email protected]>
feat(debug): add an endpoint that frees OS memory

I'm curious to see how this will work with Go 1.19 in production.

github.com/userstyles-world/userstyles.world - 8f7adc1d5896145ca3d91f4940313c0c1e74f42f authored about 2 years ago by vednoc <[email protected]>
chore(deps): upgrade to Go 1.19

github.com/userstyles-world/userstyles.world - c8eeb21b9e3fcccd585d873b9c902327c870d225 authored about 2 years ago by vednoc <[email protected]>
refactor(cron): mirror userstyles on every 4 hours

github.com/userstyles-world/userstyles.world - b807ad4e07d5baef58fd45b206210452ff07389e authored about 2 years ago by vednoc <[email protected]>
fix(api): add a botnet check on code endpoint

github.com/userstyles-world/userstyles.world - bde83717b61ddcdd8829fcb45be9a50d57e580b8 authored about 2 years ago by vednoc <[email protected]>
fix(docs): update a broken link reference

github.com/userstyles-world/userstyles.world - a25083c87635d9b7c4a84f3671d797b396d317bd authored about 2 years ago by vednoc <[email protected]>
refactor(mirror): rename update package to mirror

github.com/userstyles-world/userstyles.world - 26beebffb9f485ff410cf96e6c76aad25737a0e0 authored about 2 years ago by vednoc <[email protected]>
refactor(update): revise comments and log messages

github.com/userstyles-world/userstyles.world - f5ed9b525ab23880bac9665c207ad71f21560627 authored about 2 years ago by vednoc <[email protected]>
refactor(update): wrap goroutines in a wait group

github.com/userstyles-world/userstyles.world - d97126cd030e45763394995a6901d9c7eb9d2231 authored about 2 years ago by vednoc <[email protected]>
fix(update): include only metadata when mirroring

I forgot to include mirroring only the metadata, since most userstyles
are using this option in ...

github.com/userstyles-world/userstyles.world - f16a5193d038a74bd928e9078d3ca51413390250 authored about 2 years ago by vednoc <[email protected]>
fix(db): limit the max amount of open connections

This commit prevents scenarios where we have a lot of traffic and not
enough processing power to...

github.com/userstyles-world/userstyles.world - 09b97606a7d69706f920622aff1b2bc5962a0a7c authored over 2 years ago by vednoc <[email protected]>
refactor(db): log DB stats to confirm a theory

github.com/userstyles-world/userstyles.world - 2141a3884e25624c801f32ce41ba400e0fdbac00 authored over 2 years ago by vednoc <[email protected]>
refactor(update): optimize and improve performance

Same goal as with my previous commit—reducing memory spikes. I also
removed the 5 second sleep/...

github.com/userstyles-world/userstyles.world - 02ac857b604cb7a19b9d85fb70ae9bbf4b3fe9f4 authored over 2 years ago by vednoc <[email protected]>
refactor(api): optimize DB query for style index

This change should help reduce the frequency of memory spikes. It might
not do much on its own,...

github.com/userstyles-world/userstyles.world - 35d70316534e759060672f85313cfa42b674eb88 authored over 2 years ago by vednoc <[email protected]>
refactor(stats): simplify upserting views/installs

Part one of two (or three) for optimizing this functionality. There is
an impact on performance...

github.com/userstyles-world/userstyles.world - fcf751146dc72e7c88069b5ba9b5d4ebc7889419 authored over 2 years ago by vednoc <[email protected]>
refactor(pprof): tidy up admin check

github.com/userstyles-world/userstyles.world - 6527877061d0ab9cddb39ff23f1996bc12f03d24 authored over 2 years ago by Gusted <[email protected]>
refactor(test): tidy up tests

github.com/userstyles-world/userstyles.world - e6d1ae2776f311c2cec8f9970b4ad0444982558c authored over 2 years ago by Gusted <[email protected]>
refactor(deadcode): remove unused code

github.com/userstyles-world/userstyles.world - c2164f6815930572b09ccfdeb4c38fb0df061edb authored over 2 years ago by Gusted <[email protected]>
refactor(templates): remove unused argument

github.com/userstyles-world/userstyles.world - 09b12a431b46d148597994fcc08c192e1d17304c authored over 2 years ago by Gusted <[email protected]>
chore(mod): run `go mod tidy`

github.com/userstyles-world/userstyles.world - 0557ad55d39b2865d09e473e27c603a2c8d7b932 authored over 2 years ago by Gusted <[email protected]>
fix(ui): tweak leftovers for styles without images

github.com/userstyles-world/userstyles.world - 71d156876e11f85da63626ef01804c0baf236835 authored over 2 years ago by vednoc <[email protected]>
refactor(server): switch to a fixed-window limiter

I have a hypothesis that needs to be tested in production environment.

github.com/userstyles-world/userstyles.world - dc21e1ab351b46ea527a857f75b2f0706528e20a authored over 2 years ago by vednoc <[email protected]>
feat(ui): add dividers to login/register pages

github.com/userstyles-world/userstyles.world - 6eea07536f45363fd2c87f65762aaeca93bdfc6b authored over 2 years ago by vednoc <[email protected]>
fix(images): add cache-control response header

github.com/userstyles-world/userstyles.world - d6222e6bb3a8883c4a09a6c0cab6a91d1235522d authored over 2 years ago by vednoc <[email protected]>
refactor(ui): simplify handling sizes of icons

github.com/userstyles-world/userstyles.world - 61641efc5a717ec88d647c96ed8c304a4553ca9f authored over 2 years ago by vednoc <[email protected]>
refactor(ui): update input titles on register page

github.com/userstyles-world/userstyles.world - b428f128fa0c885d74517974e4eaf5b81f91125f authored over 2 years ago by vednoc <[email protected]>
fix(ui): add placeholders to inputs on log in page

This commit fixes invalid state for inputs when there is no input.

github.com/userstyles-world/userstyles.world - a7608b2229664dd701a3c190564dae238f9cf3b1 authored over 2 years ago by vednoc <[email protected]>
feat(ui): add icons to buttons on home page

github.com/userstyles-world/userstyles.world - c1772f47956b20029f4002370211a207e41b8339 authored over 2 years ago by vednoc <[email protected]>
fix(cmd): resolve an alert for fonts executable

Fixes #125

github.com/userstyles-world/userstyles.world - 2973d34bdff15e9bac55a14211da2dd866be99e3 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): revise help commands

This is an addendum to 2f8dabbbfe54e605453553f461b253e6c73116f6 commit:

To build a development/...

github.com/userstyles-world/userstyles.world - 114ed018ac5b994ac0f2bb67f729be3c279bb70a authored over 2 years ago by vednoc <[email protected]>
fix(seo): resolve a bug with styles without images

Fixes #124

github.com/userstyles-world/userstyles.world - d5241bbb17e48574bbe627e94825b8d2b380ab8e authored over 2 years ago by vednoc <[email protected]>
feat(seo): add support for Discord and Twitter

github.com/userstyles-world/userstyles.world - dfc22b3d16671956521bdfc854f8c2798bfeb480 authored over 2 years ago by vednoc <[email protected]>
refactor(seo): simplify variables on style pages

github.com/userstyles-world/userstyles.world - 176803633b4645e6c6bdf703634b865ffc3dc447 authored over 2 years ago by vednoc <[email protected]>
feat(ui): refine info on multiple pages

github.com/userstyles-world/userstyles.world - bcca8da4755d6680964f01e7084cfb207466e9ac authored over 2 years ago by vednoc <[email protected]>
feat(cmd): check user roles on `debug` endpoints

Now we can run this middleware in production.

github.com/userstyles-world/userstyles.world - 1232cf3f68a7a40e75cf01d33c8aefef46edc280 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): tidy up help command and errors

github.com/userstyles-world/userstyles.world - a75155206ea225a1c7f42715fb0558dbf38ccd28 authored over 2 years ago by vednoc <[email protected]>
fix(tools): tweak the logic for `setup` command

After this commit, using `run setup build prod` will bypass running
development then production ...

github.com/userstyles-world/userstyles.world - 2f8dabbbfe54e605453553f461b253e6c73116f6 authored over 2 years ago by vednoc <[email protected]>
fix(tools): update hints and add `dc` dependency

github.com/userstyles-world/userstyles.world - fbe0a92a007191fd8272f325d7537a7bd8a30832 authored over 2 years ago by vednoc <[email protected]>
feat(cmd): implement graceful shutdown

github.com/userstyles-world/userstyles.world - b17ddb3985bdf8e2063298543be29cf257028a59 authored over 2 years ago by vednoc <[email protected]>
fix(search): resolve a bug with too many results

With this commit, we'll be returning proper results in case there are
more than 96 matches in ou...

github.com/userstyles-world/userstyles.world - 23db8b8309a28043b09ea126b8f5aedacf24f0e0 authored over 2 years ago by vednoc <[email protected]>
refactor(ui): switch to the new mascot SVG

We also need to add back the hack for Dark Reader colors. This time
around, they will reside in...

github.com/userstyles-world/userstyles.world - 160ded1af6d493848db88857171bc0fe8a9517e1 authored over 2 years ago by vednoc <[email protected]>
fix(oauth): resolve login issues with OAuth

Fixes #122

github.com/userstyles-world/userstyles.world - 2cbac633247ff2c87f38ce64c6827088ff317e7b authored over 2 years ago by vednoc <[email protected]>
feat(ui): improve mascot SVGs (#123)

List of improvements/optimizations:

- formatting for readability
- replaced width/height wit...

github.com/userstyles-world/userstyles.world - 904f6dfacf1b050d44999693d65bf3dc28ea9577 authored over 2 years ago by Riedler <[email protected]>
fix(config): resolve a bug with allowed image URLs

github.com/userstyles-world/userstyles.world - d018927ace94bfdc449a687ca80f7b42884fd359 authored over 2 years ago by vednoc <[email protected]>
feat(docs): implement support for front matter

github.com/userstyles-world/userstyles.world - 42ae4f2b9a49a51ec3f0451073a199d6a09b7a72 authored over 2 years ago by vednoc <[email protected]>
fix: exclude the missing localhost

Extends the #1 pull request.

github.com/userstyles-world/tweaks - 8527ca10573bd2ded1b06ce49ebf35255e5ca0c9 authored over 2 years ago by vednoc <[email protected]>
fix: exclude localhost (#1)

github.com/userstyles-world/tweaks - 83dcfc12d659478d4179b62f352245fa8cbabf46 authored over 2 years ago by Thomas Bnt <[email protected]>
chore(db): move migrations to a separate file

I'm moving it there to simplify things because we'll have plenty of new
one-time migrations in t...

github.com/userstyles-world/userstyles.world - d186fee0b03370c936eaeeb1483154a70fdb52d9 authored over 2 years ago by vednoc <[email protected]>
fix(api): optimize DB query on `code` endpoint

The old query was returning far too much data that we don't necessarily
need on this endpoint. ...

github.com/userstyles-world/userstyles.world - f756ac676a0a0318d91f1f8b04bb6263b11d1f10 authored over 2 years ago by vednoc <[email protected]>
fix(images): update missed links to new schema

github.com/userstyles-world/userstyles.world - 27861e089255fea62f8b0fc4d607f34b803bb7b0 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): revise checks and variables

Looks like this ancient utility—dc—isn't preinstalled on some systems.

github.com/userstyles-world/userstyles.world - 738c7512e5f10d4b47be404a3d7923d45cae57a5 authored over 2 years ago by vednoc <[email protected]>
refactor(db): remove debug methods from queries

github.com/userstyles-world/userstyles.world - 70da64104bd767b0d78926653fd0436d0a4b3f9d authored over 2 years ago by vednoc <[email protected]>
refactor(ui): tidy up code for settings page

github.com/userstyles-world/userstyles.world - 1bac46fb7b522c9e516897fa8cb3322f23a9d376 authored over 2 years ago by vednoc <[email protected]>
refactor(modules): revise code comments

Thank you @Gusted for your suggestions.

github.com/userstyles-world/userstyles.world - 65c61c3d087d5fb6fe8e3ea1535515e4f1540b52 authored over 2 years ago by vednoc <[email protected]>
feat(ui): add pagination to profile pages

Fixes #120

github.com/userstyles-world/userstyles.world - 8c678a93f034c8ea500bbce3771bd73460c32c7e authored over 2 years ago by vednoc <[email protected]>
refactor(template): make pagination more flexible

github.com/userstyles-world/userstyles.world - 110f25c40a466962b55f7abc0541835ed1fa162f authored over 2 years ago by vednoc <[email protected]>
feat(ui): add a notice for old USo-archive website

Fixes #121

github.com/userstyles-world/userstyles.world - eb09ab4623f10b7814d09dfa9163490eee80f0a5 authored over 2 years ago by vednoc <[email protected]>
feat(tools): add an example .env file

We should look into properly documenting these variables in `config`
module, at the very least, ...

github.com/userstyles-world/userstyles.world - bdf6fa9bc0c9b8801e179a4ac6c8f7773a3ced05 authored over 2 years ago by vednoc <[email protected]>
refator(tools): remove obsolete drop command

It can be recreated by using a custom .env file that contains the same
environment variables. R...

github.com/userstyles-world/userstyles.world - 33b279cd7ad1cc7d30f327abb7bf0ba1aa0f28ce authored over 2 years ago by vednoc <[email protected]>
feat(docs): expand on how to go about contributing

github.com/userstyles-world/userstyles.world - 26a1785422e9bb5c41746cdae93414acf0e9ceb3 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): revise comments and formatting

github.com/userstyles-world/userstyles.world - d4cb0738066c1abfe1d852a39c577020ee10702c authored over 2 years ago by vednoc <[email protected]>
chore(docs): move contribution guide to docs dir

github.com/userstyles-world/userstyles.world - 09159a3d422688cc7a39ff093b3f731192f59c66 authored over 2 years ago by vednoc <[email protected]>
feat(cmd): rewrite getting fonts in pure Go

This removes two dependencies: `curl` and `unzip`. I've also thrown
around the idea of rewritin...

github.com/userstyles-world/userstyles.world - 034ae9962689b078ff3e8e8fb5585f48a026558a authored over 2 years ago by vednoc <[email protected]>
feat(tools): document usage in overview function

github.com/userstyles-world/userstyles.world - c62282d3c91b3f7307fe1bd14d553ce3d056e71c authored over 2 years ago by vednoc <[email protected]>
feat(tools): use proper exit/return codes

github.com/userstyles-world/userstyles.world - 09852d277e069f6816b53a8f25642fafa8388f28 authored over 2 years ago by vednoc <[email protected]>
fix(tools): load config files relative to root dir

github.com/userstyles-world/userstyles.world - c3be93aa289e3abab65a92f3752c2f17eb13b46d authored over 2 years ago by vednoc <[email protected]>
feat(tools): allow customizing DATA_DIR directory

github.com/userstyles-world/userstyles.world - 51bf63a77733c4eaaf20d722aa4e04b576c0436e authored over 2 years ago by vednoc <[email protected]>
feat(tools): implement self-documenting functions

github.com/userstyles-world/userstyles.world - c51c41283aa1889089c85155fe2851ee416f09d4 authored over 2 years ago by vednoc <[email protected]>
fix(images): resolve bad logic on edit page

Unlike add and import pages, we definitely don't want to remove current
image in case the new im...

github.com/userstyles-world/userstyles.world - 09585cb28251cadcd2444716f3d55cf35d85f4d2 authored over 2 years ago by vednoc <[email protected]>
feat(tools): implement watching for all files

github.com/userstyles-world/userstyles.world - 2047c0150c1af934249b811222fbd6931f9ba36c authored over 2 years ago by vednoc <[email protected]>
feat(tools): add dev and prod builds for Sass

Development build now has some extras to make debugging easier.

github.com/userstyles-world/userstyles.world - 710102d2b5d624dc165ff1d0a2c8f62ada9c2f97 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): migrate database during setup

github.com/userstyles-world/userstyles.world - 299c02ada4338c40e5201598775a1c66749e212b authored over 2 years ago by vednoc <[email protected]>
refactor(tools): condense setup function

github.com/userstyles-world/userstyles.world - 0e73909d2fec2a514b9be169666792e436aa9df7 authored over 2 years ago by vednoc <[email protected]>
feat(ui): switch to relative timestamps everywhere

I got tired of remembering time formats, all of which have different
downsides to them. By swit...

github.com/userstyles-world/userstyles.world - d11e57e2ecdb809930bff0a788c52296620ba0ea authored over 2 years ago by vednoc <[email protected]>
refactor(tools): condense watch functions

github.com/userstyles-world/userstyles.world - 1cb7b84d197bb7651974872b03219e3a0162219c authored over 2 years ago by vednoc <[email protected]>
refactor(tools): tidy up code in case statements

github.com/userstyles-world/userstyles.world - 2168d91215716b433b3dc60fb08725b012c8edad authored over 2 years ago by vednoc <[email protected]>
feat(ui): convert timestamps to local time

github.com/userstyles-world/userstyles.world - 101cd01fe10eee5cb70325dcd52db3286a450a87 authored over 2 years ago by vednoc <[email protected]>
refactor(tools): condense build functions

github.com/userstyles-world/userstyles.world - d75abbea54257a862ba436a613f15c0154807c5e authored over 2 years ago by vednoc <[email protected]>
refactor(search): relocate the package to modules

github.com/userstyles-world/userstyles.world - b5eb27d5805e2355f26fae9cfb0279ad8d1e9725 authored over 2 years ago by vednoc <[email protected]>
feat(tools): split output for dev and prod builds

I wanted to split dev and prod builds in order to test them more easily.
A cool side-effect is t...

github.com/userstyles-world/userstyles.world - 9b5078afb633b153e6b2d945cf347aa8fcb9bf6f authored over 2 years ago by vednoc <[email protected]>
refactor(search): reuse code for selecting cards

github.com/userstyles-world/userstyles.world - c09e477c209f34f08373e44dd6b37db8361987a2 authored over 2 years ago by vednoc <[email protected]>
refactor(storage): port style cards in dashboard

github.com/userstyles-world/userstyles.world - 540a7932a04f3b9e39885c790563115c6687f7fc authored over 2 years ago by vednoc <[email protected]>
refactor(storage): simplify code for explore page

github.com/userstyles-world/userstyles.world - fdf4a7d1b99e860e0fe7f3ef2923dd0145a4dc33 authored over 2 years ago by vednoc <[email protected]>
refactor(storage): port explore style cards query

github.com/userstyles-world/userstyles.world - f59809d448696471336cf4866e24081761c0557e authored over 2 years ago by vednoc <[email protected]>
fix(storage): resolve a bug with soft deletion

By using `Table()` method, we need to manually check for soft deleted
records. While inconvenie...

github.com/userstyles-world/userstyles.world - c2a33a33b138c137dc6212f2912696b2e58de73d authored over 2 years ago by vednoc <[email protected]>
refactor(storage): rewriting styles for users

github.com/userstyles-world/userstyles.world - 9e8fff6170d742ee3f6fc80e599e2de2ed717bac authored over 2 years ago by vednoc <[email protected]>
refactor(storage): port featured style cards query

github.com/userstyles-world/userstyles.world - 196aa41666ddd326e4f23db677fd015c8c10b9b0 authored over 2 years ago by vednoc <[email protected]>
refactor(storage): port users table in dashboard

github.com/userstyles-world/userstyles.world - 803d97d9a4e82e09fec1def145de28434e14b400 authored over 2 years ago by vednoc <[email protected]>
refactor(search): group relevant code for styles

github.com/userstyles-world/userstyles.world - 7e7f3249bdc332282ff7f0c3171f1f14ddad25fa authored over 2 years ago by vednoc <[email protected]>
feat(storage): optimize indexing individual styles

github.com/userstyles-world/userstyles.world - 669c7da92ce5f5074a32f27b8f50c56881f7ab6e authored over 2 years ago by vednoc <[email protected]>
refactor(search): tidy up code and add comments

github.com/userstyles-world/userstyles.world - ae7f9e25ef50b5de4bfe1925a40afcc25ea503f8 authored over 2 years ago by vednoc <[email protected]>
fix(search): use data from database for cards

Currently we use data from index cache, which isn't kept up-to-date and
that leads to having a v...

github.com/userstyles-world/userstyles.world - 94fb67ba4e787b8683a01f6ec0b86e8e64e5427b authored over 2 years ago by vednoc <[email protected]>