Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"laravel/framework": "^12.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.8",
"livewire/livewire": "^3.1",
"livewire/livewire": "^4.0",
"maatwebsite/excel": "^3.1",
"morilog/jalali": "3.*",
"pion/laravel-chunk-upload": "^1.5",
"pishran/zarinpal": "^4.3",
"predis/predis": "^2.2",
"sadegh19b/laravel-persian-validation": "^1.4",
"spatie/laravel-permission": "^6.24",
"spatie/laravel-sitemap": "^7.0",
"staudenmeir/eloquent-has-many-deep": "^1.7",
"ybazli/faker": "^1.0"
Expand Down
97 changes: 90 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

'allowed_methods' => ['*'],

'allowed_origins' => ['*'],
'allowed_origins' => [
'https://3d.irpsc.com',
],

'allowed_origins_patterns' => [],

Expand Down
79 changes: 74 additions & 5 deletions config/livewire.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,96 @@

/*
|---------------------------------------------------------------------------
| Layout
| Component Layout
|---------------------------------------------------------------------------
| The view that will be used as the layout when rendering a single component
| as an entire page via `Route::get('/post/create', CreatePost::class);`.
| as an entire page via `Route::livewire('/post/create', CreatePost::class);`.
| In this case, the view returned by CreatePost will render into $slot.
|
*/

'layout' => 'components.layouts.app',
'component_layout' => 'components.layouts.app',

/*
|---------------------------------------------------------------------------
| Lazy Loading Placeholder
| Component Placeholder
|---------------------------------------------------------------------------
| Livewire allows you to lazy load components that would otherwise slow down
| the initial page load. Every component can have a custom placeholder or
| you can define the default placeholder view for all components below.
|
*/

'lazy_placeholder' => null,
'component_placeholder' => null,

/*
|---------------------------------------------------------------------------
| Component Locations
|---------------------------------------------------------------------------
| Defines where Livewire looks for single-file and multi-file (view-based)
| components. This allows you to organize your components in different
| directories while maintaining Livewire's auto-discovery features.
|
*/

'component_locations' => [
resource_path('views/components'),
resource_path('views/livewire'),
],

/*
|---------------------------------------------------------------------------
| Component Namespaces
|---------------------------------------------------------------------------
| Creates custom namespaces for organizing view-based components.
| For example, 'layouts' => resource_path('views/layouts') allows you to
| use <livewire:layouts::app /> for views/layouts/app.blade.php.
|
*/

'component_namespaces' => [
'layouts' => resource_path('views/layouts'),
'pages' => resource_path('views/pages'),
],

/*
|---------------------------------------------------------------------------
| Make Command Defaults
|---------------------------------------------------------------------------
| Configure default component format and emoji usage when generating
| new components with php artisan make:livewire command.
| Options: 'sfc' (single-file), 'mfc' (multi-file), or 'class'.
|
*/

'make_command' => [
'type' => 'class', // Using 'class' to match v3 behavior
'emoji' => false, // Set to false to avoid emoji prefixes
],

/*
|---------------------------------------------------------------------------
| Smart wire:key Behavior
|---------------------------------------------------------------------------
| Helps prevent wire:key issues on deeply nested components. When enabled,
| Livewire automatically generates smarter keys for nested components.
| Note: You still need to add wire:key manually in loops.
|
*/

'smart_wire_keys' => true,

/*
|---------------------------------------------------------------------------
| CSP-Safe Mode
|---------------------------------------------------------------------------
| Enable Content Security Policy mode to avoid unsafe-eval violations.
| When enabled, Livewire uses the Alpine CSP build. Note: This mode
| restricts complex JavaScript expressions in directives.
|
*/

'csp_safe' => false,

