Dmitry Verkhoturov and GitHub
a4c5e17bbb
Probe /auth/status from frontend to avoid 401 on /user ( closes #1188 ) ( #1763 )
...
* Probe /auth/status from frontend to avoid 401 console noise on /user
GET /api/v1/user requires auth and returns 401 for anonymous visitors,
which the browser logs to console even when JS catches it. Probe
/auth/status first (always 200), then fetch /user only when logged in.
Stale auth cookies are cleared when status reports "not logged in" to
preserve the cleanup-on-probe behaviour previously triggered by /user 401.
Closes #1188 .
* Don't clear auth cookies when /auth/status probe itself fails
A transient network/5xx on the /auth/status probe used to fall through
into the cookie-clear branch and silently log the user out on the next
page load. Distinguish "probe failed" (null) from explicit "not logged
in"; only the latter clears JWT/XSRF cookies. Lock the distinction with
a negative assertion in the probe-failure test.
Also align packages/api prettier config with apps/remark42 (trailingComma: 'es5')
so future edits don't sweep unrelated trailing commas into the diff.
2026-04-30 19:32:49 -05:00
Dmitry Verkhoturov
ab9e6675cf
fix type check failure in @remark42/api package
...
Add skipLibCheck to skip type checking of .d.ts files in node_modules,
matching the setting already used by the main remark42 app. Fixes
@types/eslint-scope vs @types/eslint type incompatibility.
2026-03-07 21:37:46 +00:00
Dmitry Verkhoturov
a1215d87d9
Fix frontend not respecting ADMIN_EDIT for comment editing
...
Add admin_edit field to frontend Config types and use it in
comment component to give admins unlimited edit time and allow
editing comments with replies. Hide countdown timer when
editDeadline is Infinity. Fixes #1986
2026-02-10 23:52:17 +00:00
Mrigank Badola and GitHub
d0dc1131ea
Merge branch 'master' into discord-oauth
2024-11-12 21:24:24 +05:30
dependabot[bot] and Umputun
b5579152cb
Bump the npm-modules-updates-for-tests group across 1 directory with 12 updates
...
Bumps the npm-modules-updates-for-tests group with 12 updates in the /frontend/packages/api directory:
| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `18.19.64` | `18.19.64` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) | `5.62.0` | `8.13.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) | `5.62.0` | `8.13.0` |
| [@vitest/coverage-c8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-c8 ) | `0.22.1` | `0.33.0` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) | `8.10.0` | `9.1.0` |
| [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) | `4.2.1` | `5.2.1` |
| [jsdom](https://github.com/jsdom/jsdom ) | `20.0.3` | `25.0.1` |
| [msw](https://github.com/mswjs/msw ) | `0.44.2` | `1.3.5` |
| [prettier](https://github.com/prettier/prettier ) | `2.8.8` | `3.3.3` |
| [typescript](https://github.com/microsoft/TypeScript ) | `4.7.4` | `4.9.5` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest ) | `0.22.1` | `2.1.4` |
Updates `@types/node` from 18.19.64 to 22.9.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@typescript-eslint/eslint-plugin` from 5.62.0 to 8.13.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.13.0/packages/eslint-plugin )
Updates `@typescript-eslint/parser` from 5.62.0 to 8.13.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.13.0/packages/parser )
Updates `@vitest/coverage-c8` from 0.22.1 to 0.33.0
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.33.0/packages/coverage-c8 )
Updates `eslint-config-prettier` from 8.10.0 to 9.1.0
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.10.0...v9.1.0 )
Updates `eslint-plugin-prettier` from 4.2.1 to 5.2.1
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v4.2.1...v5.2.1 )
Updates `jsdom` from 20.0.3 to 25.0.1
- [Release notes](https://github.com/jsdom/jsdom/releases )
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md )
- [Commits](https://github.com/jsdom/jsdom/compare/20.0.3...25.0.1 )
Updates `msw` from 0.44.2 to 2.6.3
- [Release notes](https://github.com/mswjs/msw/releases )
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mswjs/msw/compare/v0.44.2...v2.6.3 )
Updates `prettier` from 2.8.8 to 3.3.3
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.3.3 )
Updates `typescript` from 4.9.5 to 5.6.3
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v4.9.5...v5.6.3 )
Updates `vitest` from 0.22.1 to 2.1.4
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.1.4/packages/vitest )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: "@vitest/coverage-c8"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-modules-updates-for-tests
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: eslint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: eslint-plugin-prettier
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: jsdom
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: msw
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
- dependency-name: vitest
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm-modules-updates-for-tests
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-10 14:00:52 -06:00
Dmitry Verkhoturov and Umputun
3001b37812
Update pnpm from v7 to v8
...
That suppose to help with Dependabot security updates not updating lockfile.
2024-11-10 13:31:03 -06:00
Dmitry Verkhoturov and Umputun
63048cc798
Specify package manager version in frontend project configuration
...
This is necessary for Dependabot updates to work properly.
2024-11-10 12:42:07 -06:00
Mrigank Badola
4fbb3b59be
chore: add changes in accordance to paskal/discord_poc
2024-10-09 08:57:47 +05:30
Dmitry Verkhoturov and Umputun
136d7e8215
switch from telegram_bot_username to telegram_notifications
...
Bot username is returned as an answer to subscribe request,
so knowing it in advance is unnecessary.
2023-06-29 10:52:00 -05:00
Dmitry Verkhoturov and Umputun
1ce9415d34
ping pnmp version to 7
...
Previously version 8 was installed once it became available, breaking
the pipelines and docker build.
2023-04-01 14:45:44 -05:00
Dmitry Verkhoturov and Umputun
13a3fc3d1b
move remark42 frontend nvmrc to /frontend/
2023-01-08 14:31:15 -06:00
Dmitry Verkhoturov and Umputun
8b7f1331ee
add Apple auth provider frontend support
...
With distinct logos for light and dark theme from
https://devimages-cdn.apple.com/design/resources/download/Logo-Sign-in-with-Apple.dmg
2023-01-07 18:16:21 -06:00
Pavel Mineev and Umputun
b47b6c4f56
add api sdk
2022-08-20 12:58:40 -05:00