Ecosyste.ms: OpenCollective

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

github.com/userstyles-world/userstyles.world

⭐ Website to browse and share UserCSS userstyles. A modern replacement for UserStyles.org made by the userstyles community.
https://github.com/userstyles-world/userstyles.world

refactor(validator): restructure as a new package

28e380ca1d590e9f28042ea858d1523e69a931fc authored over 1 year ago by vednoc <[email protected]>
refactor(util): improve correctness for passwords

6a7ffee28a26721e2a58ff9621fb226b4cd6f8f9 authored over 1 year ago by vednoc <[email protected]>
fix(cache): improve the correctness for metrics

Using `Set` will override the existing value, whereas `Add` will just
increment the existing val...

c4fc08e165ab0ebf0234097cbb8511608b6fa230 authored over 1 year ago by vednoc <[email protected]>
feat(cache): collect code metrics for Prometheus

2184fe0c7f1510b5cc7411d403ed6bbd88f722b0 authored over 1 year ago by vednoc <[email protected]>
feat(cache): add a way to get size of items in LRU

We'll be using this in Prometheus to monitor size changes over time.

5c4bade3c7cc31d02e256429fbacc66c615bb8e3 authored over 1 year ago by vednoc <[email protected]>
feat(cache): add a separate update method to LRU

As discussed with @a0eoc.

ac286a411164e6cd5cd1ce2aa766758fe1ab7efe authored over 1 year ago by vednoc <[email protected]>
feat(cache): override values when adding to LRU

0a6ee097f365eb7d9b3932a1bc95328e1f46efd5 authored over 1 year ago by vednoc <[email protected]>
chore(db): set proper author to a userstyle

Somewhat related to #224 due to issues with soft-deletion.

80aa39d6615c27d48d6d157d32970df5b488d94d authored over 1 year ago by vednoc <[email protected]>
fix(email): update password reset label (#242)

338e9d3fd8cb6e222ca98b4ffa962e7241fdb68c authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
test(cache): add coverage for bumping LRU items

With this change, we now have 100% coverage for our LRU implementation.

981d63ee9029e0df814500b4b5e9700234e427df authored over 1 year ago by vednoc <[email protected]>
refactor(style): flatten code for ban emails

a82906ca0a1a8d0b52b7f44ec176022ad75a5dcd authored over 1 year ago by vednoc <[email protected]>
feat(cache): invalidate code where it's necessary

I included checks for ID parameters on endpoints that didn't have them.

Ref a6cdedb9303fe449170...

649837fcc8b3f585a943debc4015641d79591c7e authored over 1 year ago by vednoc <[email protected]>
refactor(ui): use textarea for ban message (#239)

Fixes #235

911a6abe590d3e6605b531038408335e2d5573c0 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
feat(cache): add a new LRU cache for code endpoint

Fixes #234

a6cdedb9303fe4491702f4322f4462b4d28df8aa authored over 1 year ago by vednoc <[email protected]>
feat(util): restructure password hashing utilities

1c9be2d26b42ea8985134512d82981209fb74ba0 authored over 1 year ago by vednoc <[email protected]>
refactor(email): move builder out of utils package

336662e5c74ad2bae005b2706011ed42844a4178 authored over 1 year ago by vednoc <[email protected]>
fix(search): show an error for invalid keywords

This might be sufficient... for now. We should write a manual in our
documentation with plenty ...

22b6c2d3336efbe9094c5731cb204cae77e99ec8 authored over 1 year ago by vednoc <[email protected]>
fix(db): move cleanup after table migrations

This will resolve `./tools/run setup` command failing on cleaning up a
table that doesn't even e...

7575987412001a959d0d3b5066480adfa1a6a315 authored over 1 year ago by vednoc <[email protected]>
refactor(db): move bootstrap query for FTS table

Fixes #231

be7b12445ebdf4fc334eb2cbaaceb50d74b02e34 authored over 1 year ago by vednoc <[email protected]>
fix(search): adjust weights for search fields

The goal here is to give more weight to titles and descriptions as a way
to return more relevant...

750a6e110205abe13dfa2f33e37707f953317771 authored over 1 year ago by vednoc <[email protected]>
Merge branch rewrite-email-templates (#229)

Move email templates to files

d20b2cd672f08449715a0bdf8622583fc1ac4ff5 authored over 1 year ago by vednoc <[email protected]>
refactor(email): improve consistency, fixes

e26f864221e45d135e72353243627e986133ce50 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(email): pass missing data to templates

5c728c9f8d41d14c724bbe4d5ffd5de4499527ae authored over 1 year ago by vednoc <[email protected]>
refactor(email): restructure template files

444cee2e3bb91fea24f0d5d5e622f0827a5e0554 authored over 1 year ago by vednoc <[email protected]>
refactor(email): remove needless boilerplate code

38506ddf7f2ab71327940026c1b1137173cc7895 authored over 1 year ago by vednoc <[email protected]>
fix(email): remove fiber.Ctx from async emails

This resolves panics introduced by me in d8bc72a3addf99815556d4452afdb4ad97c3c7fb.

9844649b3b56cff7774052cd8a192f56c3a5d529 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): add regards to password recovery

Now we have regards at the bottom of every letter.

c28a6a4b09fac982b0c608266d984b16711870dc authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): simplify rendering of templates

78ef2796002a44e688f5fa35ea6697567d24927d authored over 1 year ago by vednoc <[email protected]>
fix(email): update broken variables in templates

36624f35f35e3033ffa84d0ed4a6584b2e5de9f6 authored over 1 year ago by vednoc <[email protected]>
refactor(db): simplify queries for stats in badges

a9dd66fa8b7b966c48dc8cced81995ea45e8ea67 authored over 1 year ago by vednoc <[email protected]>
refactor(email): clarify team

7d3122ea2d6614c41ef86175ef9de22cd0cea623 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): fix overlooked things