/*
|---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{{ $message }}
</div>
</div>
</main>
</main>
21 changes: 9 additions & 12 deletions resources/views/components/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
<meta property="og:url" content="{{ url()->current() }}">
<meta property="og:site_name" content="سه بعدی متا">
<meta property="og:locale" content="fa_IR">

@if (View::getSection('extera-schema'))
@yield('extera-schema')
@endif
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
"@@context": "https://schema.org",
"@@graph": [
{
"@type": "Organization",
"@@type": "Organization",
"name": "سه بعدی متا",
"alternateName": "3D Meta",
"url": "{{ url()->current() }}",
Expand All @@ -38,7 +38,7 @@
"telephone": "09127855049",
"inLanguage": "fa",
"address": {
"@type": "PostalAddress",
"@@type": "PostalAddress",
"addressCountry": "ایران",
"addressLocality": "قزوین",
"addressRegion": "استان قزوین",
Expand All @@ -52,7 +52,7 @@
]
},
{
"@type": "WebSite",
"@@type": "WebSite",
"name": "@yield('title', 'سه بعدی متا | ' . ($title ?? config('app.name')))",
"alternateName": "3D Meta",
"url": "{{ url()->current() }}",
Expand All @@ -62,21 +62,21 @@
"keywords": "@yield('keywords', '3d,3dmeta,3drgb,سبعدی,سه بعدی,محصولات سه بعدی,فایل سه بعدی,خرید فایل سبعدی,icon,آیکون,آیکون سه بعدی,خرید آیکون سه بعدی,انیمیشن')",
"inLanguage": "fa",
"potentialAction": {
"@type": "SearchAction",
"@@type": "SearchAction",
"target": "{{ url()->current() }}?q={search_term_string}",
"query-input": "required name=search_term_string"
}
},
{
"@type": "Store",
"@@type": "Store",
"name": "سه بعدی متا",
"alternateName": "3D Meta",
"url": "{{ url()->current() }}",
"image": "@yield('og:image', asset('home-page/images/3d.png'))",
"logo": "{{ asset('home-page/images/3d.png') }}",
"description": "@yield('description', 'سامانه سه‌بعدی متا با تعرفه‌ای ثابت مرکز عرضه جدیدترین مدل سه‌بعدی، آیکون، انیمیشن و دیگر فایل‌های طراحی می‌باشد.')",
"address": {
"@type": "PostalAddress",
"@@type": "PostalAddress",
"addressCountry": "ایران",
"addressLocality": "قزوین",
"addressRegion": "استان قزوین",
Expand Down Expand Up @@ -844,9 +844,6 @@ class="disable-dark-mode2 hidden bg-[#FCFCFC] dark:bg-transparent dark:flex ju
<!-- end nav -->
<div class="w-full main-content-smallNav ">
{{ $slot }}



<footer class="px-5 lg:px-9 3xl:px-0 w-full max-w-[1500px] mx-auto mt-32">
<div
class="flex-wrap flex justify-between items-ctener gap-1 md:gap-2 mx-auto w-full bg-white dark:bg-[#1A1A18] p-3 mb-10 rounded-2xl">
Expand Down
14 changes: 7 additions & 7 deletions resources/views/livewire/about-us.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
@section('extera-schema')
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AboutPage",
"@@context": "https://schema.org",
"@@type": "AboutPage",
"name": "About Us - سه بعدی متا فروشگاه",
"url": "{{ url()->current() }}",
"mainEntity": {
"@type": "Organization",
"@@type": "Organization",
"name": "سه بعدی متا فروشگاه",
"url": "{{ url('/') }}",
"logo": "{{ asset('home-page/images/3d.png') }}",
Expand All @@ -23,20 +23,20 @@
"https://pin.it/7C5mYf6Q6"
],
"contactPoint": {
"@type": "ContactPoint",
"@@type": "ContactPoint",
"telephone": "+989127855049",
"contactType": "Customer Service",
"areaServed": "IR",
"availableLanguage": "Persian"
},
"description": "سه بعدی متا فروشگاه پیشرو در زمینه چاپ سه بعدی است که خدمات حرفه‌ای و محصولات با کیفیت بالا ارائه می‌دهد.",
"parentOrganization": {
"@type": "Organization",
"@@type": "Organization",
"name": "هولدینگ زنجیره تامین بهشت"
},
"foundingDate": "2020",
"address": {
"@type": "PostalAddress",
"@@type": "PostalAddress",
"addressCountry": "Iran",
"addressLocality": "Qazvin",
"addressRegion": "Qazvin Province",
Expand All @@ -45,7 +45,7 @@
}
}
</script>

@endsection

<div>
Expand Down
Loading
Loading