Skip to content

Commit 4d55a67

Browse files
committed
Merge branch 'develop' into chore/migrate-checkbox-helpers-p2
2 parents 77635c3 + 134045f commit 4d55a67

File tree

1,067 files changed

+13093
-5746
lines changed

Some content is hidden

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

1,067 files changed

+13093
-5746
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,24 @@
32713271
"contributions": [
32723272
"code"
32733273
]
3274+
},
3275+
{
3276+
"login": "addex12",
3277+
"name": "Adugna Gizaw",
3278+
"avatar_url": "https://avatars.githubusercontent.com/u/18550946?v=4",
3279+
"profile": "https://orbalia.pythonanywhere.com/",
3280+
"contributions": [
3281+
"translation"
3282+
]
3283+
},
3284+
{
3285+
"login": "jostrander",
3286+
"name": "Jesse Ostrander",
3287+
"avatar_url": "https://avatars.githubusercontent.com/u/760989?v=4",
3288+
"profile": "https://github.com/jostrander",
3289+
"contributions": [
3290+
"code"
3291+
]
32743292
}
32753293
]
32763294
}

.github/workflows/tests-mysql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
php-version:
28-
- "8.1"
2928
- "8.2"
3029
- "8.3"
30+
- "8.4"
3131

3232
name: PHP ${{ matrix.php-version }}
3333

.github/workflows/tests-postgres.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
php-version:
24-
- "8.1"
2524
- "8.2"
2625
- "8.3"
26+
- "8.4"
27+
2728

2829
name: PHP ${{ matrix.php-version }}
2930

.github/workflows/tests-sqlite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
php-version:
18-
- "8.1.1"
18+
- "8.3"
1919

2020
name: PHP ${{ matrix.php-version }}
2121

