Commit Graph

146 Commits

Author SHA1 Message Date
Julian Prieber 613558549e Update site.blade.php 2023-04-26 20:25:32 +02:00
Julian Prieber 5dbb2b182d Version 4.0
-- Dashboard Update --

Update to version 4.0.0.
Complete redesign of the admin panel.
New features and a license change.
2023-04-26 15:44:39 +02:00
Julian Prieber 3fecf4a875 Bugfix
https://github.com/JulianPrieber/littlelink-custom/issues/365
2023-03-16 14:47:57 +01:00
Julian Prieber 2ebfe4db94 Added last seen section to users page 2023-02-16 13:02:05 +01:00
Julian Prieber 5665465076 Added option for admins to upload background image for users 2023-02-15 18:14:54 +01:00
Julian Prieber 142fdd0d7b Update users.blade.php 2023-02-15 17:59:40 +01:00
Julian Prieber 04323f7b4e Update users.blade.php 2023-02-15 17:58:39 +01:00
Julian Prieber 1f162ae8f3 Added custom background image to edit user page
Admins can delete custom background images of users
2023-02-15 17:45:00 +01:00
Julian Prieber 43dc168ced Update users.blade.php 2023-02-15 16:22:22 +01:00
Julian Prieber 5c26f1e8ab Updated users table
Added new fields to the users table.
Added ability to sort users table alphabetically.
2023-02-15 15:53:55 +01:00
Julian Prieber a7d59593c6 Added delete button for profile picture 2023-02-03 18:00:15 +01:00
Julian Prieber 369965f55f
Merge pull request #317 from JulianPrieber/image-id
Changed profile picture save method to use user id
2023-02-02 18:07:16 +01:00
Julian Prieber 72387e609e Update config-editor.blade.php
2407db65d2
2023-01-30 16:11:55 +01:00
Julian Prieber 2407db65d2 Fixed routing issues
Just a quick fix. I might chnage this back to a better readable format.

This was causing issues when redirecting, not all link ids where changed! This caused some redirects to break.
2023-01-30 16:07:22 +01:00
Julian Prieber 5b23fa08de Changed profile picture save method to use user id
Changed profile picture to use user id instead of username to save it.

If merged, this will reset all current profile pictures on the instance.
2023-01-23 16:54:18 +01:00
Julian Prieber c0c4397cd8 Bugfix 2023-01-23 16:48:45 +01:00
Julian Prieber a080e51835 Temporary fix for the unintended scrolling bug when applying settings
@Yohn
2023-01-10 14:41:00 +01:00
Julian Prieber dd68dee129 Added option to rename footer pages
Users can now edit the names of footer pages. This new category on the config page replaces the previous section in the Advanced Config.
2023-01-09 18:07:30 +01:00
Julian Prieber b9a371b924 Turned function findFile() into helper function 2022-12-22 09:51:19 +01:00
John Brittain 5031eedd2f Update Config Nav Tabs and add smooth scrolling 2022-12-13 04:37:02 -05:00
JWB ec4994896f
swap style= with class= 2022-12-11 17:06:25 -05:00
JWB 9ef166d510
updated users search box & table-responsive
Put the users search box within a input group to look nicer, and wrapped the table within the row, col-12 and table-responsive tags for better mobile usability.

In order to fix the overflow issue in mobile for the tables, we will need to put the side panel on a grid / col combo so the rest of the page falls under that and then use the collapse utility that bootstrap provides to open and close the side nav.
2022-12-11 16:49:25 -05:00
Julian Prieber e4ee681600 Updated styling 2022-12-07 13:53:01 +01:00
Julian Prieber fd6b0e1dac Bugfix 2022-12-05 20:00:16 +01:00
Julian Prieber 102a682c53 Update users.blade.php 2022-12-04 23:30:23 +01:00
Julian Prieber fed93daf48 Added option to reset favicon and logo 2022-11-30 12:10:45 +01:00
Julian Prieber 38c856484d Added support for custom favicon
Custom logo and custom favicons can now have any supported format.
2022-11-29 23:33:25 +01:00
Julian Prieber f28c4809dc Update config-editor.blade.php 2022-11-24 00:07:26 +01:00
Julian Prieber d0e170523e Remove all external dependencies 2022-11-23 18:33:28 +01:00
Julian Prieber 2d43347e66 Remove all external dependencies 2022-11-23 18:32:25 +01:00
Julian Prieber 56e17b9fd5 Remove all external dependencies
https://github.com/JulianPrieber/littlelink-custom/discussions/222
2022-11-23 16:37:30 +01:00
Julian Prieber 179225d358 Update config-editor.blade.php 2022-11-20 23:01:37 +01:00
Julian Prieber b8ac15a50a Added back to top button 2022-11-20 22:55:21 +01:00
Julian Prieber 2d51879300 Added index section to config page 2022-11-20 21:30:48 +01:00
Julian Prieber f6a137e8bd Removed register select 2022-11-19 11:59:51 +01:00
Julian Prieber 0c19b66e2c Update config.blade.php 2022-11-17 21:27:51 +01:00
Julian Prieber e4c95e199f Update config-editor.blade.php 2022-11-17 18:01:59 +01:00
Julian Prieber 16e59a6285 Update config-editor.blade.php 2022-11-17 17:41:21 +01:00
Julian Prieber 2d332128d9 Added hover animation 2022-11-17 17:27:19 +01:00
Julian Prieber eecfca0958 Update phpinfo.blade.php 2022-11-17 17:10:12 +01:00
Julian Prieber 8350373262 Updated config editor 2022-11-17 15:07:06 +01:00
Julian Prieber 0975ab18de Update index.blade.php 2022-11-14 11:51:54 +01:00
Julian Prieber a8dafa5154 Update index.blade.php 2022-11-11 19:13:26 +01:00
Julian Prieber 453b965fc2 Update index.blade.php 2022-11-11 19:12:25 +01:00
Julian Prieber 69a5139b70 Update index.blade.php 2022-11-11 19:11:15 +01:00
Julian Prieber 951df23c91 Laravel 9
Update to Laravel 9

