v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

+19 -5
View File
@@ -8,8 +8,8 @@
<title>{{ config('app.name', '그누보드7') }} - Admin</title>
<!-- Font Awesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- 템플릿 외부 리소스 (template.json의 externals) -->
@include('partials.template-externals-head')
<!-- Fallback UI 스타일 -->
@if(empty($activeAdminTemplate))
@@ -18,7 +18,7 @@
<!-- 템플릿 컴포넌트 스타일 -->
@if(!empty($activeAdminTemplate))
<link rel="stylesheet" href="/api/templates/assets/{{ $activeAdminTemplate }}/css/components.css?v={{ time() }}">
<link rel="stylesheet" href="/api/templates/assets/{{ $activeAdminTemplate }}/css/components.css?v={{ $extensionCacheVersion }}">
@endif
</head>
<body>
@@ -39,7 +39,15 @@
modules: @json($moduleSettings ?? []),
moduleAssets: @json($moduleAssets ?? []),
pluginAssets: @json($pluginAssets ?? []),
appConfig: @json($appConfig ?? [])
activeModules: @json($activeModulesMeta ?? []),
activePlugins: @json($activePluginsMeta ?? []),
appConfig: @json($appConfig ?? []),
// 확장(코어/모듈/플러그인) 캐시 버전 SSoT — install/activate/deactivate/update 시 bump.
// 클라이언트 fetch (`?v=`) 가 이 값을 동반해야 백엔드 `template.routes.{id}.v{N}`
// 키가 새 버전으로 전환되어 routes.json/lang 변경이 즉시 가시화된다.
// 미주입 시 클라이언트가 항상 `v0` 으로 호출 → `template:cache-clear` 가 v 와일드카드를
// 처리하지 못해 캐시가 영구 stale 되는 결함이 발생.
cache_version: {{ (int) ($extensionCacheVersion ?? 0) }}
};
@if(isset($errorCode) && isset($errorLayout))
// 에러 상태 정보 (503 의존성 미충족 등)
@@ -51,11 +59,15 @@
@endif
</script>
@include('partials.template-externals-scripts', ['position' => 'before-core'])
<!-- 코어 렌더링 엔진 -->
<script src="{{ asset('build/core/template-engine.min.js') }}?v={{ filemtime(public_path('build/core/template-engine.min.js')) }}"></script>
@include('partials.template-externals-scripts', ['position' => 'before-template'])
<!-- 템플릿 컴포넌트 번들 (IIFE) -->
<script src="/api/templates/assets/{{ $activeAdminTemplate }}/js/components.iife.js?v={{ time() }}"></script>
<script src="/api/templates/assets/{{ $activeAdminTemplate }}/js/components.iife.js?v={{ $extensionCacheVersion }}"></script>
<!-- 템플릿 엔진 초기화 (TemplateApp 사용) -->
<script>
@@ -77,6 +89,8 @@
console.error('[Admin] G7Core.initTemplateApp is not available');
}
</script>
@include('partials.template-externals-scripts', ['position' => 'body-end'])
@endif
</body>
</html>
+17 -10
View File
@@ -8,12 +8,8 @@
<title>{{ config('app.name', '그누보드7') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=inter:400,500,600,700&display=swap" rel="stylesheet" />
<!-- Font Awesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- 템플릿 외부 리소스 (template.json의 externals) -->
@include('partials.template-externals-head')
<!-- Fallback UI 스타일 -->
@if(empty($activeUserTemplate))
@@ -22,10 +18,10 @@
<!-- 템플릿 컴포넌트 스타일 -->
@if(!empty($activeUserTemplate))
<link rel="stylesheet" href="/api/templates/assets/{{ $activeUserTemplate }}/css/components.css?v={{ time() }}">
<link rel="stylesheet" href="/api/templates/assets/{{ $activeUserTemplate }}/css/components.css?v={{ $extensionCacheVersion }}">
@endif
</head>
<body class="font-sans antialiased">
<body>
<!-- React 렌더링 루트 -->
<div id="app" data-template-id="{{ $activeUserTemplate ?? '' }}">
<!-- Progressive Enhancement: 템플릿 없음 Fallback UI -->
@@ -43,7 +39,12 @@
modules: @json($moduleSettings ?? []),
moduleAssets: @json($moduleAssets ?? []),
pluginAssets: @json($pluginAssets ?? []),
appConfig: @json($appConfig ?? [])
activeModules: @json($activeModulesMeta ?? []),
activePlugins: @json($activePluginsMeta ?? []),
appConfig: @json($appConfig ?? []),
// 확장 캐시 버전 SSoT — 클라이언트 fetch (`?v=`) 동반 필수.
// 자세한 설명은 admin.blade.php 참조.
cache_version: {{ (int) ($extensionCacheVersion ?? 0) }}
};
@if(isset($errorCode) && isset($errorLayout))
// 에러 상태 정보 (503 의존성 미충족 등)
@@ -55,11 +56,15 @@
@endif
</script>
@include('partials.template-externals-scripts', ['position' => 'before-core'])
<!-- 코어 렌더링 엔진 -->
<script src="{{ asset('build/core/template-engine.min.js') }}?v={{ filemtime(public_path('build/core/template-engine.min.js')) }}"></script>
@include('partials.template-externals-scripts', ['position' => 'before-template'])
<!-- 템플릿 컴포넌트 번들 (IIFE) -->
<script src="/api/templates/assets/{{ $activeUserTemplate }}/js/components.iife.js?v={{ time() }}"></script>
<script src="/api/templates/assets/{{ $activeUserTemplate }}/js/components.iife.js?v={{ $extensionCacheVersion }}"></script>
<!-- 템플릿 엔진 초기화 (TemplateApp 사용) -->
<script>
@@ -81,6 +86,8 @@
console.error('[User] G7Core.initTemplateApp is not available');
}
</script>
@include('partials.template-externals-scripts', ['position' => 'body-end'])
@endif
</body>
</html>
@@ -0,0 +1,15 @@
@php
$templateExternals = $templateExternals ?? [];
$resourceHints = \App\Support\TemplateExternals::resourceHints($templateExternals);
$headLinks = \App\Support\TemplateExternals::headLinks($templateExternals);
$headScripts = \App\Support\TemplateExternals::scriptsForPosition($templateExternals, 'head');
@endphp
@foreach($resourceHints as $external)
<link{!! \App\Support\TemplateExternals::renderAttributes(\App\Support\TemplateExternals::linkAttributes($external)) !!}>
@endforeach
@foreach($headLinks as $external)
<link{!! \App\Support\TemplateExternals::renderAttributes(\App\Support\TemplateExternals::linkAttributes($external)) !!}>
@endforeach
@foreach($headScripts as $external)
<script{!! \App\Support\TemplateExternals::renderAttributes(\App\Support\TemplateExternals::scriptAttributes($external)) !!}></script>
@endforeach
@@ -0,0 +1,8 @@
@php
$templateExternals = $templateExternals ?? [];
$position = $position ?? 'before-template';
$scripts = \App\Support\TemplateExternals::scriptsForPosition($templateExternals, $position);
@endphp
@foreach($scripts as $external)
<script{!! \App\Support\TemplateExternals::renderAttributes(\App\Support\TemplateExternals::scriptAttributes($external)) !!}></script>
@endforeach
+47
View File
@@ -0,0 +1,47 @@
{{--
seo-preview.blade.php — 편집기 봇 미리보기 전용.
검색엔진 탭·레이아웃·모듈/코어 SEO 환경설정이 "설정/정의한 것의 산출물" 만 렌더한다.
운영 seo.blade.php 와 달리 다음은 SEO 설정 산출물이 아니므로 미포함:
- body 컴포넌트 마크업($bodyHtml) — 페이지 본문(검색엔진 탭과 무관)
- CSS($cssPath/$stylesheets) — 에셋
- 시스템 기본 메타(charset/viewport/generatorTag) — SEO 설정과 무관
- Google Analytics 스크립트 — 추적(검색 노출 산출물 아님)
- extraHeadTags/extraBodyEnd — 훅 주입 비-SEO 슬롯
포함하는 SEO 산출물:
- title/titleSuffix(검색 제목), description/keywords(검색 설명)
- canonical/hreflang(렌더러 자동 — alternate)
- og:locale + ogTags(소셜 공유), twitterTags(트위터 카드)
- 사이트 소유권 확인 메타(google/naver-site-verification — 검색엔진 SEO 설정)
- JSON-LD 구조화 데이터
--}}
<head>
<title>{{ $title }}{{ $titleSuffix }}</title>
<meta name="description" content="{{ $description }}">
@if($keywords)
<meta name="keywords" content="{{ $keywords }}">
@endif
<link rel="canonical" href="{{ $canonicalUrl }}">
{!! $hreflangTags !!}
<meta property="og:locale" content="{{ $locale }}">
{{-- 코어 설정: 사이트 소유권 확인 --}}
@if($googleVerification)
<meta name="google-site-verification" content="{{ $googleVerification }}">
@endif
@if($naverVerification)
<meta name="naver-site-verification" content="{{ $naverVerification }}">
@endif
{{-- Open Graph --}}
{!! $ogTags !!}
{{-- Twitter Card --}}
{!! $twitterTags ?? '' !!}
{{-- 구조화된 데이터 (JSON-LD) --}}
@if($jsonLd)
<script type="application/ld+json">{!! $jsonLd !!}</script>
@endif
</head>