setup wizard update

This commit is contained in:
Čarodej
2022-08-05 09:34:24 +02:00
parent 49abb58776
commit d1ecd33838
6 changed files with 15178 additions and 201 deletions

View File

@@ -1,6 +1,6 @@
APP_NAME=Laravel APP_NAME=Laravel
APP_ENV=local APP_ENV=local
APP_KEY=base64:wc7BQuWSAASCWebDAs/DPlMmLdYVm/fI434nwhZqMm0= APP_KEY=base64:O1wLTTsyz5AfTUJyILnDxLMiiiFaYXiwfajtBuFyWS0=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://localhost APP_URL=http://localhost
APP_DEMO=false APP_DEMO=false

View File

@@ -29,7 +29,7 @@
"laravel/ui": "^3.4.2", "laravel/ui": "^3.4.2",
"league/flysystem-aws-s3-v3": "^3.0.9", "league/flysystem-aws-s3-v3": "^3.0.9",
"league/flysystem-ftp": "^3.0", "league/flysystem-ftp": "^3.0",
"vuefilemanager/subscription": "^1.0", "makingcg/saas-billing": "^1.0",
"matthewbdaly/laravel-azure-storage": "^2.0", "matthewbdaly/laravel-azure-storage": "^2.0",
"pusher/pusher-php-server": "^7.0", "pusher/pusher-php-server": "^7.0",
"spatie/data-transfer-object": "^3.7.3", "spatie/data-transfer-object": "^3.7.3",
@@ -55,6 +55,12 @@
"fakerphp/faker": "^1.19.0", "fakerphp/faker": "^1.19.0",
"ext-json": "*" "ext-json": "*"
}, },
"repositories":[
{
"type": "github",
"url": "https://github.com/makingcg/saas-billing.git"
}
],
"config": { "config": {
"optimize-autoloader": true, "optimize-autoloader": true,
"preferred-install": "dist", "preferred-install": "dist",

15060
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -22,191 +22,109 @@ return [
], ],
], ],
'content' => [ 'content' => [
'regular' => [ [
[ 'name' => 'section_features',
'name' => 'section_features', 'value' => 1,
'value' => 1,
],
[
'name' => 'section_feature_boxes',
'value' => 1,
],
[
'name' => 'section_get_started',
'value' => 1,
],
[
'name' => 'header_title',
'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage',
],
[
'name' => 'header_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
],
[
'name' => 'features_title',
'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market',
],
[
'name' => 'features_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
],
[
'name' => 'feature_title_1',
'value' => 'Truly Freedom',
],
[
'name' => 'feature_description_1',
'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.',
],
[
'name' => 'feature_title_2',
'value' => 'The Sky is the Limit',
],
[
'name' => 'feature_description_2',
'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.',
],
[
'name' => 'feature_title_3',
'value' => 'No Monthly Fees',
],
[
'name' => 'feature_description_3',
'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.',
],
[
'name' => 'get_started_title',
'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?',
],
[
'name' => 'get_started_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
],
[
'name' => 'footer_content',
'value' => '© 2022 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
],
[
'name' => 'allow_homepage',
'value' => 1,
],
[
'name' => 'allowed_adsense',
'value' => 0,
],
[
'name' => 'allowed_recaptcha',
'value' => 0,
],
], ],
'extended' => [ [
[ 'name' => 'section_feature_boxes',
'name' => 'section_features', 'value' => 1,
'value' => 1, ],
], [
[ 'name' => 'section_pricing_content',
'name' => 'section_feature_boxes', 'value' => 1,
'value' => 1, ],
], [
[ 'name' => 'section_get_started',
'name' => 'section_pricing_content', 'value' => 1,
'value' => 1, ],
], [
[ 'name' => 'header_title',
'name' => 'section_get_started', 'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage',
'value' => 1, ],
], [
[ 'name' => 'header_description',
'name' => 'header_title', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage', ],
], [
[ 'name' => 'features_title',
'name' => 'header_description', 'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', ],
], [
[ 'name' => 'features_description',
'name' => 'features_title', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market', ],
], [
[ 'name' => 'feature_title_1',
'name' => 'features_description', 'value' => 'Truly Freedom',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', ],
], [
[ 'name' => 'feature_description_1',
'name' => 'feature_title_1', 'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.',
'value' => 'Truly Freedom', ],
], [
[ 'name' => 'feature_title_2',
'name' => 'feature_description_1', 'value' => 'The Sky is the Limit',
'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.', ],
], [
[ 'name' => 'feature_description_2',
'name' => 'feature_title_2', 'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.',
'value' => 'The Sky is the Limit', ],
], [
[ 'name' => 'feature_title_3',
'name' => 'feature_description_2', 'value' => 'No Monthly Fees',
'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.', ],
], [
[ 'name' => 'feature_description_3',
'name' => 'feature_title_3', 'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.',
'value' => 'No Monthly Fees', ],
], [
[ 'name' => 'pricing_title',
'name' => 'feature_description_3', 'value' => 'Pick the <span class="text-theme">Best Plan</span> For Your Needs',
'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.', ],
], [
[ 'name' => 'pricing_description',
'name' => 'pricing_title', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
'value' => 'Pick the <span class="text-theme">Best Plan</span> For Your Needs', ],
], [
[ 'name' => 'get_started_title',
'name' => 'pricing_description', 'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', ],
], [
[ 'name' => 'get_started_description',
'name' => 'get_started_title', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?', ],
], [
[ 'name' => 'footer_content',
'name' => 'get_started_description', 'value' => '© 2022 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank" class="text-theme">Hi5Ve.Digital</a>',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', ],
], [
[ 'name' => 'allowed_adsense',
'name' => 'footer_content', 'value' => 0,
'value' => '© 2022 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank" class="text-theme">Hi5Ve.Digital</a>', ],
], [
[ 'name' => 'allowed_recaptcha',
'name' => 'allowed_adsense', 'value' => 0,
'value' => 0, ],
], [
[ 'name' => 'paypal_payment_description',
'name' => 'allowed_recaptcha', 'value' => 'Available PayPal Credit, Debit or Credit Card.',
'value' => 0, ],
], [
'name' => 'paystack_payment_description',
// Subscription 'value' => 'Available Bank Account, USSD, Mobile Money, Apple Pay.',
[ ],
'name' => 'paypal_payment_description', [
'value' => 'Available PayPal Credit, Debit or Credit Card.', 'name' => 'stripe_payment_description',
], 'value' => 'Available credit card or Apple Pay.',
[ ],
'name' => 'paystack_payment_description', [
'value' => 'Available Bank Account, USSD, Mobile Money, Apple Pay.', 'name' => 'allowed_registration_bonus',
], 'value' => 0,
[ ],
'name' => 'stripe_payment_description', [
'value' => 'Available credit card or Apple Pay.', 'name' => 'registration_bonus_amount',
], 'value' => 0,
[
'name' => 'allowed_registration_bonus',
'value' => 0,
],
[
'name' => 'registration_bonus_amount',
'value' => 0,
],
], ],
], ],
]; ];

View File

@@ -9,20 +9,13 @@ class SeedDefaultLanguageTranslationsAction
string $license, string $license,
string $locale string $locale
): void { ): void {
$translations = [ $translations = collect([
'extended' => collect([ config('language-translations.extended'),
config('language-translations.extended'), config('language-translations.regular'),
config('language-translations.regular'), config('custom-language-translations'),
config('custom-language-translations'), ])
])->collapse(), ->collapse()
'regular' => collect([ ->map(fn($value, $key) => [
config('language-translations.regular'),
config('custom-language-translations'),
])->collapse(),
];
$translations = $translations[strtolower($license)]
->map(fn ($value, $key) => [
'lang' => $locale, 'lang' => $locale,
'value' => $value, 'value' => $value,
'key' => $key, 'key' => $key,

View File

@@ -14,7 +14,7 @@ class SeedDefaultSettingsAction
): void { ): void {
// Set default settings // Set default settings
collect( collect(
config('content.content.' . strtolower($license)) config('content.content')
)->each(fn ($content) => Setting::updateOrCreate([ )->each(fn ($content) => Setting::updateOrCreate([
'name' => $content['name'], 'name' => $content['name'],
], [ ], [