first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
return [
'variables' => [
'site-accent-color',
'site-primary-color-100',
'site-primary-color-200',
'site-bg-color-100',
'site-bg-color-200',
'--be-flat-button',
'site-bg-color-400',
'site-text-color-100',
'site-text-color-200',
'site-text-color-300',
'site-text-color-400',
'site-border-color-100',
'site-border-color-200',
]
];

View File

@@ -0,0 +1,78 @@
<?php
return [
// dates
['name' => 'dates.format', 'value' => 'short'],
['name' => 'dates.locale', 'value' => 'en_US'],
['name' => 'dates.default_timezone', 'value' => 'auto'],
['name' => 'locale.default', 'value' => 'auto'],
// social login
['name' => 'social.google.enable', 'value' => true],
['name' => 'social.twitter.enable', 'value' => true],
['name' => 'social.facebook.enable', 'value' => true],
['name' => 'social.compact_buttons', 'value' => true],
// real time
['name' => 'realtime.enable', 'value' => false],
// temp
['name' => 'registration.disable', 'value' => false],
// cache
['name' => 'cache.report_minutes', 'value' => 60],
// logos
[
'name' => 'branding.logo_dark',
'value' => 'images/logo-dark.svg',
],
[
'name' => 'branding.logo_light',
'value' => 'images/logo-light.svg',
],
// translations
['name' => 'i18n.default_localization', 'value' => 'en'],
['name' => 'i18n.enable', 'value' => true],
// sentry
['name' => 'logging.sentry_public', 'value' => null],
// pusher
['name' => 'realtime.pusher_key', 'value' => null],
// menus
['name' => 'menus', 'value' => json_encode([])],
// homepage
['name' => 'homepage.type', 'value' => 'default'],
// themes
['name' => 'themes.user_change', 'value' => true],
['name' => 'themes.default_id', 'value' => 0],
// billing
['name' => 'billing.enable', 'value' => false],
['name' => 'billing.paypal_test_mode', 'value' => true],
['name' => 'billing.stripe_test_mode', 'value' => true],
['name' => 'billing.stripe.enable', 'value' => false],
['name' => 'billing.paypal.enable', 'value' => false],
[
'name' => 'billing.accepted_cards',
'value' => json_encode([
'visa',
'mastercard',
'american-express',
'discover',
]),
],
// uploading
['name' => 'uploads.chunk', 'value' => true],
['name' => 'uploads.chunk_size', 'value' => 5242880], // 5MB
// GDPR
['name' => 'cookie_notice.enable', 'value' => true],
['name' => 'cookie_notice.position', 'value' => 'bottom'],
];

View File

@@ -0,0 +1,124 @@
<?php
return [
// admin
['method' => 'POST', 'name' => 'settings'],
['method' => 'POST', 'name' => 'admin/appearance'],
['method' => 'PUT', 'name' => 'admin/appearance/seo-tags/{name}'],
['method' => 'POST', 'name' => 'cache/clear'],
['method' => 'POST', 'name' => 'artisan/call'],
['method' => 'POST', 'name' => 'admin/search/import'],
['method' => 'POST', 'name' => 'import-media/single-item'],
['method' => 'POST', 'name' => 'sitemap/generate'],
// logs
['method' => 'POST', 'name' => 'logs/schedule/rerun/{id}'],
['method' => 'DELETE', 'name' => 'logs/error/{identifier}'],
// css theme
['method' => 'POST', 'name' => 'css-theme'],
['method' => 'PUT', 'name' => 'css-theme/{css_theme}'],
['method' => 'DELETE', 'name' => 'css-theme/{css_theme}'],
// favicon
['method' => 'POST', 'name' => 'uploads/favicon'],
// localizations
['method' => 'DELETE', 'name' => 'localizations/{id}'],
['method' => 'PUT', 'name' => 'localizations/{langCode}'],
['method' => 'POST', 'name' => 'localizations'],
// custom pages
[
'method' => 'DELETE',
'name' => 'custom-pages/{custom_page}',
'origin' => 'admin',
],
[
'method' => 'PUT',
'name' => 'custom-pages/{custom_page}',
'origin' => 'admin',
],
// products/prices
['method' => 'POST', 'name' => 'billing/products'],
['method' => 'POST', 'name' => 'billing/products/sync'],
['method' => 'PUT', 'name' => 'billing/products/{product}'],
['method' => 'DELETE', 'name' => 'billing/products/{product}'],
// subscriptions
[
'method' => 'POST',
'origin' => 'admin',
'name' => 'billing/subscriptions',
],
[
'method' => 'PUT',
'origin' => 'admin',
'name' => 'billing/subscriptions/{id}',
],
[
'method' => 'DELETE',
'origin' => 'admin',
'name' => 'billing/subscriptions/{id}',
],
// users
['method' => 'PUT', 'name' => 'auth/user/password'],
['method' => 'PUT', 'origin' => 'admin', 'name' => 'users/{user}'],
['method' => 'POST', 'origin' => 'admin', 'name' => 'users'],
['method' => 'DELETE', 'name' => 'users/{ids}'],
['method' => 'POST', 'name' => 'user-sessions/logout-other'],
['method' => 'POST', 'name' => 'admin/users/impersonate/{user}'],
[
'method' => 'POST',
'name' => 'auth/user/confirmed-two-factor-authentication',
],
// bans
['method' => 'POST', 'name' => 'users/{user}/ban'],
['method' => 'DELETE', 'name' => 'users/{user}/unban'],
// tags
['method' => 'POST', 'origin' => 'admin', 'name' => 'tags'],
['method' => 'PUT', 'origin' => 'admin', 'name' => 'tags/{id}'],
['method' => 'DELETE', 'origin' => 'admin', 'name' => 'tags/{tagIds}'],
// roles
['method' => 'DELETE', 'name' => 'roles/{id}'],
['method' => 'PUT', 'name' => 'roles/{id}'],
['method' => 'POST', 'name' => 'roles'],
['method' => 'POST', 'name' => 'roles/{id}/add-users'],
['method' => 'POST', 'name' => 'roles/{id}/remove-users'],
// CUSTOM DOMAINS
[
'method' => 'DELETE',
'name' => 'custom-domain/{custom_domain}',
'origin' => 'admin',
],
[
'method' => 'PUT',
'name' => 'custom-domain/{custom_domain}',
'origin' => 'admin',
],
// contact
['method' => 'POST', 'name' => 'contact-page'],
// uploads
[
'method' => 'DELETE',
'name' => 'file-entries/{entryIds}',
'origin' => 'admin',
],
// comments
['method' => 'DELETE', 'name' => 'comment/{comment}'],
// admin
[
'method' => 'POST',
'name' => ' s3/cors/upload',
],
];

