Commit graph

56 commits

Author SHA1 Message Date
Sudhanshu Gautam
247e0c05f9 add manifest, new releases and add attribution 2021-05-02 18:00:26 +05:30
Sudhanshu Gautam
b3b52baf11 fix snapshot download links 2021-04-26 02:09:25 +05:30
Sudhanshu Gautam
b7cac199b3 Fix header, custom image download links and add std outputs 2021-04-04 14:15:26 +05:30
Sudhanshu Gautam
3fa4a871fc fix failing test 2021-03-21 18:56:05 +05:30
Sudhanshu Gautam
7cdb5206af add ASU compatibility 2021-03-21 18:40:44 +05:30
Sudhanshu Gautam
a0aedf1563 cleanup not-found component 2021-01-13 22:08:55 +05:30
Sudhanshu Gautam
db9f3c2c32 add codecov badge 2021-01-13 18:49:27 +05:30
Sudhanshu Gautam
94203ebf27 fix lint 2021-01-13 18:44:58 +05:30
Sudhanshu Gautam
7d24fcfd4b add more tests. Push code coverage to codecov 2021-01-13 18:41:12 +05:30
Sudhanshu Gautam
3f8de60160 Add JS tests. Cleanup code and add github workflow to test. 2021-01-12 23:40:38 +05:30
Sudhanshu Gautam
f3133a38a0 add download links 2021-01-10 20:36:13 +05:30
Sudhanshu Gautam
ce4c36622b Rewrite using typescript, integrate the latest changes from @mwarning/openwrt-firmware-selector 2021-01-10 19:56:13 +05:30
Sudhanshu Gautam
d5c4ea592a Initialize project using Create React App 2021-01-09 13:01:37 +05:30
Sudhanshu Gautam
b21e082518 Introduce config and fix minor issues
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>
2019-10-06 23:54:13 +05:30
Sudhanshu Gautam
8988781d26 Allow building of image when config is changed
set configChanged state to true when there is change in the UCI
defaults text box.

Fixes #18

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-10-04 23:56:06 +05:30
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
mustafa
9d2334046a Turkish translation added 2019-10-01 13:10:03 +03:00
Kausha Shah
aa00df41e2
Update src/locales/es.json
spanish translation updated

Co-Authored-By: Gonzalo de la Cruz <gdelacruzfdez@gmail.com>
2019-09-27 14:50:02 +05:30
Kausha Shah
144bc8715c
Update src/locales/es.json
spanish translation updated

Co-Authored-By: Gonzalo de la Cruz <gdelacruzfdez@gmail.com>
2019-09-27 14:49:54 +05:30
Kausha Shah
8f2fd72bae
Update src/locales/es.json
spanish translation updated

Co-Authored-By: Gonzalo de la Cruz <gdelacruzfdez@gmail.com>
2019-09-27 14:49:45 +05:30
Kausha Shah
4b6cdd159a
Update src/locales/es.json
spanish translation updated

Co-Authored-By: Gonzalo de la Cruz <gdelacruzfdez@gmail.com>
2019-09-27 14:49:30 +05:30
Kausha Shah
92dd606729
Merge branch 'master' into spanishTranslation 2019-09-27 13:05:13 +05:30
Kausha.Shah
f3187cc439 namingConvention change 2019-09-27 13:00:12 +05:30
Adriano Pereira Junior
861df0b6e1 Brazilian Portuguese added. 2019-09-26 21:54:57 -03:00
Sudhanshu Gautam
5dde0935a8 fix a small bug introduced by previous PR
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-09-27 02:11:43 +05:30
unpredictable-error
03cf34c612 setted in header 2019-09-26 22:54:55 +03:00
unpredictable-error
a1733a1b72 mapped in i18n.js 2019-09-26 22:23:19 +03:00
unpredictable-error
627d6e289a added russian language 2019-09-26 22:10:35 +03:00
Jacob Herper
7e64cf28a3
German translation corrected 2019-09-26 11:55:38 +01:00
Kausha.Shah
bbe14f4386 added spanish translation 2019-09-26 15:58:58 +05:30
Sudhanshu Gautam
7ad08e79c9 Add config system
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>
2019-09-13 02:39:28 +05:30
Sudhanshu Gautam
b835f928a4 Add functionality to edit UCI defaults
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>
2019-09-13 02:27:43 +05:30
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
740383d6be Adds ability to show device manifest for vanilla images
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>
2019-09-04 23:19:23 +05:30
Sudhanshu Gautam
dd6624c322 Fix issue introduced with the "Installed Packages"
Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-09-02 02:57:49 +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
3f46d13ccf Introduce interface to list packages in built image
A dropdown interface that lists all the installed packages for the
built images.

Fixes #7

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-09-02 02:23:20 +05:30
Sudhanshu Gautam
acdb7741e8 Handle error codes for bad package selection
Handles 409 and 422 HTTP codes for bad package selection. Shows
popup for appropriate error message and gives a link for build
logs.

Fixes #12
Fixes #8

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-08-26 01:15:05 +05:30
Sudhanshu Gautam
5e3b827489 Change the order of the image build indicator.
As suggested my @aparcar, the order for the text, button and
indicator is changed.
Fixes #6

Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
2019-08-25 20:08:18 +05:30
Sudhanshu Gautam
a66fa21ca3
Add links for adding issues or contributions (#14)
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>
2019-08-25 20:06:35 +05:30
Sudhanshu Gautam
128855c278
Change the code according to the new ASU api. (#5)
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>
2019-08-23 19:53:02 +05:30
Sudhanshu Gautam
3d1243a946 Fix responsiveness of UI on mobile devices. Shows only relevant images.
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>
2019-07-27 17:25:31 +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
d30cf925b1 Complete build functionality. Used mwarning's server for data.
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>
2019-07-21 20:49:13 +05:30
Sudhanshu Gautam
c05ac4dc2c Change the checkboxes to chips. Provide input field for extra modules
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>
2019-07-14 13:32:49 +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
7cab0bfeb5 adds more display information and advanced section
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>
2019-07-08 20:02:05 +05:30