mirror of
https://github.com/crivion/laranode.git
synced 2026-09-03 06:24:09 +08:00
website: inline globe and fix document root
This commit is contained in:
@@ -7,6 +7,9 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Website extends Model
|
||||
{
|
||||
|
||||
protected $appends = ['fullDocumentRoot'];
|
||||
|
||||
protected $casts = [
|
||||
'ssl_enabled' => 'boolean',
|
||||
'ssl_expires_at' => 'datetime',
|
||||
|
||||
@@ -90,8 +90,8 @@ export default function Websites({ websites, serverIp }) {
|
||||
{websites?.map((website, index) => (
|
||||
<tr key={`website-${index}`} className="bg-white border-b text-gray-700 dark:text-gray-200 dark:bg-gray-850 dark:border-gray-700 border-gray-200">
|
||||
<td className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
|
||||
<Link href={`https://${website.url}`} target="_blank">
|
||||
<TbWorldWww className='w-4 h-4' /> {website.url}
|
||||
<Link href={`https://${website.url}`} target="_blank" className='hover:underline text-blue-600 dark:text-blue-400'>
|
||||
<TbWorldWww className='w-4 h-4 inline-flex mr-1' /> {website.url}
|
||||
</Link>
|
||||
</td>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user