View File

@@ -0,0 +1,11 @@
<?php
use Common\Pages\LoadCustomPageMenuItems;
return [
[
'name' => 'Custom Page',
'type' => 'customPage',
'itemsLoader' => LoadCustomPageMenuItems::class,
],
];

View File

@@ -0,0 +1,12 @@
<?php
return [
[
'property' => 'og:site_name',
'content' => '{{site_name}}',
],
[
'name' => 'twitter:card',
'content' => 'summary',
],
];

View File

@@ -0,0 +1,101 @@
<?php
return [
'ftp' => [
'host' => env('STORAGE_FTP_HOST'),
'username' => env('STORAGE_FTP_USERNAME'),
'password' => env('STORAGE_FTP_PASSWORD'),
'port' => (int) env('STORAGE_FTP_PORT', 21),
'passive' => env('STORAGE_FTP_PASSIVE'),
'ssl' => env('STORAGE_FTP_SSL'),
],
'dropbox' => [
'app_key' => env('STORAGE_DROPBOX_APP_KEY'),
'app_secret' => env('STORAGE_DROPBOX_APP_SECRET'),
'refresh_token' => env('STORAGE_DROPBOX_REFRESH_TOKEN'),
'access_token' => env('STORAGE_DROPBOX_ACCESS_TOKEN'),
],
'backblaze_s3' => [
'key' => env('STORAGE_BACKBLAZE_KEY'),
'secret' => env('STORAGE_BACKBLAZE_SECRET'),
'bucket' => env('STORAGE_BACKBLAZE_BUCKET'),
'region' => env('STORAGE_BACKBLAZE_REGION'),
],
's3' => [
'key' => env('STORAGE_S3_KEY'),
'secret' => env('STORAGE_S3_SECRET'),
'region' => env('STORAGE_S3_REGION'),
'bucket' => env('STORAGE_S3_BUCKET'),
'endpoint' => env('STORAGE_S3_ENDPOINT'),
'use_path_style_endpoint' => env('STORAGE_S3_USE_PATH_STYLE_ENDPOINT', false),
],
'digitalocean_s3' => [
'key' => env('STORAGE_DIGITALOCEAN_KEY'),
'secret' => env('STORAGE_DIGITALOCEAN_SECRET'),
'region' => env('STORAGE_DIGITALOCEAN_REGION'),
'bucket' => env('STORAGE_DIGITALOCEAN_BUCKET'),
],
'rackspace' => [
'username' => env('STORAGE_RACKSPACE_USERNAME'),
'key' => env('STORAGE_RACKSPACE_KEY'),
'container' => env('STORAGE_RACKSPACE_CONTAINER'),
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
'region' => env('STORAGE_RACKSPACE_REGION', 'IAD'),
'url_type' => 'publicURL',
],
/**
* Billing credentials
*/
'paypal' => [
'client_id' => env('PAYPAL_CLIENT_ID'),
'secret' => env('PAYPAL_SECRET'),
'webhook_id' => env('PAYPAL_WEBHOOK_ID'),
'product_id' => env('PAYPAL_PRODUCT_ID'),
'product_name' => env('PAYPAL_PRODUCT_NAME'),
],
'stripe' => [
'model' => \App\Models\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
'webhook_secret' => env('STRIPE_WEBHOOK_SECRET'),
],
/**
* Socialite login credentials
*/
'google' => [
'client_id' => env('GOOGLE_ID'),
'client_secret' => env('GOOGLE_SECRET'),
'redirect' => env('APP_URL') . '/secure/auth/social/google/callback',
'analytics_property_id' => env('ANALYTICS_PROPERTY_ID'),
],
'twitter' => [
'client_id' => env('TWITTER_ID'),
'client_secret' => env('TWITTER_SECRET'),
'redirect' => env('APP_URL') . '/secure/auth/social/twitter/callback',
],
'facebook' => [
'client_id' => env('FACEBOOK_ID'),
'client_secret' => env('FACEBOOK_SECRET'),
'redirect' => env('APP_URL') . '/secure/auth/social/facebook/callback',
],
/**
* Other
*/
'slack' => [
'webhook_url' => env('SLACK_WEBHOOK_URL'),
],
];