Commit for the upcoming from-end update.
2022-11-08 16:11:59 +01:00
Julian Prieber 8d7c222edf Revert "Added scroll to bottom button"
This reverts commit 250d48a187.
2022-08-26 15:04:16 +02:00
Julian Prieber 250d48a187 Added scroll to bottom button
Added scroll to bottom button to:

config page
advanced config page
alternative config editor page
2022-08-23 13:18:09 +02:00
Julian Prieber 1ddae3fc94 Fixed FA
Fixed Font Awesome. Again...

Now using CSS and JS
2022-08-22 12:44:09 +02:00
Julian Prieber 435e09a240 Fixed FA 2022-08-10 20:03:46 +02:00
Julian Prieber fc8a18f0d7 Switched Font Awesome from JS to CSS 2022-08-08 14:11:19 +02:00
Julian Prieber b51b7c46a8 Added independent backup system 2022-08-06 12:20:28 +02:00
Julian Prieber 66ac92087a Update links.blade.php 2022-07-31 02:03:30 +02:00
Julian Prieber a68990a56b Update links.blade.php 2022-07-31 02:00:09 +02:00
Julian Prieber 32892f214f Changed Delete user button 2022-07-12 16:30:19 +02:00
Julian Prieber 49981c8c6c Now displaying user's emails on user page 2022-07-12 16:10:49 +02:00
Julian Prieber e28a831778 Update users.blade.php 2022-07-11 21:11:49 +02:00
Julian Prieber 5f58a1f4ad Added protection against admins deleting their own accounts
Admins cannot un-verify, block or delete admin accounts. This includes their own and other accounts.
2022-07-11 18:00:22 +02:00
Julian Prieber 6fa31bad06 Update users.blade.php 2022-07-11 17:21:19 +02:00
Julian Prieber 9ae47ad188 Update users.blade.php 2022-07-11 16:58:20 +02:00
Julian Prieber 5b8a3eb77f Update users.blade.php 2022-07-11 16:52:28 +02:00
Julian Prieber be5b890ce7 Added proper option to delete users
Users links will now NOT be deleted anymore if blocked.
2022-07-11 16:25:26 +02:00
Julian Prieber 9a38e061c9 Added option to create new user from the Admin Panel 2022-07-11 16:05:28 +02:00
Julian Prieber ffcab1c8ec Added manual E-Mail verification
Admins are now able to verify users emails manually from the Admin Panel.
2022-07-11 14:51:24 +02:00
Julian Prieber 8b98c5d84e Update links.blade.php 2022-07-07 23:30:58 +02:00
Julian Prieber 1ee73d0554 Added option for deleting themes 2022-07-04 23:41:28 +02:00
Julian Prieber 63f5c12ed8 Update backups.blade.php 2022-06-16 13:59:11 +02:00
Julian Prieber 0ad7c44b3d Update backups.blade.php 2022-06-16 13:52:56 +02:00
Julian Prieber c840d72fca Fixed path 2022-06-16 13:42:37 +02:00
Julian Prieber c739d7b1b3 Fixed cURL error 7 on proxied server 2022-06-16 09:56:36 +02:00
Julian Prieber b5baeecab9 Added Advanced Config editor to Admin Panel
+ .ENV editor for NGINX users
2022-06-13 17:47:24 +02:00
Julian Prieber edbdd98649 Update phpinfo.blade.php 2022-06-08 17:37:52 +02:00
Julian Prieber 5e23002b58 Fixed color scheme not applying 2022-06-08 17:24:51 +02:00
Julian Prieber a36e985bfc Added overwrite for default color scheme
Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.

Either "dark" or "light".
2022-06-08 17:09:24 +02:00
Julian Prieber ca86582157 Added support for custom meta tags
Added support for custom meta tags via a new config file.
Custom meta tags will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.

