Skip to content

Commit 7ca6fff

Browse files
committed
docs: fix typos and env variable
1 parent 9331c6a commit 7ca6fff

10 files changed

Lines changed: 14 additions & 12 deletions

File tree

packages/client-sdk/src/tracker.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('initTianjiTracker', () => {
88
});
99

1010
test('simple', async () => {
11-
await initTianjiTracker({
11+
const script = await initTianjiTracker({
1212
url: 'https://example.com',
1313
websiteId: 'fooo',
1414
});
@@ -20,6 +20,8 @@ describe('initTianjiTracker', () => {
2020
expect(scriptDoms[0].dataset).toEqual({
2121
websiteId: 'fooo',
2222
});
23+
expect(script).toBe(scriptDoms[0]);
24+
expect(script.parentElement).toBe(document.head);
2325
});
2426

2527
test('customTrackerName', async () => {

src/server/utils/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const env = {
4949
// Reference: https://authjs.dev/guides/configuring-oauth-providers
5050
name: process.env.AUTH_CUSTOM_NAME || 'Custom',
5151
type: process.env.AUTH_CUSTOM_TYPE || 'oidc', // or oauth
52-
issuer: process.env.AUTH_CUSTOM_ISSUR,
52+
issuer: process.env.AUTH_CUSTOM_ISSUER,
5353
clientId: process.env.AUTH_CUSTOM_ID,
5454
clientSecret: process.env.AUTH_CUSTOM_SECRET,
5555
},

website/docs/install/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Tianji supports various environment variables to customize its behavior. You can
5656
| `AUTH_CUSTOM_SECRET` | Custom OAuth/OIDC client secret | - | `your-custom-client-secret` |
5757
| `AUTH_CUSTOM_NAME` | Custom provider name | `Custom` | `Enterprise SSO` |
5858
| `AUTH_CUSTOM_TYPE` | Authentication type | `oidc` | `oauth` |
59-
| `AUTH_CUSTOM_ISSUR` | OIDC issuer URL | - | `https://auth.example.com` |
59+
| `AUTH_CUSTOM_ISSUER` | OIDC issuer URL | - | `https://auth.example.com` |
6060

6161
## AI Features
6262

website/docs/server-status/server-status-reporter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ its will auto download reporter and create linux service in your machine. so its
4040

4141
if you wanna uninstall reporter service, you can use this command like:
4242
```bash
43-
curl -o- https://tianji.exmaple.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
43+
curl -o- https://tianji.example.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
4444
```
4545

46-
major change is append `-s uninstall` after your install command.
46+
The main change is to append `-s uninstall` to your install command.
4747

4848
## Q&A
4949

website/i18n/de/docusaurus-plugin-content-docs/current/install/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Tianji unterstützt verschiedene Umgebungsvariablen, um sein Verhalten anzupasse
5656
| `AUTH_CUSTOM_SECRET` | Benutzerdefiniertes OAuth/OIDC-Client-Geheimnis | - | `your-custom-client-secret` |
5757
| `AUTH_CUSTOM_NAME` | Benutzerdefinierter Anbietername | `Custom` | `Enterprise SSO` |
5858
| `AUTH_CUSTOM_TYPE` | Authentifizierungstyp | `oidc` | `oauth` |
59-
| `AUTH_CUSTOM_ISSUR` | OIDC-Herausgeber-URL | - | `https://auth.example.com` |
59+
| `AUTH_CUSTOM_ISSUER` | OIDC-Herausgeber-URL | - | `https://auth.example.com` |
6060

6161
## KI-Funktionen
6262

website/i18n/fr/docusaurus-plugin-content-docs/current/install/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Tianji prend en charge diverses variables d'environnement pour personnaliser son
5656
| `AUTH_CUSTOM_SECRET` | Secret client OAuth/OIDC personnalisée | - | `your-custom-client-secret` |
5757
| `AUTH_CUSTOM_NAME` | Nom du fournisseur personnalisé | `Custom` | `Enterprise SSO` |
5858
| `AUTH_CUSTOM_TYPE` | Type d'authentification | `oidc` | `oauth` |
59-
| `AUTH_CUSTOM_ISSUR` | URL de l'émetteur OIDC | - | `https://auth.example.com` |
59+
| `AUTH_CUSTOM_ISSUER` | URL de l'émetteur OIDC | - | `https://auth.example.com` |
6060

6161
## Fonctionnalités AI
6262

website/i18n/fr/docusaurus-plugin-content-docs/current/server-status/server-status-reporter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ Il téléchargera automatiquement le rapporteur et créera un service Linux sur
4040

4141
Si vous souhaitez désinstaller le service de rapporteur, vous pouvez utiliser cette commande :
4242
```bash
43-
curl -o- https://tianji.exmaple.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
43+
curl -o- https://tianji.example.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
4444
```
4545

46-
Le changement majeur consiste à ajouter `-s uninstall` après votre commande d'installation.
46+
Le changement principal consiste à ajouter `-s uninstall` à votre commande d'installation.
4747

4848
## Q&R
4949

website/i18n/ja/docusaurus-plugin-content-docs/current/install/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Tianjiは、様々な環境変数をサポートしており、その動作を
5757
| `AUTH_CUSTOM_SECRET` | カスタムOAuth/OIDCクライアントシークレット | - | `your-custom-client-secret` |
5858
| `AUTH_CUSTOM_NAME` | カスタムプロバイダーの名前 | `Custom` | `Enterprise SSO` |
5959
| `AUTH_CUSTOM_TYPE` | 認証タイプ | `oidc` | `oauth` |
60-
| `AUTH_CUSTOM_ISSUR` | OIDC発行者URL | - | `https://auth.example.com` |
60+
| `AUTH_CUSTOM_ISSUER` | OIDC発行者URL | - | `https://auth.example.com` |
6161
6262
## AI機能
6363

website/i18n/ja/docusaurus-plugin-content-docs/current/server-status/server-status-reporter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tianji-reporterの使用法:
4040

4141
レポータサービスをアンインストールしたい場合は、次のコマンドを使用できます:
4242
```bash
43-
curl -o- https://tianji.exmaple.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
43+
curl -o- https://tianji.example.com/serverStatus/xxxxxxxxxxxxxxxxxxx/install.sh?url=https://tianji.example.com | sudo bash -s uninstall
4444
```
4545

4646
主要な変更点は、インストールコマンドの後に `-s uninstall` を追加することです。

website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/install/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Tianji 支持通过各种环境变量来自定义其行为。您可以在 docker
5656
| `AUTH_CUSTOM_SECRET` | 自定义 OAuth/OIDC 客户端密钥 | - | `your-custom-client-secret` |
5757
| `AUTH_CUSTOM_NAME` | 自定义提供者名称 | `Custom` | `Enterprise SSO` |
5858
| `AUTH_CUSTOM_TYPE` | 认证类型 | `oidc` | `oauth` |
59-
| `AUTH_CUSTOM_ISSUR` | OIDC 发行者 URL | - | `https://auth.example.com` |
59+
| `AUTH_CUSTOM_ISSUER` | OIDC 发行者 URL | - | `https://auth.example.com` |
6060

6161
## AI 特性
6262

0 commit comments

Comments
 (0)