Commit Graph

247 Commits

Author SHA1 Message Date
Julian Prieber 5b73de7584 Update update.blade.php 2022-05-30 10:50:01 +02:00
Julian Prieber d1d8586b32 Update update.blade.php 2022-05-30 10:42:40 +02:00
Julian Prieber 15b2a03035 Update sidebar.blade.php 2022-05-28 16:32:53 +02:00
Julian Prieber abe3a993b1 Update sidebar.blade.php 2022-05-28 16:07:19 +02:00
Julian Prieber 4739567743 Update sidebar.blade.php 2022-05-28 15:52:45 +02:00
Julian Prieber 0e257ef8ab Updated update notification system
Made NOTIFY_UPDATES=all and NOTIFY_UPDATES=major use the same version source file to prevent GitHub API limit from being reached.
2022-05-28 15:49:29 +02:00
Julian Prieber c21db40809 Added beta support to updater 2022-05-28 14:03:49 +02:00
Julian Prieber 8b7929dfa8 Update update.blade.php 2022-05-26 12:12:29 +02:00
Julian Prieber 909c11263f Update update.blade.php 2022-05-26 11:40:13 +02:00
Julian Prieber f60ff94f6d Update pages.blade.php 2022-05-26 11:21:55 +02:00
Julian Prieber 0deca1f257 Update update.blade.php 2022-05-26 11:16:46 +02:00
Julian Prieber d9bd9d6307 Update updater.blade.php 2022-05-26 11:10:33 +02:00
Julian Prieber 84b365958f Update update.blade.php 2022-05-26 11:10:05 +02:00
Julian Prieber 387b67db1d Update sidebar.blade.php 2022-05-25 23:19:29 +02:00
Julian Prieber df384df2cf Update sidebar.blade.php 2022-05-25 23:15:34 +02:00
Julian Prieber 122d9e31e6 Update update.blade.php 2022-05-25 22:09:54 +02:00
Julian Prieber 8f09d399cd Update update.blade.php 2022-05-25 21:26:57 +02:00
Julian Prieber dde1185075 Update update.blade.php 2022-05-25 20:53:32 +02:00
Julian Prieber 7927d8e021 Update update.blade.php 2022-05-25 17:05:19 +02:00
Julian Prieber dc32587dee Update updater.blade.php 2022-05-25 17:04:47 +02:00
Julian Prieber 7360bd37de Update update.blade.php 2022-05-25 17:00:21 +02:00
Julian Prieber d1f9bffc07 Update sidebar.blade.php 2022-05-25 16:27:06 +02:00
Julian Prieber 1fd71f1727 Update updater.blade.php 2022-05-25 16:22:14 +02:00
Julian Prieber 694ea93d51 Update update.blade.php 2022-05-25 16:19:20 +02:00
Julian Prieber be76c31f2d Update update.blade.php 2022-05-25 11:52:57 +02:00
Julian Prieber 634ecb5063 Update update.blade.php 2022-05-24 17:26:12 +02:00
Julian Prieber 07664d4bbc Update update.blade.php 2022-05-24 16:13:00 +02:00
Julian Prieber 4747c42ea2 Update updater.blade.php 2022-05-24 15:38:52 +02:00
Julian Prieber d5467e909e Update update.blade.php 2022-05-24 15:30:22 +02:00
Julian Prieber 5e5f575d06 Update updater.blade.php 2022-05-24 15:30:10 +02:00
Julian Prieber 283ed2c4bf Added updater backend
https://github.com/codedge/laravel-selfupdater
2022-05-24 15:29:36 +02:00
Julian Prieber edd7397239 Added backup backend
https://github.com/spatie/laravel-backup
2022-05-24 15:27:44 +02:00
Julian Prieber 496b4755b6 Added route 2022-05-24 15:23:10 +02:00
Julian Prieber 26275c152d "Reset to default" button now works with themes
The reset to default button on the Button Editor now works with custom theme buttons.
2022-05-20 16:15:14 +02:00
Julian Prieber ae1d5a85bd Added "download more themes" button 2022-05-20 11:59:16 +02:00
Julian Prieber 074ef2060f Now hiding app name in page title if ll page is set as home page 2022-05-19 17:16:21 +02:00
Julian Prieber fab724a09d
Merge pull request #62 from JulianPrieber/main
Update footer.blade.php
2022-05-19 12:29:33 +02:00
Julian Prieber 6c04067d24
Update footer.blade.php 2022-05-19 12:28:41 +02:00
Julian Prieber 0623352217
Update littlelink.blade.php 2022-05-19 12:27:37 +02:00
Julian Prieber 5a02ceaaec
Update footer.blade.php 2022-05-18 21:57:36 +02:00
Julian Prieber 592dde4b2a Added support for custom themes 2022-05-18 21:08:58 +02:00
Julian Prieber 7395ed8f0e
Update index.blade.php 2022-05-17 16:49:51 +02:00
Julian Prieber 04cfbcabc7 Update page.blade.php 2022-05-15 13:22:59 +02:00
Julian Prieber a8dec6ff9e Update edit-user.blade.php 2022-05-15 11:43:11 +02:00
Julian Prieber d6a6a7ca43 Update littlelink.blade.php 2022-05-15 11:38:43 +02:00
Julian Prieber 6338397ed9 Update page.blade.php 2022-05-15 11:34:02 +02:00
Julian Prieber 376fbd32af Update page.blade.php 2022-05-15 11:09:56 +02:00
Julian Prieber 1d4b560307 Updated plugins text editor 2022-05-14 20:25:28 +02:00
Julian Prieber 4243f99283 Optimized home page logo
Optimized home page logo for mobile devices and scalable resolutions. Replaced "ll" SVG with custom font for better centering.
2022-05-14 16:03:33 +02:00
Julian Prieber 4de0761e7c Fixed users being able to add a profile image with no page name 2022-05-13 19:35:13 +02:00
Julian Prieber 38d6d64ecf Enabled optional use of custom HTML for ll page
Enabled users to use custom HTML formatting for their personal page descriptions.

