Skip to content

Commit 473623a

Browse files
Merge pull request #866 from LinkStackOrg/beta
Beta
2 parents ad01498 + ee27f6c commit 473623a

24 files changed

+1938
-13996
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ Before updating, the updater will create a backup. Your instance won’t save mo
205205

206206
If you switched your database to MySQL, your database will not be included in the backup.
207207

208+
The updater may fail without throwing an error and just remain on the current version if there are unmet dependencies. This could include not having the correct version of the dependencies (eg. having php-sqlite3 pointing to php8.3-sqlite3, while LinkStack uses PHP 8.2 and needs php8.2-sqlite3). To troubleshoot, update manually and check the errors thown by the instance when accessing the website, as well as the PHP version reported.
209+
208210
<a name="Discord"></a>
209211
## Discord
210212

Diff for: app/Http/Controllers/UserController.php

+26-9
Original file line numberDiff line numberDiff line change
@@ -753,29 +753,46 @@ public function editTheme(request $request)
753753

754754
if (!empty($zipfile) && Auth::user()->role == 'admin') {
755755

756-
$zipfile->move(base_path('/themes'), "temp.zip");
756+
$themesPath = base_path('themes');
757+
$tmpPath = base_path() . '/themes/temp.zip';
758+
$zipfile->move($themesPath, "temp.zip");
757759

758760
$zip = new ZipArchive;
759-
$zip->open(base_path() . '/themes/temp.zip');
760-
$zip->extractTo(base_path() . '/themes');
761+
$zip->open($tmpPath);
762+
$zip->extractTo($themesPath);
761763
$zip->close();
762-
unlink(base_path() . '/themes/temp.zip');
764+
unlink($tmpPath);
763765

764766
// Removes version numbers from folder.
765767

766-
$folder = base_path('themes');
767768
$regex = '/[0-9.-]/';
768-
$files = scandir($folder);
769+
$files = scandir($themesPath);
770+
$files = array_diff($files, array('.', '..'));
769771

770772
foreach ($files as $file) {
773+
771774
$basename = basename($file);
775+
$filePath = $themesPath . '/' . $basename;
776+
777+
if (!is_dir($filePath)) {
778+
779+
try {
780+
File::delete($filePath);
781+
} catch (exception $e) {}
782+
783+
}
784+
772785
if (preg_match($regex, $basename)) {
786+
773787
$newBasename = preg_replace($regex, '', $basename);
774-
$newPath = $folder . '/' . $newBasename;
775-
File::copyDirectory($file, $newPath);
776-
File::deleteDirectory($file);
788+
$newPath = $themesPath . '/' . $newBasename;
789+
File::copyDirectory($filePath, $newPath);
790+
File::deleteDirectory($filePath);
791+
777792
}
793+
778794
}
795+
779796
}
780797

781798

Diff for: assets/external-dependencies/fontawesome.css

+5-7,966
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/external-dependencies/fontawesome.js

+3-5,979
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/linkstack/css/brands.css

+34-6
Original file line numberDiff line numberDiff line change
@@ -1113,12 +1113,21 @@ button.button-scribd{
11131113

11141114
/* Trakt */
11151115
.button.button-trakt {
1116-
color: #ffffff;
1117-
background-color: #ed1d24;
1118-
}
1119-
.button.button-trakt:hover,
1120-
.button.button-trakt:focus {
1121-
filter: brightness(90%);
1116+
color: white;
1117+
background: radial-gradient(
1118+
farthest-corner at 0% 100%,
1119+
rgb(245, 6, 19) 0%,
1120+
rgb(225, 20, 60) 10%,
1121+
rgb(207, 32, 97) 18%,
1122+
rgb(192, 43, 129) 27%,
1123+
rgb(180, 51, 154) 36%,
1124+
rgb(170, 57, 173) 47%,
1125+
rgb(164, 62, 187) 58%,
1126+
rgb(160, 65, 195) 73%,
1127+
rgb(159, 66, 198) 100%
1128+
);
1129+
background-size: 400% 200%;
1130+
background-position: left bottom;
11221131
}
11231132

11241133
/* Trello */
@@ -1299,3 +1308,22 @@ button.button-scribd{
12991308
.button.button-linkstack:focus {
13001309
filter: brightness(90%);
13011310
}
1311+
/* Xbox */
1312+
.button.button-xbox {
1313+
color: #FFFFFF;
1314+
background-color: #0e7a0d
1315+
;
1316+
}
1317+
.button.button-xbox:hover,
1318+
.button.button-xbox:focus {
1319+
filter: brightness(90%);
1320+
}
1321+
/* Threads */
1322+
.button.button-threads {
1323+
color: #FFFFFF;
1324+
background-color: #000000;
1325+
}
1326+
.button.button-threads:hover,
1327+
.button.button-threads:focus {
1328+
filter: brightness(90%);
1329+
}

Diff for: assets/linkstack/icons/threads.svg

+1
Loading

Diff for: assets/linkstack/icons/trakt.svg

+4-32
Loading

Diff for: assets/linkstack/icons/xbox.svg

+1
Loading

Diff for: assets/webfonts/fa-brands-400.ttf

20.6 KB
Binary file not shown.

Diff for: assets/webfonts/fa-brands-400.woff2

8.71 KB
Binary file not shown.

Diff for: assets/webfonts/fa-regular-400.ttf

4.61 KB
Binary file not shown.

Diff for: assets/webfonts/fa-regular-400.woff2

996 Bytes
Binary file not shown.

Diff for: assets/webfonts/fa-solid-900.ttf

30.7 KB
Binary file not shown.

Diff for: assets/webfonts/fa-solid-900.woff2

8.01 KB
Binary file not shown.

Diff for: assets/webfonts/fa-v4compatibility.ttf

664 Bytes
Binary file not shown.

Diff for: assets/webfonts/fa-v4compatibility.woff2

220 Bytes
Binary file not shown.

Diff for: blocks/vcard/form.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
$middleName = $data->middle_name;
1212
$lastName = $data->last_name;
1313
$suffix = $data->suffix;
14-
$nickname = $data->nickname;
1514
$organization = $data->organization;
1615
$vtitle = $data->vtitle;
1716
$role = $data->role;

Diff for: blocks/vcard/handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function handleLinkType($request, $linkType) {
1313

1414
// Extract the necessary data from the request
1515
$data = $request->only([
16-
'prefix', 'first_name', 'middle_name', 'last_name', 'suffix', 'nickname',
16+
'prefix', 'first_name', 'middle_name', 'last_name', 'suffix',
1717
'organization', 'vtitle', 'role', 'work_url', 'email', 'work_email',
1818
'home_phone', 'work_phone', 'cell_phone', 'home_address_label', 'home_address_street',
1919
'home_address_city', 'home_address_state', 'home_address_zip', 'home_address_country',

Diff for: database/seeders/ButtonSeeder.php

+15
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,21 @@ public function run()
938938
"mb" => false,
939939
],
940940

941+
[
942+
"name" => "xbox",
943+
"alt" => "Xbox",
944+
"exclude" => false,
945+
"group" => "default",
946+
"mb" => false,
947+
],
948+
949+
[
950+
"name" => "threads",
951+
"alt" => "Threads",
952+
"exclude" => false,
953+
"group" => "default",
954+
"mb" => false,
955+
],
941956
];
942957

943958
Button::insert($buttons);

0 commit comments

Comments
 (0)