8bfdabf3acc60506ad6552e7c230f6d27514354d authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): use templates for more parts

Even in previous commit duplicating email texts resulted in inconistency and bugs. Here are some...

f4f6ac17ab498e54738fbd97ccbba2761cc5713f authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): use templates

Fixed bugs, added bugs, changed things. Some tested, some untested, some result in panic, vednoc...

d8bc72a3addf99815556d4452afdb4ad97c3c7fb authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): move register templates to files

36e0446194396f9ea246be516d53c0bcbc151c28 authored over 1 year ago by vednoc <[email protected]>
Merge pull request #228 from a0eoc/banbetter

Style moderation email refactor

8b1aac975bd62d261e38937fe3d539643a0fa17c authored over 1 year ago by vednoc <[email protected]>
chore(db): add migration for mod log's new field

78b5e9a3b780a983644045e1eb307fbdb153edfb authored over 1 year ago by vednoc <[email protected]>
refactor(mod): add Message to Log struct

106a917443dbbc5b869ddbe8454526d105c2e7f8 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(email): paragraph closing

1c7a638bf5b68315339c7debc4ba13ff95e5d2a8 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(email): add reason and private message

ff2e210d70a20a14d8231e897ae162c5974bddaf authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(mail): add missing newlines

93afe3fec49ea6825a79e668e2942349b98d2327 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
Merge pull request #225 from a0eoc/howtochangeusername

Improve account page

eb80defa18d47406882d7584a252e3161be6a055 authored over 1 year ago by vednoc <[email protected]>
refactor(cache): switch over to gauge metric type

Counters reset at midnight, and it's more useful to see the amount of
processed stats every minu...

8566617f21a84a069b6d4621523b6a3c51fdb0f1 authored over 1 year ago by vednoc <[email protected]>
fix(db): improve taking snapshots of stats

Fixes #226

1ae5eb86027d401863fbe75b6669bb3d2f7669bc authored over 1 year ago by vednoc <[email protected]>
feat(ui): add tooltips on how to change username and email

8a21c773592925053139e68d07232f24b4bfff8d authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(ui): link to issues for feedback

0d793c1f1f8847e60f498aabcd9951d78a28bf63 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(db): remove incorrect logic from old refactor

91c5eaf9051d44a9bae00dd0384ac51cbb499784 authored over 1 year ago by vednoc <[email protected]>
chore(db): remove soft-deleted records from search

If I had a dollar every single time soft deletion has tricked me, I
would have enough dollars to...

3a82e9c49586b61a3fee1f9c75d4adf96e9169c6 authored over 1 year ago by vednoc <[email protected]>
fix(db): hide sorted userstyles without ratings

Not sure about this one. ATM, it's probably better than showing a ton
of userstyles without rat...

a794cee32214f0e11b4c9c39a0c805721b6ba513 authored over 1 year ago by vednoc <[email protected]>
Merge pull request #220 from a0eoc/weakweek

7ed0783476dd985669c92dab688802b4b64bf12e authored over 1 year ago by vednoc <[email protected]>
test(storage): add missing table to init phase

797419eea806dbeccad36f1a900b7d464c86b8f1 authored over 1 year ago by vednoc <[email protected]>
fix(db): improve performance when querying stats

