Skip to content

Commit 5ebd811

Browse files
committed
WP
1 parent a0f9138 commit 5ebd811

File tree

3,027 files changed

+1390471
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,027 files changed

+1390471
-145
lines changed

.env.example

Lines changed: 58 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,9 @@
1-
APP_NAME=Moox
1+
APP_NAME='Moox'
22
APP_ENV=local
33
APP_KEY=base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM=
44
APP_DEBUG=true
5-
APP_TIMEZONE=UTC
65
APP_URL=https://moox.test
76

8-
CUSTOM_VIEWS=example
9-
10-
GITHUB_ORG=mooxphp
11-
GITHUB_TOKEN=your_github_token_here
12-
PACKAGIST_VENDOR=moox
13-
VSCODE_EXTENSION_ID=adrolli.tallui-laravel-livewire-tailwind
14-
15-
VERBOSE_LEVEL=3
16-
LOG_IN_PRODUCTION=true
17-
18-
SHARED_HOSTING_ENABLED=false
19-
SHARED_HOSTING_TOKEN=secret
20-
21-
SYNC_PLATFORM_JOB_ENABLED=false
22-
SYNC_BACKUP_JOB_ENABLED=false
23-
SYNC_LISTENER_ENABLED=false
24-
SYNC_WEBHOOK_ENABLED=false
25-
26-
WP_PREFIX="jku8u_"
27-
WP_PATH="/public/wp"
28-
WP_SLUG="/wp"
29-
ADMIN_SLUG="/press"
30-
31-
WP_DEBUG=true
32-
WP_DEBUG_LOG=true
33-
WP_DEBUG_DISPLAY=false
34-
35-
WP_MEMORY_LIMIT=512M
36-
37-
IP_WHITELIST=""
38-
39-
LOCK_WP=true
40-
AUTH_WP=true
41-
42-
REDIRECT_INDEX=false
43-
REDIRECT_TO_WP=false
44-
REDIRECT_LOGIN=true
45-
REDIRECT_LOGOUT=true
46-
REDIRECT_EDITOR=true
47-
48-
FORGOT_PASSWORD=true
49-
REGISTRATION=false
50-
ENABLE_MFA=false
51-
52-
WP_AUTH_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
53-
WP_SECURE_AUTH_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
54-
WP_LOGGED_IN_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
55-
WP_NONCE_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
56-
WP_AUTH_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
57-
WP_SECURE_AUTH_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
58-
WP_LOGGED_IN_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
59-
WP_NONCE_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
60-
61-
EXPIRY_SEND_ESCALATION=false
62-
EXPIRY_SEND_ESCALATION_DAYS_BEFORE=7
63-
EXPIRY_SEND_ESCALATION_COPY=amdin@moox.com
64-
EXPIRY_PANEL_PATH=moox
65-
LOGO_URL="https://moox.org/img/logo.png"
66-
677
APP_LOCALE=en
688
APP_FALLBACK_LOCALE=en
699
APP_FAKER_LOCALE=en_US
@@ -74,45 +14,34 @@ APP_MAINTENANCE_STORE=database
7414
BCRYPT_ROUNDS=12
7515

7616
LOG_CHANNEL=stack
77-
LOG_STACK=single
7817
LOG_DEPRECATIONS_CHANNEL=null
7918
LOG_LEVEL=debug
8019

8120
DB_CONNECTION=mysql
8221
DB_HOST=127.0.0.1
8322
# For Sail use DB_HOST=mysql
8423
DB_PORT=3306
85-
DB_DATABASE=moox
24+
DB_DATABASE=mooxnew
8625
DB_USERNAME=root
8726
DB_PASSWORD=
8827

28+
BROADCAST_DRIVER=log
29+
CACHE_DRIVER=file
30+
FILESYSTEM_DISK=local
31+
QUEUE_CONNECTION=sync
8932
SESSION_DRIVER=database
9033
SESSION_LIFETIME=120
91-
SESSION_ENCRYPT=false
92-
SESSION_PATH=/
93-
SESSION_DOMAIN=null
94-
95-
BROADCAST_CONNECTION=log
96-
FILESYSTEM_DISK=local
97-
QUEUE_CONNECTION=database
98-
99-
CACHE_STORE=database
100-
CACHE_PREFIX=
10134

