@things-factory/setting-base 6.2.49 → 6.2.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ # セキュア IP リスト (Secure IP List)
2
+
3
+ セキュア IP リストは、クライアントのセキュリティ IP アドレスを管理し、アクセス権を制御するためのシステムで、以下の主な機能を提供します:
4
+
5
+ 1. **ブラックリスト (Blacklist)**: 違法または悪意のある活動を行う IP アドレスをブロックするために使用されます。
6
+
7
+ - ブロックしたい単一の IP または正規表現で IP 範囲をカンマで区切って設定できます。
8
+ - 例:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
9
+ - ローカルホストに::1, ::ffff:127.0.0.1, 127.0.0.1 をすべて使用すると、IPV6 と IPV4 のアドレス体系をサポートできます。
10
+
11
+ 2. **ホワイトリスト (Whitelist)**: 信頼できる IP アドレスのリストを設定し、許可された IP アドレスのみがアクセスできるようにします。(ホワイトリスト機能はまだサポートされていません。)
12
+
13
+ - 信頼できる単一の IP または正規表現で IP 範囲をカンマで区切って設定できます。
14
+ - 例:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
15
+ - ローカルホストに::1, ::ffff:127.0.0.1, 127.0.0.1 をすべて使用すると、IPV6 と IPV4 のアドレス体系をサポートできます。
16
+
17
+ 3. **特別権限 (Protected IP List)**: 特定の IP アドレス以外では保護された権限を使用できないように制限するために使用されます。
18
+
19
+ - 権限が許可された単一の IP または正規表現で IP 範囲をカンマで区切って設定できます。
20
+ - 例:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
21
+ - ローカルホストに::1, ::ffff:127.0.0.1, 127.0.0.1 をすべて使用すると、IPV6 と IPV4 のアドレス体系をサポートできます。
@@ -0,0 +1,21 @@
1
+ # 보안 IP 리스트 (Secure IP List)
2
+
3
+ 보안 IP 리스트(Secure IP List)는 클라이언트의 보안 IP 주소를 관리하고, 접근 권한을 제어하기 위한 시스템으로, 다음과 같은 주요 기능을 제공합니다:
4
+
5
+ 1. 블랙리스트 (Blacklist): 불법적인 또는 악의적인 활동을 하는 IP 주소를 차단하는 데 사용됩니다.
6
+
7
+ - 차단하고자 하는 단일 IP 또는 정규표현식으로 IP 대역을 코마로 구분하여 설정할 수 있습니다.
8
+ - 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
9
+ - 로컬호스트는 ::1, ::ffff:127.0.0.1, 127.0.0.1 을 모두 사용하면, IPV6와 IPV4 주소체계를 모두 지원할 수 있습니다.
10
+
11
+ 2. 화이트리스트 (Whitelist): 신뢰할 수 있는 IP 주소 목록을 설정하여 허용되는 IP 주소만 접근할 수 있도록 하는 데 사용됩니다.(화이트리스트 기능은 아직 지원하지 않습니다.)
12
+
13
+ - 신뢰할 수 있는 단일 IP 또는 정규표현식으로 IP 대역을 코마로 구분하여 설정할 수 있습니다.
14
+ - 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
15
+ - 로컬호스트는 ::1, ::ffff:127.0.0.1, 127.0.0.1 을 모두 사용하면, IPV6와 IPV4 주소체계를 모두 지원할 수 있습니다.
16
+
17
+ 3. 특별한 권한 (Protected IP List): 특정 IP 주소외에서는 보호되는 권한을 사용할 수 없도록 제한하는데 사용됩니다.
18
+
19
+ - 권한이 허가된 단일 IP 또는 정규표현식으로 IP 대역을 코마로 구분하여 설정할 수 있습니다.
20
+ - 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
21
+ - 로컬호스트는 ::1, ::ffff:127.0.0.1, 127.0.0.1 을 모두 사용하면, IPV6와 IPV4 주소체계를 모두 지원할 수 있습니다.
@@ -0,0 +1,21 @@
1
+ # Secure IP List
2
+
3
+ The Secure IP List is a system for managing the security IP addresses of clients and controlling access permissions. It offers the following main features:
4
+
5
+ 1. **Blacklist**: Used to block IP addresses that engage in illegal or malicious activities.
6
+
7
+ - You can set up to block specific single IPs or use regular expressions to define an IP range, separated by commas.
8
+ - Examples: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
9
+ - To support both IPV6 and IPV4 address systems, use localhost addresses like ::1, ::ffff:127.0.0.1, and 127.0.0.1.
10
+
11
+ 2. **Whitelist**: Used to set a list of trusted IP addresses, allowing access only to these IPs. (The whitelist feature is not supported yet.)
12
+
13
+ - Trusted single IPs or regular expressions defining an IP range can be set, separated by commas.
14
+ - Examples: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
15
+ - Similar to the blacklist, using localhost addresses like ::1, ::ffff:127.0.0.1, and 127.0.0.1 supports both IPV6 and IPV4.
16
+
17
+ 3. **Protected IP List**: Used to restrict the use of protected privileges to specific IP addresses only.
18
+
19
+ - Permissions can be set for specific single IPs or using regular expressions to define an IP range, separated by commas.
20
+ - Examples: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
21
+ - By using localhost addresses such as ::1, ::ffff:127.0.0.1, and 127.0.0.1, both IPV6 and IPV4 address systems are supported.
@@ -0,0 +1,21 @@
1
+ # Senarai IP Selamat (Secure IP List)
2
+
3
+ Senarai IP Selamat adalah sistem untuk menguruskan alamat IP keselamatan klien dan mengawal kebenaran akses, menyediakan ciri-ciri utama berikut:
4
+
5
+ 1. **Senarai Hitam (Blacklist)**: Digunakan untuk menyekat alamat IP yang melakukan aktiviti haram atau jahat.
6
+
7
+ - Anda boleh menetapkan julat IP yang ingin disekat menggunakan IP tunggal atau ungkapan biasa, dipisahkan dengan koma.
8
+ - Contoh: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
9
+ - Jika menggunakan ::1, ::ffff:127.0.0.1, 127.0.0.1 untuk localhost, sistem dapat menyokong kedua-dua alamat IPV6 dan IPV4.
10
+
11
+ 2. **Senarai Putih (Whitelist)**: Menetapkan senarai alamat IP yang boleh dipercayai, membenarkan hanya alamat IP yang dibenarkan untuk mengakses. (Ciri senarai putih belum disokong lagi.)
12
+
13
+ - Anda boleh menetapkan julat IP yang dipercayai menggunakan IP tunggal atau ungkapan biasa, dipisahkan dengan koma.
14
+ - Contoh: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
15
+ - Jika menggunakan ::1, ::ffff:127.0.0.1, 127.0.0.1 untuk localhost, sistem dapat menyokong kedua-dua alamat IPV6 dan IPV4.
16
+
17
+ 3. **Senarai IP Terlindung (Protected IP List)**: Digunakan untuk menghadkan penggunaan keistimewaan terlindung hanya kepada alamat IP tertentu.
18
+
19
+ - Anda boleh menetapkan julat IP yang diberikan kebenaran menggunakan IP tunggal atau ungkapan biasa, dipisahkan dengan koma.
20
+ - Contoh: 127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
21
+ - Jika menggunakan ::1, ::ffff:127.0.0.1, 127.0.0.1 untuk localhost, sistem dapat menyokong kedua-dua alamat IPV6 dan IPV4.
@@ -0,0 +1,21 @@
1
+ # 安全 IP 列表 (Secure IP List)
2
+
3
+ 安全 IP 列表是用于管理客户端安全 IP 地址和控制访问权限的系统,提供以下主要功能:
4
+
5
+ 1. **黑名单 (Blacklist)**: 用于阻止进行非法或恶意活动的 IP 地址。
6
+
7
+ - 可以使用逗号分隔的单个 IP 或正则表达式来设置要阻止的 IP 范围。
8
+ - 例如:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
9
+ - 使用::1, ::ffff:127.0.0.1, 127.0.0.1 作为本地主机,可以支持 IPV6 和 IPV4 地址系统。
10
+
11
+ 2. **白名单 (Whitelist)**: 设置可信 IP 地址列表,只允许这些地址访问。(当前不支持白名单功能。)
12
+
13
+ - 可以使用逗号分隔的单个 IP 或正则表达式来设置信任的 IP 范围。
14
+ - 例如:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
15
+ - 使用::1, ::ffff:127.0.0.1, 127.0.0.1 作为本地主机,可以支持 IPV6 和 IPV4 地址系统。
16
+
17
+ 3. **特殊权限 (Protected IP List)**: 限制只有特定 IP 地址才能使用受保护的权限。
18
+
19
+ - 可以使用逗号分隔的单个 IP 或正则表达式来设置授权的 IP 范围。
20
+ - 例如:127.0.0.1, 127.0.0.\*, 8.8.8.[0-3]
21
+ - 使用::1, ::ffff:127.0.0.1, 127.0.0.1 作为本地主机,可以支持 IPV6 和 IPV4 地址系统。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/setting-base",
3
- "version": "6.2.49",
3
+ "version": "6.2.50",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,8 +24,8 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/auth-base": "^6.2.49",
28
- "@things-factory/code-base": "^6.2.49"
27
+ "@things-factory/auth-base": "^6.2.50",
28
+ "@things-factory/code-base": "^6.2.50"
29
29
  },
