@bigbinary/neeto-access-control-frontend 0.1.0-beta1 → 1.1.0
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/README.md +15 -2
- package/app/javascript/src/translations/en.json +32 -2
- package/dist/index.cjs.js +560 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +549 -25
- package/dist/index.js.map +1 -1
- package/package.json +16 -14
package/README.md
CHANGED
|
@@ -90,8 +90,19 @@ The engine is used to manage access control across neeto products.
|
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
```
|
|
93
|
+
- 7.2. invitations_controller_override.rb (Optional)
|
|
94
|
+
- If host app doesn't have an override method for the controller, then `neeto_access_control_configuration_id` parameter must be included in the request params.
|
|
93
95
|
|
|
94
|
-
|
|
96
|
+
```ruby
|
|
97
|
+
NeetoAccessControlEngine::Api::V1::Configurations::InvitationsController.class_eval do
|
|
98
|
+
private
|
|
99
|
+
|
|
100
|
+
def access_control_configuration
|
|
101
|
+
@_access_control_configuration ||= @organization.access_control_configuration
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
```
|
|
105
|
+
- 7.3. guest_sessions_controller_override.rb
|
|
95
106
|
|
|
96
107
|
```ruby
|
|
97
108
|
NeetoAccessControlEngine::GuestSessionsController.class_eval do
|
|
@@ -103,7 +114,7 @@ The engine is used to manage access control across neeto products.
|
|
|
103
114
|
end
|
|
104
115
|
```
|
|
105
116
|
|
|
106
|
-
- 7.
|
|
117
|
+
- 7.4. configurations_controller_override.rb
|
|
107
118
|
|
|
108
119
|
```ruby
|
|
109
120
|
NeetoAccessControlEngine::Api::V1::ConfigurationsController.class_eval do
|
|
@@ -151,6 +162,8 @@ The engine is used to manage access control across neeto products.
|
|
|
151
162
|
- `onReset`: Callback function that is triggered when the reset button is clicked.
|
|
152
163
|
- `onSuccess`: Callback function that is triggered when the configuration is successfully updated.
|
|
153
164
|
- `handleCancel`: Callback function that is triggered when the cancel button is clicked.
|
|
165
|
+
- `invitationsTableColumnData`: Prop to render column data for invitations table. Refer [Column data](https://neeto-ui.neeto.com/?path=/docs/components-table--docs#columndata-a-idcolumndata-)
|
|
166
|
+
- `onConfigurationChangedToInviteOnly`: Callback function that is triggered when configuration is changed to `invited`. Default: `noop`.
|
|
154
167
|
- `headerProps`: Props passed to the [`Header`](https://neeto-molecules.neeto.com/?path=/docs/layouts-header--docs) component from neetoMolecules.
|
|
155
168
|
- `className`: Additional classes to be added to the form.
|
|
156
169
|
|
|
@@ -1,13 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"neetoAccessControl": {
|
|
3
3
|
"titles": {
|
|
4
|
-
"dashboard": "Access Control"
|
|
4
|
+
"dashboard": "Access Control",
|
|
5
|
+
"invitations": "Invitations",
|
|
6
|
+
"emailsWithCount_one": "{{count}} email",
|
|
7
|
+
"emailsWithCount_other": "{{count}} emails",
|
|
8
|
+
"selectedEmailsWithCount_one": "{{count}} selected of {{totalCount}} email",
|
|
9
|
+
"selectedEmailsWithCount_other": "{{count}} selected of {{totalCount}} emails",
|
|
10
|
+
"emails": "Emails",
|
|
11
|
+
"status": "Status"
|
|
12
|
+
},
|
|
13
|
+
"labels": {
|
|
14
|
+
"noInvitations": "There are no invitations",
|
|
15
|
+
"delete": "Delete"
|
|
16
|
+
},
|
|
17
|
+
"alerts": {
|
|
18
|
+
"deleteInviation": {
|
|
19
|
+
"title_one": "Delete invite?",
|
|
20
|
+
"title_other": "Delete invites?",
|
|
21
|
+
"message_one": "The selected <strong>{{email}}</strong> invite will be removed from the list, and user with the email <strong>{{email}}</strong> will no longer have access.",
|
|
22
|
+
"message_other": "The selected <strong>{{count}} invites</strong> will be removed from the list, and users with those email addresses will no longer have access."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"buttons": {
|
|
26
|
+
"saveChangesAndInvite": "Save changes and invite via email",
|
|
27
|
+
"addEmails": "Add emails",
|
|
28
|
+
"viewInvites": "View invites"
|
|
29
|
+
},
|
|
30
|
+
"addEmails": {
|
|
31
|
+
"description": "Seperate multiple emails with comma.",
|
|
32
|
+
"placeholder": "Enter email(s)"
|
|
5
33
|
},
|
|
6
34
|
"auth": {
|
|
7
35
|
"no": "Public, anyone can access",
|
|
8
36
|
"basic": "Secure with password",
|
|
9
37
|
"email": "Secure by allowing emails with certain keywords",
|
|
10
|
-
"session": "Private, logged in members only"
|
|
38
|
+
"session": "Private, logged in members only",
|
|
39
|
+
"invitedWithViewButton": "Only the invited people can access <button>View invites</button>",
|
|
40
|
+
"invited": "Only the invited people can access"
|
|
11
41
|
},
|
|
12
42
|
"actions": {
|
|
13
43
|
"addKeyword": "Add allowed keyword"
|