Skip to content

Commit 8ae3d95

Browse files
authored
Refactor UI to Tailwind CSS (#33)
UI rebuilt with TailwindCSS
1 parent 3694fa7 commit 8ae3d95

File tree

23 files changed

+607
-646
lines changed

23 files changed

+607
-646
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to `cybercog/laravel-paket` will be documented in this file.
44

55
## [Unreleased]
66

7+
## [1.2.0]
8+
9+
### Changed
10+
11+
- ([#33]) UI rebuilt with Tailwind CSS
12+
713
## [1.1.0] - 2019-09-04
814

915
### Added
@@ -26,9 +32,11 @@ All notable changes to `cybercog/laravel-paket` will be documented in this file.
2632

2733
- Initial release
2834

29-
[Unreleased]: https://github.com/cybercog/laravel-paket/compare/1.1.0...master
30-
[1.1.0]: https://github.com/cybercog/laravel-love/compare/1.0.0...1.1.0
35+
[Unreleased]: https://github.com/cybercog/laravel-paket/compare/1.2.0...master
36+
[1.2.0]: https://github.com/cybercog/laravel-paket/compare/1.1.0...1.2.0
37+
[1.1.0]: https://github.com/cybercog/laravel-paket/compare/1.0.0...1.1.0
3138

39+
[#33]: https://github.com/cybercog/laravel-paket/pull/33
3240
[#32]: https://github.com/cybercog/laravel-paket/pull/32
3341
[#28]: https://github.com/cybercog/laravel-paket/pull/28
3442
[#27]: https://github.com/cybercog/laravel-paket/pull/27

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ Paket exposes a dashboard at `/paket`. By default, you will only be able to acce
3838

3939
### Dashboard
4040

41-
![Laravel Paket Dashboard](https://user-images.githubusercontent.com/1849174/60401748-80cb9e00-9b8e-11e9-8a38-9d49ab418445.png)
41+
![Laravel Paket Dashboard](https://user-images.githubusercontent.com/1849174/64376712-90a1ab80-d031-11e9-928e-94b63a0f1d77.png)
4242

43-
### Requirements List
43+
### Composer Requirements
4444

45-
![Laravel Paket Requirements](https://user-images.githubusercontent.com/1849174/60401755-9fca3000-9b8e-11e9-86d0-b5c8d26b3238.png)
45+
![Laravel Paket Requirements](https://user-images.githubusercontent.com/1849174/64376736-9b5c4080-d031-11e9-8804-6effc3f31621.png)
4646

47-
### Jobs List
47+
### Terminal Jobs
4848

49-
![Laravel Paket Jobs](https://user-images.githubusercontent.com/1849174/60400934-4f99a080-9b83-11e9-8bb6-e3ce3fcce1a4.png)
49+
![Laravel Paket Jobs](https://user-images.githubusercontent.com/1849174/64376752-a1eab800-d031-11e9-8baf-8968cb915ae5.png)
5050

51-
### Job
51+
### Terminal Job Details
5252

53-
![Laravel Paket Job](https://user-images.githubusercontent.com/1849174/60400942-6fc95f80-9b83-11e9-9afd-f82f76980fb4.png)
53+
![Laravel Paket Job](https://user-images.githubusercontent.com/1849174/64376758-a616d580-d031-11e9-9a32-bf125d53894f.png)
5454

5555
## License
5656

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@
1010
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
1111
},
1212
"devDependencies": {
13+
"@ibm/plex": "^2.0.0",
1314
"ansi-to-html": "^0.6.10",
1415
"axios": "^0.18",
15-
"bootstrap": "^4.0.0",
1616
"cross-env": "^5.1",
17-
"jquery": "^3.2",
1817
"laravel-mix": "^4.0.7",
1918
"moment": "^2.10.6",
2019
"moment-timezone": "^0.5.21",
21-
"popper.js": "^1.12",
2220
"resolve-url-loader": "^2.3.1",
2321
"sass": "^1.15.2",
2422
"sass-loader": "^7.1.0",
2523
"sweetalert2": "^8.13.0",
24+
"tailwindcss": "^1.1.2",
2625
"vue": "^2.5.7",
2726
"vue-router": "^3.0.1",
2827
"vue-template-compiler": "^2.5.21",

public/app.css

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"/app.js": "/app.js?id=a9664544006f24b7fe8e",
3-
"/app.css": "/app.css?id=bb95d006231a3d23cafe"
2+
"/app.js": "/app.js?id=2297f20a440bb65e7fa4",
3+
"/app.css": "/app.css?id=0363aa441deba08d8863"
44
}

resources/js/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import globals from './globals';
66
import routes from './routes';
77
import store from './store';
88

9-
require('bootstrap');
10-
119
const token = document.head.querySelector('meta[name="csrf-token"]');
1210

1311
if (token) {

resources/js/components/Job/Status/Badge.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
2626
getStatusClass() {
2727
const statusClasses = {
28-
Pending: 'secondary',
29-
Running: 'primary',
30-
Success: 'success',
31-
Failed: 'danger',
28+
Pending: 'bg-yellow-200 border-b-2 border-yellow-400 text-yellow-800',
29+
Running: 'bg-blue-200 border-b-2 border-blue-400 text-blue-800',
30+
Success: 'bg-green-200 border-b-2 border-green-400 text-green-800',
31+
Failed: 'bg-red-200 border-b-2 border-red-400 text-red-800',
3232
};
3333
34-
return `badge badge-${statusClasses[this.status]}`;
34+
return `px-2 py-1 text-sm inline-block px-2 uppercase font-semibold font-mono tracking-wide ${statusClasses[this.status]}`;
3535
},
3636
},
3737
}

resources/js/components/Requirement/InstallButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<button
33
type="button"
4+
class="bg-indigo-600 hover:bg-indigo-800 text-indigo-100 hover:text-white font-semibold px-2 py-1 text-xs rounded focus:outline-none focus:shadow-outline uppercase"
45
:disabled="isFormDisabled()"
56
v-text="buttonText"
67
v-on:click="install()"

resources/js/components/Requirement/InstallForm.vue

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<template>
2-
<div class="input-group">
2+
<div class="flex">
33
<input
44
type="text"
5-
class="form-control"
5+
class="shadow appearance-none border rounded-l w-full py-2 px-3 text-gray-900 placeholder-gray-700 leading-tight focus:outline-none focus:shadow-outline"
66
:readonly="isFormDisabled()"
77
v-model="command"
88
v-on:keyup.enter="install()"
9+
placeholder="Type vendor/package OR composer require vendor/package"
910
/>
10-
<div class="input-group-append">
11-
<button
12-
type="submit"
13-
class="btn btn-primary"
14-
:disabled="isFormDisabled()"
15-
v-text="buttonText"
16-
v-on:click="install()"
17-
></button>
18-
</div>
11+
<button
12+
type="submit"
13+
class="bg-indigo-600 hover:bg-indigo-800 text-indigo-100 hover:text-white font-semibold py-2 px-4 rounded-r uppercase"
14+
:disabled="isFormDisabled()"
15+
v-text="buttonText"
16+
v-on:click="install()"
17+
>
18+
Install
19+
</button>
1920
</div>
2021
</template>
2122

0 commit comments

Comments
 (0)