From b58a3bf2091be96763897f53fea6576ac0fb9474 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 18 May 2023 13:26:35 +0200 Subject: [PATCH] css and stuffs --- .../Livewire/Project/Application/Danger.php | 9 ++ .../Application/EnvironmentVariable/Show.php | 3 - .../Livewire/Project/Application/Rollback.php | 1 + .../Project/Application/Storages/All.php | 1 - app/Http/Livewire/Source/Github/Change.php | 2 + package-lock.json | 11 ++- package.json | 3 +- resources/css/app.css | 45 +++++---- resources/views/auth/login.blade.php | 2 +- resources/views/auth/register.blade.php | 2 +- .../components/applications/navbar.blade.php | 10 +- .../views/components/confirm-modal.blade.php | 2 +- .../views/components/external-link.blade.php | 1 + .../views/components/inputs/button.blade.php | 29 ++++-- .../components/inputs/checkbox.blade.php | 11 +-- .../views/components/inputs/input.blade.php | 11 ++- .../views/components/inputs/select.blade.php | 2 +- .../components/inputs/textarea.blade.php | 5 +- resources/views/components/layout.blade.php | 7 +- .../views/components/naked-modal.blade.php | 19 ++-- resources/views/components/navbar.blade.php | 20 ++-- .../views/livewire/destination/form.blade.php | 4 +- .../new/standalone-docker.blade.php | 2 +- .../livewire/private-key/change.blade.php | 6 +- .../livewire/private-key/create.blade.php | 2 +- .../project/application/danger.blade.php | 5 + .../project/application/deploy.blade.php | 8 +- .../project/application/destination.blade.php | 2 +- .../environment-variable/add.blade.php | 4 +- .../environment-variable/all.blade.php | 2 +- .../environment-variable/show.blade.php | 6 +- .../project/application/general.blade.php | 75 +++++++------- .../application/resource-limits.blade.php | 12 +-- .../project/application/rollback.blade.php | 6 +- .../project/application/source.blade.php | 11 ++- .../application/storages/add.blade.php | 2 +- .../application/storages/all.blade.php | 2 +- .../application/storages/show.blade.php | 4 +- .../views/livewire/project/delete.blade.php | 4 +- .../views/livewire/run-command.blade.php | 2 +- .../views/livewire/server/form.blade.php | 16 +-- .../views/livewire/server/new/by-ip.blade.php | 2 +- .../views/livewire/server/proxy.blade.php | 15 +-- .../livewire/source/github/change.blade.php | 99 ++++++++++++++++--- .../views/livewire/switch-team.blade.php | 2 +- .../application/configuration.blade.php | 14 ++- resources/views/server/show.blade.php | 4 +- resources/views/source/github/show.blade.php | 66 +------------ tailwind.config.js | 6 +- 49 files changed, 327 insertions(+), 252 deletions(-) create mode 100644 app/Http/Livewire/Project/Application/Danger.php create mode 100644 resources/views/components/external-link.blade.php create mode 100644 resources/views/livewire/project/application/danger.blade.php diff --git a/app/Http/Livewire/Project/Application/Danger.php b/app/Http/Livewire/Project/Application/Danger.php new file mode 100644 index 000000000..0a2f59d34 --- /dev/null +++ b/app/Http/Livewire/Project/Application/Danger.php @@ -0,0 +1,9 @@ +application->uuid; $output = instantRemoteProcess([ diff --git a/app/Http/Livewire/Project/Application/Storages/All.php b/app/Http/Livewire/Project/Application/Storages/All.php index e48111614..a8606c175 100644 --- a/app/Http/Livewire/Project/Application/Storages/All.php +++ b/app/Http/Livewire/Project/Application/Storages/All.php @@ -4,7 +4,6 @@ use App\Models\Application; use App\Models\LocalPersistentVolume; -use Illuminate\Database\QueryException; use Livewire\Component; class All extends Component diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Http/Livewire/Source/Github/Change.php index 0121d73db..a01a0a1a4 100644 --- a/app/Http/Livewire/Source/Github/Change.php +++ b/app/Http/Livewire/Source/Github/Change.php @@ -11,6 +11,8 @@ class Change extends Component public string $host; public $parameters; public GithubApp $github_app; + public string $installation_url; + public string $name; public bool $is_system_wide; protected $rules = [ diff --git a/package-lock.json b/package-lock.json index d8f6ab89e..d588e33db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,8 @@ "dependencies": { "@tailwindcss/typography": "^0.5.9", "alpinejs": "3.12.0", - "daisyui": "^2.51.6" + "daisyui": "^2.51.6", + "tailwindcss-scrollbar": "^0.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "^4.0.0", @@ -1883,6 +1884,14 @@ "postcss": "^8.0.9" } }, + "node_modules/tailwindcss-scrollbar": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/tailwindcss-scrollbar/-/tailwindcss-scrollbar-0.1.0.tgz", + "integrity": "sha512-egipxw4ooQDh94x02XQpPck0P0sfwazwoUGfA9SedPATIuYDR+6qe8d31Gl7YsSMRiOKDkkqfI0kBvEw9lT/Hg==", + "peerDependencies": { + "tailwindcss": ">= 2.x.x" + } + }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", diff --git a/package.json b/package.json index 21fb9c605..81441de95 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "@tailwindcss/typography": "^0.5.9", "alpinejs": "3.12.0", - "daisyui": "^2.51.6" + "daisyui": "^2.51.6", + "tailwindcss-scrollbar": "^0.1.0" } } diff --git a/resources/css/app.css b/resources/css/app.css index 0be962822..a8de249c8 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -2,32 +2,43 @@ @tailwind components; @tailwind utilities; +* { +@apply scrollbar-thumb-yellow-400 scrollbar-track-coolgray-200 scrollbar-w-1; +} +html { + @apply h-full min-h-full bg-coolgray-100 ; +} body { - @apply bg-coolgray-100 text-white; + @apply bg-coolgray-100 text-white min-h-full antialiased; +} +input[type="checkbox"] { + @apply toggle toggle-warning toggle-sm; } input { - @apply input w-full max-w-xl input-bordered input-sm; + @apply input input-sm; } -textarea { - @apply textarea textarea-sm; +input[type="text"],[type="number"],[type="email"],[type="password"] { + @apply read-only:opacity-40; } -/* input, textarea { - @apply border border-solid border-coolgray-500 bg-coolgray-200 rounded p-2 px-4 text-white outline-none transition-all; + @apply textarea; } -input, -textarea { - @apply disabled:text-neutral-600 read-only:text-neutral-600 read-only:select-none read-only:bg-coolgray-200/50; -} */ select { - @apply border border-solid border-coolgray-400 rounded p-2 px-4 bg-coolgray-200 text-white disabled:text-neutral-600 read-only:select-none outline-none; + @apply select select-sm disabled:opacity-40; } -button { - @apply btn btn-xs btn-ghost no-animation normal-case; + +button[type="button"] { + @apply btn btn-xs btn-ghost no-animation normal-case text-white; } button[type="submit"] { - @apply btn-primary btn-sm; + @apply btn btn-xs no-animation normal-case text-white btn-primary; +} +button[isWarning] { + @apply btn-error text-white; +} +button[isHighlighted] { + @apply btn-primary text-white; } h1 { @apply text-3xl font-bold pb-4; @@ -36,10 +47,10 @@ h2 { @apply text-2xl font-bold pb-4; } h3 { - @apply text-xl font-bold pb-4; + @apply text-xl font-bold py-4; } -a{ - @apply hover:text-white text-sm; +a { + @apply text-neutral-400 hover:text-white text-sm link link-hover hover:bg-transparent; } .box { diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index cde952445..11a5bbe83 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -8,7 +8,7 @@ @env('local') value="test@example.com" @endenv autofocus /> - {{ __('auth.login') }} + {{ __('auth.login') }} @if ($errors->any())
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index dba776362..884fbdc82 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -11,7 +11,7 @@ @env('local') value="password" @endenv /> - {{ __('auth.register') }} + {{ __('auth.register') }} @if ($errors->any())
diff --git a/resources/views/components/applications/navbar.blade.php b/resources/views/components/applications/navbar.blade.php index 8b946b994..f5a3199a3 100644 --- a/resources/views/components/applications/navbar.blade.php +++ b/resources/views/components/applications/navbar.blade.php @@ -1,4 +1,4 @@ -