mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
fix docker
This commit is contained in:
@ -35,7 +35,7 @@ RUN npm install --force
|
||||
RUN npm run build
|
||||
RUN composer install --no-dev
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache \
|
||||
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
# webserver
|
||||
RUN rm /etc/nginx/sites-available/default
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Head, usePage } from '@inertiajs/react';
|
||||
import { Head, Link, usePage } from '@inertiajs/react';
|
||||
import { Server } from '@/types/server';
|
||||
import Container from '@/components/container';
|
||||
import HeaderContainer from '@/components/header-container';
|
||||
@ -6,7 +6,7 @@ import Heading from '@/components/heading';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import ServerLayout from '@/layouts/server/layout';
|
||||
import { BookOpenIcon, MoreVerticalIcon } from 'lucide-react';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardRow, CardTitle } from '@/components/ui/card';
|
||||
import React from 'react';
|
||||
import { Site, SiteFeature } from '@/types/site';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
@ -47,7 +47,8 @@ export default function SiteFeatures() {
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{Object.entries(page.props.features).map(([key, feature], index) => (
|
||||
{Object.entries(page.props.features).length > 0 ? (
|
||||
Object.entries(page.props.features).map(([key, feature], index) => (
|
||||
<div key={`feature-${key}`}>
|
||||
<div className="flex items-center justify-between p-4">
|
||||
<div className="space-y-1">
|
||||
@ -72,9 +73,17 @@ export default function SiteFeatures() {
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
</div>
|
||||
{index < Object.keys(page.props.features).length - 1 && <Separator />}
|
||||
{index < Object.entries(page.props.features).length - 1 && <Separator />}
|
||||
</div>
|
||||
))}
|
||||
))
|
||||
) : (
|
||||
<CardRow className="flex-col items-center justify-center space-y-2">
|
||||
<span className="text-muted-foreground">No available features</span>
|
||||
<Link href={route('plugins')} prefetch>
|
||||
<Button variant="outline">Explore Plugins</Button>
|
||||
</Link>
|
||||
</CardRow>
|
||||
)}
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Container>
|
||||
|
Reference in New Issue
Block a user