This comes with a disadvantage of not having real-time stats. It looks
like a worthwhile tradeo...

14a170a38f8e9a98fd7a19680f9e5d712521c8dd authored over 1 year ago by vednoc <[email protected]>
chore(db): add a migration to reset histories

This is required for my upcoming commit, otherwise there will be a bug
that results in incorrect...

390b343e70bb8840153c6cd2b7296e179a38c93f authored over 1 year ago by vednoc <[email protected]>
fix(db): add missing query when sorting by rating

Accidentally lost this change while stashing away other changes. Thank
you @a0eoc for catching ...

101ed7d3813d736fb938a642d37d026558c01301 authored over 1 year ago by vednoc <[email protected]>
feat(ui): add an option to sort by ratings

Fixes #223

999eee8a4e83efc511af10b1435972a2de15b6ad authored over 1 year ago by vednoc <[email protected]>
Merge branch 'rewrite-search' into dev

Fixes #204

beac40bdb9f7ce6eed43ac186c11376286fd2422 authored over 1 year ago by vednoc <[email protected]>
feat(search): re-implement search engine metrics

2f3e47def1668e732aa6d89fbb84ceded33afafc authored over 1 year ago by vednoc <[email protected]>
feat(search): enable substring matching

51a361ef325e30674d479c97dd365f895a07bc7c authored over 1 year ago by vednoc <[email protected]>
chore(db): add a migration for search table

Additionally, this feature slows down the fresh build time from x to y
and incremental build tim...

30eca0192d13f22d9eae77ca484a5a48a917e5e1 authored over 1 year ago by vednoc <[email protected]>
fix(search): trim white space in the user input

1105dc58d4f391a7f227a8a4beacc52d5949367e authored over 1 year ago by vednoc <[email protected]>
feat(search): add sorting options and pagination

0abceb05cd0dbfcb56028960f29a141817a99b81 authored over 1 year ago by vednoc <[email protected]>
feat(search): add initial work for SQLite port

8d89e88671ebe70a404e7bf3444a5d9edf1d1c3f authored over 1 year ago by vednoc <[email protected]>
fix(ui): update calculation for the future time

The time in the future is supposed to be a negative integer.

bc606df6c55a4d652c5ac2ad19f0d490344752bc authored over 1 year ago by vednoc <[email protected]>
feat(util): add support for relative future time

It can be improved further by prepending "in" or appending something
like "from now", but we'll ...

eec50c4c4d12d9723ce8c4bed88f96413e966a24 authored over 1 year ago by vednoc <[email protected]>
refactor(review): switch to relative time

e8f12fd36ec3879faa96b77363f8736bfb68ad8a authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(ui): allow different page title for err

344b5ee39f38664c1e08bbb3c3e979514c8f5f89 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(review): fix and improve time check

Co-authored-by: vednoc <[email protected]>

71260d7a5825a4fd4839dcf920efbbeae779b2fd authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(ui): switch to a proper function for code size

Fixes #219

5f082f7d74a4be0693ca83fd9206069a7b0b68f6 authored over 1 year ago by vednoc <[email protected]>
refactor(util): use lowercase `k` for thousands

Will @a0eoc appreciate? I hope so!

5625fa602bd991a88c9f1b29f12d105eb19ab4b6 authored over 1 year ago by vednoc <[email protected]>
refactor(review): use a func

5e0c77607af2d40b7bda54c36335d2283e419500 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
feature(ui): disable review button when needed

268d54228791c4f8ecbb27b4483911e02f611f10 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
refactor(ui): improve review limit error, add time

Also refactored a bit how weeks are added not to duplicate the
-7 * 24 * time.Hour thing.
Time c...