Due to security reasons, this option is turned off by default. This setting can be enabled in the config.
2022-05-13 18:10:43 +02:00
Julian Prieber 7e74f2b7df Update config.js 2022-05-13 17:44:17 +02:00
Julian Prieber 75272814a6 Added 'lineheight' option to text editor 2022-05-13 17:39:23 +02:00
Julian Prieber ee37d4a540 Added 'justify text' option to text editor 2022-05-13 17:29:36 +02:00
Julian Prieber 771a03bcaa Made footer page texts not centered 2022-05-13 17:09:35 +02:00
Julian Prieber d5418256a9 Added dark/light mode override to ll and home page 2022-05-13 14:06:12 +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 fe81015483 General optimization of home page
See: https://i.imgur.com/N6pNlou.png
2022-05-13 00:12:01 +02:00
Julian Prieber ba62dd0e77 Update littlelink.blade.php 2022-05-13 00:09:28 +02:00
Julian Prieber fa3de262cb General optimization of ll page
See: https://i.imgur.com/N6pNlou.png
2022-05-12 23:54:05 +02:00
Julian Prieber 833e57a5e6 Increased profile and logo image size 2022-05-12 22:55:34 +02:00
Julian Prieber c48bf69ec6 Made share button more mobile friendly 2022-05-12 22:03:29 +02:00
Julian Prieber 9d368ef9cb Switched to dark mode detection via CSS instead of JavaScript
Switched to dark mode detection via CSS instead of JavaScript on users LittleLink pages and the home page.

I decided to use this approach instead of the previous JavaScript version. This means that a manual switch to change between light and dark mode by user won't be added.
2022-05-12 20:17:48 +02:00
Scott Clark 62ecf52fca
Update littlelink.blade.php
display contents of $littlelink_name in contact card
2022-05-12 14:05:24 +01:00
Julian Prieber bdf1e7413c Updated 'no page URL' notice 2022-05-10 12:38:26 +02:00
Julian Prieber 7fe0da219c Update links.blade.php 2022-05-09 17:46:20 +02:00
Julian Prieber 5ee5505b0d Added noopener, noreferrer, nofollow to user generated links
Added noopener, noreferrer and nofollow to user generated links to prevent users abusing the link system for malicious purposes.

