v7.0.0-beta.1 release

This commit is contained in:
HeuJung committed 2026-04-01 10:30:52 +09:00
commit 6595fd0eb5
3967 files changed
+1875383

No files matched your search

+81
View File
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<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">
<!-- Fallback UI 스타일 -->
@if(empty($activeAdminTemplate))
@include('partials.error-fallback-styles')
@endif
<!-- 템플릿 컴포넌트 스타일 -->
@if(!empty($activeAdminTemplate))
<link rel="stylesheet" href="/api/templates/assets/{{ $activeAdminTemplate }}/css/components.css?v={{ time() }}">
@endif
</head>
<body>
<!-- React 렌더링 루트 -->
<div id="app" data-template-id="{{ $activeAdminTemplate ?? '' }}">
<!-- Progressive Enhancement: 템플릿 없음 Fallback UI -->
@if(empty($activeAdminTemplate))
@include('partials.error-fallback-ui')
@endif
</div>
@if(!empty($activeAdminTemplate))
<!-- G7 설정 전역 변수 -->
<script>
window.G7Config = {
settings: @json($frontendSettings ?? []),
plugins: @json($pluginSettings ?? []),
modules: @json($moduleSettings ?? []),
moduleAssets: @json($moduleAssets ?? []),
pluginAssets: @json($pluginAssets ?? []),
appConfig: @json($appConfig ?? [])
};
@if(isset($errorCode) && isset($errorLayout))
// 에러 상태 정보 (503 의존성 미충족 등)
window.G7Error = {
code: {{ $errorCode }},
layout: '{{ $errorLayout }}',
data: @json($unmetDependencies ?? [])
};
@endif
</script>
<!-- 코어 렌더링 엔진 -->
<script src="{{ asset('build/core/template-engine.min.js') }}?v={{ filemtime(public_path('build/core/template-engine.min.js')) }}"></script>
<!-- 템플릿 컴포넌트 번들 (IIFE) -->
<script src="/api/templates/assets/{{ $activeAdminTemplate }}/js/components.iife.js?v={{ time() }}"></script>
<!-- 템플릿 엔진 초기화 (TemplateApp 사용) -->
<script>
// TemplateApp을 통한 초기화 (DOMContentLoaded 이벤트에서 자동으로 초기화됨)
if (window.G7Core && window.G7Core.initTemplateApp) {
window.G7Core.initTemplateApp({
templateId: '{{ $activeAdminTemplate }}',
templateType: 'admin',
locale: '{{ app()->getLocale() }}',
debug: {{ config('app.debug') ? 'true' : 'false' }}@if(config('broadcasting.connections.reverb.key')),
websocket: {
appKey: '{{ config('broadcasting.connections.reverb.key') }}',
host: '{{ config('broadcasting.connections.reverb.options.host', 'localhost') }}',
port: {{ config('broadcasting.connections.reverb.options.port', 80) }},
scheme: '{{ config('broadcasting.connections.reverb.options.scheme', 'https') }}'
}@endif
});
} else {
console.error('[Admin] G7Core.initTemplateApp is not available');
}
</script>
@endif
</body>
</html>
+85
View File
@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<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">
<!-- Fallback UI 스타일 -->
@if(empty($activeUserTemplate))
@include('partials.error-fallback-styles')
@endif
<!-- 템플릿 컴포넌트 스타일 -->
@if(!empty($activeUserTemplate))
<link rel="stylesheet" href="/api/templates/assets/{{ $activeUserTemplate }}/css/components.css?v={{ time() }}">
@endif
</head>
<body class="font-sans antialiased">
<!-- React 렌더링 루트 -->
<div id="app" data-template-id="{{ $activeUserTemplate ?? '' }}">
<!-- Progressive Enhancement: 템플릿 없음 Fallback UI -->
@if(empty($activeUserTemplate))
@include('partials.error-fallback-ui')
@endif
</div>
@if(!empty($activeUserTemplate))
<!-- G7 설정 전역 변수 -->
<script>
window.G7Config = {
settings: @json($frontendSettings ?? []),
plugins: @json($pluginSettings ?? []),
modules: @json($moduleSettings ?? []),
moduleAssets: @json($moduleAssets ?? []),
pluginAssets: @json($pluginAssets ?? []),
appConfig: @json($appConfig ?? [])
};
@if(isset($errorCode) && isset($errorLayout))
// 에러 상태 정보 (503 의존성 미충족 등)
window.G7Error = {
code: {{ $errorCode }},
layout: '{{ $errorLayout }}',
data: @json($unmetDependencies ?? [])
};
@endif
</script>
<!-- 코어 렌더링 엔진 -->
<script src="{{ asset('build/core/template-engine.min.js') }}?v={{ filemtime(public_path('build/core/template-engine.min.js')) }}"></script>
<!-- 템플릿 컴포넌트 번들 (IIFE) -->
<script src="/api/templates/assets/{{ $activeUserTemplate }}/js/components.iife.js?v={{ time() }}"></script>
<!-- 템플릿 엔진 초기화 (TemplateApp 사용) -->
<script>
// TemplateApp을 통한 초기화 (DOMContentLoaded 이벤트에서 자동으로 초기화됨)
if (window.G7Core && window.G7Core.initTemplateApp) {
window.G7Core.initTemplateApp({
templateId: '{{ $activeUserTemplate }}',
templateType: 'user',
locale: '{{ app()->getLocale() }}',
debug: {{ config('app.debug') ? 'true' : 'false' }}@if(config('broadcasting.connections.reverb.key')),
websocket: {
appKey: '{{ config('broadcasting.connections.reverb.key') }}',
host: '{{ config('broadcasting.connections.reverb.options.host', 'localhost') }}',
port: {{ config('broadcasting.connections.reverb.options.port', 80) }},
scheme: '{{ config('broadcasting.connections.reverb.options.scheme', 'https') }}'
}@endif
});
} else {
console.error('[User] G7Core.initTemplateApp is not available');
}
</script>
@endif
</body>
</html>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #2d3748;
background-color: #f7fafc;
}
.email-wrapper {
max-width: 600px;
margin: 0 auto;
padding: 32px 24px;
background-color: #ffffff;
}
h1 { font-size: 24px; font-weight: 700; margin: 0 0 16px; color: #1a202c; }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: #1a202c; }
p { margin: 0 0 16px; }
a { color: #3182ce; }
</style>
</head>
<body>
<div class="email-wrapper">
{!! $body !!}
</div>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
@php
$homeUrl = str_starts_with(request()->path(), 'admin') ? '/admin' : '/';
@endphp
@extends('errors.layout')
@section('code', '401')
@section('title', __('errors.401.title'))
@section('message', __('errors.401.message'))
+9
View File
@@ -0,0 +1,9 @@
@php
$homeUrl = str_starts_with(request()->path(), 'admin') ? '/admin' : '/';
@endphp
@extends('errors.layout')
@section('code', '403')
@section('title', __('errors.403.title'))
@section('message', __('errors.403.message'))
+9
View File
@@ -0,0 +1,9 @@
@php
$homeUrl = str_starts_with(request()->path(), 'admin') ? '/admin' : '/';
@endphp
@extends('errors.layout')
@section('code', '404')
@section('title', __('errors.404.title'))
@section('message', __('errors.404.message'))
+9
View File
@@ -0,0 +1,9 @@
@php
$homeUrl = str_starts_with(request()->path(), 'admin') ? '/admin' : '/';
@endphp
@extends('errors.layout')
@section('code', '500')
@section('title', __('errors.500.title'))
@section('message', __('errors.500.message'))
+9
View File
@@ -0,0 +1,9 @@
@php
$homeUrl = str_starts_with(request()->path(), 'admin') ? '/admin' : '/';
@endphp
@extends('errors.layout')
@section('code', '503')
@section('title', __('errors.503.title'))
@section('message', __('errors.503.message'))
+57
View File
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('code') | {{ config('app.name', '그누보드7') }}</title>
@include('partials.error-fallback-styles')
<style>
.error-code {
font-size: 5rem;
font-weight: 800;
color: #3b82f6;
line-height: 1;
margin-bottom: 0.5rem;
}
.error-btn {
display: inline-block;
padding: 0.75rem 1.5rem;
background-color: #3b82f6;
color: #ffffff;
font-weight: 500;
border-radius: 0.5rem;
text-decoration: none;
transition: background-color 0.2s;
}
.error-btn:hover {
background-color: #2563eb;
}
@media (prefers-color-scheme: dark) {
.error-code {
color: #60a5fa;
}
.error-btn {
background-color: #3b82f6;
}
.error-btn:hover {
background-color: #2563eb;
}
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-card">
<div class="error-code">@yield('code')</div>
<h1 class="error-title">@yield('title')</h1>
<p class="error-message">@yield('message')</p>
@hasSection('extra')
@yield('extra')
@endif
<a href="{{ $homeUrl ?? '/' }}" class="error-btn">
{{ __('errors.back_home') }}
</a>
</div>
</div>
</body>
</html>
+105
View File
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name', '그누보드7') }} - {{ __('maintenance.title') }}</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.maintenance-container {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #f9fafb;
padding: 1rem;
}
.maintenance-card {
max-width: 32rem;
width: 100%;
background-color: #ffffff;
border-radius: 0.75rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
padding: 3rem 2rem;
text-align: center;
}
.maintenance-icon {
margin-bottom: 1.5rem;
}
.maintenance-icon svg {
width: 5rem;
height: 5rem;
color: #3b82f6;
animation: spin 3s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.maintenance-title {
font-size: 1.75rem;
font-weight: 700;
color: #111827;
margin-bottom: 0.75rem;
}
.maintenance-message {
font-size: 1.05rem;
color: #4b5563;
margin-bottom: 0.5rem;
line-height: 1.625;
}
.maintenance-description {
font-size: 0.875rem;
color: #6b7280;
line-height: 1.625;
}
@media (prefers-color-scheme: dark) {
.maintenance-container {
background-color: #111827;
}
.maintenance-card {
background-color: #1f2937;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}
.maintenance-icon svg {
color: #60a5fa;
}
.maintenance-title {
color: #ffffff;
}
.maintenance-message {
color: #9ca3af;
}
.maintenance-description {
color: #6b7280;
}
}
</style>
</head>
<body>
<div class="maintenance-container">
<div class="maintenance-card">
{{-- Gear icon (inline SVG - no external dependency) --}}
<div class="maintenance-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />
</svg>
</div>
<h1 class="maintenance-title">{{ __('maintenance.title') }}</h1>
<p class="maintenance-message">{{ __('maintenance.message') }}</p>
<p class="maintenance-description">{{ __('maintenance.description') }}</p>
</div>
</div>
</body>
</html>
@@ -0,0 +1,61 @@
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.error-container {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #f9fafb;
padding: 1rem;
}
.error-card {
max-width: 28rem;
width: 100%;
background-color: #ffffff;
border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
padding: 2rem;
text-align: center;
}
.error-icon {
margin-bottom: 1.5rem;
}
.error-icon i {
font-size: 4rem;
color: #ef4444;
}
.error-title {
font-size: 1.5rem;
font-weight: 700;
color: #111827;
margin-bottom: 1rem;
}
.error-message {
color: #4b5563;
margin-bottom: 1.5rem;
line-height: 1.625;
}
@media (prefers-color-scheme: dark) {
.error-container {
background-color: #111827;
}
.error-card {
background-color: #1f2937;
}
.error-title {
color: #ffffff;
}
.error-message {
color: #d1d5db;
}
}
</style>
@@ -0,0 +1,18 @@
<div class="error-container">
<div class="error-card">
<!-- 아이콘 -->
<div class="error-icon">
<i class="fa-solid fa-paint-brush"></i>
</div>
<!-- 제목 -->
<h1 class="error-title">
{{ __('templates.errors.no_active_template') }}
</h1>
<!-- 안내 메시지 -->
<p class="error-message">
{{ __('templates.errors.contact_admin_for_template') }}
</p>
</div>
</div>
+56
View File
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="{{ $locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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 !!}
{{-- CSS --}}
<link rel="stylesheet" href="{{ $cssPath }}">
@foreach($stylesheets as $stylesheet)
<link rel="stylesheet" href="{{ $stylesheet }}">
@endforeach
{{-- 구조화된 데이터 (JSON-LD) --}}
@if($jsonLd)
<script type="application/ld+json">{!! $jsonLd !!}</script>
@endif
{{-- 코어 설정: Google Analytics --}}
@if($googleAnalyticsId)
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $googleAnalyticsId }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ $googleAnalyticsId }}');
</script>
@endif
{{-- 확장 슬롯: 커스텀 메타 태그, 스크립트, 스타일 (core.seo.filter_view_data 훅으로 주입) --}}
{!! $extraHeadTags ?? '' !!}
</head>
<body>
<div id="app">{!! $bodyHtml !!}</div>
{{-- 확장 슬롯: 추적 스크립트, 위젯 (core.seo.filter_view_data 훅으로 주입) --}}
{!! $extraBodyEnd ?? '' !!}
</body>
</html>