Commit graph

  • 7dff4e88d4 Merge branch 'captcha-n' into 'main' Alex Gleason 2024-10-11 22:43:39 +00:00
  • d4f3c673a2
    deno lint Alex Gleason 2024-10-11 17:35:45 -05:00
  • 651b5d6fe3 Merge branch 'eslint' into 'main' Alex Gleason 2024-10-11 21:54:02 +00:00
  • 81a15ac82d Merge branch 'improve-lande-use' into 'main' Alex Gleason 2024-10-11 21:52:11 +00:00
  • a484634d36
    Switch captcha_solved from a label event to an n-tag on a user event Alex Gleason 2024-10-11 16:50:52 -05:00
  • 9c7e35a6b4 refactor: code preferences, formatting P. Reis 2024-10-11 18:47:38 -03:00
  • 432229c0f0 Merge branch 'update-credentials-fix' into 'main' Alex Gleason 2024-10-11 21:31:22 +00:00
  • c5ddd2ebb7
    Make verify_credentials and update_credentials return a consistent CredentialAccount object Alex Gleason 2024-10-11 16:25:29 -05:00
  • c898868cb9
    eslint? Alex Gleason 2024-10-11 14:10:22 -05:00
  • 36d09af467 feat: make lande great again create detectLanguage() function that removes emojis, links and other weird invisible characters P. Reis 2024-10-11 14:28:01 -03:00
  • fab0c8a409 Merge branch 'upgrade-dockerfile-deno-version' into 'main' Alex Gleason 2024-10-11 16:29:23 +00:00
  • 380ac42033
    upgrade deno version in dockerfile Siddharth Singh 2024-10-11 21:50:40 +05:30
  • 6fb3bfafc0
    Mark registrations enabled in v2 instance Alex Gleason 2024-10-11 02:52:41 -05:00
  • 1cb13b141a feat: improve setLanguage() function, remove links and emojis from event.content before using lande P. Reis 2024-10-10 22:46:37 -03:00
  • 522a283af1 Merge branch 'translator-env' into 'main' Alex Gleason 2024-10-10 19:22:12 +00:00
  • df3b8863df
    LibreTranslateTranslator: move headers to plain object, add url variable Alex Gleason 2024-10-10 14:16:29 -05:00
  • 655e94ef91
    DittoTranslator: move provider to top of interface Alex Gleason 2024-10-10 14:14:29 -05:00
  • 12d643e150
    Add translation cache metrics, let the cache be configurable Alex Gleason 2024-10-10 14:12:20 -05:00
  • d639d9a14d
    Reorganize translation interfaces/files Alex Gleason 2024-10-10 14:06:04 -05:00
  • 874da1baad
    Delete unused cacheMiddleware and ExpiringCache module Alex Gleason 2024-10-10 14:01:18 -05:00
  • 9469fff6ac
    Rename translation variables from _ENDPOINT to _BASE_URL Alex Gleason 2024-10-10 13:48:50 -05:00
  • b6f9fe5770
    grafana: ditto_db_query_duration_ms -> ditto_db_query_duration_seconds Alex Gleason 2024-10-10 13:26:05 -05:00
  • 4597d1018e Merge branch 'http-metrics' into 'main' Alex Gleason 2024-10-10 18:25:17 +00:00
  • 6107ce88e2
    metrics: ditto_db_query_duration_ms -> ditto_db_query_duration_seconds Alex Gleason 2024-10-10 13:20:48 -05:00
  • 81c28825a8
    Record HTTP response time metrics Alex Gleason 2024-10-10 13:20:03 -05:00
  • df8004e261
    Decrease rate limit of translations Alex Gleason 2024-10-09 21:04:05 -05:00
  • 33d2eb6ca3
    Remove Provider type (it's just a string) Alex Gleason 2024-10-09 21:02:55 -05:00
  • c048cda2e5
    Upgrade @gleasonator/policy in deno.lock, increase policy db timeout Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/244 Alex Gleason 2024-10-09 20:22:12 -05:00
  • d4767f56c6
    Enable translations dynamically depending on whether a TRANSLATION_PROVIDER is set Alex Gleason 2024-10-09 20:17:04 -05:00
  • 878535c428 Merge branch 'worker-names' into 'main' Alex Gleason 2024-10-09 22:59:15 +00:00
  • 4d146dcc98
    Add names to web workers Alex Gleason 2024-10-09 17:58:11 -05:00
  • 0819049cb8 Merge branch 'handle-translate-error-not-supported' into 'main' Alex Gleason 2024-10-09 22:24:09 +00:00
  • b86bd81ed2 refactor: cast correct error type P. Reis 2024-10-09 19:19:54 -03:00
  • 87e0f594df refactor: throw new Error to have benefit of stack trace P. Reis 2024-10-09 19:17:03 -03:00
  • 54fa38795a feat: return translation not supported error to the frontend P. Reis 2024-10-09 18:46:49 -03:00
  • 91b82c36a8 Merge branch 'translate-status' into 'main' Alex Gleason 2024-10-09 18:59:04 +00:00
  • cad0da2732 feat: rateLimit translate endpoint P. Reis 2024-10-09 15:24:01 -03:00
  • 57bbbb289b fix: types must have the type prefix apparently happens in Deno 2.0? P. Reis 2024-10-09 15:22:09 -03:00
  • 22fa3f944c chore: update nostrify:db P. Reis 2024-10-09 15:15:32 -03:00
  • 728d7b33fb Merge branch 'main' into translate-status P. Reis 2024-10-09 15:14:22 -03:00
  • 4f8c8fd1de refactor: simply DittoTranslator interface and classes that implement it P. Reis 2024-10-09 15:03:11 -03:00
  • c1c25d7c08 feat: create localeSchema P. Reis 2024-10-09 14:57:28 -03:00
  • 376fd8a956 Merge branch 'deno-2.0.0' into 'main' Alex Gleason 2024-10-09 09:38:33 +00:00
  • df92483617
    Add --allow-import to check task Alex Gleason 2024-10-09 04:25:49 -05:00
  • bf2e20f2ce
    Upgrade to Deno v2.0 Alex Gleason 2024-10-09 04:02:36 -05:00
  • d6b65245ea
    Fix dompurify in deno.lock Alex Gleason 2024-10-09 04:01:08 -05:00
  • 90e0de2cac
    Upgrade dompurify Alex Gleason 2024-10-08 23:23:52 -05:00
  • 455b2671f7
    Merge remote-tracking branch 'origin/main' into push Alex Gleason 2024-10-08 20:11:30 -05:00
  • 11193fa689
    Upgrade @gleasonator/policy in deno.lock Alex Gleason 2024-10-08 20:11:12 -05:00
  • 8278dbe152
    Remove bip32 Alex Gleason 2024-10-08 20:02:10 -05:00
  • 198ec973b6
    Load VAPID keys from configuration Alex Gleason 2024-10-08 19:57:46 -05:00
  • 8f437839d0
    Delete DittoWallet Alex Gleason 2024-10-08 18:37:59 -05:00
  • 8823c0987d
    Actually push ?? Alex Gleason 2024-10-08 18:37:23 -05:00
  • 49d815826c refactor(languageSchema): enforce return type P. Reis 2024-10-08 17:07:05 -03:00
  • fc5e9b2990 Revert "refactor: move getConfigs() function and frontendConfig logic to 'src/utils/frontendConfig.ts'" P. Reis 2024-10-08 16:58:42 -03:00
  • 20caaa9ebd refactor: LibreTranslate and DeepL with separate environment variables for their configuration P. Reis 2024-10-08 16:53:30 -03:00
  • 1ed6cac1c4
    Add a crypto module to convert ECDSA private CryptoKey into a public key Alex Gleason 2024-10-08 13:56:46 -05:00
  • 8abac7ffa7
    InstanceV2: remove supported_mime_types property Alex Gleason 2024-10-08 12:52:14 -05:00
  • dbd590228d fix: typo P. Reis 2024-10-08 14:39:59 -03:00
  • 6430dd11ad
    Merge remote-tracking branch 'origin/main' into push Alex Gleason 2024-10-08 12:37:11 -05:00
  • f76ee000b0 refactor: use 'lang' instead of 'target_language' P. Reis 2024-10-08 14:35:51 -03:00
  • e6495c3687
    Also add nostr to InstanceV2 Alex Gleason 2024-10-08 12:35:03 -05:00
  • 248324f642
    Add pleroma to InstanceV2 Alex Gleason 2024-10-08 12:32:00 -05:00
  • a3bc5ec5c3 refactor: remove translation enabled in instanceV1Controller P. Reis 2024-10-08 14:27:00 -03:00
  • ba23931727 refactor: remove unused imports P. Reis 2024-10-08 14:25:25 -03:00
  • d4a8ec21fe fix: add 'pure' option in EventsDB if pure is true, EventsDB will return a Nostr event, otherwise it will return a Ditto event P. Reis 2024-10-08 14:17:27 -03:00
  • df27959d35 fix(relay.ts): purify event P. Reis 2024-10-08 14:15:48 -03:00
  • 17be4ab48f fix(instanceV1Controller): add translation field P. Reis 2024-10-08 11:11:29 -03:00
  • 3f00f255a5 fix: type assertions in EventsDB P. Reis 2024-10-08 11:01:34 -03:00
  • 6c93153117 refactor: get language from event itself P. Reis 2024-10-07 17:55:50 -03:00
  • acbdae29ae fix(EventsDB): type is correct, ignore type complaint P. Reis 2024-10-07 17:54:41 -03:00
  • bfab84d937 refactor: make provider lowercase because supporting case insensitive is allegedly protocol bloat P. Reis 2024-10-07 17:54:03 -03:00
  • 4712cb1d80 fix: fix language property in the Mastodon API P. Reis 2024-10-07 16:05:22 -03:00
  • bbbce958d9 chore: update nostrify:db P. Reis 2024-10-07 16:04:59 -03:00
  • 01a16473ab Merge branch 'main' into translate-status P. Reis 2024-10-07 15:02:47 -03:00
  • b369b2171d feat: create translateController - /api/v1/statuses/:id/translate P. Reis 2024-10-07 15:02:04 -03:00
  • 8e58b1a7d4 feat: create translatorMiddleware P. Reis 2024-10-07 15:00:46 -03:00
  • a2d8478e1a test(LibreTranslateTranslator): create multiple tests P. Reis 2024-10-07 14:59:05 -03:00
  • c23ddb7d84 feat: create LibreTranslateTranslator class that implements DittoTranslator P. Reis 2024-10-07 14:58:33 -03:00
  • 321d26b470 test(DeepLTranslator): create multiple tests P. Reis 2024-10-07 14:55:12 -03:00
  • 27f435a93c feat: create DeepLTranslator class that implements DittoTranslator P. Reis 2024-10-07 14:54:10 -03:00
  • ea4d0f002a feat: create dittoTranslations LRUCache, create DittoTranslator interface, create MastodonTranslation type, create DittoTranslation type, create Provider type and some other minor ones P. Reis 2024-10-07 14:42:10 -03:00
  • f434f87584 feat(instanceV2Controller): enable translation P. Reis 2024-10-07 14:39:42 -03:00
  • c6626313bc feat: get TRANSLATION_PROVIDER, TRANSLATION_PROVIDER_ENDPOINT & TRANSLATION_PROVIDER_API_KEY enviornment variables P. Reis 2024-10-07 14:38:55 -03:00
  • de8eba4079 feat: create getLanguage() function, used for testing purposes P. Reis 2024-10-07 14:37:53 -03:00
  • 0d126ad3b7 feat(languageSchema): split value to extract only language and not country code pt-BR becomes pt en-US becomes en P. Reis 2024-10-07 14:36:26 -03:00
  • ff2553eb0f
    Return a PushSubscription response Alex Gleason 2024-10-06 16:07:32 -05:00
  • 757b6c7e1c
    Merge remote-tracking branch 'origin/main' into push Alex Gleason 2024-10-06 15:51:50 -05:00
  • 406cc6506b Merge branch 'captcha' into 'main' Alex Gleason 2024-10-05 20:59:37 +00:00
  • 3aaf5030ca
    captcha: add a small amount of noise Alex Gleason 2024-10-05 15:24:44 -05:00
  • f3b7f91a07 feat: languageSchema converts value to lowercase and returns type LanguageCode P. Reis 2024-10-04 23:37:01 -03:00
  • 1cd7c99bda
    Add account.source.ditto.captch_solved field Alex Gleason 2024-10-04 19:26:47 -05:00
  • 3b5b4cbd6b
    Expose the Ditto pubkey to the policy worker Alex Gleason 2024-10-04 19:21:56 -05:00
  • a2e8de6c36
    Rate-limit the captcha endpoints Alex Gleason 2024-10-04 16:48:24 -05:00
  • 5ed683b146
    Add puzzle source files Alex Gleason 2024-10-04 16:43:33 -05:00
  • 18f1a94520
    captcha: show a random image, preload backgrounds into memory Alex Gleason 2024-10-04 16:40:52 -05:00
  • c81005a050
    captcha: refactor canvas size globals Alex Gleason 2024-10-04 15:56:32 -05:00
  • 6d09f69e26
    Move captcha graphics Alex Gleason 2024-10-04 15:48:34 -05:00
  • 71873997e5
    captcha: refactor canvas calls Alex Gleason 2024-10-04 15:32:12 -05:00
  • cdf727e5c7
    captcha: use an already transparent png with stroke to make the hole Alex Gleason 2024-10-04 15:10:42 -05:00