Commit graph

301 commits

Author SHA1 Message Date
Robert Kaussow dca01e6817
Use consistent woodpecker color scheme (#2003)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1079

What do you think about using a consistent `woodpecker` color scheme?
Right now, the `lime` color scheme from windicss is used that does not
really fit the primary color used for the documentation website. I have
used the primary color `#4CAF50` from the docs and created a color
palette with https://palettte.app/:

<details>
  <summary>JSON source</summary>

```Json
[
  {
    "paletteName": "New Palette",
    "swatches": [
      {
        "name": "New Swatch",
        "color": "166E30"
      },
      {
        "name": "New Swatch",
        "color": "248438"
      },
      {
        "name": "New Swatch",
        "color": "369943"
      },
      {
        "name": "New Swatch",
        "color": "4CAF50"
      },
      {
        "name": "New Swatch",
        "color": "68C464"
      },
      {
        "name": "New Swatch",
        "color": "8AD97F"
      }
    ]
  }
]
```

</details>


![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/a254f1e0-ce17-43a9-9e8b-72252296fd6f)

I have added this color scheme to the windicss config and replaced the
use of `lime` in the UI. While `woodpecker-300` would be the primary
color that is used for the docs, I currently use `woodpecke-400` as
primary color for the UI to fix some contrast issues.


![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/7bf751e1-f2a6-481c-bee7-a27d27cf8adb)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/e5673dc7-81c1-4fd4-bef9-14494bc5aa27)