a3b33a6006dae43e1006b6f48e7845343ef1fd26 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(db): add mod permissions in seed data (#218)

9959697081ee52bb7af9a7d835d2b352d6cc817a authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(stats): re-enable collection of snapshots

I'd like to see if this can provide us accurate stats before rewriting
it as a whole, so that we...

c85f33f18c6675dd475902fac833061b687cb9c5 authored over 1 year ago by vednoc <[email protected]>
fix(ui): use proper font in button elements

It wasn't an issue in my main browsers, so I didn't notice it earlier.
Thank you @winghongchan f...

409a0721eb2c7ed2c1e8a9503598f7e854c6f6fc authored over 1 year ago by vednoc <[email protected]>
test(storage): add another case for compact index

c03009957a212d58e3d000c7efaac855fb266ae0 authored over 1 year ago by vednoc <[email protected]>
fix(cron): make `go vet` happy

I forgot to stage this change earlier. Today is definitely not my day.

cd30ef12e8d55bf011b996f2fe2c41afc35cdbba authored over 1 year ago by vednoc <[email protected]>
style(go): make `go fmt` happy

a66dd87de6b66c7547a3070831b3bb025867881c authored over 1 year ago by vednoc <[email protected]>
chore(deps): bump github.com/gofiber/fiber/v2 from 2.42.0 to 2.43.0 (#216)

Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.42.0 to 2.43.0.
- ...

3e7c02a5d4026d52f5e7a26b1c97d31a87caae0d authored over 1 year ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
refactor(ui): improve alt texts in images (#217)

293e1d0e7d6a2e87bbf80552b5f87120afbf75db authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
perf(storage): remove batch processing temporarily

```
benchmark old ns/op new ns/op delta
BenchmarkGetStyl...

a72a6457ff2a24409f22a94d1878f2bd13e83973 authored over 1 year ago by vednoc <[email protected]>
perf(storage): remove sleeping in between batches

```
benchmark old ns/op new ns/op delta
BenchmarkGetSt...

f4b7fb0391de5924879d2099e3081c51526d48d6 authored over 1 year ago by vednoc <[email protected]>
perf(storage): write bytes to a `bytes.Buffer`

```
benchmark old ns/op new ns/op delta
BenchmarkGet...

170fdb3a123c76d0c10763285244f8f21602fd2d authored over 1 year ago by vednoc <[email protected]>
test(storage): add benchmark for compact index

:flushed:

```
BenchmarkGetStyleCompactIndex/10-8 10 102645468 ns/op 2074292 B/...

fb345ee8a66b09174564e3b7dc4ccad764d4b7f1 authored over 1 year ago by vednoc <[email protected]>
refactor(db): simplify getting stats on style page

This also improves consistency between style cards and style view page.

ba2ac8887760305636624e754aec064eee3b0745 authored over 1 year ago by vednoc <[email protected]>
test(storage): add a unit test for compact index

2ec89e59237ecd8150c21b7789cab15fdd7ab057 authored over 1 year ago by vednoc <[email protected]>
feat(ui): show CRC32 and size of style code (#211)

5347decfaa66893fa20bdd612b5a228d7ab82b76 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
docs(readme): add private URLs to style features

Cherry-picked this commit since it somehow got lost in #184. Perhaps my
branch didn't have up t...

99c722d3973b92bf1a9d8a7cd87e81937538e6fc authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
feat(ui): add a ban link to profile page (#212)

83e9085990379ee6f21efc8f436873879f94e6de authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(cache): add styles directory to init sequence

This is something we forgot to do in #203.

bb67f11e05ae30283e06f71b1867deb39bc7d955 authored over 1 year ago by vednoc <[email protected]>
feat(cache): use Prometheus for collecting stats

We'll be able to visualize them in Grafana, so that will be awesome.

d0d30a93e64615270ef4a3182c9182d0c6238ae5 authored over 1 year ago by vednoc <[email protected]>
refactor(email): make subjects more informative (#209)

d4c0f429f36116e7d1aa4e1ec999e723a9fb5f4a authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
Merge pull request #203 from a0eoc/stylefile

8e59236f95a18827239aaf053781f6b2af927812 authored over 1 year ago by vednoc <[email protected]>
chore(db): add migration for source code files

785d96c5ef0303e8fd3ac1d19a4df7d56e41978d authored over 1 year ago by vednoc <[email protected]>
refactor(style): don't use extension when saving

936bb0555288c85048fc3a4b9ed5084d16b135c7 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
feat(style): implement saving source code as files

e663a0c882dfe0d835d36d864884a114b1ee3430 authored over 1 year ago by vednoc <[email protected]>
refactor(style): add a method to save files

0d3e62fcd3fd852c141675cbf5b54dbef37aafc6 authored over 1 year ago by θ̫͖͑͋ε̧̺̊̄ó̪̱̒͝ς <[email protected]>
fix(api): customize response type for GET method

I'm not sure if it has any impact on Stylus, but let's play it safe.

adf6ef5f1c26c2b52030e41e61fff97f7ebb3381 authored over 1 year ago by vednoc <[email protected]>
refactor(api): improve and simplify code endpoint

This change should fit most, if not all, of the new requirements.

1c10ee97c703a44e3a82e462b5dc54fa3c48b5bf authored over 1 year ago by vednoc <[email protected]>
refactor(api): reorganize logic for code endpoint

19dfa0d3cb3bac61a719f8bab3c093d956ee1c40 authored over 1 year ago by vednoc <[email protected]>