Miklos Vajna
626ec9835b
webui: allow specifying the initial query
...
Example use-case: given a github URL in a source code comment or commit
message, one can now run:
git bug webui --query 'metadata:github-url:"https://github.com/author/myproject/issues/42 "'
on the commandline to look up the details of that issue on the web ui
quickly, offline.
Fixes <https://github.com/MichaelMure/git-bug/issues/592 >.
2021-03-07 14:11:04 +01:00
Sascha
ea329aed69
Add option to specify host address
...
'--host'-cmdline-option is added to the webui command.
Previously, the WebUI couldn't be hosted inside of a container. As the
WebUI-server only listend per default to localhost and there was no
option to change the address, the server should listend to. This means,
that the WebUI was only reachable from localhost. So only from inside of
the container but never from outside.
The '--host'-option allows to set the IP address or a hostname
which the WebUI-server should listen to. E.g. by setting 0.0.0.0 or ::
as address.
Update documentation for new option.
Update shell completion for new option.
Compilation seems to add another go-gitlab version.
2021-02-28 21:20:15 +01:00
Michael Muré
71b7eb1401
repo: implement local/global/any config everywhere
2020-09-29 20:42:21 +02:00
Michael Muré
26bd1dd110
commands: refactor to avoid globals
2020-06-28 18:26:29 +02:00
Michael Muré
2ab6381a94
Reorganize the webUI and API code
...
Included in the changes:
- create a new /api root package to hold all API code, migrate /graphql in there
- git API handlers all use the cache instead of the repo directly
- git API handlers are now tested
- git API handlers now require a "repo" mux parameter
- lots of untangling of API/handlers/middleware
- less code in commands/webui.go
2020-06-27 23:03:05 +02:00
Luke Granger-Brown
5f72b04ef8
Use ErrNotAuthenticated
2020-06-27 23:01:10 +02:00
Luke Granger-Brown
e5a316e40c
Pull out context-stuff from identity into graphqlidentity package
2020-06-27 23:01:09 +02:00
Luke Granger-Brown
766aff2b2f
Change graphql Go handlers to pluck identity out of context instead.
2020-06-27 22:58:22 +02:00
Luke Granger-Brown
dfdb5e090b
Verify that we have an identity only in read-write mode
2020-06-27 22:56:11 +02:00
Luke Granger-Brown
43c78da02e
Don't permit file uploads in read-only mode
2020-06-27 22:56:11 +02:00
Luke Granger-Brown
4a28f25347
Add support for read-only mode for web UI.
...
Fixes #402 .
2020-06-27 22:56:10 +02:00
Michael Muré
7e48e0a9be
upgrade to gqlgen master, waiting for a release
2020-02-05 23:42:49 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
amine
60c6bd360f
bridge: use new repository configuration interface
...
commands/webui: use new repository configuration interface
2019-11-01 22:44:11 +01:00
Michael Muré
8bfc65df6c
commands: add flags/config to control the automatic opening in the default browser
2019-05-27 21:47:26 +02:00
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage
2019-03-01 22:52:52 +01:00
Michael Muré
7a511f9a13
commands: don't load the repo for commands that don't need it
...
fix #67
2018-10-17 20:39:35 +02:00
Michael Muré
7c63417e8f
webui: serve the index.html file by default to deal with the SPA router requirements
...
fix #50
2018-09-21 11:57:45 +02:00
Michael Muré
2daf2ddcf3
webui: explain how to quit
2018-09-19 21:45:52 +02:00
Michael Muré
b478cd1bcb
graphql: update gqlgen to 0.5.1
...
fix #6
2018-09-14 12:41:59 +02:00
Michael Muré
fb0f5530f1
catch a lot of error not being checked
2018-09-13 12:43:47 +02:00
Michael Muré
3605887345
reorganize package for a more idomatic go
2018-09-11 22:14:46 +02:00
Michael Muré
9bb980e9de
ls: support expressing a query with flags as well
2018-09-10 18:18:00 +02:00
Michael Muré
6d7dc465d8
cache: lock the repo with a pid file; automatic cleaning
2018-08-21 19:13:08 +02:00
Michael Muré
4c850b5989
cleanup go imports
2018-08-13 18:39:19 +02:00
Michael Muré
d8f89726fe
implement media hosting in git for comments + API for the webui
2018-08-02 23:37:49 +02:00
Michael Muré
ed8f7eca9a
webui: add the http handlers for read/write git blob for media in comments
2018-08-02 22:33:45 +02:00
Michael Muré
64354c7ce3
webui: show graphql urls
2018-07-29 21:05:48 +02:00
Michael Muré
8fa0b258ac
cleaning
2018-07-29 18:58:42 +02:00
Michael Muré
6363518c85
relay connection working with gqlgen
2018-07-29 18:51:56 +02:00
Michael Muré
17e2ec8f56
bug: refactor to limit abstraction leak and to have a more reusable code for the UIs
2018-07-23 00:04:46 +02:00
Quentin Gliech
8f0bb154b0
webui: Add flag to specify which port to listen to
2018-07-22 00:16:51 +02:00
Michael Muré
e89f87624f
generate markdown documentation
2018-07-20 15:46:14 +02:00
Quentin Gliech
1dd5118eeb
graphql: Actually get the bugs from the repo
2018-07-20 14:32:23 +02:00
Michael Muré
a2a50f3de0
webui: add a primitive graphql handler
2018-07-19 14:15:50 +02:00
Michael Muré
7f5922f905
rework all the commands to use cobra as a parser
2018-07-19 12:36:01 +02:00
Michael Muré
ead4511250
add the infrastructure for an embedded web UI + command
2018-07-16 22:25:50 +02:00