What do you think? If you would like to stay with the current colors,
that's fine for me, I can just use the custom CSS feature in this case.

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-08-02 09:09:12 +02:00
Robert Kaussow b824693b0a
Fix wrong repo url used by badges (#2037)
---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-27 02:08:06 +02:00
Robert Kaussow 2e954801b8
Always use a static back route (#2028)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1998

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-24 20:06:26 +02:00
Robert Kaussow c0216deb43
Return to users list after creating a new user (#2029)
Fixes:
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1503635132
2023-07-24 19:05:18 +02:00
Anbraten e5d5ec8b47
Use id to access orgs (#1873)
closes #1743 

fixes: setting secrets for own user namespace

- create org in database
- use orgID for org related APIs

Co-authored-by: 6543 <6543@obermui.de>
2023-07-21 19:45:32 +02:00
6543 572449b845
make pending pipelines cancable (#2013)
in some edgecases we get pipelines that we can not cancle via WebUI.

fix https://codeberg.org/Codeberg-CI/feedback/issues/126
2023-07-18 06:12:17 +02:00
Robert Kaussow 37fcc26330
Use unified rounded corners for all elements in the nav bar (#2000)
Nav bar:
![Bildschirmfoto vom 2023-07-15
13-43-18](https://github.com/woodpecker-ci/woodpecker/assets/3391958/addb0064-b230-412c-9aae-fbfa8c39b839)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/21e08079-864d-425a-a4e3-17009094b2c6)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/433bf33b-2124-434b-9f16-e5f586f4d4ec)

Other icon buttons:
![Bildschirmfoto vom 2023-07-15
13-50-18](https://github.com/woodpecker-ci/woodpecker/assets/3391958/c070b09d-2700-4eac-97ed-b4bef42ea3e6)
2023-07-15 15:47:15 +02:00
Patrick Schratz 004d72a853
Link swagger in navbar (#1984)
fix point 1 from #1944 

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-07-13 20:34:02 +02:00
qwerty287 a778b5fb90
Do not use window.WOODPECKER_* variables directly (#1992)
use the config helper instead
2023-07-13 15:57:50 +02:00
qwerty287 570f5044e8
Drop support for Bitbucket Server (#1994)
Closes #1962
2023-07-13 15:47:25 +02:00
Patrick Schratz a4c791c6e5
Correct wording (#1982) 2023-07-12 13:49:18 +02:00
6543 b54f6ebad6
Let pipeline-compiler export step types (#1958) 2023-07-11 15:53:05 +02:00
Weblate a3b9cae759 Translated using Weblate (Latvian)
Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Lauris BH <lauris@nix.lv>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/lv/
Translation: Woodpecker CI/UI
2023-07-09 20:44:58 +00:00
6543 1d6b073ca5
Make secrets with "/" in name editable / deletable (#1938)
close #1937

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-07-08 20:10:47 +02:00
runephilosof-karnovgroup 5d72060bbd
Fix selected line highlighting (#1922)
Also, extract logic to function
2023-07-06 19:49:21 +02:00
runephilosof-karnovgroup a4cfa3a242
Jump to linked log line (#1852)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2023-07-03 15:06:10 +02:00
Timo Tomasini eb5c48a85f
Store agent ID in config file (#1888) 2023-07-02 17:22:05 +02:00
qwerty287 0e25d6d35a
pnpm update (#1902)
Using a simple `pnpm update` didn't fix any of the issues in #1900 but
it fixes some vulnerabilities shown with `pnpm audit`. I didn't try to
force-update `semver` to fix the security vulnerability there.

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-02 12:47:36 +02:00
Anbraten 3d435a9cb7
Fix log view (#1874)
closes #1857
closes #1520
closes #1879 
- fixes unicode log lines as reported in matrix

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-01 18:55:00 +02:00
Weblate 74c0e99aa9 Translated using Weblate (Italian)
Currently translated at 31.6% (98 of 310 strings)

Translated using Weblate (German)

Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Andrea Zucchelli <zukka77@gmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/it/
Translation: Woodpecker CI/UI
2023-06-29 15:01:08 +00:00
qwerty287 3033abc3b4
Add own workflow model (#1784)
Closes #1287

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-06-27 18:01:18 +02:00
Anbraten ff01a9ff1d
Access repos by their ids (#1691)
closes #1295 
closes #648

# TODO
- [x] add new routes with `:repoID`
- [x] load repo in middleware using `:repoID` if present
- [x] update UI routes `:owner/:name` to `:repoID`
- [x] load repos using id in UI
- [x] add lookup endpoint `:owner/:name` to `:repoID`
- [x] redirect `:owner/:name` to `:repoID` in UI
- [x] use badge with `:repoID` route in UI
- [x] update `woodpecker-go`
- [x] check cli
- [x] add migrations / deprecation notes
- [x] check if #648 got solved directly
- [x] Test
  - [x] create repo
  - [x] repo pages
  - [x] ui redirects
  - [x] forge status links
2023-06-13 01:07:52 +02:00
qwerty287 5d74174bc3
Drop old columns (#1838) 2023-06-07 19:22:44 +02:00
Anbraten 556607b525
Rework log streaming and related functions (#1802)
closes #1801
closes #1815 
closes #1144
closes  #983
closes  #557
closes #1827
regression of #1791

# TODO
- [x] adjust log model
- [x] add migration for logs
- [x] send log line via grpc using step-id
- [x] save log-line to db
- [x] stream log-lines to UI
- [x] use less structs for log-data
- [x] make web UI work
  - [x] display logs loaded from db
  - [x] display streaming logs
- [ ] ~~make migration work~~ -> dedicated pull (#1828)

# TESTED
- [x] new logs are stored in database
- [x] log retrieval via cli (of new logs) works
- [x] log streaming works (tested via curl & webui)
- [x] log retrieval via web (of new logs) works

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-06-06 09:52:08 +02:00
Martin W. Kirst 14177635b6
Update swagger API specification (#1782)
# Summary

This PR drops the outdated former swagger.yaml/json and introduced
automatic API document generation from Go code.
The generated code is also used to generate documentation/markdown for
the community page,
as well as enable the Woodpecker server to serve a Swagger Web UI for
manual tinkering.

I did opt-in for gin-swagger, a middleware for the Gin framework, to
ease implementation and have a sophisticated output.
This middleware only produces Swagger v2 specs. AFAIK the newer OpenApi
3x tooling is not yet that mature,
so I guess that's fine for now.

## Implemenation notes

- former swagger.json files removed
- former // swagger godocs removed
- introduced new dependency gin-swagger, which uses godoc annotations on
top of Gin Handler functions.
- reworked Makefile to automatically generate Go code for the server
- introduce new dependency go-swagger, to generate Markdown for
documentation purposes
- add a Swagger Web UI, incl. capabilities for manual API exploration
- consider relative root paths in the implementation
- write documentation for all exposed API endpoints
- incl. API docs in the community website (auto-generated)
- provide developer documentation, for the Woodpecker authors
- no other existing logic/code was intentionally changed

---------

close #292

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2023-06-03 21:38:36 +02:00
Weblate 71d7a467f9 Translated using Weblate (German)
Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: admin <owners@woodpecker-ci.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2023-06-01 14:58:12 +00:00
Anbraten c464f857ae
Remove unused file system api (#1791)
Co-authored-by: 6543 <6543@obermui.de>
2023-05-31 18:03:03 +02:00
6543 f5a85d21be
Drop ".drone.yml" as default pipeline config (#1795)
it did make sense to have it still supported within v0.15.0,

but as we move future away and with the release of v1.0.0
we should not give the appearance of still support the original drone
v0.8 config
2023-05-31 16:02:20 +02:00
Weblate 9b3929b7fa Translated using Weblate (French)
Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translation: Woodpecker CI/UI
2023-05-28 16:58:09 +00:00
runephilosof-karnovgroup ca32517624
PipelineLog.vue: Make it possible to link to a log line (#1775)
Set id attribute of lines to make it possible to link to a pipeline
line, like it was in version 0.9. For instance
https://woodpecker.example.com/org/repo/1#L7
2023-05-28 11:38:27 +03:00
Weblate 5a8e8e2891 Translated using Weblate (Italian)
Currently translated at 29.3% (91 of 310 strings)

Co-authored-by: Andrea Zucchelli <zukka77@gmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/it/
Translation: Woodpecker CI/UI
2023-05-26 22:58:13 +00:00
Weblate dd644da3cc Translated using Weblate (Polish)
Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-05-23 14:58:08 +00:00
Anbraten cfb53cb995
Redirect to new pipeline (#1761)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-05-17 19:33:28 +02:00
Weblate 4504677233 Translated using Weblate (Russian)
Currently translated at 100.0% (310 of 310 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Co-authored-by: Linerly <linerly@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-05-16 13:18:22 +00:00
qwerty287 02913fa7b6
Add reset token button (#1755)
Closes #696
2023-05-14 18:48:33 +02:00
Weblate 3b07054731 Translated using Weblate (Portuguese)
Currently translated at 21.3% (66 of 309 strings)

Co-authored-by: Marco De Araujo <marco.araujo.junior@gmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pt/
Translation: Woodpecker CI/UI
2023-05-07 15:18:19 +00:00
Weblate 21a2fcbc38 Translated using Weblate (Polish)
Currently translated at 100.0% (309 of 309 strings)

Translated using Weblate (French)

Currently translated at 100.0% (309 of 309 strings)

Translated using Weblate (Latvian)

Currently translated at 100.0% (309 of 309 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Co-authored-by: mondstern <mondstern@monocles.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/lv/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-05-04 18:18:22 +00:00
Weblate ad2acdc0e5 Translated using Weblate (Indonesian)
Currently translated at 100.0% (309 of 309 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translation: Woodpecker CI/UI
2023-05-04 03:13:14 +00:00
Weblate 5874da73d3 Translated using Weblate (Russian)
Currently translated at 100.0% (309 of 309 strings)

Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-04-30 16:18:19 +00:00
6543 f3074ddaf9
Some small code refactorings (#1727)
Refactorings taken from pull requests #1722 and #1725
2023-04-30 17:02:47 +02:00
qwerty287 0f9188597e
Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651)
- Add pagination support to the API endpoints that return lists of items
- Adjust UI to enable infinite scrolling via pagination
2023-04-30 03:40:13 +02:00
qwerty287 b90e7904a5
Support path prefix (#1714)
closes #1636 
closes #1429
supersedes #1586

Uses a different approach: just take the index.html compiled by vite and
replace the paths to js and other files using regex. This is not
compatible with the dev proxy which is also the reason why we can't use
go templates for this.
2023-04-29 17:51:50 +02:00
Weblate 4384344c22 Translated using Weblate (German)
Currently translated at 100.0% (309 of 309 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2023-04-29 13:30:33 +00:00
Weblate 8b66f982ae Translated using Weblate (German)
Currently translated at 100.0% (309 of 309 strings)

Co-authored-by: 6543 <6543@obermui.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2023-04-29 13:28:42 +00:00
qwerty287 cfdb32ae45
Fully support .yaml (#1713)
Follow-up to https://github.com/woodpecker-ci/woodpecker/pull/1388
Closes https://github.com/woodpecker-ci/woodpecker/issues/1073

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-04-29 10:12:36 +02:00
Weblate 5833236b84 Translated using Weblate (Ukrainian)
Currently translated at 70.5% (218 of 309 strings)

Co-authored-by: mondstern <mondstern@monocles.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/uk/
Translation: Woodpecker CI/UI
2023-04-23 21:07:41 +00:00
Weblate f7df4506ab Translated using Weblate (Chinese (Simplified))
Currently translated at 59.8% (185 of 309 strings)

Co-authored-by: lzw-723 <lzw-723@qq.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
Translation: Woodpecker CI/UI
2023-04-18 15:08:24 +00:00
Weblate 0fb978fa98 Translated using Weblate (Portuguese)
Currently translated at 11.9% (37 of 309 strings)

Co-authored-by: Adjamilton Junior <jr@handzon.dev>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pt/
Translation: Woodpecker CI/UI
2023-04-04 11:08:24 +00:00
Weblate 49e5f77631 Added translation using Weblate (Portuguese)
Co-authored-by: Adjamilton Junior <jr@handzon.dev>
2023-04-03 10:33:08 +00:00
Lauris BH 6bf72cbeaf
Update pnpm lock file version (#1688)
Fixes CI fronted failure
https://ci.woodpecker-ci.org/woodpecker-ci/woodpecker/pipeline/5309/7

Also update frontend dependecies
2023-04-02 13:03:23 +02:00