diff --git a/.changeset-staged/shiny-crabs-wink.md b/.changeset-staged/shiny-crabs-wink.md new file mode 100644 index 000000000..6f166ee6c --- /dev/null +++ b/.changeset-staged/shiny-crabs-wink.md @@ -0,0 +1,21 @@ +--- +"@logto/console": patch +"@logto/core": patch +"@logto/shared": patch +"@logto/ui": patch +--- + +Apply security headers + +Apply security headers to logto http request response using (helmetjs)[https://helmetjs.github.io/]. + +[x] crossOriginOpenerPolicy +[x] crossOriginEmbedderPolicy +[x] crossOriginResourcePolicy +[x] hidePoweredBy +[x] hsts +[x] ieNoOpen +[x] noSniff +[x] referrerPolicy +[x] xssFilter +[x] Content-Security-Policy diff --git a/.changeset/fluffy-masks-tap.md b/.changeset/fluffy-masks-tap.md new file mode 100644 index 000000000..28387b265 --- /dev/null +++ b/.changeset/fluffy-masks-tap.md @@ -0,0 +1,6 @@ +--- +"@logto/phrases": minor +"@logto/phrases-ui": minor +--- + +add it translation diff --git a/.changeset/hungry-bears-complain.md b/.changeset/hungry-bears-complain.md new file mode 100644 index 000000000..406a309e2 --- /dev/null +++ b/.changeset/hungry-bears-complain.md @@ -0,0 +1,6 @@ +--- +"@logto/phrases": minor +"@logto/phrases-ui": minor +--- + +add pl-PL translation diff --git a/.changeset/seven-dolphins-hammer.md b/.changeset/seven-dolphins-hammer.md new file mode 100644 index 000000000..a723a90f7 --- /dev/null +++ b/.changeset/seven-dolphins-hammer.md @@ -0,0 +1,5 @@ +--- +"@logto/cli": minor +--- + +`logto translate sync` to create missing files or translate untranslated phrases across all existing languages diff --git a/README.md b/README.md index e803b0e10..89ae682d2 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,11 @@
---- - -
-Logto has launched Cloud (Preview) and OSS General Availability on Product Hunt.
-
-😊 Come and support us! We'll see you on the cloud. -
- ---- - [![discord](https://img.shields.io/discord/965845662535147551?color=5865f2&label=discord)](https://discord.gg/vRvwuwgpVX) [![checks](https://img.shields.io/github/checks-status/logto-io/logto/master)](https://github.com/logto-io/logto/actions?query=branch%3Amaster) -[![release](https://img.shields.io/github/v/release/logto-io/logto?color=7958FF)](https://github.com/logto-io/logto/releases) +[![release](https://img.shields.io/github/v/release/logto-io/logto?color=3a3c3f)](https://github.com/logto-io/logto/releases) [![core coverage](https://img.shields.io/codecov/c/github/logto-io/logto?label=core%20coverage)](https://app.codecov.io/gh/logto-io/logto) +[![cloud](https://img.shields.io/badge/cloud-available-7958ff)](https://cloud.logto.io/?sign_up=true) [![gitpod](https://img.shields.io/badge/gitpod-available-f09439)](https://gitpod.io/#https://github.com/logto-io/demo) [![render](https://img.shields.io/badge/render-deploy-5364e9)](https://render.com/deploy?repo=https://github.com/logto-io/logto) @@ -53,9 +43,9 @@ Boringly, we call it "[customer identity access management](https://en.wikipedia ### Interactive demo -[![GitPod](https://raw.githubusercontent.com/gitpod-io/gitpod/30da76375c996109f243491b23e47feefab7217f/components/dashboard/public/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/logto-io/demo) +- Try [Logto Cloud](https://cloud.logto.io/?sign_up=true) to have the same dev experience and zero deployment overhead. -If you launch Logto via GitPod, please wait until you see the message like `App is running at https://3002-...gitpod.io` in the terminal, press Cmd (or Ctrl on Windows) and click the URL starts with `https://3002-` to continue your Logto journey. +- If you launch Logto [via GitPod](https://gitpod.io/#https://github.com/logto-io/demo), please wait until you see the message like `App is running at https://3002-...gitpod.io` in the terminal, press Cmd (or Ctrl on Windows) and click the URL starts with `https://3002-` to continue your Logto journey. ### Launch Logto diff --git a/packages/app-insights/package.json b/packages/app-insights/package.json index be6d44755..42362ee99 100644 --- a/packages/app-insights/package.json +++ b/packages/app-insights/package.json @@ -9,11 +9,9 @@ "lib" ], "exports": { - ".": { - "import": "./lib/index.js" - }, "./*": { - "import": "./lib/*" + "import": "./lib/*.js", + "types": "./lib/*.d.ts" } }, "publishConfig": { diff --git a/packages/cli/package.json b/packages/cli/package.json index cb953d864..d160dd41d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -60,6 +60,7 @@ "nanoid": "^4.0.0", "ora": "^6.1.2", "p-limit": "^4.0.0", + "p-queue": "^7.3.4", "p-retry": "^5.1.2", "pg-protocol": "^1.6.0", "roarr": "^7.11.0", diff --git a/packages/cli/src/commands/translate/create.ts b/packages/cli/src/commands/translate/create.ts index 60cafd8c3..ccef71879 100644 --- a/packages/cli/src/commands/translate/create.ts +++ b/packages/cli/src/commands/translate/create.ts @@ -1,88 +1,17 @@ -import { existsSync } from 'node:fs'; -import fs from 'node:fs/promises'; -import path from 'node:path'; - -import { isLanguageTag, type LanguageTag } from '@logto/language-kit'; +import { isLanguageTag } from '@logto/language-kit'; import { isBuiltInLanguageTag as isPhrasesBuiltInLanguageTag } from '@logto/phrases'; import { isBuiltInLanguageTag as isPhrasesUiBuiltInLanguageTag } from '@logto/phrases-ui'; -import { conditionalString, type Optional } from '@silverhand/essentials'; import type { CommandModule } from 'yargs'; import { log } from '../../utils.js'; import { inquireInstancePath } from '../connector/utils.js'; -import { createOpenaiApi, translate } from './openai.js'; -import { baseLanguage, readBaseLocaleFiles } from './utils.js'; - -const createFullTranslation = async ( - instancePath: Optional