Commit graph

471 commits

Author SHA1 Message Date
Weblate
482aae6c0b Translated using Weblate (Indonesian)
Currently translated at 100.0% (342 of 342 strings)

Translated using Weblate (French)

Currently translated at 99.4% (340 of 342 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translation: Woodpecker CI/UI
2023-08-31 09:46:00 +00:00
qwerty287
971534929c
Only show commit title (#2361)
https://github.com/woodpecker-ci/woodpecker/issues/2359
2023-08-30 17:08:56 +02:00
Robert Kaussow
91192a900a
Truncate commit message in pipeline log view header (#2356) 2023-08-30 16:17:01 +02:00
qwerty287
9718791eac
Increase header padding again (#2348)
From #2327
(https://github.com/woodpecker-ci/woodpecker/pull/2327#pullrequestreview-1600673521)

This probably needs some discussion first, but I think it looks ugly
with the current padding.

**Before**
![Screenshot 2023-08-29 at 17-17-00
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/0f4df035-b10e-4309-b119-2044fad1d534)

**After**
![Screenshot 2023-08-29 at 17-16-48
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/c45328c1-c3bf-401d-83fa-1b4b1b96d0c0)
2023-08-29 18:31:25 +02:00
Robert Kaussow
81aa9b1439
Use full width header on pipeline view and show repo name (#2327)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Co-authored-by: 6543 <m.huber@kithara.com>
2023-08-29 15:57:58 +02:00
Weblate
c613664753 Translated using Weblate (Indonesian)
Currently translated at 100.0% (341 of 341 strings)

Translated using Weblate (German)

Currently translated at 100.0% (341 of 341 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
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/id/
Translation: Woodpecker CI/UI
2023-08-29 13:07:01 +00:00
Robert Kaussow
d155dfdecb
Use html list for changed files list (#2346)
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/743317fa-cce6-4eb5-aaa4-7f38aadfcb66)
2023-08-29 15:06:56 +02:00
qwerty287
5bd12aa646
Show that repo is disabled (#2340)
And allow to show badges for disabled repos

Fixes 3rd checkbox from
https://github.com/woodpecker-ci/woodpecker/discussions/2162#discussion-5498655

![Screenshot 2023-08-28 at 11-13-23
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/d881f0c5-6225-4921-9d05-a26f27ad5365)
2023-08-28 18:57:44 +02:00
qwerty287
479ced3b25
Add org list (#2338)
![Screenshot 2023-08-28 at 10-08-20
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/e3248b05-7899-43ca-a0cf-4834eae078d8)
Closes #2307
2023-08-28 11:15:16 +02:00
Robert Kaussow
15bd20d58b
Show correct event in pipeline step list (#2334)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/2207


![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/e1a1dcf9-c47b-4089-8187-789bfd54e1a7)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/5432cf7d-fe31-4182-87f7-5622fc1abe3c)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-08-28 08:08:53 +02:00
Robert Kaussow
e139abf15a
Add min height to mobile pipeline view and fix overflow (#2335)
The mobile pipeline view in landscape view is not really usable. The
idea is to add a min-height to use the screen a bit better for the main
content. Before:


[before.webm](https://github.com/woodpecker-ci/woodpecker/assets/3391958/c4f38da6-c0f2-4549-9f80-90a4b02ddc94)

After:


[after.webm](https://github.com/woodpecker-ci/woodpecker/assets/3391958/a0397d52-aeda-4edf-9200-953ca4738daa)
2023-08-28 00:36:48 +02:00
Robert Kaussow
c5c01ddd19
Fix grid column size in pipeline log view (#2336)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1832

Before:

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/cdb91f9e-98b9-4e66-9c64-b90d4e59fb73"
width="500">

After:

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/ec5e0c4d-545b-4ba0-8550-9e3f6701551f"
width="500">
2023-08-28 00:35:41 +02:00
Robert Kaussow
2f6909847f
Fix mobile login view (#2332)
Before:

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/27a97d84-1aea-4edd-8816-65693429caf9"
width="300">

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/efcba454-515c-453e-abce-6cfd63b30dc7"
width="500">

After:

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/3fa4ee48-f230-4cdb-bdb9-8527477cb4e2"
width="300">

<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/2b327f53-8a33-4506-adb3-1f7ccb64c702"
width="500">
2023-08-27 20:58:06 +02:00
Robert Kaussow
c5240d8ce0
Fix button loading spinner when activating repos (#2333)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/2234

There is no internal `repo.id` for not enabled repos. Use the remote
forge repo id instead.
2023-08-27 17:54:33 +02:00
Weblate
2e7f969fac Translated using Weblate (French)
Currently translated at 99.3% (331 of 333 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-08-27 09:46:00 +00:00
Robert Kaussow
336c41dd33
add spacing to pipeline feed spinner (#2326)
Ref:
https://github.com/woodpecker-ci/woodpecker/discussions/2162#discussioncomment-6666893

## Before

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/d58b5b1d-92e8-4e06-bcf2-4f726fc606e4)

## After

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/2474992c-988c-4775-ac5f-e38ed05530a4)
2023-08-26 02:27:24 +02:00
Weblate
c4e28e304f Translated using Weblate (Indonesian)
Currently translated at 100.0% (333 of 333 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 98.1% (327 of 333 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 98.1% (327 of 333 strings)

Translated using Weblate (French)

Currently translated at 98.1% (327 of 333 strings)

Translated using Weblate (German)

Currently translated at 100.0% (333 of 333 strings)

Co-authored-by: IamIpanda <xinguangyao@gmail.com>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: yeziruo <yeziruo@users.noreply.translate.woodpecker-ci.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
Translation: Woodpecker CI/UI
2023-08-25 15:46:04 +00:00
qwerty287
81ead7cbf2
Support user secrets (#2126) 2023-08-21 15:04:12 +02:00
qwerty287
06d1f3c92e
Create settings-panel vue component and use InputFields (#2177)
Co-authored-by: 6543 <6543@obermui.de>
2023-08-21 10:23:16 +02:00
Weblate
2a157cfe7b Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translated using Weblate (Dutch)

Currently translated at 24.5% (78 of 318 strings)

Co-authored-by: Herman Ronk <woodpecker@hermanronk.nl>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/nl/
Translation: Woodpecker CI/UI
2023-08-21 07:29:49 +00:00
qwerty287
35baaa8224
Use browser-native tooltips (#2189)
Replace the `floating-vue` library with the browser-native tooltips.
Reduces `dist` size by 45KB.
2023-08-20 15:07:27 +02:00
Anbraten
479e500b1b
Move hook and events-stream routes to use /api prefix (#2212)
- move hook and events-stream routes to use `/api` prefix
- rename build to pipeline
2023-08-16 02:42:37 +02:00
qwerty287
f5e9b3df2e
Small improvements to mobile interface (#2202)
1. pipeline step list: do not have a separate scroll container on step
list
2. merge title bars on logs (probably regression of #2140)
2023-08-12 12:36:25 +02:00
Weblate
cbb1c46df8 Translated using Weblate (Indonesian)
Currently translated at 100.0% (318 of 318 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-08-12 00:33:53 +00:00
qwerty287
8cdac56d8f
Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
qwerty287
bc18ccf721
Show all steps (#2190)
Closes #2178
2023-08-10 10:36:41 +02:00
Weblate
3e60ff9e2e Translated using Weblate (German)
Currently translated at 100.0% (318 of 318 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-08-09 19:10:41 +00:00
Weblate
f1f39584aa Translated using Weblate (French)
Currently translated at 100.0% (318 of 318 strings)

Translated using Weblate (German)

Currently translated at 99.6% (317 of 318 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.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/fr/
Translation: Woodpecker CI/UI
2023-08-09 10:29:06 +00:00
qwerty287
3bdeb47d8c
Use Vue setup directive (#2165) 2023-08-08 12:22:39 +02:00
qwerty287
9cae5709f9
Fix pipeline config collapsing (#2166) 2023-08-08 11:47:21 +02:00
Robert Kaussow
8f44ca3f3d
Use min/max width for pipeline step list (#2141)
I've also added a min-width to keep the sidebar a bit more readable
before the breakpoint is reached:

Before: 

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/4e76f487-0bfd-416b-9969-9aca42aed629)

After:

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f936c44e-9952-4eb0-8dc3-95d8c48e8dfb)
2023-08-07 23:32:36 +02:00
Robert Kaussow
09ed637ee5
Add header to pipeline log and always show buttons (#2140)
Fixes:
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1649213999
(4.)


![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/8544c683-b856-4938-bb8c-7cd9db0c2de9)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/53f7ec27-a0fd-4803-8bb4-e89e9ced3601)

That both buttons are shown in the screenshot is only for demonstration.
2023-08-07 22:23:47 +02:00
Robert Kaussow
d28f4923e3
Use fix width for pipeline step list (#2138)
On larger monitors using dynamic width in percent, the step list can
become very wide which makes it hard to read.
2023-08-07 21:49:58 +02:00
Weblate
0b5f1a7c0d Translated using Weblate (French)
Currently translated at 100.0% (317 of 317 strings)

Translated using Weblate (German)

Currently translated at 100.0% (317 of 317 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.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/fr/
Translation: Woodpecker CI/UI
2023-08-07 18:39:48 +00:00
qwerty287
4558f7c691
Fix vite server (#2134)
#1799 broke it
2023-08-07 17:03:26 +02:00
qwerty287
67b7de5cc2
Fix UI and backend paths with subpath (#1799)
I'm not sure if this is an ideal fix for this, but it seems to work for
me. If you have another idea just let me know.

Closes #1798 
Closes #1773
2023-08-07 16:05:18 +02:00
qwerty287
0ecaa7074a
Fix missing translation (#2132) 2023-08-07 14:01:44 +02:00
qwerty287
e17d0da2c3
Don't show badge without information (#2130)
Was requested
[here](https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1477858832)
for queue, but this also applies to agents: Do not show badges that only
show `???` because they don't provide any useful information.
2023-08-07 13:19:51 +02:00
Weblate
cdb52015f4 Translated using Weblate (German)
Currently translated at 99.6% (316 of 317 strings)

Translated using Weblate (German)

Currently translated at 99.6% (316 of 317 strings)

Co-authored-by: Jan Marx <jcm@jcm.re>
Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2023-08-07 06:41:16 +00:00
Weblate
c37fab3dd7 Translated using Weblate (Indonesian)
Currently translated at 100.0% (317 of 317 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-08-06 11:39:03 +00:00
Weblate
cfbb3b20fd Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-05 17:44:55 +00:00
Weblate
fa747aa9ba Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 21:46:59 +00:00
Weblate
432fbfc57e Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 21:11:58 +00:00
6543
c24eea494b
lint en.json locales file (#2108)
make sure we don't have another  #2107
2023-08-03 23:11:52 +02:00
Lauris BH
96d13b32bb
Fix en.json file syntax (#2107) 2023-08-03 22:55:23 +02:00
qwerty287
d1c51f4af8
Lazy-load TimeAgo locales (#2094)
1. new translation docs
2. lazy-load TimeAgo locales (used for "x min ago" messages). This 1.
reduces size and 2. provides all languages without adding them manually.
3. Remove DayJS locales, they're unused.
2023-08-03 19:25:12 +02:00
Weblate
74a619ff5b Translated using Weblate (German)
Currently translated at 100.0% (312 of 312 strings)

Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translation: Woodpecker CI/UI
2023-08-03 15:31:02 +00:00
qwerty287
d09c418941
Improve user settings (#2087)
Make the user settings tabbed as well, currently only holding "Settings"
(language) and "API". Can be extended with user secrets (#1739) etc.
later.
![Screenshot 2023-08-02 at 09-56-00
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/15d82800-8a4d-47fe-aa77-33462f63585e)
![Screenshot 2023-08-02 at 09-56-05
Woodpecker](https://github.com/woodpecker-ci/woodpecker/assets/80460567/de2640be-144c-4190-adb6-56d43a38bdda)

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2023-08-03 11:35:12 +02:00
Weblate
cbbf5a0c19 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 08:48:45 +00:00
Weblate
9383899f40 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 00:42:34 +00:00
qwerty287
1a7f7a9427
Allow to disable swagger (#2093)
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +02:00
Weblate
f06e0acdc6 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 00:39:42 +00:00
Weblate
f9ec800481 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 00:35:08 +00:00
Weblate
0314cb5ada Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-03 00:06:08 +00:00
Weblate
957cb95484 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-08-02 12:26:36 +00:00
Robert Kaussow
c36cb9da65
Fix alt text contrast in code boxes (#2089) 2023-08-02 10:36:14 +02:00
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
0c46ba4d80
Add option to configure the vite dev server host (#2005)
If you want to run the vite dev server in a container, it needs to be
exposed to `0.0.0.0`.
2023-07-16 21:31:36 +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
Martin W. Kirst
2c1fc4b500
support custom .JS and .CSS files for custom banner messages (white-labeling) (#1781)
This PR introduces two new server configuration options, for providing a
custom .JS and .CSS file.
These can be used to show custom banner messages, add
environment-dependent signals, or simply a corporate logo.

### Motivation (what problem I try to solve)

I'm operating Woodpecker in multiple k8s clusters for different
environments.
When having multiple browser tabs open, I prefer strong indicators for
each environment.
E.g. a red "PROD" banner, or just a blue "QA" banner.
Also, we sometimes need to have the chance for maintenance, and instead
of broadcasting emails,
I prefer a banner message, stating something like: "Heads-up: there's a
planned downtime, next Friday, blabla...".

Also, I like to have the firm's logo visible, which makes Woodpecker
look more like an integral part of our platform.

### Implementation notes

* Two new config options are introduced ```WOODPECKER_CUSTOM_CSS_FILE```
and ```WOODPECKER_CUSTOM_JS_FILE```
* I've piggy-bagged the existing handler for assets, as it seemed to me
a minimally invasive approach
* the option along with an example is documented
* a simple unit test for the Gin-handler ensures some regression safety
* no extra dependencies are introduced

### Visual example

The documented example will look like this.

![Screenshot 2023-05-27 at 17 00
44](https://github.com/woodpecker-ci/woodpecker/assets/1189394/8940392e-463c-4651-a1eb-f017cd3cd64d)

### Areas of uncertainty 

This is my first contribution to Woodpecker and I tried my best to align
with your conventions.
That said, I found myself uncertain about these things and would be glad
about getting feedback.

* The handler tests are somewhat different than the other ones because I
wanted to keep them simple - I hope that still matches your coding
guidelines
* caching the page sometimes will let the browser not recognize changes
and a user must reload. I'm not fully into the details of how caching is
implemented and neither can judge if it's a real problem. Another pair
of eyes would be good.
2023-07-10 12:46:35 +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
6543
ae2bfe666f
Overwrite web dep version (#1919)
This reverts commit b49cf64949 and
e6d646bc7b.

and close  #1900
2023-07-03 07:52:25 +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