Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging drone2 branch into master #369

Merged
merged 78 commits into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
d92124e
update dist
bradrydzewski Mar 18, 2021
d744fdf
update dist
bradrydzewski Mar 18, 2021
90cdf44
update dist
bradrydzewski Mar 18, 2021
660cf37
update dist
bradrydzewski Mar 18, 2021
0fd3dd0
bump dist
bradrydzewski Mar 18, 2021
780e11c
update dist
bradrydzewski Mar 18, 2021
b892bff
publish 2.0 source
bradrydzewski Mar 19, 2021
ed66040
ensure correct last started date when build count is 1
bradrydzewski Mar 19, 2021
f59694f
update median calculation
bradrydzewski Mar 19, 2021
5a3f145
fix: logs management
Mar 22, 2021
3f61f99
refactor: hide project settings if user is not an admin
Mar 22, 2021
faee9b3
fix: minor ui changes
Mar 22, 2021
f609b95
fix: logs state tweaks according to latest feedback
Mar 22, 2021
a007f80
fix: added kind prop to diagram
Mar 22, 2021
81d7ea1
Merge branch 'fix/diagram' into drone2
Mar 22, 2021
10bc5ba
refactor: decreased console rererenders
Mar 22, 2021
43fc5b0
bump dist
bradrydzewski Mar 22, 2021
1b43c6b
feat: welcome illustration update
Mar 23, 2021
e792938
feat: responsive setup
Mar 24, 2021
ff263fb
chore: removed commented styles from repos-recent
Mar 24, 2021
69efc05
fix: made copy badge snippet btn work again
Mar 24, 2021
f919820
refactor: forms
Mar 24, 2021
e2a57bf
chore: removed redundant code at repos-recent
Mar 24, 2021
3016289
fix: timeStarted prop reference when builds count < 3
Mar 24, 2021
c1118af
feature: adjusted sidebar styling
Mar 24, 2021
a043269
refactor: users page
Mar 24, 2021
970d59d
feat: refactor & responsive for repo & repo builds
Mar 24, 2021
4590040
Merge pull request #350 from drone/fix/logs-state-management
bradrydzewski Mar 24, 2021
df7793d
fix: remove key prop at build route
Mar 24, 2021
aaae362
update bundle
bradrydzewski Mar 24, 2021
b809bd3
fix: added fallback instance ref to location
Mar 25, 2021
7192bbc
fix: promote mechanic
Mar 25, 2021
bbe460a
chore: Merge branch 'drone2' into feat/responsive-setup
Mar 25, 2021
374f1f4
feat: more responsive styles
Mar 25, 2021
df29573
trim tag from reference
bradrydzewski Mar 25, 2021
9250dca
feat: made build header responsive
Mar 26, 2021
c3c1463
feat: added step click handlers for responsive
Mar 26, 2021
1784c99
fix: simple activity dom validation nesting error
Mar 26, 2021
9afde5f
fix: proper 404 for non existing build number
Mar 26, 2021
72ff137
fix: put user exist condition into recent and latest builds hooks
Mar 26, 2021
abfc51d
feat: made sure non logs states are responsive friendly
Mar 29, 2021
f3292d6
fix: minor responsive tweaks
Mar 31, 2021
1223f6b
fix: summary timeStarted fallback value
Mar 31, 2021
5c38a1a
fix: build card layout for builds page
Mar 31, 2021
cb95c87
fix: key prop at bar chart component
Mar 31, 2021
0f5a4bc
Merge pull request #351 from drone/feat/responsive-setup
bradrydzewski Mar 31, 2021
772f24b
update dist
bradrydzewski Mar 31, 2021
2a0e857
use correct promotion number in activity component
bradrydzewski Apr 15, 2021
96a9f6e
fix issue with incorrect promote number
bradrydzewski Apr 27, 2021
1b93fc2
bump distribution
bradrydzewski May 5, 2021
d96f1e2
update login and register screens
bradrydzewski May 12, 2021
d9e6fc7
do not prompt signup when user already authed
bradrydzewski Jun 2, 2021
9a35313
fix issue with cron rendering
bradrydzewski Jun 15, 2021
5f47342
fix regex for live updates
bradrydzewski Jun 15, 2021
fddab6b
remove unused mutation, use requestAnimationFrame to update
bradrydzewski Jun 15, 2021
987c352
remove console.log in promote component
bradrydzewski Jun 15, 2021
c6bb64f
bump dist
bradrydzewski Jun 16, 2021
d11e2b9
do not async update repository list
bradrydzewski Jun 16, 2021
76a6768
alternate repository store impl
bradrydzewski Jun 23, 2021
9a5c77e
do not fetch user repos if user undefined
bradrydzewski Jun 23, 2021
f81f743
remove requestAnimationFrame from event callback
bradrydzewski Jul 2, 2021
8493893
Update index.html
tskarhed Jul 9, 2021
bafe487
Merge pull request #359 from tskarhed/patch-1
eoinmcafee00 Jul 13, 2021
df33f16
allow ~ in project name
muffl0n Jul 16, 2021
544fecb
Update register.jsx
juli3nk Jul 22, 2021
2754527
Merge pull request #362 from juli3nk/patch-1
Jul 27, 2021
ff109a2
show error message for steps and stages
Aug 10, 2021
300b6bd
small prop type fix
Aug 10, 2021
7f91797
Merge pull request #365 from drone/better-error-visibility
d1wilko Aug 11, 2021
88e563a
Merge pull request #361 from muffl0n/allow-tilde-in-project-name
d1wilko Aug 11, 2021
414f6e0
new go file
Aug 11, 2021
4db53a9
Merge pull request #366 from drone/new-ui-build
d1wilko Aug 11, 2021
1b9b9de
fix single pending build bug and simplify median build time logic
Aug 12, 2021
77cbd67
generate new go dist and update caniuse-lite
Aug 12, 2021
12795bc
Merge pull request #367 from drone/fix-pending-build-bug
Aug 12, 2021
2cb76ac
fix off centre alt avatar bug
Aug 18, 2021
26b1de1
add go binary
Aug 18, 2021
995f61c
Merge pull request #368 from drone/bug/dron-70
Aug 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ENV Variables
REACT_APP_DRONE_SERVER=
REACT_APP_DRONE_TOKEN=

