Skip to content

Commit 6fd0847

Browse files
committed
Add custom updater remove dependency
1 parent 4236a50 commit 6fd0847

File tree

7 files changed

+337
-434
lines changed

7 files changed

+337
-434
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"require": {
88
"php": ">=8.0",
99
"awssat/laravel-visits": "^6.0",
10-
"codedge/laravel-selfupdater": "^3.6",
1110
"cohensive/oembed": "^0.17",
1211
"doctrine/dbal": "^3.0",
1312
"fideloper/proxy": "^4.4",

config/self-update.php

-161
This file was deleted.

resources/views/components/finishing.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Database\Seeders\ButtonSeeder;
99
use App\Models\Page;
1010
11+
set_time_limit(0);
12+
1113
//run before finishing:
1214
if(EnvEditor::keyExists('JOIN_BETA')){ /* Do nothing if key already exists */
1315
} else { EnvEditor::addKey('JOIN_BETA', 'false');} // Adds key to .env file

resources/views/components/pre-update.blade.php

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
77
set_time_limit(0);
88
9+
try {
10+
if(!isset($preUpdateServer)){$preUpdateServer = 'https://pre-update.linkstack.org/';}
11+
$file = Http::timeout(10)->get($preUpdateServer . 'update')->body();
12+
file_put_contents(base_path('resources\views\update.blade.php'), $file);
13+
} catch (Exception $e) {}
14+
915
if(trim(file_get_contents(base_path("version.json"))) < '4.0.0'){
1016
try {
1117
$file = base_path('storage/RSTAC');

resources/views/layouts/updater.blade.php

+19
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
button {
134134
border-style: none;
135135
background-color: #0085ff;
136+
margin: 5px;
136137
}
137138
button:hover {
138139
background-color: #0065c1;
@@ -144,6 +145,24 @@
144145
color: #FFF !important;
145146
}
146147
148+
.noteslink:hover {
149+
color: #006fd5;
150+
text-shadow: 0px 6px 7px rgba(23, 10, 6, 0.66);
151+
}
152+
153+
.alert-box {
154+
padding: 10px 15px;
155+
margin: 10px 0;
156+
border-left: 5px solid;
157+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
158+
}
159+
160+
.alert-box-error {
161+
background-color: #f0cccc;
162+
color: #a94442;
163+
border-color: #db5552;
164+
}
165+
147166
</style>
148167

149168
</head>

0 commit comments

Comments
 (0)