summaryrefslogtreecommitdiffstats
path: root/templates/swagger/ui.tmpl
Commit message (Collapse)AuthorAgeFilesLines
* Enable contenthash in filename for dynamic assets (#20813)silverwind2022-08-231-2/+2
| | | | | This should solve the main problem of dynamic assets getting stale after a version upgrade. Everything not affected will use query-string based cache busting, which includes files loaded via HTML or worker scripts.
* Refactor `i18n` to `locale` (#20153)Gusted2022-06-271-1/+1
| | | | | | | | | | | * Refactor `i18n` to `locale` - Currently we're using the `i18n` variable naming for the `locale` struct. This contains locale's specific information and cannot be used for general i18n purpose, therefore refactoring it to `locale` makes more sense. - Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 * Update routers/install/install.go
* Rename StaticUrlPrefix to AssetUrlPrefix (#15779)silverwind2021-05-081-2/+2
| | | | Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix.
* Make SVG size argument optional (#12814)silverwind2020-09-111-1/+1
| | | | | Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Extract Swagger CSS to its own file (#12616)silverwind2020-08-261-27/+0
|
* Add link to home page on swagger ui (#12601)赵智超2020-08-261-5/+20
| | | | | | | | | | | | | | | | | * Add link to home page on swagger ui Signed-off-by: a1012112796 <1012112796@qq.com> * translate * Apply review suggestion * Move to right, Thanks @silverwind * tweaks Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* add css extraction and minification to webpack (#9944)silverwind2020-01-251-0/+1
| | | | | | | | | | | | | | This changes the CSS output of webpack to output to the public/css directory instead of inling CSS in JS. This enables CSS minification and autoprefixer based on browserslist which would otherwise not be possible. The result of this change is two new output files currently: - public/css/swagger.css - public/css/gitgraph.css Co-authored-by: techknowlogick <matti@mdranta.net>
* move swagger-ui to webpack/npm (#9714)silverwind2020-01-141-99/+21
| | | | | | Created a second webpack output file for swagger-ui which is loaded on the /api/swagger route. One notable difference is the absence of the swagger favicon that was previously used which is now the gitea icon. I see no easy way to restore that favicon, so I decided to not keep it.
* Remove un-needed script import since #9554 (#9694)Antoine GIRARD2020-01-101-1/+0
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* swagger UI: hide iretating search field (#9554)65432020-01-011-4/+2
|
* [assets] configurable URL for static resources (#7911)Jakob Ackermann2019-10-221-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * static url * add cors support for static resources * [assets] work on the migration to configurable url for assets Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [misc] fix whitespace Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [assets] fix the loading of the manifest.json It is generated dynamically, and as such can not be served by the cdn. Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * Revert "add cors support for static resources" This reverts commit 42f964fd181dbb8b139808b9be623470d4f0e40f Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [docs] add the STATIC_URL_PREFIX option Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [docs] reverse-proxy: nginx: add two setups for STATIC_URL_PREFIX Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [assets] migrate the url of a new asset to the static url prefix REF: f2a3abc683ad4b2177b7c7c6160a2c0b4316120a Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* update swagger-ui (#6661)Antoine GIRARD2019-04-161-2/+2
|
* Fixes #6659 - Swagger schemes selection default to page's (#6660)Richard Mahn2019-04-161-15/+26
|
* Swagger.v1.json template (#3572)Piotr Orzechowski2018-07-281-0/+94
* Turn swagger.v1.json into template * Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER