|
| 1 | +<template> |
| 2 | + <div class="px-4 sm:px-6 lg:px-8 py-8"> |
| 3 | + <form class="rounded-lg bg-white px-6 py-4 text-sm dark:bg-gray-800"> |
| 4 | + <div class="flex items-center justify-between"> |
| 5 | + <h5 class="forge-h5"> |
| 6 | + Commands |
| 7 | + </h5> |
| 8 | + </div> |
| 9 | + <div class="py-2"> |
| 10 | + <div class="bg-gray-50 text-gray-600 dark:bg-gray-700 dark:text-gray-400 flex flex-row rounded-lg p-4 text-sm"> |
| 11 | + <svg |
| 12 | + xmlns="http://www.w3.org/2000/svg" |
| 13 | + fill="none" |
| 14 | + viewBox="0 0 24 24" |
| 15 | + stroke-width="1.5" |
| 16 | + stroke="currentColor" |
| 17 | + class="text-gray-400 h-6 flex-shrink-0" |
| 18 | + ><path |
| 19 | + stroke-linecap="round" |
| 20 | + stroke-linejoin="round" |
| 21 | + d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" |
| 22 | + /></svg><div class="ml-4 mt-0.5 flex flex-grow"> |
| 23 | + <p class=""> |
| 24 | + Stacks allows you to easily execute arbitrary commands on your server. All commands are executed from within the site's root directory <br> Commands will be executed as the <code class="text-red-400">stacks</code> user and may run for two minutes before timing out. |
| 25 | + </p> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + <div class="mt-4 flex flex-col"> |
| 29 | + <label>Command</label><div class="mt-1 flex flex-col"> |
| 30 | + <input |
| 31 | + type="text" |
| 32 | + class="block w-full px-4 py-2 text-gray-900 border border-gray-300 rounded-md shadow-sm required:border-red-500 dark:bg-gray-700 dark:text-gray-200 dark:text-gray-100 focus:border-teal-500 dark:border-gray-600 focus:outline-none focus:ring-2" |
| 33 | + list="artisanCommands" |
| 34 | + placeholder="ls -la" |
| 35 | + autocorrect="off" |
| 36 | + ><datalist id="artisanCommands"> |
| 37 | + <option value="php artisan cache:clear" /><option value="php artisan config:clear" /><option value="php artisan route:clear" /><option value="php artisan view:clear" /><option value="php artisan migrate --force" /><option value="php artisan migrate:fresh" /><option value="php artisan storage:link" /><option value="cd /home/forge/carefreeagency.com/current && php artisan scout:import "App\User"" /><option value="cd /home/forge/carefreeagency.com/current && php artisan scout:flush "App\User"" /><option value="cd /home/forge/carefreeagency.com/current && php artisan scout:import "App\Event"" /><option value="cd /home/forge/carefreeagency.com/current && php artisan scout:flush "App\Event"" /><option value="cd /home/forge/carefreeagency.com/current && php artisan sync:sf-users" /> |
| 38 | + </datalist> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + <div> |
| 43 | + <div class="mt-4 flex justify-end"> |
| 44 | + <button |
| 45 | + type="button" |
| 46 | + class="rounded bg-indigo-600 px-2 py-1 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" |
| 47 | + > |
| 48 | + Submit |
| 49 | + </button> |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + </form> |
| 53 | + |
| 54 | + <div class="rounded-lg bg-white px-6 py-4 text-sm dark:bg-gray-800 mt-16"> |
| 55 | + <div class="sm:flex sm:items-center"> |
| 56 | + <div class="sm:flex-auto"> |
| 57 | + <h1 class="text-base font-semibold leading-6 text-gray-900"> |
| 58 | + History |
| 59 | + </h1> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <div class="mt-8 flow-root"> |
| 63 | + <div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"> |
| 64 | + <div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"> |
| 65 | + <table class="min-w-full divide-y divide-gray-300"> |
| 66 | + <thead> |
| 67 | + <tr> |
| 68 | + <th |
| 69 | + scope="col" |
| 70 | + class="py-3 pl-4 pr-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500 sm:pl-0" |
| 71 | + > |
| 72 | + User |
| 73 | + </th> |
| 74 | + <th |
| 75 | + scope="col" |
| 76 | + class="px-3 py-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500" |
| 77 | + > |
| 78 | + Command |
| 79 | + </th> |
| 80 | + <th |
| 81 | + scope="col" |
| 82 | + class="px-3 py-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500" |
| 83 | + > |
| 84 | + Time |
| 85 | + </th> |
| 86 | + <th |
| 87 | + scope="col" |
| 88 | + class="px-3 py-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500" |
| 89 | + > |
| 90 | + Duration |
| 91 | + </th> |
| 92 | + <th |
| 93 | + scope="col" |
| 94 | + class="px-3 py-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500" |
| 95 | + > |
| 96 | + Status |
| 97 | + </th> |
| 98 | + <th |
| 99 | + scope="col" |
| 100 | + class="relative py-3 pl-3 pr-4 sm:pr-0" |
| 101 | + > |
| 102 | + <span class="sr-only">Edit</span> |
| 103 | + </th> |
| 104 | + </tr> |
| 105 | + </thead> |
| 106 | + <tbody class="divide-y divide-gray-200 bg-white"> |
| 107 | + <tr> |
| 108 | + <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0"> |
| 109 | + Chris Breuer |
| 110 | + </td> |
| 111 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 112 | + cd /home/forge/carefreeagency.com/current && php artisan scout:import "App\User" |
| 113 | + </td> |
| 114 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 115 | + 3 hours ago |
| 116 | + </td> |
| 117 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 118 | + 30s |
| 119 | + </td> |
| 120 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 121 | + Finished |
| 122 | + </td> |
| 123 | + <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0"> |
| 124 | + <a |
| 125 | + href="#" |
| 126 | + class="text-indigo-600 hover:text-indigo-900" |
| 127 | + >Edit<span class="sr-only">, Lindsay Walton</span></a> |
| 128 | + </td> |
| 129 | + </tr> |
| 130 | + <tr> |
| 131 | + <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0"> |
| 132 | + Chris Breuer |
| 133 | + </td> |
| 134 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 135 | + cd /home/forge/carefreeagency.com/current && php artisan scout:import "App\User" |
| 136 | + </td> |
| 137 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 138 | + 3 hours ago |
| 139 | + </td> |
| 140 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 141 | + 30s |
| 142 | + </td> |
| 143 | + <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> |
| 144 | + Finished |
| 145 | + </td> |
| 146 | + <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0"> |
| 147 | + <a |
| 148 | + href="#" |
| 149 | + class="text-indigo-600 hover:text-indigo-900" |
| 150 | + >Edit<span class="sr-only">, Lindsay Walton</span></a> |
| 151 | + </td> |
| 152 | + </tr> |
| 153 | + </tbody> |
| 154 | + </table> |
| 155 | + </div> |
| 156 | + </div> |
| 157 | + </div> |
| 158 | + </div> |
| 159 | + </div> |
| 160 | +</template> |
0 commit comments