Skip to content

Commit 1c8b2d8

Browse files
authored
Merge pull request #810 from OpenSID/dev-791
Upgrade teknis berdasarkan composer audit pada OpenKab
2 parents 154dae7 + 80ba31f commit 1c8b2d8

156 files changed

Lines changed: 793 additions & 4072 deletions

File tree

Some content is hidden

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

app/Http/Controllers/CMS/CategoryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function update($id, UpdateCategoryRequest $request)
106106

107107
$category = $this->categoryRepository->update($request->all(), $id);
108108

109-
Session::flash('success', 'Kategori updated successfully.');
109+
Session::flash('success', 'Kategori berhasil diperbarui.');
110110

111111
return redirect(route('categories.index'));
112112
}

app/Http/Controllers/CMS/DownloadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function destroy($id)
137137

138138
$this->downloadRepository->delete($id);
139139
if (request()->ajax()) {
140-
return $this->sendSuccess('Role deleted successfully.');
140+
return $this->sendSuccess('File download berhasil dihapus.');
141141
}
142142
Session::flash('success', 'File download berhasil dihapus.');
143143

app/Http/Controllers/CMS/SlideController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function destroy($id)
142142

143143
$this->slideRepository->delete($id);
144144
if (request()->ajax()) {
145-
return $this->sendSuccess('Role deleted successfully.');
145+
return $this->sendSuccess('Slide berhasil dihapus.');
146146
}
147147
Session::flash('success', 'Slide berhasil dihapus.');
148148

app/Http/Controllers/DepartmentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function edit($id)
8181
$department = $this->departmentRepository->find($id);
8282

8383
if (empty($department)) {
84-
Session::flash('error', 'Departemen not found');
84+
Session::flash('error', 'Departemen tidak ditemukan');
8585

8686
return redirect(route('departments.index'));
8787
}

app/Http/Controllers/PositionController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function update($id, UpdatePositionRequest $request)
104104

105105
$position = $this->positionRepository->update($request->all(), $id);
106106

107-
Session::flash('success', 'Jabatan updated successfully.');
107+
Session::flash('success', 'Jabatan berhasil diperbarui.');
108108

109109
return redirect(route('positions.index'));
110110
}
@@ -126,7 +126,7 @@ public function destroy($id)
126126

127127
$this->positionRepository->delete($id);
128128
if (request()->ajax()) {
129-
return $this->sendSuccess('Role berhasil dihapus.');
129+
return $this->sendSuccess('Jabatan berhasil dihapus.');
130130
}
131131
Session::flash('success', 'Jabatan berhasil dihapus.');
132132

app/Http/Transformers/DownloadTransformer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Models\Enums\StatusEnum;
77
use Illuminate\Support\Facades\Storage;
88
use League\Fractal\TransformerAbstract;
9+
use Spatie\Html\Facades\Html;
910

1011
class DownloadTransformer extends TransformerAbstract
1112
{
@@ -14,7 +15,7 @@ public function transform(Download $download)
1415
return [
1516
'id' => $download->id,
1617
'title' => $download->title,
17-
'url' => $download->url ? link_to(Storage::url($download->url), 'berkas', ['class' => 'text-primary'])->toHtml() : '',
18+
'url' => $download->url ? Html::a(Storage::url($download->url), 'berkas')->class('text-primary')->toHtml() : '',
1819
'description' => $download->description,
1920
'state' => $download->state == StatusEnum::aktif ? 'Tampilkan' : 'Tidak',
2021
'created_at' => $download->created_at,

app/Http/Transformers/SlideTransformer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Models\Enums\StatusEnum;
77
use Illuminate\Support\Facades\Storage;
88
use League\Fractal\TransformerAbstract;
9+
use Spatie\Html\Facades\Html;
910

1011
class SlideTransformer extends TransformerAbstract
1112
{
@@ -14,7 +15,7 @@ public function transform(Slide $slide)
1415
return [
1516
'id' => $slide->id,
1617
'title' => $slide->title,
17-
'url' => $slide->url ? link_to($slide->url, 'tautan', ['class' => 'text-primary'])->toHtml() : '',
18+
'url' => $slide->url ? Html::a($slide->url, 'tautan')->class('text-primary')->toHtml() : '',
1819
'thumbnail' => $slide->thumbnail ? Storage::url($slide->thumbnail) : '',
1920
'description' => $slide->description,
2021
'state' => $slide->state == StatusEnum::aktif ? 'Aktif' : 'Non Aktif',

app/Providers/AppServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public function boot()
3535
{
3636
$this->bootHttps();
3737
$this->addValidation();
38-
// daftarkan manual karena gagal install infyomlabs/adminlte-templates terkendala depedency
39-
View::addNamespace('adminlte-templates', resource_path('views/vendor/adminlte-templates'));
4038
$this->addLogQuery();
4139

4240
if (App::runningInConsole()) {

catatan_rilis.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Di rilis ini, versi 2508.0.1 berisi penambahan dan perbaikan yang diminta penggu
1010

1111
#### Perubahan Teknis
1212

13-
1. [#790](https://github.com/OpenSID/OpenKab/issues/790) Upgrade versi laravel dari 9.52.16 menjadi 10.48.29.
13+
1. [#790](https://github.com/OpenSID/OpenKab/issues/790) Upgrade versi laravel dari 9.52.16 menjadi 10.48.29.
14+
2. [#791](https://github.com/OpenSID/OpenKab/issues/791) Upgrade teknis berdasarkan composer audit pada OpenKab.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"require": {
1111
"php": "^8.1",
1212
"akaunting/laravel-apexcharts": "^3.0",
13-
"akaunting/money": "^5.2",
1413
"alexusmai/laravel-file-manager": "^3.0",
1514
"bensampo/laravel-enum": "^6.3",
1615
"cviebrock/eloquent-sluggable": "^10.0",
@@ -23,14 +22,14 @@
2322
"laravel/sanctum": "^3.3",
2423
"laravel/tinker": "^2.8",
2524
"laravel/ui": "^4.2",
26-
"laravelcollective/html": "^6.4",
2725
"league/flysystem-ftp": "^3.10",
2826
"openspout/openspout": "^4.24",
2927
"proengsoft/laravel-jsvalidation": "^4.8",
3028
"shetabit/visitor": "^4.1",
3129
"spatie/laravel-activitylog": "^4.7",
3230
"spatie/laravel-csp": "^2.8",
3331
"spatie/laravel-fractal": "^6.0",
32+
"spatie/laravel-html": "^3.5",
3433
"spatie/laravel-json-api-paginate": "^1.13",
3534
"spatie/laravel-permission": "^6.4",
3635
"spatie/laravel-query-builder": "^5.2",

0 commit comments

Comments
 (0)