Commit Graph

10 Commits

Author SHA1 Message Date
Aumetra Weisman 8586d06b1f
Update Meilisearch SDK (#527)
* upgrade meilisearch sdk

* restructure
2024-05-08 19:48:53 +02:00
aumetra 6aaa2c25b4
Add native support for the `X-Clacks-Overhead` header (#412)
* add tower middleware

* factor out logic into function

* integrate with kitsune

* add tests
2023-11-08 18:31:31 +00:00
aumetra 97eb0a2d0a
Restructure search logic (#397)
* create search service

* use search service

* progress

* finish restructure

* fix naming consistency
2023-10-29 13:17:28 +00:00
aumetra cc1aa20f9e
Basic UI functionality (#365)
* begin implementing home timeline

* up

* yarn up

* flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/f5892ddac112a1e9b3612c39af1b72987ee5783a' (2023-09-29)
  → 'github:nixos/nixpkgs/81e8f48ebdecf07aab321182011b067aafc78896' (2023-10-03)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/611ccdceed92b4d94ae75328148d84ee4a5b462d' (2023-10-03)
  → 'github:oxalica/rust-overlay/126829788e99c188be4eeb805f144d73d8a00f2c' (2023-10-07)

* begin implementing post component

* virtual scrolling

* infinite scrolling

* cleanup

* nice effects, post progress

* add attachment rendering

* add post page

* add changing titles

* some i18n, new post modal

* add move to thread view

* add character limit calculation, fix bundle size

* up

* progress

* flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/81e8f48ebdecf07aab321182011b067aafc78896' (2023-10-03)
  → 'github:nixos/nixpkgs/f99e5f03cc0aa231ab5950a15ed02afec45ed51a' (2023-10-09)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/126829788e99c188be4eeb805f144d73d8a00f2c' (2023-10-07)
  → 'github:oxalica/rust-overlay/aa7584f5bbf5947716ad8ec14eccc0334f0d28f0' (2023-10-12)

* remove obsolete tokens

* create glitchedelement wrapper that respects the reduced motion directive

* remove vue logo

* fix lints

* remove templated html pages

* remove conditional wrapper

* remove unused css and templates

* remove google fonts reference

* update oauth forms

* fix templates up

* up

* flake.lock: Update

Flake lock file updates:

• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14)
  → 'github:oxalica/rust-overlay/e494404d36a41247987eeb1bfc2f1ca903e97764' (2023-10-15)

* add local timeline, add global timeline, add infinite scrolling

* fix infinite scroll

* fix up styling

* fix modal style

* up
2023-10-21 14:51:50 +00:00
aumetra 874582e031
Separate target directory for rust-analyzer (#375) 2023-10-15 16:09:05 +02:00
aumetra bb001b5647
Restructure to have `kitsune-core` crate (#343)
* initial move

* progress

* progress

* kinda finish?

* share test utilities via crate

* fixups

* remove deref anti-pattern

* fix feature flag

* move figlet

* bring zustand back

* more garde

* fix validation

* add tests

* fix update validation

* clippy lints

* update

* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23)
  → 'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06)
  → 'github:nixos/nixpkgs/ace5093e36ab1e95cb9463863491bee90d5a4183' (2023-09-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1b4fad9dccece45c25b9ebda607427d69a8f1eae' (2023-09-09)
  → 'github:oxalica/rust-overlay/f84bb1621574473d05e6ed79ba57a371d8ad8259' (2023-09-16)

* move default limit

* use garde to enforce limit

* remove unused
2023-09-17 08:02:03 +00:00
aumetra e0ca80e567
Federation filters (#159)
* add configuration, add regex compilation

* basic federation filter service impl

* fix

* add simd-accel to globset

* install federation filter

* add tests
2023-04-07 00:18:30 +02:00
aumetra cabf86542c
Project restructure (#62)
* create db crate, move to generated entities

* move all the types into the db crate, delete old db module

* add note to script

* port server to new db crate, disable graphql for now

* move cli into own package

* port graphql api

* reenable graphql

* enable uuidv7 feature

* change to entity aliases, fix queries for posts

* more annotations

* up
2023-02-05 00:35:58 +01:00
aumetra 51e7ad545d
Add search functionality (#50)
* add grpc service skeleton

* add protobuf to flake

* add docs, add reset rpc

* add some basic functionality

* make the used distance parameter configurable

* fix index dir creation, store id

* add health and use human_size of arena size config

* change proto files to prepare for multiple indicies

* add dockerfiles

* complete search service, add tests

* actual pagination

* fix total_pages value

* allow for batching by accepting streams

* refactor a lil bit

* add some docs

* include the score inside the response

* move proto files, move proto codegen into own crate

* add search client

* add page to params

* allow for multiple nodes running at the same time

* update

* flake.lock: Update

Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/61a8a98e6d557e6dd7ed0cdb54c3a3e3bbc5e25c' (2022-12-03)
  → 'github:nixos/nixpkgs/befc83905c965adfd33e5cae49acb0351f6e0404' (2023-01-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/9767af967a0becaa3bb79eeda838dbf81295eb62' (2022-12-06)
  → 'github:oxalica/rust-overlay/aab6eb2dfc7a1e42d94b6f24ef13639ff8544af4' (2023-01-15)

* satisfy clippy

* handle multiple indexing operations concurrently, fix warnings

* replace if-let with map_err

* remove unneeded borrows

* rename variable

* docs

* add config values

* remove clippy requirement from codegen

* add search service to state

* add empty search endpoint

* basic search

* remove clippy from test run requirement

* add more advanced filtering options

* unnest min_id and max_id

* satisfy clippy

* mark all fields as FAST

* docs

* dont spawn off the server

* index public posts on insertion

* remove from index upon deletion

* abstract search service with trait, index accounts and notes on fetch

* make search api mastodon compatible

* update readme

* fix warning
2023-01-17 18:41:42 +01:00
aumetra 204104e375
Basic unit tests (#18)
* add webfinger tests

* fix some things

* optimise boxing

* abstract over cache using traits

* set redis cacher as default type

* small cleanups

* fix sqlite queries

* add some more annotations

* add fetch actor test

* add sqlite to flake

* add note test
2022-12-12 17:42:43 +01:00