Lukas
c746857830
Fix version check on next ( #3340 )
...
Closes #3318
2024-02-07 02:10:36 +01:00
Patrick Schratz
da4bd8b97d
Update theme on system color mode change ( #3296 )
...
Currently, when theme `auto` is set and the system theme changes, users
need to reload the site themselves.
This PR adds an even listener which listens for such changes and reloads
the theme automatically in the background.
---------
Co-authored-by: Anbraten <anton@ju60.de>
2024-01-30 11:00:07 +01:00
Lukas
94b882fb95
Add spellcheck config ( #3018 )
...
Part of #738
```
pnpx cspell lint --gitignore '{**,.*}/{*,.*}'
```
---------
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2024-01-27 21:15:10 +01:00
6543
38cf248e41
use semver for version comparsion ( #3042 )
...
close #3041
close #3043
---------
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-30 23:28:43 +01:00
6543
74f6824d03
Add option to disable version check in admin web UI ( #3040 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-27 22:16:15 +01:00
6543
af3b35f06a
trim v on version check ( #3039 )
...
close #3034
2023-12-27 15:17:18 +01:00
Anbraten
f01ac3f0a3
Add pull request closed event ( #2684 )
...
- [x] updates docs
- [x] adjust UI
- [x] show correct icon
- [x] show correct link (to pr)
- [x] add as option in secret edit
- [x] parse webhook
- [x] update tests
- [x] github merged
- [x] github closed
- [x] gitea merged
- [x] gitea closed
- [x] bitbucket merged
- [x] bitbucket closed
- [x] gitlab merged
- [x] gitlab closed
closes #286
2023-12-26 19:22:52 +01:00
Anbraten
16803d6217
Show secrets from org and global level ( #2873 )
...
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-16 10:29:13 +01:00
qwerty287
8c6738e2bb
Unify date/time dependencies ( #2891 )
...
Remove all date/time-related dependencies from the ui except `dayjs` and
use `dayjs` for all tasks.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-04 12:46:24 +01:00
qwerty287
ffb3bd806c
Fix version check partially ( #2871 )
...
ref #2748
- fix link to releases
- fix jq syntax
- support rc versions (separate json field)
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-26 08:02:02 +01:00
Robert Kaussow
4c2dbca2e9
Replace linter icons to match theme ( #2765 )
...
@qwerty287 @anbraten What do you think about this approach? This way the
icons fit more into the existing design. I've also moved the icon in the
tab to the end as this looks IMO a bit better on mobile view, but open
for discussions.
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f56a9688-4ca2-4b7b-a053-3e74effe6976 )
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/93cd4dd6-4e22-4210-9fee-f8d134d3df42 "
width=350> <img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/6128fec9-3dc5-4483-abde-5a911b236138 "
width=350>
Alternative idea for errors:
<img
src="https://github.com/woodpecker-ci/woodpecker/assets/3391958/bee8b1ea-8d27-43cc-9fb1-2df0031d3551 "
width=350>
Or just use one symbol and only change the color for errors/warnings?
2023-11-09 00:03:36 +02:00
Anbraten
33f9574dce
Add version and update notes ( #2722 )
2023-11-04 14:20:50 +01:00
Anbraten
5f8e252fba
Fix default tab not being selected ( #2733 )
2023-11-04 14:20:04 +01:00
Anbraten
fe489287fc
Fix active tab not updating on prop change ( #2712 )
2023-11-03 16:01:14 +01:00
qwerty287
2ff916c804
Refactor UI dark/bright mode ( #2590 )
...
- collapse pipeline configs by default, closes
https://github.com/woodpecker-ci/woodpecker/discussions/2557
- refactor ui themes: instead of just differentiating between "is dark"
or "is not dark", add a third "auto" option following the browser
settings (closes
https://github.com/woodpecker-ci/woodpecker/discussions/2204 ) and put
everything into an enum. also move the option from the navbar to user
settings.
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-01 10:30:40 +01:00
qwerty287
aeb7bcb26a
Remove WOODPECKER_DOCS
config ( #2647 )
2023-10-25 15:05:19 +02:00
renovate[bot]
da61c6a4ba
chore(deps): lock file maintenance ( #2595 )
2023-10-17 20:25:51 +02:00
Anbraten
284fb99194
UI cleanups and improvements ( #2548 )
2023-10-08 17:49:13 +02:00
qwerty287
22dfd2ef62
Refactor pipeline parsing and forge refreshing ( #2527 )
...
- refactor pipeline parsing
- do not parse the pipeline multiple times to perform filter checks, do
this once and perform checks on the result directly
- code deduplication
- refactor forge token refreshing
- move refreshing to a helper func to reduce code
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-10-08 14:05:06 +02:00
qwerty287
78ebd55acc
Some UI enhancement ( #2468 )
...
- Closes #2001
-
https://github.com/woodpecker-ci/woodpecker/discussions/2162#discussioncomment-6666895
- shows prettyRef for deployments
2023-09-17 12:32:23 +02:00
renovate[bot]
a93027b9b5
chore(deps): update dependency prettier to v3 ( #2420 )
2023-09-10 11:01:52 +02:00
Robert Kaussow
718ec6141c
close sidebar on outside click ( #2325 )
...
[record.webm](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f797be2c-09a9-4699-be85-7d5925e146ed )
---------
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-09-07 22:28:36 +02:00
qwerty287
971534929c
Only show commit title ( #2361 )
...
https://github.com/woodpecker-ci/woodpecker/issues/2359
2023-08-30 17:08:56 +02:00
qwerty287
3bdeb47d8c
Use Vue setup directive ( #2165 )
2023-08-08 12:22:39 +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
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
qwerty287
1a7f7a9427
Allow to disable swagger ( #2093 )
...
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +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
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
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
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
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
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
qwerty287
0970f35df5
Do not store inactive repos ( #1658 )
...
Do not sync repos with forge if the repo is not necessary in DB.
In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.
Solves a TODO on RepoBatch.
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 23:01:59 +01:00
smainz
156b321c2d
Sort repos by org and name ( #1548 )
...
Ensure that repos are sorted in the UI after doing a search.
See #1466
Co-authored-by: Anbraten <anton@ju60.de>
2023-02-28 11:14:19 +01:00
Anbraten
4c97a0104e
Hide not owned repos from sidebar and repo list ( #1453 )
...
Co-authored-by: Lukas <lukas@slucky.de>
2023-01-31 09:37:11 +01:00
Lukas
72df167d2d
Lazy load locales ( #1362 )
...
Closes #1345
`index.js` size reduction: `538.71 KiB` -> `382.74 KiB`
Also sets correct html `lang` attribute.
2022-12-29 13:41:59 +01:00
Josh Soref
023d03dd61
Spelling ( #1405 )
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-09 08:12:17 +01:00
Harikesh00
36e42914fa
Renamed procs/jobs to steps in code ( #1331 )
...
Renamed `procs` to `steps` in code for the issue #1288
Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com>
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-28 17:38:53 +02:00
Divya Jain
e2ab8a46ed
Header and Tabs UI Improvements ( #1290 )
...
Some improvements to the Page Header and Tab UI.
Original | New
:--------:|:-------:
![image](https://user-images.githubusercontent.com/62170586/197360886-046f1016-ca39-4b69-8134-99ba88e3a0c2.png )
|
![image](https://user-images.githubusercontent.com/62170586/197360819-7efd0d82-1412-465d-aefa-039164f97465.png )
![image](https://user-images.githubusercontent.com/62170586/197360872-f2ece5fd-7c0b-4e2c-8629-31524a412af5.png )
|
![image](https://user-images.githubusercontent.com/62170586/197360830-49f09e0d-619e-4fa9-8e38-8d05d9404185.png )
![image](https://user-images.githubusercontent.com/62170586/197281776-e3de6441-9417-4614-8b25-1aaef0b8da61.png )
|
![image](https://user-images.githubusercontent.com/62170586/197281698-40c66d34-76f3-4fd5-97e3-1c422b74844c.png )
![image](https://user-images.githubusercontent.com/62170586/196609248-ff150c6e-2995-4bcc-8573-49ffaf388446.png )
|
![image](https://user-images.githubusercontent.com/62170586/197323734-7c1a1b79-0f41-4bf2-96a3-dd38df9e1415.png )
![image](https://user-images.githubusercontent.com/62170586/196609329-b7a6f37e-e8c2-4004-a98b-73f837122ff8.png )
|
![image](https://user-images.githubusercontent.com/62170586/197323882-10141ffd-7411-4493-8291-b8000adc3cc5.png )
What?
- Create a new Scaffold component, which includes the header and tabs
required for a page.
- Use this component to wrap all the views that have a header.
- Ensures consistency in headers between different pages.
- [x] Add support to use custom html/component in place of title (for
repo page, pipeline page, etc)
- [x] Add support of right icon buttons (for repo page, pipeline page,
etc)
- [x] Refactor tabs handling using compositions (useTabsProvider, useTabsClient)
- [x] Make new header ui resposive
2022-10-28 00:55:07 +02:00
qwerty287
f88c70b55e
Rename to pipeline
in DB and JSONs ( #1296 )
...
Closes #1282
Follow-up to #1224 , addresses #745
- changes JSON fields
- adds migration to rename columns
- fixes some comments
2022-10-22 15:54:43 +02:00
qwerty287
849e05bb8b
Rename build
to pipeline
in code ( #1224 )
...
Ref: #745
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-18 03:24:12 +02:00
[X]
b4d89a1cce
Add ability to trigger manual builds ( #1156 )
...
closes #83
closes #240
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-09-27 11:05:00 +02:00
6543
383f273392
Add cron feature ( #934 )
...
https://woodpecker-ci.org/docs/usage/cron
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-09-01 00:36:32 +02:00
Lauris BH
f654e1f316
Add pipeline log output download ( #1023 )
2022-07-17 21:51:10 +02:00
6543
716d55a370
Add German Translation ( #997 )
...
* Add German Translation
* Fix visibility description
* fix lint
* Registries or Registry
* Update web/src/assets/locales/de.json
* Apply suggestions from code review
Co-authored-by: Anbraten <anton@ju60.de>
* Update web/src/assets/locales/de.json
Co-authored-by: Anbraten <anton@ju60.de>
* Update web/src/assets/locales/de.json
Co-authored-by: Anbraten <anton@ju60.de>
2022-06-21 18:18:02 +02:00
Lauris BH
2153425230
Add Latvian language translation ( #992 )
...
Add Latvian language translation (#992 )
2022-06-19 07:31:16 +02:00
qwerty287
42c745362b
Show forge icons in UI ( #987 )
2022-06-17 20:14:01 +02:00