Commit graph

13 commits

Author SHA1 Message Date
Sudhanshu Gautam
aab4965a4d change translate option icon from language to translate
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-10-03 23:57:52 +05:30
Sudhanshu Gautam
8796c44090 Minor refactoring. Use language's regional translation as key.
Previously, the translation data had the language names translated
in the specific language which is counter intuitive. Because if the
page loads in English and the user clicks on the Change Language
button then they will see their language's name in English which they
might not now.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-10-02 23:38:15 +05:30
Sudhanshu Gautam
857b71b44c Fix Language selection popup z-index issue
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-10-02 23:30:07 +05:30
mustafa
bb51bdf2ee Radio button added 2019-10-01 17:48:56 +03:00
Adriano Pereira Junior
861df0b6e1 Brazilian Portuguese added. 2019-09-26 21:54:57 -03:00
unpredictable-error
03cf34c612 setted in header 2019-09-26 22:54:55 +03:00
Sudhanshu Gautam
db14840f4a Fix responsive design issues
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-09-05 00:03:52 +05:30
Sudhanshu Gautam
ce4d2e1436 Add prettier support
Add prettier and bind it with eslint.
Also add pre-commit hook to prettify before commit

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-09-02 02:34:41 +05:30
Sudhanshu Gautam
9475f4092a Add ESLint to maintain code style. Add pre-commit hook to lint prior.
ESLint is used with the standard react plugin. It detects all kinds of
issues ranging from misspells, indentation, variable-naming, etc.
A pre-commit hook is added to git. Prior commiting, ESlint will run
to validate that everything is OK and the user will have the option
to fix it.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-07-21 22:03:51 +05:30
Sudhanshu Gautam
40f466153b Adds tabbed interface for advanced image building and reformats code
An interface tagged Basic and Advanced is introduced. Basic section
shows the default openwrt images with download links. Advanced
section show the options to choose which packages to use and an
option to build the images is introduced.
Reformatting of the code is also done according to standard code
styling.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-07-12 01:41:43 +05:30
Sudhanshu Gautam
6713303247 changes the locales structure making english strings as keys
Previously they were stored according to the format
'src/locales/{{lng}}/translation.json'
and after review, they are stored according to the following:
'src/locales/{{lng}}.json'
Also, the english strings are used as the keys/identifier in
translation files to make it easy to understand and implement.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-07-04 16:47:53 +05:30
Sudhanshu Gautam
07b13c3f7a adds translation support via i18n.js
Uses react-i18next library to provide APIs for translational
purposes.
Translation data is loaded from `src/locales/{{lng}}/translation.json`
and is accessed by dot notation.
The data can be translated in two ways:
1. In functional components, a method `t` can be instantiated using the
`useTranslation` method from rect-18next.
2. In class components, a method `t` can be accessed via props while
exporting the component with `withTranslation` method from react-i18next
library.

The syntax will look like `t('data.data')` or `this.props.t('data.data')`

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-06-29 12:22:32 +05:30
Sudhanshu Gautam
8f68dc328e initializes the base for the firmware wizard
PWA based on ReactJs. Showcases the basic functionalities required
for the Firmware Selector.
Proof of Concept for the wizard with selection for vendor, model
and variants.

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Initial commit from Create React App
2019-06-26 02:43:24 +05:30