@bigbinary/neeto-folders-frontend 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 ADDED
@@ -0,0 +1,105 @@
1
+ # neeto-folders-nano
2
+
3
+ The `neeto-folders-nano` acts as the source of truth for the new nano's structure,
4
+ configs, data etc.
5
+
6
+ ## Contents
7
+
8
+ 1. [Development with Host Application](#development-with-host-application)
9
+ - [Engine](#engine)
10
+ - [Installation](#installation)
11
+ - [Usage](#usage)
12
+ - [Frontend package](#frontend-package)
13
+ - [Installation](#installation-1)
14
+ - [Instructions for development](#instructions-for-development)
15
+ - [Usage](#usage-1)
16
+ 2. [Instructions for Publishing](#instructions-for-publishing)
17
+
18
+ ## Development with Host Application
19
+
20
+ ### Engine
21
+
22
+ #### Installation
23
+
24
+ 1. Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ source "NEETO_GEM_SERVER_URL" do
28
+ # ..existing gems
29
+
30
+ gem 'neeto-folders-engine'
31
+ end
32
+ ```
33
+
34
+ 2. And then execute:
35
+
36
+ ```shell
37
+ bundle install
38
+ ```
39
+
40
+ 3. Add this line to your application's `config/routes.rb` file
41
+
42
+ ```ruby
43
+ mount NeetoFoldersEngine::Engine => "/neeto_folders_engine"
44
+ ```
45
+
46
+ 4. Add required migrations in the `db/migrate` folder. Run the following
47
+ commands to copy the migrations from the engine to the host application.
48
+
49
+ ```shell
50
+ bundle exec rails neeto_folders_engine:install:migrations
51
+ bundle exec rails db:migrate
52
+ ```
53
+
54
+ #### Usage
55
+
56
+ 1. Replace NeetoFoldersNano with your project name
57
+
58
+ Create a `script.rb` file in the project root and paste the script from the
59
+ following file.
60
+
61
+ [Replace project name script](./docs/engine/replace-project-name-script.md)
62
+
63
+ 2. Run the file using the following command:
64
+
65
+ ```shell
66
+ ruby script.rb
67
+ ```
68
+
69
+ Notes ⚠️
70
+
71
+ - Don't commit this file.
72
+ - Project name should be given in PascalCase.
73
+
74
+ ### Frontend package
75
+
76
+ #### Installation
77
+
78
+ 1. Add the `neeto-folders-frontend` package to the `package.json`
79
+
80
+ ```shell
81
+ yarn add @bigbinary/neeto-folders-frontend
82
+ ```
83
+
84
+ ### Instructions for development
85
+ Check the [Frontend package development guide](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) for step-by-step instructions to develop the frontend package.
86
+
87
+ #### Usage
88
+
89
+ 1. Import `WelcomeScreen` component from "@bigbinary/neeto-folders-frontend"
90
+
91
+ ```javascript
92
+ import React from "react";
93
+
94
+ import { WelcomeScreen } from "@bigbinary/neeto-folders-frontend";
95
+
96
+ const App = () => <WelcomeScreen />;
97
+
98
+ export default App;
99
+ ```
100
+
101
+ ## Instructions for Publishing
102
+
103
+ Consult the
104
+ [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages)
105
+ guide for details on how to publish.
@@ -0,0 +1,36 @@
1
+ {
2
+ "common": {
3
+ "cancel": "Cancel",
4
+ "delete": "Delete",
5
+ "edit": "Edit",
6
+ "move": "Move",
7
+ "save": "Save",
8
+ "items": "Items"
9
+ },
10
+ "createFolder": {
11
+ "parentInfo": "Leave the option empty to create folder at the root level",
12
+ "parentTitle": "Parent folder"
13
+ },
14
+ "deleteFolder": {
15
+ "info": "Are you sure you want to delete the folder <strong>{{name, anyCase}}</strong>?",
16
+ "title": "Delete folder"
17
+ },
18
+ "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"
26
+ },
27
+ "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"
32
+ },
33
+ "reorderFolder": {
34
+ "title": "Reorder folders"
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ import en from "./en.json";
2
+
3
+ export { en };