Skip to content

Commit ad5b242

Browse files
authored
Merge pull request #122 from inovector/v2-next
v2
2 parents cff0bdb + 411de89 commit ad5b242

File tree

333 files changed

+8431
-6848
lines changed

Some content is hidden

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

333 files changed

+8431
-6848
lines changed

.github/workflows/build-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: '8.1'
22+
php-version: '8.2'
2323
coverage: none
2424

2525
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ main ]
66
pull_request:
7-
branches: [main]
7+
branches: [ main ]
88

99
jobs:
1010
run-tests:
@@ -29,8 +29,8 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
php: [8.1, 8.2]
33-
laravel: [^9.0, ^10.0]
32+
php: [ 8.2, 8.3 ]
33+
laravel: [ ^10.47|^11.0 ]
3434

3535
name: P${{ matrix.php }} - L${{ matrix.laravel }}
3636

@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Set Laravel version
4949
run: |
50-
sed -i 's/^9.0|^10.0/${{ matrix.laravel }}/g' composer.json
50+
sed -i 's/^10.47|^11.0/${{ matrix.laravel }}/g' composer.json
5151
5252
- name: Install composer dependencies
5353
uses: ramsey/composer-install@v2

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
[![Total Downloads](https://img.shields.io/packagist/dt/inovector/mixpost.svg?style=flat-square)](https://packagist.org/packages/inovector/mixpost)
1010

1111
## Introduction
12-
**Mixpost** it's the coolest **Self hosted social media management software**.
13-
14-
This package is the **Lite version** of Mixpost Pro.
1512

1613
Mixpost is a robust and versatile **social media management platform**, designed to streamline **social media operations** and enhance **content marketing strategies**. Our platform empowers brands and businesses to effectively manage their **online presence**, leading them to success in the dynamic digital landscape. Mixpost's mission is to offer a comprehensive and powerful solution, enabling users to elevate their **social media management** and achieve tangible results.
1714

@@ -69,20 +66,16 @@ Please see [Releases](../../releases) for more information what has changed rece
6966

7067
## Contributing
7168

72-
By participating in this project you agree to these conditions 👇
73-
74-
Please note that this project is a [commercial product](https://mixpost.app/), and this repository is the lite version
75-
of Mixpost Pro. We work hard to offer the community the best free social media manager solution and please read this
76-
section carefully.
69+
By participating in this project, you agree to the following terms 👇
7770

78-
If you want to add a feature, it's better to open an issue before you start coding. It is important for us that features
79-
from the Lite version do not correlate with features from the Mixpost Pro. PRs with optimizations, bug fixes are
80-
welcome.
71+
This repository contains the Lite version of Mixpost Pro, a [commercial product](https://mixpost.app/) product. We’re committed to providing the community with the best free social media management solution. Please read the information below carefully.
8172

82-
Please, be very clear on your commit messages and pull requests, empty pull request messages may be rejected.
73+
- If you’d like to add a feature, please open an issue first to discuss it before you begin coding. It’s essential that Lite version features remain distinct from those in Mixpost Pro.
74+
- Pull requests (PRs) for optimizations and bug fixes are always welcome.
75+
- Make sure your commit messages and pull request descriptions are clear and informative. PRs with empty descriptions may be rejected.
76+
- When contributing code to Mixpost, you must follow
77+
the [PSR-12 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md).
8378

84-
When contributing code to Mixpost, you must follow
85-
the [PSR-12 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md).
8679
The golden rule is: Imitate the existing Mixpost code.
8780

8881
## Security Vulnerabilities

composer.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"name": "inovector/mixpost",
3-
"description": "Self-hosted social media management software",
3+
"description": "Self-hosted social media management software.",
44
"keywords": [
5-
"inovector",
6-
"mixpost",
7-
"social",
8-
"scheduling",
9-
"laravel"
5+
"social-media-management",
6+
"content-scheduling",
7+
"social-platform-integration",
8+
"calendar-scheduling",
9+
"self-hosted",
10+
"open-sourced",
11+
"mixpost"
1012
],
1113
"homepage": "https://github.com/inovector/mixpost",
1214
"license": "MIT",
@@ -18,28 +20,30 @@
1820
}
1921
],
2022
"require": {
21-
"php": "^8.1",
23+
"php": "^8.2",
2224
"ext-fileinfo": "*",
23-
"guzzlehttp/guzzle": "^7.5",
24-
"illuminate/contracts": "^9.28|^10.0",
25-
"inertiajs/inertia-laravel": "^0.6.9",
25+
"guzzlehttp/guzzle": "^7.8",
26+
"illuminate/contracts": "^10.47|^11.0",
27+
"inertiajs/inertia-laravel": "^1.0",
2628
"inovector/twitteroauth": "^7.0",
2729
"intervention/image": "^2.7",
30+
"laravel/horizon": "^5.0",
2831
"php-ffmpeg/php-ffmpeg": "^1.0",
2932
"spatie/laravel-package-tools": "^1.14",
3033
"spatie/temporary-directory": "^2.1",
3134
"tightenco/ziggy": "1.*"
3235
},
3336
"require-dev": {
34-
"nunomaduro/collision": "^6.0",
35-
"orchestra/testbench": "^7.0",
36-
"pestphp/pest": "^1.21",
37-
"pestphp/pest-plugin-faker": "^1.0",
38-
"pestphp/pest-plugin-laravel": "^1.1",
37+
"laradumps/laradumps": "^3.1",
38+
"nunomaduro/collision": "^8.1",
39+
"orchestra/testbench": "^9.2",
40+
"pestphp/pest": "^2.34",
41+
"pestphp/pest-plugin-faker": "^2.0",
42+
"pestphp/pest-plugin-laravel": "^2.0",
3943
"phpstan/extension-installer": "^1.1",
4044
"phpstan/phpstan-deprecation-rules": "^1.0",
4145
"phpstan/phpstan-phpunit": "^1.0",
42-
"phpunit/phpunit": "^9.5"
46+
"phpunit/phpunit": "^10.5"
4347
},
4448
"autoload": {
4549
"psr-4": {

database/factories/AccountFactory.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ class AccountFactory extends Factory
1212

1313
public function definition()
1414
{
15-
$providers = ['twitter', 'mastodon', 'facebook_page', 'facebook_group'];
15+
$providers = ['twitter', 'mastodon', 'facebook_page'];
1616

1717
$name = $this->faker->name;
1818

1919
return [
20+
'uuid' => $this->faker->uuid,
2021
'name' => $name,
2122
'username' => Str::camel($this->faker->name),
22-
'provider' => $providers[rand(0, 3)],
23+
'provider' => $providers[rand(0, 2)],
2324
'provider_id' => Str::random(),
2425
'media' => ['disk' => 'public', 'path' => '/'],
25-
'access_token' => ['auth_token' => Str::random()]
26+
'data' => null,
27+
'authorized' => true,
28+
'access_token' => ['access_token' => Str::random()]
2629
];
2730
}
2831
}

database/factories/MediaFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function definition()
1414
$size = $this->faker->randomDigit();
1515

1616
return [
17+
'uuid' => $this->faker->uuid,
1718
'name' => $this->faker->domainName,
1819
'mime_type' => $this->faker->mimeType(),
1920
'disk' => 'public',

database/factories/PostFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function definition()
2121
$scheduled = now()->addDays(rand(1, 30));
2222

2323
return [
24+
'uuid' => $this->faker->uuid,
2425
'status' => $status->value,
2526
'schedule_status' => $status === PostStatus::PUBLISHED ? PostScheduleStatus::PROCESSED : PostScheduleStatus::PENDING,
2627
'scheduled_at' => $status !== PostStatus::DRAFT ? $scheduled : null,

database/factories/ServiceFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public function definition()
1313
{
1414
return [
1515
'name' => $this->faker->domainName,
16-
'credentials' => ['client_id' => $this->faker->randomDigit(), 'client_secret' => $this->faker->randomDigit()]
16+
'configuration' => ['client_id' => $this->faker->randomDigit(), 'client_secret' => $this->faker->randomDigit()],
17+
'active' => $this->faker->boolean(),
1718
];
1819
}
1920
}

database/factories/TagFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class TagFactory extends Factory
1313
public function definition()
1414
{
1515
return [
16+
'uuid' => $this->faker->uuid(),
1617
'name' => $this->faker->domainName,
1718
'hex_color' => Str::after($this->faker->hexColor, '#')
1819
];

database/migrations/create_mixpost_accounts_table.php.stub

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)