mwarning / openwrt-firmware-selector

OpenWrt firmware selector. With custom image builder support.
https://mwarning.github.io/openwrt-firmware-selector/www/
Creative Commons Zero v1.0 Universal
38 stars 23 forks source link

add autocompletion to package list #35

Closed mwarning closed 4 years ago

mwarning commented 4 years ago

The package list will autocomplete packages and only allow known packages.

mwarning commented 4 years ago

A source for the package list is missing.

aparcar commented 4 years ago

A source for the package list is missing.

Please find a target specific index at the following URL

http://aparcar.github.io/openwrt-json/{target}/index.json

Working URL examples:

http://aparcar.github.io/openwrt-json/ath79/generic/index.json http://aparcar.github.io/openwrt-json/ath79/generic/index.json.gz

If more than just the names are needed, like a description, maintainer or latest version, please load one of the following:

http://aparcar.github.io/openwrt-json/ath79/generic/manifest.json http://aparcar.github.io/openwrt-json/ath79/generic/manifest.json.gz

mwarning commented 4 years ago

@aparcar the links are all dead :/

Update: Only the first two links are working now.

aparcar commented 4 years ago

Updated, sorry

mwarning commented 4 years ago

We probably need the information what packages are required (essential packages / not removeable) and which are selected already but optional and which are available.

mwarning commented 4 years ago

@aparcar we need to decide from where the package lists come from. What is needed is the default package list and the list of packages that can be chosen from.

mwarning commented 4 years ago

I have introduced a new setting asu_packages, but it would make sense to use some sub folder of asa_url. Any preference on the sub folder path?

aparcar commented 4 years ago

Why not https://aparcar.github.io/openwrt-json/?

To support multiple versions I have to change the structure of openwrt-json, we could stick to the official structure of snapshots/ and releases/<version>, what do you think?

mwarning commented 4 years ago

ok

mwarning commented 4 years ago

@aparcar I have set it to config.asu_url + '/openwrt-json/' + target + '/index.json', which mightnot sit quite right with the eye..

mwarning commented 4 years ago

Allowing a minus in front of package names is a bit of a hassle to implement. Also, it is hard for the user to see what packages are there to be removed. Thus, it might be more elegant, to show all packages.

mwarning commented 4 years ago

I merge this so we can improve on it. Otherwise it will take too much time.