10235
MEMCACHED_HOST=127.0.0.1
10336

104-
REDIS_CLIENT=phpredis
10537
REDIS_HOST=127.0.0.1
10638
REDIS_PASSWORD=null
10739
REDIS_PORT=6379
10840

109-
MAIL_MAILER=log
41+
MAIL_MAILER=smtp
11042
MAIL_HOST=127.0.0.1
11143
MAIL_PORT=2525
112-
MAIL_USERNAME=null
113-
MAIL_PASSWORD=null
114-
MAIL_ENCRYPTION=null
115-
MAIL_FROM_ADDRESS="hello@example.com"
44+
MAIL_FROM_ADDRESS="hello@moox.org"
11645
MAIL_FROM_NAME="${APP_NAME}"
11746

11847
AWS_ACCESS_KEY_ID=
@@ -135,10 +64,54 @@ VITE_PUSHER_PORT="${PUSHER_PORT}"
13564
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
13665
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
13766

138-
AWS_ACCESS_KEY_ID=
139-
AWS_SECRET_ACCESS_KEY=
140-
AWS_DEFAULT_REGION=us-east-1
141-
AWS_BUCKET=
142-
AWS_USE_PATH_STYLE_ENDPOINT=false
67+
# Moox internal stuff
68+
GITHUB_ORG=mooxphp
69+
GITHUB_TOKEN=your_github_token_here
70+
PACKAGIST_VENDOR=moox
71+
VSCODE_EXTENSION_ID=adrolli.tallui-laravel-livewire-tailwind
72+
CUSTOM_VIEWS=example
73+
IGNITION_EDITOR=cursor
74+
75+
# Moox Core - Shared hosting
76+
SHARED_HOSTING_ENABLED=true
77+
SHARED_HOSTING_TOKEN=secret
78+
79+
# Moox Press - WordPress
80+
WP_PREFIX="jku8u_"
81+
WP_PATH="/public/wp"
82+
WP_SLUG="/wp"
83+
ADMIN_SLUG="/press"
84+
85+
# Moox Press - WP Debug
86+
WP_DEBUG=true
87+
WP_DEBUG_LOG=true
88+
WP_DEBUG_DISPLAY=true
89+
WP_MEMORY_LIMIT=512M
90+
91+
# Moox Press - Intranet
92+
LOCK_WP=true
93+
AUTH_WP=true
94+
95+
# Moox Press - Redirects
96+
REDIRECT_INDEX=false
97+
REDIRECT_TO_WP=false
98+
REDIRECT_LOGIN=true
99+
REDIRECT_LOGOUT=true
100+
REDIRECT_EDITOR=true
101+
REDIRECT_AFTER_LOGIN=wp-admin
143102

144-
VITE_APP_NAME="${APP_NAME}"
103+
# Moox Press - Security
104+
WP_AUTH_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
105+
WP_SECURE_AUTH_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
106+
WP_LOGGED_IN_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
107+
WP_NONCE_KEY="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
108+
WP_AUTH_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
109+
WP_SECURE_AUTH_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
110+
WP_LOGGED_IN_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
111+
WP_NONCE_SALT="ThisIsASecretKey!DoNotUseItInProduction!ChangeIt!"
112+
113+
# Moox User - Authentication
114+
FORGOT_PASSWORD=true
115+
REGISTRATION=false
116+
ENABLE_MFA=false
117+
IP_WHITELIST=""

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ Thumbs.db
6363
!/routes/custom_example.php
6464