# For macOS and Linux
SASS_PATH=node_modules:src
# For Windows
SASS_PATH=./node_modules;./src
41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"extends": ["react-app", "airbnb", "airbnb/hooks", "airbnb/whitespace"],
"rules": {
"max-len": [1, {
"code": 120,
"ignoreTemplateLiterals": true,
"ignoreComments": true
}],
"jsx-a11y/label-has-associated-control": [2, {
"assert": "htmlFor"
}],
"react/jsx-props-no-spreading": "off",
"react/jsx-sort-props": [
"warn",
{
"callbacksLast": true,
"shorthandLast": true,
"noSortAlphabetically": true
}
],
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/prefer-default-export": "off"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory":["node_modules", "src/"]
}
}
}
}
38 changes: 32 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
node_modules
dist/files/*
*.txt
*.log
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist/files
/dist/*_gen.go

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.vscode

# .git
.eslintcache

.env
.env.*
hermione
.env.development.local
.env.local
3 changes: 3 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"hooks": {}
}
4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx}": "eslint --fix --ignore-path .gitignore",
"*.{css,sass,scss,md,html}": "stylelint --fix --ignore-path .gitignore"
}
18 changes: 18 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-recommended-scss",
"stylelint-config-css-modules",
"stylelint-config-recess-order"
],
"rules": {
"no-descending-specificity": null,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["value"]
}
]
}
}
71 changes: 53 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,70 @@
# drone-ui
## Drone UI

## Configuration
### Getting started

Create a `.env.development.local` file with the drone server address (no trailing slash) and your drone user token:
1. **Clone this repository**

```
VUE_APP_DRONE_SERVER=https://drone.company.com
VUE_APP_DRONE_TOKEN=f0af17449a83681de22db7ce16672f16
```
```bash
git clone https://github.com/drone/drone-ui.git
```

## Project setup
```
npm install
2. **Install dependencies**

```bash
npm install
```

3. **Copy .env.example and rename it into .env**

```bash
cp .env.example .env.development.local
```

4. **Fill required variables. For example:**

```text
REACT_APP_DRONE_SERVER=https://drone.company.com
REACT_APP_DRONE_TOKEN=<your_drone_token>
```

### Run the app

```bash
npm run start
```

### Compiles and hot-reloads for development
### Build the app

```bash
npm run build
```

### Run the built app

```bash
npm run serve
```

### Compiles and minifies for production
### Run linters

```bash
npm run lint
```
npm run build

### Run linters and fix auto fixable problems

```bash
npm run lint:fix
```

### Run your tests
```

```bash
npm run test
```

### Lints and fixes files
```
npm run lint
```
## Commits

We use Conventional Commits for commit messages. You can read more about Conventional Commits [here](https://www.conventionalcommits.org/en/v1.0.0/). [Here](https://cheatography.com/albelop/cheat-sheets/conventional-commits/) you can find a useful Conventional Commits Cheat Sheet.

We try to make our commits "atomic". [Here](https://www.freshconsulting.com/atomic-commits/) and [here](https://en.wikipedia.org/wiki/Atomic_commit) you can read more about Atomic commits.
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/dist.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package dist

//go:generate togo http -package dist -output dist_gen.go

Loading