@bigbinary/neeto-themes-frontend 1.1.11

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-themes-nano
2
+
3
+ The `neeto-themes-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-themes-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 NeetoThemesEngine::Engine => "/neeto_themes_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_themes_engine:install:migrations
51
+ bundle exec rails db:migrate
52
+ ```
53
+
54
+ #### Usage
55
+
56
+ 1. Replace NeetoThemesNano 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-themes-frontend` package to the `package.json`
79
+
80
+ ```shell
81
+ yarn add @bigbinary/neeto-themes-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-themes-frontend"
90
+
91
+ ```javascript
92
+ import React from "react";
93
+
94
+ import { WelcomeScreen } from "@bigbinary/neeto-themes-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,108 @@
1
+ {
2
+ "neetoThemes": {
3
+ "common": {
4
+ "design": "Design",
5
+ "preview": "Preview",
6
+ "save": "Save",
7
+ "done": "Done",
8
+ "cancel": "Cancel",
9
+ "continue": "Continue",
10
+ "retry": "Retry",
11
+ "active": "Active",
12
+ "apply": "Apply",
13
+ "edit": "Edit",
14
+ "noResultsFound": "No results found!",
15
+ "searchThemes": "Search themes",
16
+ "style": "Style",
17
+ "images": "Images",
18
+ "name": "Name",
19
+ "left": "Left",
20
+ "logo": "Logo"
21
+ },
22
+ "buttons": {
23
+ "saveChanges": "Save changes",
24
+ "addNewTheme": "Add new theme",
25
+ "backToThemes": "Back to themes",
26
+ "save": "Save",
27
+ "reset": "Reset"
28
+ },
29
+ "alerts": {
30
+ "title": {
31
+ "deleteTheme": "Confirm delete theme"
32
+ },
33
+ "message": {
34
+ "deleteTheme_zero": "You are permanently deleting the \"{{name, anyCase}}\" theme. Are you sure you want to proceed?",
35
+ "deleteTheme_one": "You are permanently deleting the \"{{name, anyCase}}\" theme. This theme is being used in one {{entityType, anyCase}}. {{entityType, anyCase}} using this theme would fall back to using the default \"Plain blue\" theme. Are you sure you want to proceed?",
36
+ "deleteTheme_other": "You are permanently deleting the \"{{name, anyCase}}\" theme. This theme is being used in {{count}} {{entityType, anyCase}}. {{entityType, anyCase}}s using this theme would fall back to using the default \"Plain blue\" theme. Are you sure you want to proceed?"
37
+ }
38
+ },
39
+ "build": {
40
+ "leftSideBar": {
41
+ "headerTabs": {
42
+ "themes": "Themes"
43
+ },
44
+ "themes": {
45
+ "systemThemes": "System themes",
46
+ "customThemes": "Custom themes",
47
+ "themeOptions": {
48
+ "clone": "Clone",
49
+ "delete": "Delete"
50
+ },
51
+ "themeCard": {
52
+ "primary": "Primary",
53
+ "secondary": "Secondary"
54
+ },
55
+ "editTheme": {
56
+ "title": "Edit theme",
57
+ "imageUpload": "Drag and drop or <span>Browse</span> a file"
58
+ },
59
+ "createTheme": {
60
+ "title": "New theme",
61
+ "newThemeName": "My theme"
62
+ },
63
+ "themeCloned": "Theme has been cloned successfully.",
64
+ "themeCloneFailed": "Failed to clone theme, please try after some time."
65
+ }
66
+ }
67
+ },
68
+ "form": {
69
+ "build": {
70
+ "logoPosition": "Logo position",
71
+ "font": "Font",
72
+ "left": "Left",
73
+ "connect": "Connect",
74
+ "update": "Update",
75
+ "confirmationText": "Confirmation text",
76
+ "enterConfirmationText": "Enter confirmation text",
77
+ "questions": "Questions",
78
+ "right": "Right",
79
+ "uploadCSV": "Upload CSV",
80
+ "answerColor": "Answer color",
81
+ "buttons": "Buttons",
82
+ "allAnswers": "All answers",
83
+ "searchSubmissions": "Search submissions",
84
+ "buttonBorderRadius": "Button border radius",
85
+ "backgroundColor": "Background color",
86
+ "enableContentBackground": "Enable content background",
87
+ "contentBackgroundColor": "Content background color",
88
+ "backgroundImage": "Background image",
89
+ "backgroundOverlay": "Background overlay",
90
+ "enableDominantBackgroundColor": "Enable dominant<br/> background color",
91
+ "enableDominantBackgroundColorInfo": "Enabling this option will update the background color to the dominant color from the background image.",
92
+ "thankYouTextAlignment": "Thank you text alignment",
93
+ "welcomeTextAlignment": "Welcome text alignment",
94
+ "questionsTextAlignment": "Questions text alignment",
95
+ "addNewElement": "Add new element",
96
+ "addOption": "Add option",
97
+ "addBulk": "Add bulk",
98
+ "buttonText": "Button text",
99
+ "buttonUrl": "Button URL",
100
+ "bulkOption": {
101
+ "title": "Bulk add options",
102
+ "label": "Enter options",
103
+ "helpText": "Separate options using commas or line breaks. <Link>View help article</Link> for more information."
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,3 @@
1
+ import en from "./en.json";
2
+
3
+ export { en };