There was a case where a deployment with a single namespace on
faas-netes would show the namespace suffix for all functions. we didn't
need to show this because the gateway will proxy to the default
namespace for fns without the namespace siffix.
This was tested on Swarm (no suffix), faas-netes (single namespace, no
suffix) and faas-netes, multi-ns, suffix shown.
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
The padding was off on the Gateway UI for the function
Store popup.
I have removed the 0padding css class from this element and left
it on the elements that require it
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
We now hide the new namespace dropdown selector when
there is only 1 namespace, or when we are on swarm
This is also hidden in the function create page and
the function detail page
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This allows a uswer to select a non-standard (not openfaas-fn)
namespace from the UI to deploy a function into.
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This PR adds a namespace dropdown for the openfaas
namespaces. If a user has non-default namespaces
installed then a user can select that namespace,
view functions in that namespace, invoke them from
the UI and delete them from that namespace.
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This change set downloads the CDN resources for the gateway
and bundles them with the other static resources for the UI.
This is needed for situations where a user does not have access
to the CDN either because of firewall rules or network policy.
The files and versions remain the same, only now loaded locally
with directory paths matching the CDN paths.
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
This minor fix selects the 'Download' radio button by default if the
function has a label with `com.openfaas.ui.ext`.
Closes#827
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This change adds a function URL field to the UI and a 'copy to
clipboard' button next to it. If the browser does not support the copy
command, the copy icon will be hidden.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
- Added padding to the "You need JavaScript page"
- Added padding to the "You need JavaScript page" - Added info about the CLI tthe "You need JavaScript" page
- Added a message for people who don't have JavaScript enabled
Signed-off-by: Rillian Grant <rillian.grant@hotmail.com>
Adds a more informative screen when a function is not selected
or when there are no functions to select from.
Provides a button to deploy a new function
and more information on how to deploy using
faas-cli.
Signed-off-by: ovation22 <john@1north.com>
* This feature fetches function catalogs from openfaas/store and makes
one-click deploy easy
* You can switch between "From Store" or "Manually" by tabs
* Added icon to "Deploy New Function" button
* Added function search feature to the main UI
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
reverted fixed tabs
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
**What**
- Add a simple sinner when the function is invoked
- Disable the invoke button until the request returns
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>