@things-factory/auth-ui 8.0.0 → 9.0.0-beta.3
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.
- package/dist-client/components/abstract-auth-page.js +10 -10
- package/dist-client/components/abstract-auth-page.js.map +1 -1
- package/dist-client/components/abstract-password-reset.d.ts +1 -2
- package/dist-client/components/abstract-password-reset.js +7 -14
- package/dist-client/components/abstract-password-reset.js.map +1 -1
- package/dist-client/components/abstract-sign.js +12 -11
- package/dist-client/components/abstract-sign.js.map +1 -1
- package/dist-client/components/contact-us.d.ts +1 -1
- package/dist-client/components/contact-us.js +10 -7
- package/dist-client/components/contact-us.js.map +1 -1
- package/dist-client/components/create-user.js +28 -5
- package/dist-client/components/create-user.js.map +1 -1
- package/dist-client/components/invite-user.js +19 -11
- package/dist-client/components/invite-user.js.map +1 -1
- package/dist-client/components/ownership-transfer-popup.js +3 -3
- package/dist-client/components/ownership-transfer-popup.js.map +1 -1
- package/dist-client/components/profile-component.d.ts +5 -1
- package/dist-client/components/profile-component.js +64 -4
- package/dist-client/components/profile-component.js.map +1 -1
- package/dist-client/components/role-privilege-editor.js +2 -1
- package/dist-client/components/role-privilege-editor.js.map +1 -1
- package/dist-client/components/user-role-editor.js +18 -18
- package/dist-client/components/user-role-editor.js.map +1 -1
- package/dist-client/entries/auth/checkin.js +1 -1
- package/dist-client/entries/auth/checkin.js.map +1 -1
- package/dist-client/entries/auth/forgot-password.js +11 -2
- package/dist-client/entries/auth/forgot-password.js.map +1 -1
- package/dist-client/entries/auth/signup.js +13 -7
- package/dist-client/entries/auth/signup.js.map +1 -1
- package/dist-client/index.js +1 -1
- package/dist-client/index.js.map +1 -1
- package/dist-client/pages/user/user-management.d.ts +5 -1
- package/dist-client/pages/user/user-management.js +6 -7
- package/dist-client/pages/user/user-management.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/translations/en.json +6 -2
- package/translations/ja.json +6 -2
- package/translations/ko.json +6 -2
- package/translations/ms.json +6 -2
- package/translations/zh.json +6 -2
- package/client/auth-style-sign.ts +0 -194
- package/client/bootstrap.ts +0 -51
- package/client/components/abstract-auth-page.ts +0 -301
- package/client/components/abstract-password-reset.ts +0 -168
- package/client/components/abstract-sign.ts +0 -127
- package/client/components/change-password.ts +0 -153
- package/client/components/contact-us.ts +0 -113
- package/client/components/create-domain-popup.ts +0 -141
- package/client/components/create-role.ts +0 -123
- package/client/components/create-user.ts +0 -95
- package/client/components/credential-manager.ts +0 -64
- package/client/components/delete-user-popup.ts +0 -117
- package/client/components/domain-switch.ts +0 -127
- package/client/components/invite-customer.ts +0 -104
- package/client/components/invite-user.ts +0 -96
- package/client/components/my-login-history.ts +0 -101
- package/client/components/ownership-transfer-popup.ts +0 -110
- package/client/components/partner-info-card.ts +0 -89
- package/client/components/partner-role-editor.ts +0 -153
- package/client/components/profile-component.ts +0 -332
- package/client/components/role-edit-form.ts +0 -92
- package/client/components/role-privilege-editor.ts +0 -267
- package/client/components/role-selector.ts +0 -102
- package/client/components/user-role-editor.ts +0 -499
- package/client/constants/application.ts +0 -9
- package/client/constants/index.ts +0 -1
- package/client/entries/auth/activate.ts +0 -272
- package/client/entries/auth/checkin.ts +0 -190
- package/client/entries/auth/forgot-password.ts +0 -103
- package/client/entries/auth/reset-password.ts +0 -22
- package/client/entries/auth/result.ts +0 -193
- package/client/entries/auth/signin.ts +0 -18
- package/client/entries/auth/signup.ts +0 -109
- package/client/entries/auth/unlock-user.ts +0 -22
- package/client/entries/oauth2/oauth2-decision-error-page.ts +0 -50
- package/client/entries/oauth2/oauth2-decision-page.ts +0 -196
- package/client/entries/public/home.ts +0 -246
- package/client/index.ts +0 -124
- package/client/pages/app-binding/app-binding.ts +0 -423
- package/client/pages/app-binding/app-bindings.ts +0 -171
- package/client/pages/appliance/appliance.ts +0 -452
- package/client/pages/appliance/home.ts +0 -177
- package/client/pages/appliance/register.ts +0 -183
- package/client/pages/application/application.ts +0 -428
- package/client/pages/application/applications.ts +0 -182
- package/client/pages/application/register.ts +0 -211
- package/client/pages/attribute/attribute-set-item-list.ts +0 -237
- package/client/pages/attribute/attribute-set-management.ts +0 -282
- package/client/pages/auth-provider/auth-provider-management.ts +0 -381
- package/client/pages/domain/domain-management.ts +0 -410
- package/client/pages/partner/partner-management.ts +0 -112
- package/client/pages/profile.ts +0 -32
- package/client/pages/role/role-management.ts +0 -134
- package/client/pages/user/user-management.ts +0 -224
- package/client/route.ts +0 -67
- package/client/themes/auth-theme.css +0 -65
- package/client/utils/password-rule.ts +0 -37
- package/server/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/auth-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-beta.3",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@material/web": "^2.0.0",
|
|
31
|
-
"@operato/attribute": "^
|
|
32
|
-
"@operato/data-grist": "^
|
|
33
|
-
"@operato/i18n": "^
|
|
34
|
-
"@operato/layout": "^
|
|
35
|
-
"@operato/lottie-player": "^
|
|
36
|
-
"@operato/moment-timezone-es": "^
|
|
37
|
-
"@operato/p13n": "^
|
|
38
|
-
"@operato/popup": "^
|
|
39
|
-
"@things-factory/auth-base": "^
|
|
40
|
-
"@things-factory/more-base": "^
|
|
31
|
+
"@operato/attribute": "^9.0.0-beta",
|
|
32
|
+
"@operato/data-grist": "^9.0.0-beta",
|
|
33
|
+
"@operato/i18n": "^9.0.0-beta",
|
|
34
|
+
"@operato/layout": "^9.0.0-beta",
|
|
35
|
+
"@operato/lottie-player": "^9.0.0-beta",
|
|
36
|
+
"@operato/moment-timezone-es": "^9.0.0-beta",
|
|
37
|
+
"@operato/p13n": "^9.0.0-beta",
|
|
38
|
+
"@operato/popup": "^9.0.0-beta",
|
|
39
|
+
"@things-factory/auth-base": "^9.0.0-beta.3",
|
|
40
|
+
"@things-factory/more-base": "^9.0.0-beta.0",
|
|
41
41
|
"base64url": "^3.0.1",
|
|
42
42
|
"clipboard": "^2.0.6"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1d7e0dd4c88f3c3f3bd311c00e4b1d1542d53634"
|
|
45
45
|
}
|
package/translations/en.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"error.new-password-and-confirm-password-do-not-match": "new password and confirm password do not match",
|
|
23
23
|
"error.not valid pattern of type": "not valid pattern of {type}",
|
|
24
24
|
"error.password-not-matched": "password not matched. after 5 failures, your account will be locked. (failure: {failCount})",
|
|
25
|
-
"error.user duplicated.": "there is a user account using same email.",
|
|
26
25
|
"error.user not found": "user not found",
|
|
27
26
|
"error.user-deleted": "user account is deleted",
|
|
28
27
|
"error.user-locked": "user account is locked",
|
|
@@ -54,7 +53,9 @@
|
|
|
54
53
|
"field.tag": "tag",
|
|
55
54
|
"field.tenant-id": "tenant id",
|
|
56
55
|
"field.token": "token",
|
|
56
|
+
"field.user-id or email": "user id or email",
|
|
57
57
|
"field.user-type": "user type",
|
|
58
|
+
"field.username": "user id",
|
|
58
59
|
"label.access token": "access token",
|
|
59
60
|
"label.activated-user": "activated",
|
|
60
61
|
"label.admin-user": "admin",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"label.subject": "subject",
|
|
96
97
|
"label.superuser": "superuser",
|
|
97
98
|
"label.user": "user",
|
|
99
|
+
"label.user-id": "user ID",
|
|
98
100
|
"label.vendors": "vendors",
|
|
99
101
|
"label.whitelist": "whitelist",
|
|
100
102
|
"label.x description": "{x} description",
|
|
@@ -140,7 +142,7 @@
|
|
|
140
142
|
"text.synchronize": "synchronize",
|
|
141
143
|
"text.token expiry time": "token expiry time",
|
|
142
144
|
"text.updated_successfully": "updated successfully",
|
|
143
|
-
"text.user
|
|
145
|
+
"text.user invitation prompt": "Please enter the username or email address of the user you wish to invite.",
|
|
144
146
|
"text.user management": "user management",
|
|
145
147
|
"text.x_cannot_delete": "{x} cannot be deleted",
|
|
146
148
|
"text.x_created_successfully": "{x} created successfully",
|
|
@@ -155,8 +157,10 @@
|
|
|
155
157
|
"title.invalid input": "invalid input",
|
|
156
158
|
"title.lookup role": "lookup role",
|
|
157
159
|
"title.lookup user": "lookup user",
|
|
160
|
+
"title.move to this domain": "move to this domain",
|
|
158
161
|
"title.need help": "need help?",
|
|
159
162
|
"title.nothing selected": "nothing selected",
|
|
163
|
+
"title.open attributes view": "open attributes view",
|
|
160
164
|
"title.owner_transfer": "owner transfer",
|
|
161
165
|
"title.partners": "partners",
|
|
162
166
|
"title.protected-privileges": "protected privileges",
|
package/translations/ja.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"error.new-password-and-confirm-password-do-not-match": "新しいパスワードと確認パスワードが一致しません.",
|
|
23
23
|
"error.not valid pattern of type": "正しい{type}形式ではありません.",
|
|
24
24
|
"error.password-not-matched": "パスワードが一致しません. 5回失敗するとアカウントがロックされます. (失敗: {failCount})",
|
|
25
|
-
"error.user duplicated": "同じメールで登録されたアカウントが存在します.",
|
|
26
25
|
"error.user not found": "ユーザーが存在しません.",
|
|
27
26
|
"error.user-deleted": "ユーザーが存在しません.",
|
|
28
27
|
"error.user-locked": "アカウントがロックされました. メールで再アクティブ化してください.",
|
|
@@ -54,7 +53,9 @@
|
|
|
54
53
|
"field.tag": "タグ",
|
|
55
54
|
"field.tenant-id": "テナントID",
|
|
56
55
|
"field.token": "認証トークン",
|
|
56
|
+
"field.user-id or email": "ユーザーIDまたはメール",
|
|
57
57
|
"field.user-type": "ユーザー タイプ",
|
|
58
|
+
"field.username": "ユーザーID",
|
|
58
59
|
"label.access token": "アクセストークン",
|
|
59
60
|
"label.activated-user": "正常",
|
|
60
61
|
"label.admin-user": "管理者",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"label.subject": "タイトル",
|
|
96
97
|
"label.superuser": "スーパーユーザー",
|
|
97
98
|
"label.user": "ユーザー",
|
|
99
|
+
"label.user-id": "ユーザーID",
|
|
98
100
|
"label.vendors": "ベンダー",
|
|
99
101
|
"label.whitelist": "ホワイトリスト",
|
|
100
102
|
"label.x description": "{x}説明",
|
|
@@ -139,7 +141,7 @@
|
|
|
139
141
|
"text.synchronize": "同期",
|
|
140
142
|
"text.token expiry time": "トークン有効期限",
|
|
141
143
|
"text.updated_successfully": "正常にアップデートしました.",
|
|
142
|
-
"text.user
|
|
144
|
+
"text.user invitation prompt": "招待したいユーザーのユーザー名またはメールアドレスを入力してください。",
|
|
143
145
|
"text.user management": "ユーザー管理",
|
|
144
146
|
"text.x_cannot_delete": "{x}は削除できません.",
|
|
145
147
|
"text.x_created_successfully": "{x}が成功的に作成されました.",
|
|
@@ -154,8 +156,10 @@
|
|
|
154
156
|
"title.invalid input": "無効な入力値",
|
|
155
157
|
"title.lookup role": "ロール検索",
|
|
156
158
|
"title.lookup user": "ユーザー検索",
|
|
159
|
+
"title.move to this domain": "このドメインに移動",
|
|
157
160
|
"title.need help": "何かお困りですか?",
|
|
158
161
|
"title.nothing selected": "選択された項目がありません.",
|
|
162
|
+
"title.open attributes view": "属性リストを見る",
|
|
159
163
|
"title.owner_transfer": "ドメイン所有者変更",
|
|
160
164
|
"title.partners": "パートナー管理",
|
|
161
165
|
"title.protected-privileges": "保護されている権限",
|
package/translations/ko.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"error.new-password-and-confirm-password-do-not-match": "새 비밀번호와 확인 비밀번호가 일치하지 않습니다.",
|
|
23
23
|
"error.not valid pattern of type": "올바른 {type} 형식이 아닙니다.",
|
|
24
24
|
"error.password-not-matched": "비밀번호가 일치하지 않습니다. 5번 실패하면 계정이 잠깁니다. (실패: {failCount})",
|
|
25
|
-
"error.user duplicated": "동일한 이메일로 가입된 계정이 이미 존재합니다.",
|
|
26
25
|
"error.user not found": "사용자가 존재하지 않습니다.",
|
|
27
26
|
"error.user-deleted": "사용자가 존재하지 않습니다.",
|
|
28
27
|
"error.user-locked": "계정이 잠겼습니다. 이메일을 통해 재활성화하세요.",
|
|
@@ -54,7 +53,9 @@
|
|
|
54
53
|
"field.tag": "태그",
|
|
55
54
|
"field.tenant-id": "tenant id",
|
|
56
55
|
"field.token": "인증 토큰",
|
|
56
|
+
"field.user-id or email": "사용자 아이디 또는 이메일",
|
|
57
57
|
"field.user-type": "사용자유형",
|
|
58
|
+
"field.username": "사용자 아이디",
|
|
58
59
|
"label.access token": "액세스 토큰",
|
|
59
60
|
"label.activated-user": "정상",
|
|
60
61
|
"label.admin-user": "관리자",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"label.subject": "제목",
|
|
96
97
|
"label.superuser": "수퍼유저",
|
|
97
98
|
"label.user": "사용자",
|
|
99
|
+
"label.user-id": "사용자 아이디",
|
|
98
100
|
"label.vendors": "공급 업체",
|
|
99
101
|
"label.whitelist": "화이트리스트",
|
|
100
102
|
"label.x description": "{x} 설명",
|
|
@@ -139,7 +141,7 @@
|
|
|
139
141
|
"text.synchronize": "동기화",
|
|
140
142
|
"text.token expiry time": "토큰 만료 시점",
|
|
141
143
|
"text.updated_successfully": "성공적으로 업데이트 되었습니다.",
|
|
142
|
-
"text.user
|
|
144
|
+
"text.user invitation prompt": "초대하고자 하는 사용자아이디나 이메일을 입력하세요。",
|
|
143
145
|
"text.user management": "사용자 관리",
|
|
144
146
|
"text.x_cannot_delete": "{x}은/는 삭제할 수 없습니다.",
|
|
145
147
|
"text.x_created_successfully": "{x}이/가 성공적으로 생성되었습니다.",
|
|
@@ -154,8 +156,10 @@
|
|
|
154
156
|
"title.invalid input": "유효하지 않은 입력값",
|
|
155
157
|
"title.lookup role": "역할 검색",
|
|
156
158
|
"title.lookup user": "사용자 검색",
|
|
159
|
+
"title.move to this domain": "이 도메인으로 이동하기",
|
|
157
160
|
"title.need help": "도움이 필요하세요?",
|
|
158
161
|
"title.nothing selected": "선택된 항목이 없습니다.",
|
|
162
|
+
"title.open attributes view": "속성목록 보기",
|
|
159
163
|
"title.owner_transfer": "도메인 소유자 변경하기",
|
|
160
164
|
"title.partners": "파트너 관리",
|
|
161
165
|
"title.protected-privileges": "보호되는 권한",
|
package/translations/ms.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"error.new-password-and-confirm-password-do-not-match": "kata laluan baharu dan pengesahan berbeza",
|
|
23
23
|
"error.not valid pattern of type": "tidak sah corak {type}",
|
|
24
24
|
"error.password-not-matched": "salah kata kunci. akaun anda akan dikunci selepas 5 kali percubaan. (gagal: {failCount})",
|
|
25
|
-
"error.user duplicated": "emel telah diguna oleh akaun lain",
|
|
26
25
|
"error.user not found": "pengguna tidak wujud",
|
|
27
26
|
"error.user-deleted": "pengguna tidak wujud",
|
|
28
27
|
"error.user-locked": "pengguna dikunci",
|
|
@@ -54,7 +53,9 @@
|
|
|
54
53
|
"field.tag": "tag",
|
|
55
54
|
"field.tenant-id": "ID penyewa",
|
|
56
55
|
"field.token": "token",
|
|
56
|
+
"field.user-id or email": "ID pengguna atau e-mel",
|
|
57
57
|
"field.user-type": "jenis pengguna",
|
|
58
|
+
"field.username": "ID pengguna",
|
|
58
59
|
"label.access token": "token akses",
|
|
59
60
|
"label.activated-user": "diaktifkan",
|
|
60
61
|
"label.admin-user": "admin",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"label.subject": "subjek",
|
|
96
97
|
"label.superuser": "superuser",
|
|
97
98
|
"label.user": "pengguna",
|
|
99
|
+
"label.user-id": "ID pengguna",
|
|
98
100
|
"label.vendors": "penjual",
|
|
99
101
|
"label.whitelist": "senarai putih",
|
|
100
102
|
"label.x description": "{x} penerangan",
|
|
@@ -140,7 +142,7 @@
|
|
|
140
142
|
"text.synchronize": "menyamakan",
|
|
141
143
|
"text.token expiry time": "masa tamat token",
|
|
142
144
|
"text.updated_successfully": "berjaya dikemaskini",
|
|
143
|
-
"text.user
|
|
145
|
+
"text.user invitation prompt": "sila masukkan nama pengguna atau alamat e-mel pengguna yang ingin anda jemput.",
|
|
144
146
|
"text.user management": "pengurusan pengguna",
|
|
145
147
|
"text.x_cannot_delete": "{x} tidak boleh dipadam",
|
|
146
148
|
"text.x_created_successfully": "{x} berjaya dibina",
|
|
@@ -155,8 +157,10 @@
|
|
|
155
157
|
"title.invalid input": "invalid input",
|
|
156
158
|
"title.lookup role": "cari peranan",
|
|
157
159
|
"title.lookup user": "cari pengguna",
|
|
160
|
+
"title.move to this domain": "pindah ke domain ini",
|
|
158
161
|
"title.need help": "perlu bantuan?",
|
|
159
162
|
"title.nothing selected": "tiada yang dipilih",
|
|
163
|
+
"title.open attributes view": "lihat atribut terbuka",
|
|
160
164
|
"title.owner_transfer": "menukar pemilik",
|
|
161
165
|
"title.partners": "rakan kongsi",
|
|
162
166
|
"title.protected-privileges": "hak istimewa yang dilindungi",
|
package/translations/zh.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"error.new-password-and-confirm-password-do-not-match": "新密码与认证密码不同",
|
|
23
23
|
"error.not valid pattern of type": "{type}格式错误",
|
|
24
24
|
"error.password-not-matched": "密码不匹配。 5次失败后,您的帐户将被锁定。(失败次数:{failCount})",
|
|
25
|
-
"error.user duplicated": "有一个用户帐户使用相同的电子邮件",
|
|
26
25
|
"error.user not found": "找不到用户",
|
|
27
26
|
"error.user-deleted": "找不到用户",
|
|
28
27
|
"error.user-locked": "用户帐户已锁定",
|
|
@@ -54,7 +53,9 @@
|
|
|
54
53
|
"field.tag": "tag",
|
|
55
54
|
"field.tenant-id": "租户ID",
|
|
56
55
|
"field.token": "代币",
|
|
56
|
+
"field.user-id or email": "用户名或电子邮件",
|
|
57
57
|
"field.user-type": "用户类型",
|
|
58
|
+
"field.username": "用户名",
|
|
58
59
|
"label.access token": "访问令牌",
|
|
59
60
|
"label.activated-user": "用户已激活",
|
|
60
61
|
"label.admin-user": "管理用户",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"label.subject": "主题",
|
|
96
97
|
"label.superuser": "超级用户",
|
|
97
98
|
"label.user": "用户",
|
|
99
|
+
"label.user-id": "用户ID",
|
|
98
100
|
"label.vendors": "供应商",
|
|
99
101
|
"label.whitelist": "白名单",
|
|
100
102
|
"label.x description": "{x} 描述",
|
|
@@ -140,8 +142,8 @@
|
|
|
140
142
|
"text.synchronize": "同步",
|
|
141
143
|
"text.token expiry time": "令牌过期时间",
|
|
142
144
|
"text.updated_successfully": "更新成功",
|
|
143
|
-
"text.user activated successfully": "用户成功激活。",
|
|
144
145
|
"text.user management": "用户管理",
|
|
146
|
+
"text.user invitation prompt": "请输入您希望邀请的用户的用户名或电子邮件地址。",
|
|
145
147
|
"text.x_cannot_delete": "{x}无法删除",
|
|
146
148
|
"text.x_created_successfully": "{x}创建成功",
|
|
147
149
|
"text.x_deleted_successfully": "{x}删除成功",
|
|
@@ -155,8 +157,10 @@
|
|
|
155
157
|
"title.invalid input": "输入无效",
|
|
156
158
|
"title.lookup role": "查找角色",
|
|
157
159
|
"title.lookup user": "查找用户",
|
|
160
|
+
"title.move to this domain": "移动到此域名",
|
|
158
161
|
"title.need help": "需要帮助?",
|
|
159
162
|
"title.nothing selected": "未选择",
|
|
163
|
+
"title.open attributes view": "打开属性视图",
|
|
160
164
|
"title.owner_transfer": "业主权限转移",
|
|
161
165
|
"title.partners": "合作伙伴",
|
|
162
166
|
"title.protected-privileges": "受保护的权限",
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit'
|
|
2
|
-
|
|
3
|
-
export const AUTH_STYLE_SIGN = css`
|
|
4
|
-
:host {
|
|
5
|
-
display: flex;
|
|
6
|
-
background-color: var(--md-sys-color-primary);
|
|
7
|
-
color: var(--md-sys-color-on-primary);
|
|
8
|
-
|
|
9
|
-
--md-filled-text-field-supporting-text-color: var(--md-sys-color-on-primary);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host *:focus {
|
|
13
|
-
outline: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host * {
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.wrap {
|
|
21
|
-
display: block;
|
|
22
|
-
width: 450px;
|
|
23
|
-
min-width: 350px;
|
|
24
|
-
margin: 0 auto;
|
|
25
|
-
padding-bottom: 100px;
|
|
26
|
-
text-align: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.auth-brand {
|
|
30
|
-
color: var(--md-sys-color-on-primary);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.auth-brand img {
|
|
34
|
-
margin: 15% auto 5px auto;
|
|
35
|
-
width: 100px;
|
|
36
|
-
border: 3px solid var(--md-sys-color-on-primary);
|
|
37
|
-
border-radius: 25px;
|
|
38
|
-
box-shadow: var(--box-shadow);
|
|
39
|
-
}
|
|
40
|
-
.name {
|
|
41
|
-
display: block;
|
|
42
|
-
font: var(--auth-brand-name);
|
|
43
|
-
text-shadow: var(--auth-brand-name-shadow);
|
|
44
|
-
}
|
|
45
|
-
.auth-brand .welcome-msg {
|
|
46
|
-
font: var(--auth-brand-welcome-msg);
|
|
47
|
-
}
|
|
48
|
-
.auth-form {
|
|
49
|
-
display: grid;
|
|
50
|
-
grid-gap: var(--spacing-medium);
|
|
51
|
-
grid-template-columns: 1fr 1fr;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
form {
|
|
55
|
-
grid-column: 1 / -1;
|
|
56
|
-
display: grid;
|
|
57
|
-
grid-template-columns: 1fr 1fr;
|
|
58
|
-
grid-gap: var(--spacing-medium);
|
|
59
|
-
align-items: center;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
h3 {
|
|
63
|
-
grid-column: 1 / -1;
|
|
64
|
-
margin: 50px 0 0 0;
|
|
65
|
-
font: var(--auth-title-font);
|
|
66
|
-
color: var(--auth-title-color, var(--md-sys-color-on-primary));
|
|
67
|
-
text-transform: uppercase;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.field {
|
|
71
|
-
grid-column: 1 / -1;
|
|
72
|
-
text-align: left;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.submit-buttons-container {
|
|
76
|
-
grid-column: 1 / -1;
|
|
77
|
-
text-align: center;
|
|
78
|
-
|
|
79
|
-
display: flex;
|
|
80
|
-
align-items: center;
|
|
81
|
-
gap: 10px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.fingerprint {
|
|
85
|
-
color: var(--md-sys-color-on-primary);
|
|
86
|
-
border: 1.5px solid var(--md-sys-color-on-primary);
|
|
87
|
-
border-radius: 20%;
|
|
88
|
-
width: 36px;
|
|
89
|
-
height: 36px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.field md-filled-text-field {
|
|
93
|
-
grid-column: 1 / -1;
|
|
94
|
-
width: 100%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
md-text-button,
|
|
98
|
-
md-elevated-button {
|
|
99
|
-
grid-column: 1 / -1;
|
|
100
|
-
flex: 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.wrap .link {
|
|
104
|
-
text-decoration: none;
|
|
105
|
-
justify-self: flex-start;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.wrap .link md-text-button {
|
|
109
|
-
--md-text-button-label-text-color: var(--md-sys-color-on-primary);
|
|
110
|
-
--md-text-button-focus-label-text-color: var(--md-sys-color-on-primary);
|
|
111
|
-
--md-text-button-hover-label-text-color: var(--md-sys-color-on-primary);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.wrap .link md-icon {
|
|
115
|
-
color: var(--md-sys-color-on-primary);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
#locale-area {
|
|
119
|
-
display: flex;
|
|
120
|
-
grid-column: 1 / -1;
|
|
121
|
-
padding: 0 var(--spacing-medium);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#locale-area > label {
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
color: var(--md-sys-color-on-primary);
|
|
128
|
-
--md-icon-size: 16px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
#locale-selector {
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
width: 100%;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
#locale-selector {
|
|
137
|
-
--i18n-selector-field-border: none;
|
|
138
|
-
--i18n-selector-field-background-color: none;
|
|
139
|
-
--i18n-selector-field-font-size: 14px;
|
|
140
|
-
--i18n-selector-field-color: var(--md-sys-color-on-primary);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.lottie-container {
|
|
144
|
-
width: 100%;
|
|
145
|
-
height: 300px;
|
|
146
|
-
position: absolute;
|
|
147
|
-
left: 0;
|
|
148
|
-
bottom: 0;
|
|
149
|
-
pointer-events: none;
|
|
150
|
-
}
|
|
151
|
-
.lottie-container lottie-player {
|
|
152
|
-
position: absolute;
|
|
153
|
-
bottom: -6%;
|
|
154
|
-
width: 100%;
|
|
155
|
-
height: auto;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@media (max-width: 450px) {
|
|
159
|
-
.wrap {
|
|
160
|
-
width: 85%;
|
|
161
|
-
min-width: 320px;
|
|
162
|
-
}
|
|
163
|
-
.auth-form {
|
|
164
|
-
grid-template-columns: 1fr;
|
|
165
|
-
}
|
|
166
|
-
.auth-brand img {
|
|
167
|
-
margin: 12% auto 5px auto;
|
|
168
|
-
width: 75px;
|
|
169
|
-
}
|
|
170
|
-
h3 {
|
|
171
|
-
margin: 15px 0 0 0;
|
|
172
|
-
}
|
|
173
|
-
.lottie-container {
|
|
174
|
-
overflow: hidden;
|
|
175
|
-
height: 200px;
|
|
176
|
-
pointer-events: none;
|
|
177
|
-
}
|
|
178
|
-
.lottie-container lottie-player {
|
|
179
|
-
width: 1200px;
|
|
180
|
-
left: -30%;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@media screen and (min-width: 1400px) {
|
|
185
|
-
.wrap {
|
|
186
|
-
padding-bottom: 150px;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
@media screen and (min-width: 2500px) {
|
|
190
|
-
.wrap {
|
|
191
|
-
padding-bottom: 280px;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
`
|
package/client/bootstrap.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js'
|
|
2
|
-
import '@operato/i18n/ox-i18n.js'
|
|
3
|
-
import '@operato/attribute/grist-editor' /* for register data-grist editor type 'attributes' */
|
|
4
|
-
|
|
5
|
-
import { html } from 'lit-html'
|
|
6
|
-
|
|
7
|
-
import { navigate, store } from '@operato/shell'
|
|
8
|
-
import { TOOL_POSITION } from '@operato/layout'
|
|
9
|
-
import { OxGristEditorPrivilege } from '@operato/app/grist-editor/ox-grist-editor-privilege.js'
|
|
10
|
-
import { registerEditor as registerGristEditor, registerRenderer as registerGristRenderer, OxGristRendererJson5 } from '@operato/data-grist'
|
|
11
|
-
|
|
12
|
-
import { auth } from '@things-factory/auth-base/dist-client/auth.js'
|
|
13
|
-
import { ADD_MORENDA } from '@things-factory/more-base/client'
|
|
14
|
-
|
|
15
|
-
export default function bootstrap() {
|
|
16
|
-
registerGristEditor('privilege', OxGristEditorPrivilege)
|
|
17
|
-
registerGristRenderer('privilege', OxGristRendererJson5)
|
|
18
|
-
|
|
19
|
-
/* add user profile morenda */
|
|
20
|
-
store.dispatch({
|
|
21
|
-
type: ADD_MORENDA,
|
|
22
|
-
morenda: {
|
|
23
|
-
icon: html` <md-icon>account_circle</md-icon> `,
|
|
24
|
-
name: html` <ox-i18n msgid="text.auth profile"></ox-i18n> `,
|
|
25
|
-
position: TOOL_POSITION.FRONT_END,
|
|
26
|
-
action: () => {
|
|
27
|
-
navigate('profile')
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
/* add sign-out morenda */
|
|
33
|
-
store.dispatch({
|
|
34
|
-
type: ADD_MORENDA,
|
|
35
|
-
morenda: {
|
|
36
|
-
icon: html` <md-icon>exit_to_app</md-icon> `,
|
|
37
|
-
name: html` <ox-i18n msgid="field.sign out"></ox-i18n> `,
|
|
38
|
-
position: TOOL_POSITION.FRONT_END,
|
|
39
|
-
action: () => {
|
|
40
|
-
auth.signout()
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
Get user profile information from server.
|
|
47
|
-
As soon as response received, auth.on('profile', ...) handlers start to work.
|
|
48
|
-
It's very important point to build UI for the user.
|
|
49
|
-
*/
|
|
50
|
-
auth.profile()
|
|
51
|
-
}
|