Also, this is the 400th commit  🎉
2022-05-07 17:38:49 +02:00
Julian Prieber 7166a5f81f Updated back button 2022-05-07 16:40:21 +02:00
Julian Prieber cdfa580d36 Fixed Config Editor not working
Fixed Config Editor not working see https://github.com/JulianPrieber/littlelink-custom/issues/51
2022-05-07 16:23:25 +02:00
Julian Prieber 5b63080f8c Added custom spaces and headings
Added custom spaces and headings users can add like buttons to their littlelink pages to divide button sections into groups.

Spaces can be changed via the number in the title, and one space equals one "<br>". The maximum spaces that can be added with one space 'button' is capped at 10.

The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance.

The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading.
2022-05-06 15:26:39 +02:00
Julian Prieber a65509bd58
Update register.blade.php
Added option to override registration, even if disabled with the setting in the database.

This is something that probably 99.999% of users will never need, but I really need a function like this for my personal instance.
If "REGISTER_OVERRIDE=true" is added to the .env config file, users will be able to register no matter what is set with the setting in the database. This is useful if two LittleLink Custom instances access the same database, but one should allow registration and the other should not.

If this causes any errors in the future, I will remove this.
2022-05-05 15:11:35 +02:00
Julian Prieber 8638072acb
Update littlelink.blade.php 2022-05-05 12:31:16 +02:00
Julian Prieber 53c5fb618b Update add-link.blade.php
Added 'see all links' button
2022-05-04 11:03:24 +02:00
Julian Prieber b7a5a0ab73 Update littlelink.blade.php
Enabled button editor edits to apply to custom website buttons.
2022-05-04 10:40:36 +02:00
Julian Prieber c7925f1f1a Update links.blade.php
Added 'Add link' button.
2022-05-04 10:33:59 +02:00
Julian Prieber 53fa0f98b5 Update links.blade.php
Removed 'beta' text
2022-05-04 10:14:04 +02:00
Julian Prieber cb75a24e92 Update button editor
Added functionality for custom website button. Made button editor optional to use.
2022-05-04 10:12:01 +02:00
Julian Prieber 845327a628 Updated button-editor 2022-05-04 00:40:41 +02:00
Julian Prieber 08da6fa960 Updated button editor
A bit of optimization. Everything kinda scales to mobile now. Everything still looks terrible tho.
2022-05-04 00:19:29 +02:00
Julian Prieber 4eec538834
Update sidebar.blade.php
Adds the ability to insert code snippets into the head and body element laid out by the sidebar with blade by including:

@push('stylesheets')
    <!-- your code -->
@endpush

@push('scripts')
    <!-- your code -->
@endpush
2022-05-03 23:27:37 +02:00
Julian Prieber 0cba21bee8
Update profile.blade.php
Allows admins to change their email regardless if email auth is enabled or not.
2022-05-02 21:49:10 +02:00
Julian Prieber 8555a8eeef
Update home.blade.php
Added option to override registration, even if disabled with the setting in the database.

This is something that probably 99.999% of users will never need, but I really need a function like this for my personal instance.
If "REGISTER_OVERRIDE=true" is added to the .env config file, users will be able to register no matter what is set with the setting in the database. This is useful if two LittleLink Custom instances access the same database, but one should allow registration and the other should not.

If this causes any errors in the future, I will remove this.
2022-05-02 21:41:02 +02:00
Julian Prieber 087868c4e1
Changed title to name on ll page
Changed title to name on littlelink page
2022-04-28 17:32:43 +02:00
Julian Prieber eb96bb823e
Fixed text width on ll page
Fixed text width on littlelink page.

This might be a temporary fix. This essentially limits the width of the description text.
2022-04-28 17:12:21 +02:00
Julian Prieber 62c9baba23 Added custom button editor
Added the long planned button editor. This solution does not look optimal, but works... mostly.

This solution is implemented with JavaScript and the current versions code is very unorganized mostly uncommented and the HTML is still mostly done with inline code. I hope I will fix this in future revisions.