Replaced "<html lang="en">" with "@include('layouts.lang')" meaning HTML lang can be changed in the new config, defaults to en if not active or not defined.
2022-06-08 15:43:51 +02:00
Julian Prieber 217201fa66 Update users.blade.php 2022-05-30 15:18:17 +02:00
Julian Prieber 35f59acf91 Update users.blade.php 2022-05-30 15:11:01 +02:00
Julian Prieber 2dc3e3d185 Added option for admins to view and delete user links 2022-05-30 15:02:27 +02:00
Julian Prieber a8dec6ff9e Update edit-user.blade.php 2022-05-15 11:43:11 +02:00
Julian Prieber 1eb92e56b2 Added dark mode toggle for Admin/User Panel
A simple toggle switch that sets an override cookie with JavaScript.

The cookie is still read with PHP/blade.
2022-05-13 13:03:10 +02:00
Julian Prieber bdf1e7413c Updated 'no page URL' notice 2022-05-10 12:38:26 +02:00
Julian Prieber 89f8361edd Added security check tool
Added new security check tool. This tool is a new page that displays diagnostic information about your LittleLink Custom installation.

Previously, installing LittleLink Custom on NGINX or other platforms that do not support .htaccess functionality presented a significant security risk if not configured properly. This tool simply shows if critical system files can be accessed externally by anyone. In addition, information about writing access to important files or directories is displayed here.

Read more about this feature on the blog here: https://blog.littlelink-custom.com/new-security-check-tool/
2022-04-20 17:31:38 +02:00
Julian Prieber cf66be63cb Fixed 'Edit User' changes not applying
Fixed bug where if a user was edited on the Admin Panel under 'Admin>Users> Edit User' changes would not apply without every value being changed.

This bug originates from LittleLink Admin (the fork of which this fork is based on).

One part of this issue was that most fields were required to fill in. If only one would be left, empty, none would apply. The problem was if this requirement was removed, the password would always overwrite the current password, even when left empty.
This meant you could only edit users if you knew their password, otherwise their passwords would be changed, probably preventing that user from login in ever again.

After some experimenting, I implemented the easiest fix I could come up with. A simple if-else statement that checks if the password field is empty and if so only saves the other parameters without touching the password. If the password is changed, the changes will be applied normally.

Also fixed the profile image size for the default placeholder image.
2022-03-28 19:54:17 +02:00
Julian Prieber 6f0bf16587 Added phpinfo debugger
Added PHPinfo section to the config editor to display information about the current state of PHP.
This new section can be found on the Admin Panel under 'Admin>Config>PHP Info'.

For this, a new route and section in the admin controller have been added. The page is loaded as phpinfo.blade.php with the route .../panel/phpinfo if the user is authenticated as an admin.

I added the usual dark mode detection to the page, with an extra section that changes the background color according to the preferred theme setting. The page itself can be downloaded and saved as an HTML, for this  JavaScript is used.
2022-03-28 12:20:47 +02:00
Julian Prieber 393e18a3c9 Added visual HTML editor
Added visual HTML editor for editing HTML on the footer and home pages. This editor is based on the open source CKEditor a Smart Visual Text Editor for HTML coded in JavaScript.

Read the Blog post about this topic for more info about this feature here: https://blog.littlelink-custom.com/visual-html-editor/
2022-03-23 13:57:20 +01:00
Julian Prieber 6f94f40636 Added no Page URL message
Added no Page URL message to the Admin and User panel
2022-03-21 16:46:35 +01:00
JulianPrieber ec88a74889 Fixed bug/simplified setup
Fixed bug where users littlelink pages (domain.com/@username) would display a 404 error. This was caused due to the .env config file not containing an App URL. This issue could be solved by simply adding a URL to the config, this is now not necessary anymore, making the setup process easier and less confusing. 

I changed every instance of "{{ config('app.url') }}" to  "{{ url(' ') }}". This effectively automatically uses the correct URL for LittleLink links, even if LittleLink Custom is set up in a subdirectory.

In my testing, I couldn't find any problems this might have caused, so this appears to do the job just as well as setting the URL in the config. If I find any issues with this, I will revert this change.
2022-02-27 19:33:19 +01:00
JulianPrieber 4e78b1a58f Added option to disable registration
Added option to disable registration.
2022-02-23 20:19:15 +01:00
JulianPrieber c8696ca5d5 Fixed elseif
Fixed new elseif statements by changing:
"if
if"
to
"if
elseif"
2022-02-20 15:42:45 +01:00
JulianPrieber 96cfd5b4c1 Changed logo
As part of the new logo (https://github.com/JulianPrieber/littlelink-custom/milestone/1) I'm now using the new 'logo.svg' vector logo.

For this, I added an if-else statement in most cases, which first check for a custom logo uploaded by the admin or the avatar of an individual user. If the image doesn't exist, the default logo (logo.svg) is used.
2022-02-20 13:12:25 +01:00
JulianPrieber c097c0ae09
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:56:03 +01:00
aprillio 464cb2bbae update panel user lists blade 2021-07-06 15:50:47 +07:00
aprillio 8d2c55dc64 update panel index blade 2021-07-06 15:50:27 +07:00
aprillio 9d5bffd48b update panel edit user blade 2021-07-06 15:50:07 +07:00
Khashayar Zavosh bfeddce3ba fix: show & auth user with littlelink_name 2021-04-18 22:13:43 +04:30
Khashayar Zavosh 24db7cbbfb admin littlelink 2021-04-16 03:30:00 +04:30