Commit Graph
34 Commits
Author SHA1 Message Date
Sasha Sorokin 61fd6f1741 Fix Turnstile unable to read the siteKey (#1728)
It seems that Nuxt Turnstile's way of setting the key in `runtimeConfig`
is broken and doesn't work properly, resulting in an error in runtime,
because it has to be set. This commit sets the key in `runtimeConfig`
manually instead, which seems to fix the issue.
2024-06-14 23:26:45 -04:00
Sasha Sorokin e0a9e62d84 Fix building for Cloudflare Nitro preset (#1726)
It seems that Rollup node-resolve module doesn't properly deal with
trailing slashes, causing it to thing that `string_decoder` is a
built-in Node.js dependency and attempt to import it from `unenv`, which
will obviously fail, because `string_decoder` is not, in fact, a Node.js
dependency, but an individual dependency of `readable-stream`.

This adds a small patch for `readable-stream@2.3.8` dependency, which
removes the leading slash, which seems to fix the builds.

This probably should be reported to relevant developers (Rollup
node-resolve plugin or Nitro?).
2024-06-14 15:26:12 -07:00
Sasha Sorokin 5db5f2251f Fix bad if condition on languages page (#1721) 2024-06-14 15:21:22 -07:00
Sasha Sorokin 34fd9d29c8 Update Nuxt to v3.12.1 (#1720)
* Update Nuxt dependencies

* Fix ref access in ChartDisplay

* Fix feature flags cookie options type error

* Specify type-only imports

* Fix shorthands access to tags outside of reactive scope

* Replace most useRoute calls with useRoute from vue-router

Nuxt's version of this composable is horrendously broken (nuxt/nuxt#21340)

* Import all svgs with ?component parameter

Fixes weird hydration issues + gives correct type
2024-06-14 13:23:02 -07:00
Sasha Sorokin c6d8476963 Update pnpm to v9.3.0 (#1684) 2024-06-13 11:13:26 -07:00
Sasha Sorokin fe3e4edb04 Fix removing oneself from the team not working (#1657) 2024-03-10 13:03:35 -07:00
Sasha Sorokin 35c9338220 Fix no collections message on user page (#1501) 2024-01-07 14:32:05 -05:00
Sasha Sorokin b453e2cf1a Fallback to project type message on unknown types (#1470)
This commit adds a fallback to getProjectTypeMessage function to return
a generic project type whenever it encounters an unknown project type,
ensuring there are no errors when the new project types are added.
2023-12-05 18:21:14 -07:00
Sasha Sorokin 6d70ced93a Add Omorphia locale files loading (#1447)
Implements loading of all locale files shipped with Omorphia package by
globbing and registering them during the `vintl:extendOptions` hook.

Also updated VIntl for Nuxt to ensure those files are properly loaded.
Previous version of VIntl for Nuxt had a somewhat broken module ID
tracking, preventing Omorphia locale files to be properly transformed
during the build; at least on systems like Windows, don't know about
*nix. The tracking approach was replaced in 1.8.0, and it seems to be
working now.
2023-12-04 19:48:12 -07:00
Sasha Sorokin 82f0bdfc18 Add handling for locale files parsing errors (#1408) 2023-11-12 11:49:05 -05:00
Sasha Sorokin 5c7dd10769 Preserve whitespace in extracted translatable strings (#1390) 2023-10-01 15:45:21 -04:00
Sasha Sorokin f259072136 Post translation Sessions settings page fixes (#1382) 2023-09-30 14:47:26 -04:00
Sasha Sorokin 3fd74292ef Remove unnecessary space in description on Sessions settings page (#1381) 2023-09-28 23:53:44 -04:00
Sasha Sorokin bd4da4f365 Improve i18n-related SEO (#1366) 2023-09-16 21:07:52 -04:00
Sasha Sorokin 799d8003eb Skip regenerate workflow on forks (#1344) 2023-09-02 09:38:27 -04:00
Sasha Sorokin 5d34af6ac5 Make language label not translatable (#1343) 2023-09-02 09:38:10 -04:00
Sasha Sorokin 51b07fc0c3 Add names of all languages on Crowdin (#1337) 2023-08-23 16:07:37 -04:00
Sasha Sorokin d8f33641a5 Enable all locales on staging instances (#1336) 2023-08-23 15:18:58 -04:00
Sasha Sorokin 40cb8db1fc Move language nav menu item and hide it on prod (#1329) 2023-08-23 10:26:02 -04:00
Sasha Sorokin 467b0fa988 Add the language setting page (#1210)
* Add initial language picker prototype

* Heap o' improvements and Pirate tongue

* Move .visually-hidden to shared utils and add copyright notice

* Add a little space before categories names

* Simplify search to input focus logic

* Remove larger font size and padding from the search field

* Some refactors

* Braw's descent into madness

Thanks web development!

In seriousness though, tried to make the list more accessible. Making it
fully accessible feels like unbearable task, so at least that.

* Litol refactoring

* Extract new strings and remove old ones

* Update @vintl/nuxt to 1.3.0

This fixes the bug where default locale won't be saved.

* A buncha refactorings and cleanup

* Scuttle the Pirate lingo

'Twas employed 'ere for testin' purposes, but fear not, for it shall be
returnin' in the days to come. Should ye require it fer testin', simply
roll back this here commit.

* Clean languages source file

* Change "US" to "United States"

I think it would make distinguishing two languages simpler as now
there's more than one letter of difference (US/UK vs United States/
United Kingdom).
2023-08-21 13:26:39 -04:00
Sasha Sorokin 7c2ea3dcfd Don't run Deploy workflow on forks (#1252) 2023-08-01 19:38:47 -04:00
Sasha Sorokin c8c75b38c3 Update @vintl/nuxt to 1.2.3 (#1201)
This should fix TypeScript error related to nuxt.config.ts file and
unknown `vintl` property in it.
2023-06-15 12:24:12 -07:00
Sasha Sorokin de991041c4 Add internationalization support (#738) 2023-06-11 14:08:16 -04:00
Sasha Sorokin d9f8746438 Consistent extension usage in imports (#1171) 2023-06-11 13:37:40 -04:00
Sasha Sorokin 20d1c4d242 Switch to bundler TypeScript moduleResolution (#1170) 2023-06-11 13:33:38 -04:00
Sasha Sorokin 3b0dc2195d Switch to pnpm (#1168) 2023-05-28 14:21:14 -04:00
Sasha Sorokin d68bbbf9a1 GitHub Actions: Use Node 16 to build Knossos (#913) 2023-01-18 19:39:53 -05:00
Sasha Sorokin de170ebdd2 Fix notifications fetching (#776) 2022-11-26 17:40:15 -05:00
Sasha Sorokin 95ac136720 Bump Vue to 2.7 (#727)
List of changes in Vue 2.7:
https://blog.vuejs.org/posts/vue-2-7-naruto.html
2022-11-15 12:43:01 -07:00
Sasha Sorokin e86aa6b541 Fix project layout on right not working correctly (#730)
Fixes #726
2022-11-15 12:41:28 -07:00
Sasha Sorokin 1b49844012 Bump @nuxtjs/color-mode to v2.1.1 (#678) 2022-09-26 19:38:33 -04:00
Sasha Sorokin 5d53344b75 More reliably detect ad load faults (#661)
Detecting that ad has failed to load with timeout is not accurate and
won't work on slow connections. This commit fixes that by changing
detection to use 'onerror' event on <script> tag instead, which will be
triggered if ad script fails to load due to blocking.
2022-09-12 08:14:32 -07:00
Sasha Sorokin 3e221f3b6a Minor fixes for "See all" link design (#627)
- Now styled as a proper link.
- Change :focus to :focus-visible to avoid link getting stuck in that
  'hovered' state because focus does not actually change (it deffo
  should though, something to fix in the future - should be one
  fragment change).
- Removed all padding and transition.
2022-09-03 22:34:19 -07:00
Sasha Sorokin 8769b5d1b5 Improve design of "See all" link in feat. section (#625) 2022-08-24 13:30:57 -04:00