初始化

This commit is contained in:
2026-08-08 18:27:38 +08:00
parent efc150c937
commit 060eb79c09
336 changed files with 24613 additions and 15 deletions
@@ -0,0 +1,82 @@
<?php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); ?>
<?php $__env->startSection('title', $article->seoTitle() . ' - ' . $siteName); ?>
<?php $__env->startSection('description', $article->seoDescription()); ?>
<?php $__env->startSection('content'); ?>
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
<div class="mx-auto max-w-3xl">
<nav class="mb-6 flex items-center gap-1.5 text-sm text-muted">
<a href="<?php echo e(url('/')); ?>" class="hover:text-primary">首页</a>
<span>/</span>
<a href="<?php echo e(route('articles.index')); ?>" class="hover:text-primary">技术文章</a>
<span>/</span>
<span class="text-fg"><?php echo e($article->title); ?></span>
</nav>
<?php if($article->template === 'feature' && $article->cover): ?>
<div class="mb-6 overflow-hidden rounded-lg border border-line">
<img src="<?php echo e($article->cover); ?>" alt="<?php echo e($article->title); ?>" class="max-h-96 w-full object-cover">
</div>
<?php endif; ?>
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($article->title); ?></h1>
<p class="mt-3 text-sm text-muted">
<?php echo e($article->published_at?->format('Y-m-d')); ?> · <?php echo e($article->author ?: '云创芯'); ?>
<?php if($article->template === 'tech'): ?> <span class="ml-2 rounded bg-primary-soft px-2 py-0.5 text-xs font-medium text-primary">技术文档</span> <?php endif; ?>
<?php if($article->template === 'feature'): ?> <span class="ml-2 rounded bg-primary-soft px-2 py-0.5 text-xs font-medium text-primary">专题报道</span> <?php endif; ?>
</p>
<?php if($article->category): ?>
<p class="mt-2 text-sm text-muted">分类:<?php echo e($article->category->name); ?></p>
<?php endif; ?>
<?php if($article->template === 'feature' && $article->summary): ?>
<p class="lead mt-5 text-base text-muted"><?php echo e($article->summary); ?></p>
<?php elseif($article->summary): ?>
<p class="mt-5 text-base text-muted"><?php echo e($article->summary); ?></p>
<?php endif; ?>
<?php if($article->body): ?>
<div class="prose mt-6 text-fg">
<?php if(preg_match('/<[a-z][a-z0-9]*[\s>]/i', $article->body)): ?>
<?php echo $article->body; ?>
<?php else: ?>
<?php echo nl2br(e($article->body)); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</article>
<div class="mt-6">
<a href="<?php echo e(route('articles.index')); ?>" class="inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:text-primary-hover">
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'arrow','size' => 16,'class' => 'rotate-180']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'arrow','size' => 16,'class' => 'rotate-180']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?> 返回文章列表
</a>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/articles/show.blade.php ENDPATH**/ ?>