View File

@@ -0,0 +1,19 @@
<?php
return [
Common\Settings\Validators\MailCredentials\OutgoingMailCredentialsValidator::class,
Common\Settings\Validators\GoogleLoginValidator::class,
Common\Settings\Validators\FacebookLoginValidator::class,
Common\Settings\Validators\TwitterLoginValidator::class,
Common\Settings\Validators\StorageCredentialsValidator::class,
Common\Settings\Validators\CacheConfigValidator::class,
Common\Settings\Validators\AnalyticsCredentialsValidator::class,
Common\Settings\Validators\QueueCredentialsValidator::class,
Common\Settings\Validators\LoggingCredentialsValidator::class,
Common\Settings\Validators\RecaptchaCredentialsValidator::class,
Common\Settings\Validators\PaypalCredentialsValidator::class,
Common\Settings\Validators\StripeCredentialsValidator::class,
Common\Settings\Validators\RealtimeCredentialsValidator::class,
Common\Settings\Validators\SearchConfigValidator::class,
Common\Settings\Validators\StaticFileDeliveryValidator::class,
];

View File

@@ -0,0 +1,36 @@
<?php
return [
'remote_file_visibility' => env('REMOTE_FILE_VISIBILITY', 'private'),
'disable_thumbnail_creation' => env('DISABLE_THUMBNAIL_CREATION', false),
'use_presigned_s3_urls' => env('USE_PRESIGNED_S3_URLS', true),
'static_file_delivery' => env('STATIC_FILE_DELIVERY', null),
'uploads_disk_driver' => env('UPLOADS_DISK_DRIVER', 'local'),
'public_disk_driver' => env('PUBLIC_DISK_DRIVER', 'local'),
'file_preview_endpoint' => env('FILE_PREVIEW_ENDPOINT'),
'version' => env('APP_VERSION'),
'demo' => env('IS_DEMO_SITE', false),
'disable_update_auth' => env('DISABLE_UPDATE_AUTH', false),
'enable_contact_page' => env('ENABLE_CONTACT_PAGE', false),
'billing_integrated' => env('BILLING_ENABLED', false),
'workspaces_integrated' => env('WORKSPACES_ENABLED', false),
'notifications_integrated' => env('NOTIFICATIONS_ENABLED', false),
'notif_subs_integrated' => env('NOTIF_SUBS_ENABLED', false),
'api_integrated' => env('API_INTEGRATED', false),
'enable_custom_domains' => env('ENABLE_CUSTOM_DOMAINS', false),
'dynamic_app_url' => env('DYNAMIC_APP_URL', true),
'hide_docs_buttons' => env('HIDE_DOCS_BUTTONS', false),
'verify_paypal_webhook' => env('VERIFY_PAYPAL_WEBHOOK', false),
'trust_all_proxies' => env('TRUST_ALL_PROXIES', false),
'has_mobile_app' => env('HAS_MOBILE_APP', false),
'scout_mysql_mode' => env('SCOUT_MYSQL_MODE', 'extended'),
'uploads_disable_tus' => env('UPLOADS_DISABLE_TUS'),
'uploads_tus_method' => env('UPLOADS_TUS_METHOD'),
'simulated_connection' => env('SIMULATED_CONNECTION', false),
'disable_scout_auto_sync' => env('DISABLE_SCOUT_AUTO_SYNC', false),
'ssr_enabled' => env('SSR_ENABLED', false),
'ssr_url' => env('SSR_URL', 'http://127.0.0.1:13714'),
'disable_csrf' => env('DISABLE_CSRF', false),
'demo_password' => env('DEMO_ADMIN_PASSWORD'),
'installed' => env('INSTALLED', false),
];