Previously, basic config like URLs were hard-coded in the code
itself. Now they reside in the `config.js` file.
Also fixes#17
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
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>
Introduce ability to change default settings for the app.
Currently starting with disabling i18n debug on prod server
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
A new section in Advanced section is introduced that can be used to
build custom images with custom UCI defaults
Fixes#10
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Loads `openwrt-<target>-<sub-target>-default.manifest` in case of
Vanilla images and shows the list of default installed packages in
a retractable list.
Fixes#15
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Handles 409 and 422 HTTP codes for bad package selection. Shows
popup for appropriate error message and gives a link for build
logs.
Fixes#12Fixes#8
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Adds a section to the bottom of the page which houses links to ASU's
issues page and the github repository for the firmware wizard.
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Add the instructions for development environment setup and
for deploying to server.
Also add relevant information.
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
Now, upon load, the app fetched versions from the server and then
the devices for that particular version.
Then the user can search for their device and download an image
accordingly.
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
The UI is now responsive for all devices (almost). The inputs are made
full-width for mobile devices.
Only relevant images are shown as download links. Previously all the
images returned by ASU server were shown which is fixed now.
Signed-off-by: Sudhanshu Gautam <sudhanshu@clever.coffee>
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>
Now users can build their images using the Build button and it works
fine for the most part.
There is still some issue with the file download as there are a lot
of them and will be imporved in the future.
Using axios now for cross browser support issue of `fetch`
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
On considerations, the checkboxes were found to be limited as the
customization was limited by that interface. Now a "chip" styled
interface has been introduced alongside a text input field to add
custom packages.
An array separated by commas or newline can be feeded into the input
for bigger lists.
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
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>
Basic device information is added to be displayed along with the
download buttons. Additionally, a warning432 message will be
displayed if the size of the image is less than 4000k.
New interface for customized image building with a custom selection
of packages.
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>