@bigbinary/neeto-folders-frontend 1.1.7 → 2.0.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 CHANGED
@@ -135,8 +135,15 @@ certain properties such as params as necessary.
135
135
  type: "FOLDER", // A unique type key for query keys.
136
136
  maxDepth: 2, // Maximum allowed depth for folder tree
137
137
  folderPath: "/folders/:folderId", // Path for handling URL redirections and params matching.
138
- itemLabel: t("common.items"), // For displaying the item label in counts
139
- itemKeys: [], // For invalidation purposes. Keys in this array will be invalidated along with folders.
138
+ invalidationKeys: [], // For invalidation purposes. Keys in this array will be invalidated along with folders.
139
+ reorderMode: "rearrange", // If reorder pane should mount in positional `reorder` mode or simple `rearrange` mode.
140
+ // Taxonomy
141
+ labels: {
142
+ folder: t("common.folder"),
143
+ folders: t("common.folders"),
144
+ items: t("common.items"),
145
+ items: t("common.items"),
146
+ }
140
147
  params: {}, // Params to be passed to APIs along with other params. Can be used for sorting and similar.
141
148
  api: { // Folder CRUD methods.
142
149
  fetch: noop,
@@ -5,32 +5,35 @@
5
5
  "edit": "Edit",
6
6
  "move": "Move",
7
7
  "save": "Save",
8
+ "folder": "Folder",
9
+ "folders": "Folders",
10
+ "item": "Item",
8
11
  "items": "Items"
9
12
  },
13
+
10
14
  "createFolder": {
11
- "parentInfo": "Leave the option empty to create folder at the root level",
12
- "parentTitle": "Parent folder"
15
+ "parentInfo": "Leave the option empty to create {{ folder }} at the root level",
16
+ "parentTitle": "Parent {{ folder }}"
13
17
  },
14
18
  "deleteFolder": {
15
- "info": "Are you sure you want to delete the folder <strong>{{name, anyCase}}</strong>?",
16
- "title": "Delete folder"
19
+ "info": "Are you sure you want to delete the {{ folder }} <strong>{{name, anyCase}}</strong>?",
20
+ "title": "Delete {{ folder }}"
17
21
  },
18
22
  "folders": {
19
- "title": "Folders",
20
- "add": "Add new folder",
21
- "edit": "Edit folder",
22
- "name": "Folder name",
23
- "subfolderCount_one": "{{count}} sub folder",
24
- "subfolderCount_other": "{{count}} sub folders",
25
- "noFolders": "No folders to show"
23
+ "title": "{{ folders }}",
24
+ "add": "Add new {{ folder }}",
25
+ "edit": "Edit {{ folder }}",
26
+ "name": "{{ folder }} name",
27
+ "subfolderCount": "{{count}} sub {{ folders }}",
28
+ "noFolders": "No {{ folder }} to show"
26
29
  },
27
30
  "moveToFolder": {
28
- "depthExceeded": "Cannot move to this folder. Maximum {{maxDepth}} nested folders are allowed.",
29
- "notAllowed": "You cannot move to this folder.",
30
- "remove": "Remove from folder",
31
- "title": "Move to folder"
31
+ "depthExceeded": "Cannot move to this {{ folder }}. Maximum {{maxDepth}} nested {{ folders }} are allowed.",
32
+ "notAllowed": "You cannot move to this {{ folder }}.",
33
+ "remove": "Remove from {{ folder }}",
34
+ "title": "Move to {{ folder }}"
32
35
  },
33
36
  "reorderFolder": {
34
- "title": "Reorder folders"
37
+ "title": "Reorder {{ folders }}"
35
38
  }
36
39
  }