30
- "gitHead": "57266c96220301729f9c5cd633af1a4e2a651096"
30
+ "gitHead": "4dc51db04b745ac434d2bb874038ac4c3b47989b"
31
31
  }
@@ -92,7 +92,7 @@ export class PartnerSettingMutation {
92
92
  ): Promise<boolean> {
93
93
  const { domain, tx } = context.state
94
94
 
95
- await tx.getRepository(PartnerSetting).delete({ id: In(ids), domain })
95
+ await tx.getRepository(PartnerSetting).delete({ id: In(ids), domain: { id: domain.id } })
96
96
  return true
97
97
  }
98
98
  }
@@ -33,6 +33,7 @@ export class SettingMutation {
33
33
  const setting = await repository.findOneBy({ domain: { id: domain.id }, name })
34
34
 
35
35
  return await repository.save({
36
+ name,
36
37
  creater: user,
37
38
  ...setting,
38
39
  ...patch,
@@ -94,7 +95,7 @@ export class SettingMutation {
94
95
  async deleteSetting(@Arg('name') name: string, @Ctx() context: ResolverContext): Promise<boolean> {
95
96
  const { tx, domain } = context.state
96
97
 
97
- await tx.getRepository(Setting).delete({ domain, name })
98
+ await tx.getRepository(Setting).delete({ domain: { id: domain.id }, name })
98
99
  return true
99
100
  }
100
101