To learn more about the new button editor, read:
https://littlelink-custom.com/blog/upcoming-features/
https://littlelink-custom.com/blog/progress-of-the-new-button-editor/
2022-04-27 20:55:19 +02:00
Julian Prieber 243e4b55c6
Update profile.blade.php 2022-04-27 13:16:17 +02:00
Julian Prieber 8f2c30d648 Update index.blade.php 2022-04-20 18:32:21 +02:00
Julian Prieber 43cca4b191 Added security check sidebar
Added a security check on the sidebar.blade.php that tests if critical config components are accessible externally by anyone.

This is a fairly crude method and not at all optimized. I might change this in future revisions. At least this feature is disabled for normal users, so it won't affect load for non admins. This is the same code from the new diagnostic tool added in the previous commit. I had to change the names of each variable, otherwise the diagnostic tool could not use the same variables. The smart thing to do here would probably be to simply use the variables only in the sidebar, since they are loaded anyway since the sidebar layout is included on the diagnostic tool, effectively loading the variables twice. I might change this later, but for now I will leave it as.

Read more about the diagnostic tool on the blog here: https://blog.littlelink-custom.com/new-security-check-tool/
2022-04-20 18:18:41 +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 021029d441
Updated Bootstrap Icons 2022-04-20 00:39:15 +02:00
Julian Prieber 70e02e43d7 Made buttons on home page display only
Changed buttons on the default home page to not be clickable anymore by changing the 'a' tags into divs.
2022-04-18 23:53:07 +02:00
Julian Prieber 550a59587a Added custom color for custom icon
This addition is mega janky. Essentially, if a color code (e.g. white; or #FFFFFF;) is entered before the custom icon, this will change the custom icon's color. Essentially, this just pastes the custom color database entry as a style element on the icon.

I will use this until I find a proper solution for this problem.

For custom icons:
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 23:47:27 +02:00
Julian Prieber 851752ccfa Update littlelink.blade.php
Switched to Font Awesome kit.

See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 19:08:09 +02:00
Julian Prieber a57d206f3c Now displaying profile name as title
User's profile names are now used as the title and heading for their LittleLink pages. Previously the '@name' was used for this, so for example the page name x.com/@admin is now not tied to the @admin part anymore, so a space could be used in the name for example.

See an example of this here: https://i.imgur.com/iBS8Hsm.png
2022-04-13 13:05:01 +02:00
Julian Prieber b50d334557 Changed spelling 2022-04-12 00:12:00 +02:00
Julian Prieber f5725bb059 Added custom icons to LittleLink page
Enabled custom buttons on LittleLink pages to now use the upcoming custom icons from the new Button Editor. The Custom button now uses Font Awesome icon by default. 

I used the Font Awesome library provided and hosted by Cloud Flare. I can include the library locally if this is preferred, contact me on our discord if I should implement this.

See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-11 13:56:36 +02:00
Julian Prieber a53087f7a6 Enabled custom CSS to be applied
Enabled custom CSS to be applied to buttons on the LittleLink page.
CSS that is entered in the database will be applied directly to buttons.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-07 15:56:02 +02:00
Julian Prieber 877dd8373f Added option to only notify about important updates
Added option to only notify about major updates. This setting is now the default and can be changed in the config by changing the setting "NOTIFY_UPDATES" from "major" to "all".

This setting was achieves by turning the previous if statement into an if-else statement with the new option. For this, I utilized a function that gets the latest tag from the GitHub repository.

I wasn't able to implement the 'if URL exists' check, the URL would just not return an error negating the function. I will probably fix this in the future, but as it is now, if the GitHub API server can't be reached this might trow an error.

The major release is still the previous update version retreated from the GitHub repository. This means I will only update that version for major or otherwise important updates. 

I implemented this feature because I didn't want to spam new users with a new update notification every other day.
2022-04-04 17:46:32 +02:00
Julian Prieber 05c99947af Updated 'More information' message 2022-03-31 22:59:39 +02:00
Julian Prieber 518d82125e Change email option is now hidden if email auth is enabled
Added if statement that hides the option for users to change their email if email registration authentication is enabled (which it is by default).
2022-03-31 21:33:58 +02:00