6565
# Moox Press - need to be removed for the demo
66-
/public/vendor/*
67-
/public/wp/*
66+
#/public/vendor/*
67+
#/public/wp/*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"license": "MIT",
2121
"require": {
2222
"filament/spatie-laravel-media-library-plugin": "3.x-dev",
23-
"laravel/framework": "^11.0",
23+
"laravel/framework": "^12.0",
2424
"laravel/telescope": "5.x-dev",
2525
"laravel/tinker": "^2.8",
2626
"moox/audit": "*",

docs/_devlog/Alf.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
- [ ] Media localization
99
- [ ] Media uploaded by user
1010
- [ ] static-locales:280 - GET https://moox.test/storage/%7B%221%22:%7B%22file_name%22:%22Alf-Hamburg-Profil-High.jpg%22,%22title%22:%22Alf-Hamburg-Profil-High%22,%22description%22:null,%22internal_note%22:null,%22alt%22:%22Alf-Hamburg-Profil-High%22%7D%7D 404 (Not Found)
11-
- [ ] Restore and Expire are not phpstan'ed
11+
- [ ] Restore and Expiry are not phpstan'ed
1212
- [ ] Theoretically Laravel 12, but [Translatable](https://github.com/Astrotomic/laravel-translatable) and [Backup-Server](https://github.com/spatie/laravel-backup-server) are not ready
1313

1414
## Todo
1515

16+
- [ ] Write protected fields, items
1617
- [ ] remove boilerplate code taxonomy
1718
- [ ] finish core implementation docs
1819
- [ ] Publish and Unpublish docs
@@ -43,7 +44,7 @@
4344
- [ ] Generate package
4445
- [ ] Add fields
4546
- [ ] Taxonomies
46-
- [ ] Category - Does not save, dissapears
47+
- [x] Category - Does not save, dissapears
4748
- [ ] Tag - Error not title, localization
4849
- [ ] Localization
4950
- [ ] Media

packages/backup-server/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"moox/core": "*",
21-
"spatie/laravel-backup-server": "^4.0.2"
20+
"moox/core": "*"
2221
},
2322
"autoload": {
2423
"psr-4": {

packages/core/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"php": "^8.2.0",
2121
"adrolli/filament-title-with-slug": "*",
2222
"spatie/laravel-package-tools": "^1.13.0",
23-
"laravel/framework": "^10.0|^11.0",
23+
"laravel/framework": "^11.0|^12.0",
2424
"filament/filament": "^3.2",
2525
"codeat3/blade-google-material-design-icons": "^1.0"
2626
},

packages/item/config/item.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,15 @@
6060
'createForm' => \Moox\Category\Forms\TaxonomyCreateForm::class,
6161
'hierarchical' => true,
6262
],
63+
'tag' => [
64+
'label' => 'Tags',
65+
'model' => \Moox\Tag\Models\Tag::class,
66+
'table' => 'taggables',
67+
'relationship' => 'taggable',
68+
'foreignKey' => 'taggable_id',
69+
'relatedKey' => 'tag_id',
70+
'createForm' => \Moox\Tag\Forms\TaxonomyCreateForm::class,
71+
'hierarchical' => false,
72+
],
6373
],
6474
];

packages/localization/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"require": {
2020
"moox/core": "*",
2121
"moox/data": "*",
22-
"astrotomic/laravel-translatable": "^11.1"
22+
"adrolli/laravel-translatable": "*"
2323
},
2424
"autoload": {
2525
"psr-4": {

packages/press/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"moox/core": "*",
21-
"awobaz/eloquent-mutators": "^1.0"
21+
"adrolli/eloquent-mutators": "*"
2222
},
2323
"autoload": {
2424
"psr-4": {

packages/press/src/Commands/InstallWordPress.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ public function checkDotenv(): void
8282
}
8383

8484
info('.env file found, checking for required variables...');
85+
86+
$env = file_get_contents(base_path('.env'));
87+
88+
if (strpos($env, 'WP_PREFIX') === false) {
89+
alert('No WP_PREFIX found in .env file. Please add it and rerun this command.');
90+
exit(1);
91+
}
8592
}
8693

8794
public function getDotenv(): array
@@ -116,12 +123,12 @@ public function getDotenv(): array
116123
$envVariables = [];
117124

118125
foreach ($requiredVariables as $variable) {
119-
$value = config($variable);
126+
/** @phpstan-ignore-next-line */
127+
$value = env($variable);
120128

121129
if ($value === null) {
122130
$missingVariables[] = $variable;
123131
} else {
124-
// Convert string 'true'/'false' to actual booleans
125132
if ($value === 'false') {
126133
$value = false;
127134
} elseif ($value === 'true') {
@@ -135,7 +142,7 @@ public function getDotenv(): array
135142
if ($missingVariables !== []) {
136143
warning('The following required variables are missing from your .env file:');
137144
foreach ($missingVariables as $variable) {
138-
$this->line('- '.$variable);
145+
$this->line(' '.$variable);
139146
}
140147

141148
warning('Please add the missing variables to your .env file and rerun this command.');

0 commit comments

Comments
 (0)