.upgrade_requirements.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"DOC3": "Please don't rely on these versions for planning upgrades unless you've fetched the most recent version",
55
"DOC4": "You should really just ignore it and run upgrade.php. Really",
66
"php_min_version": "8.1.0",
7-
"php_max_major_minor": "8.3",
8-
"php_max_wontwork": "8.4.0",
9-
"current_snipeit_version": "7.0"
7+
"php_max_major_minor": "8.4",
8+
"php_max_wontwork": "8.5.0",
9+
"current_snipeit_version": "8.0"
1010
}

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Thanks goes to all of these wonderful people ([emoji key](https://github.com/ken
5353
| [<img src="https://avatars.githubusercontent.com/u/55590532?v=4" width="110px;"/><br /><sub>squintfox</sub>](https://github.com/squintfox)<br />[💻](https://github.com/snipe/snipe-it/commits?author=squintfox "Code") | [<img src="https://avatars.githubusercontent.com/u/1380084?v=4" width="110px;"/><br /><sub>Jeff Clay</sub>](https://github.com/jeffclay)<br />[💻](https://github.com/snipe/snipe-it/commits?author=jeffclay "Code") | [<img src="https://avatars.githubusercontent.com/u/52716446?v=4" width="110px;"/><br /><sub>Phil J R</sub>](https://github.com/PP-JN-RL)<br />[💻](https://github.com/snipe/snipe-it/commits?author=PP-JN-RL "Code") | [<img src="https://avatars.githubusercontent.com/u/1496725?v=4" width="110px;"/><br /><sub>i_virus</sub>](https://www.corelight.com/)<br />[💻](https://github.com/snipe/snipe-it/commits?author=chandanchowdhury "Code") | [<img src="https://avatars.githubusercontent.com/u/1020541?v=4" width="110px;"/><br /><sub>Paul Grime</sub>](https://github.com/gitgrimbo)<br />[💻](https://github.com/snipe/snipe-it/commits?author=gitgrimbo "Code") | [<img src="https://avatars.githubusercontent.com/u/922815?v=4" width="110px;"/><br /><sub>Lee Porte</sub>](https://leeporte.co.uk)<br />[💻](https://github.com/snipe/snipe-it/commits?author=LeePorte "Code") | [<img src="https://avatars.githubusercontent.com/u/23613427?v=4" width="110px;"/><br /><sub>BRYAN </sub>](https://github.com/bryanlopezinc)<br />[💻](https://github.com/snipe/snipe-it/commits?author=bryanlopezinc "Code") [⚠️](https://github.com/snipe/snipe-it/commits?author=bryanlopezinc "Tests") |
5454
| [<img src="https://avatars.githubusercontent.com/u/64061710?v=4" width="110px;"/><br /><sub>U-H-T</sub>](https://github.com/U-H-T)<br />[💻](https://github.com/snipe/snipe-it/commits?author=U-H-T "Code") | [<img src="https://avatars.githubusercontent.com/u/5395363?v=4" width="110px;"/><br /><sub>Matt Tyree</sub>](https://github.com/Tyree)<br />[📖](https://github.com/snipe/snipe-it/commits?author=Tyree "Documentation") | [<img src="https://avatars.githubusercontent.com/u/292081?v=4" width="110px;"/><br /><sub>Florent Bervas</sub>](http://spoontux.net)<br />[💻](https://github.com/snipe/snipe-it/commits?author=FlorentDotMe "Code") | [<img src="https://avatars.githubusercontent.com/u/4498077?v=4" width="110px;"/><br /><sub>Daniel Albertsen</sub>](https://ditscheri.com)<br />[💻](https://github.com/snipe/snipe-it/commits?author=dbakan "Code") | [<img src="https://avatars.githubusercontent.com/u/100710244?v=4" width="110px;"/><br /><sub>r-xyz</sub>](https://github.com/r-xyz)<br />[💻](https://github.com/snipe/snipe-it/commits?author=r-xyz "Code") | [<img src="https://avatars.githubusercontent.com/u/47491036?v=4" width="110px;"/><br /><sub>Steven Mainor</sub>](https://github.com/DrekiDegga)<br />[💻](https://github.com/snipe/snipe-it/commits?author=DrekiDegga "Code") | [<img src="https://avatars.githubusercontent.com/u/65785975?v=4" width="110px;"/><br /><sub>arne-kroeger</sub>](https://github.com/arne-kroeger)<br />[💻](https://github.com/snipe/snipe-it/commits?author=arne-kroeger "Code") |
5555
| [<img src="https://avatars.githubusercontent.com/u/167117705?v=4" width="110px;"/><br /><sub>Glukose1</sub>](https://github.com/Glukose1)<br />[💻](https://github.com/snipe/snipe-it/commits?author=Glukose1 "Code") | [<img src="https://avatars.githubusercontent.com/u/1197791?v=4" width="110px;"/><br /><sub>Scarzy</sub>](https://github.com/Scarzy)<br />[💻](https://github.com/snipe/snipe-it/commits?author=Scarzy "Code") | [<img src="https://avatars.githubusercontent.com/u/37372069?v=4" width="110px;"/><br /><sub>setpill</sub>](https://github.com/setpill)<br />[💻](https://github.com/snipe/snipe-it/commits?author=setpill "Code") | [<img src="https://avatars.githubusercontent.com/u/3755203?v=4" width="110px;"/><br /><sub>swift2512</sub>](https://github.com/swift2512)<br />[🐛](https://github.com/snipe/snipe-it/issues?q=author%3Aswift2512 "Bug reports") | [<img src="https://avatars.githubusercontent.com/u/6136439?v=4" width="110px;"/><br /><sub>Darren Rainey</sub>](https://darrenraineys.co.uk)<br />[💻](https://github.com/snipe/snipe-it/commits?author=DarrenRainey "Code") | [<img src="https://avatars.githubusercontent.com/u/133033121?v=4" width="110px;"/><br /><sub>maciej-poleszczyk</sub>](https://github.com/maciej-poleszczyk)<br />[💻](https://github.com/snipe/snipe-it/commits?author=maciej-poleszczyk "Code") | [<img src="https://avatars.githubusercontent.com/u/143394709?v=4" width="110px;"/><br /><sub>Sebastian Groß</sub>](https://github.com/sgross-emlix)<br />[💻](https://github.com/snipe/snipe-it/commits?author=sgross-emlix "Code") |
56-
| [<img src="https://avatars.githubusercontent.com/u/41107778?v=4" width="110px;"/><br /><sub>Anouar Touati</sub>](https://github.com/AnouarTouati)<br />[💻](https://github.com/snipe/snipe-it/commits?author=AnouarTouati "Code") | [<img src="https://avatars.githubusercontent.com/u/25596663?v=4" width="110px;"/><br /><sub>aHVzY2g</sub>](https://github.com/aHVzY2g)<br />[💻](https://github.com/snipe/snipe-it/commits?author=aHVzY2g "Code") | [<img src="https://avatars.githubusercontent.com/u/13408130?v=4" width="110px;"/><br /><sub>林博仁 Buo-ren Lin</sub>](https://brlin.me)<br />[💻](https://github.com/snipe/snipe-it/commits?author=brlin-tw "Code") |
56+
| [<img src="https://avatars.githubusercontent.com/u/41107778?v=4" width="110px;"/><br /><sub>Anouar Touati</sub>](https://github.com/AnouarTouati)<br />[💻](https://github.com/snipe/snipe-it/commits?author=AnouarTouati "Code") | [<img src="https://avatars.githubusercontent.com/u/25596663?v=4" width="110px;"/><br /><sub>aHVzY2g</sub>](https://github.com/aHVzY2g)<br />[💻](https://github.com/snipe/snipe-it/commits?author=aHVzY2g "Code") | [<img src="https://avatars.githubusercontent.com/u/13408130?v=4" width="110px;"/><br /><sub>林博仁 Buo-ren Lin</sub>](https://brlin.me)<br />[💻](https://github.com/snipe/snipe-it/commits?author=brlin-tw "Code") | [<img src="https://avatars.githubusercontent.com/u/18550946?v=4" width="110px;"/><br /><sub>Adugna Gizaw</sub>](https://orbalia.pythonanywhere.com/)<br />[🌍](#translation-addex12 "Translation") | [<img src="https://avatars.githubusercontent.com/u/760989?v=4" width="110px;"/><br /><sub>Jesse Ostrander</sub>](https://github.com/jostrander)<br />[💻](https://github.com/snipe/snipe-it/commits?author=jostrander "Code") |
5757
<!-- ALL-CONTRIBUTORS-LIST:END -->
5858

5959
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

Dockerfile

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22
LABEL maintainer="Brady Wetherington <[email protected]>"
33

44
# No need to add `apt-get clean` here, reference:
@@ -14,16 +14,16 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
1414
apt-utils \
1515
apache2 \
1616
apache2-bin \
17-
libapache2-mod-php8.1 \
18-
php8.1-curl \
19-
php8.1-ldap \
20-
php8.1-mysql \
21-
php8.1-gd \
22-
php8.1-xml \
23-
php8.1-mbstring \
24-
php8.1-zip \
25-
php8.1-bcmath \
26-
php8.1-redis \
17+
libapache2-mod-php8.3 \
18+
php8.3-curl \
19+
php8.3-ldap \
20+
php8.3-mysql \
21+
php8.3-gd \
22+
php8.3-xml \
23+
php8.3-mbstring \
24+
php8.3-zip \
25+
php8.3-bcmath \
26+
php8.3-redis \
2727
php-memcached \
2828
patch \
2929
curl \
@@ -40,8 +40,7 @@ autoconf \
4040
libc-dev \
4141
libldap-common \
4242
pkg-config \
43-
libmcrypt-dev \
44-
php8.1-dev \
43+
php8.3-dev \
4544
ca-certificates \
4645
unzip \
4746
dnsutils \
@@ -51,18 +50,13 @@ dnsutils \
5150
RUN curl -L -O https://github.com/pear/pearweb_phars/raw/master/go-pear.phar
5251
RUN php go-pear.phar
5352

54-
RUN pecl install mcrypt
55-
56-
RUN bash -c "echo extension=/usr/lib/php/20210902/mcrypt.so > /etc/php/8.1/mods-available/mcrypt.ini"
57-
58-
RUN phpenmod mcrypt
5953
RUN phpenmod gd
6054
RUN phpenmod bcmath
6155

62-
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.1/apache2/php.ini
63-
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.1/cli/php.ini
56+
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.3/apache2/php.ini
57+
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php/8.3/cli/php.ini
6458

65-
RUN useradd -m --uid 1000 --gid 50 docker
59+
RUN useradd -m --uid 10000 --gid 50 docker
6660

6761
RUN echo export APACHE_RUN_USER=docker >> /etc/apache2/envvars
6862
RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars

app/Console/Commands/RecryptFromMcrypt.php

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

app/Console/Commands/SendExpirationAlerts.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace App\Console\Commands;
44

5+
use App\Mail\ExpiringAssetsMail;
6+
use App\Mail\ExpiringLicenseMail;
57
use App\Models\Asset;
68
use App\Models\License;
7-
use App\Models\Recipients\AlertRecipient;
89
use App\Models\Setting;
9-
use App\Notifications\ExpiringAssetsNotification;
10-
use App\Notifications\ExpiringLicenseNotification;
1110
use Illuminate\Console\Command;
11+
use Illuminate\Support\Facades\Mail;
1212

1313
class SendExpirationAlerts extends Command
1414
{
@@ -47,22 +47,22 @@ public function handle()
4747
if (($settings->alert_email != '') && ($settings->alerts_enabled == 1)) {
4848

4949
// Send a rollup to the admin, if settings dictate
50-
$recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) {
51-
return new AlertRecipient($item);
52-
});
53-
50+
$recipients = collect(explode(',', $settings->alert_email))
51+
->map(fn($item) => trim($item)) // Trim each email
52+
->all();
5453
// Expiring Assets
5554
$assets = Asset::getExpiringWarrantee($threshold);
55+
5656
if ($assets->count() > 0) {
5757
$this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold]));
58-
\Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold));
58+
Mail::to($recipients)->send(new ExpiringAssetsMail($assets, $threshold));
5959
}
6060

6161
// Expiring licenses
6262
$licenses = License::getExpiringLicenses($threshold);
6363
if ($licenses->count() > 0) {
6464
$this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold]));
65-
\Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold));
65+
Mail::to($recipients)->send(new ExpiringLicenseMail($licenses, $threshold));
6666
}
6767
} else {
6868
if ($settings->alert_email == '') {

app/Events/NoteAdded.php

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

0 commit comments

Comments
 (0)