Commit Graph

710 Commits

Author SHA1 Message Date
Julian Prieber 3994c1a64f
Fixed custom Home URL 2022-04-28 16:54:57 +02:00
Julian Prieber 915fcf102b
Update README.md 2022-04-28 14:43:41 +02:00
Julian Prieber f6c1db7c50 minor fixes 2022-04-27 21:06:51 +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 aadd01c4a2
Fixed Integrity constraint violation: 19 UNIQUE 2022-04-25 20:30:25 +02:00
Julian Prieber d2bda28105
Update README.md 2022-04-24 15:15:10 +02:00
Julian Prieber 5d74bcd2a0
Update README.md 2022-04-23 17:27:13 +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 a66f777f15
Merge pull request #31 from JulianPrieber/dependabot/npm_and_yarn/async-2.6.4
Bump async from 2.6.3 to 2.6.4
2022-04-19 21:18:04 +02:00
dependabot[bot] 71f9f77d66
Bump async from 2.6.3 to 2.6.4
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 19:17:45 +00:00
Julian Prieber 9d157a5ab9
Merge pull request #29 from JulianPrieber/dependabot/composer/laravel/sail-1.13.10
Bump laravel/sail from 1.13.9 to 1.13.10
2022-04-19 21:16:37 +02:00
Julian Prieber 1dcb4d5e9e
Merge pull request #30 from JulianPrieber/dependabot/composer/laravel/framework-8.83.9
Bump laravel/framework from 8.83.8 to 8.83.9
2022-04-19 21:16:22 +02:00
dependabot[bot] 51ad38b7ea
Bump laravel/framework from 8.83.8 to 8.83.9
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.83.8 to 8.83.9.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/9.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v8.83.8...v8.83.9)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 16:39:17 +00:00
dependabot[bot] f19a114bd7
Bump laravel/sail from 1.13.9 to 1.13.10
Bumps [laravel/sail](https://github.com/laravel/sail) from 1.13.9 to 1.13.10.
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sail/compare/v1.13.9...v1.13.10)

---
updated-dependencies:
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 16:39:04 +00: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 53805444aa Expanded controller for custom icon
Expanded user controller to save the custom icon of individual buttons for the Button Editor.

I wanted to put the saving part into its own controller, but I wasn't able to implement this because I couldn't put two controllers on one page via the route in web.php, and to my knowledge this is impossible. So I had to do some trickery to get this working. If I hadn't implemented the if-else statement, one value couldn't be saved without a NULL error violation.

This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 16:49:44 +02:00
Julian Prieber 978add4b7b Expanded controller for custom icon
Expanded user controller to get the custom icon of individual buttons as a variable for the Button Editor. This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-13 15:37:54 +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 d275a63281
Update README.md 2022-04-13 12:33:51 +02:00
Julian Prieber 4f39638d81
Merge pull request #27 from JulianPrieber/dependabot/composer/laravel/framework-8.83.8
Bump laravel/framework from 8.83.7 to 8.83.8
2022-04-12 21:39:00 +02:00
dependabot[bot] 991c0412e7
Bump laravel/framework from 8.83.7 to 8.83.8
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.83.7 to 8.83.8.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/9.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v8.83.7...v8.83.8)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 18:17:23 +00: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 ba6ffe1808 Expanded controller for custom icon
Expanded user controller to get the custom icon of individual buttons as a variable on the LittleLink page. This will be used to display a custom icon via Font Awesome.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-11 13:31:11 +02:00
Julian Prieber d880fa84d3 Added database migration for custom icons
Added database migration for the upcoming custom icons on the Button Editor.
See: https://blog.littlelink-custom.com/upcoming-features/
And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
2022-04-11 13:14:14 +02:00
Julian Prieber 8fa1aa8e51 Expanded controller for button ID
Expanded user controller to get the button ID of individual buttons as a variable on the 'Links' page. This will be used to decide if the customize button prompt will be shown for the upcoming button editor.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-11 13:06:34 +02:00
Julian Prieber c0a8c4150b Added controller for button editor
Added controller to display and edit custom CSS for the upcoming button editor.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-10 17:42:29 +02:00
Julian Prieber cb4de3f863 Added route for button editor
Added routes for upcoming button editor.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-10 17:40:37 +02:00
Julian Prieber c36e4b4b27 Fixed Integrity constraint violation
Fixed error exception, for now. Gonna add this functionality back in a separate controller.
2022-04-08 18:27:43 +02:00
Julian Prieber abb463efa4 Added controller to save custom CSS
Added controller to display and save custom CSS on the edit-link page.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-07 16:30:26 +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 1884cd2ab2 Added controller for custom CSS
Added controller to display custom CSS as a variable on the LittleLink page.
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-07 15:54:03 +02:00
Julian Prieber 559ecbee21
Update 2021_03_18_082008_create_links_table.php 2022-04-06 13:58:17 +02:00
Julian Prieber 49679f2131 Added field for custom CSS to database
See: https://blog.littlelink-custom.com/upcoming-features/
2022-04-05 23:23:36 +02:00
Julian Prieber 7695b9711a
Update FUNDING.yml 2022-04-05 20:12:26 +02:00
Julian Prieber 8f84eef11a
Merge pull request #25 from JulianPrieber/dependabot/composer/laravel/sail-1.13.9
Bump laravel/sail from 1.13.8 to 1.13.9
2022-04-05 18:37:45 +02:00
Julian Prieber 122654849a
Merge pull request #26 from JulianPrieber/dependabot/composer/laravel/framework-8.83.7
Bump laravel/framework from 8.83.6 to 8.83.7
2022-04-05 18:37:27 +02:00
dependabot[bot] 14a21cd2a4
Bump laravel/framework from 8.83.6 to 8.83.7
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.83.6 to 8.83.7.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/9.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v8.83.6...v8.83.7)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 16:35:45 +00:00
dependabot[bot] 770136cfaa
Bump laravel/sail from 1.13.8 to 1.13.9
Bumps [laravel/sail](https://github.com/laravel/sail) from 1.13.8 to 1.13.9.
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sail/compare/v1.13.8...v1.13.9)

---
updated-dependencies:
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-05 16:35:35 +00:00
Julian Prieber 83b3fa8b5e
Update version.json 2022-04-04 17:59:44 +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 5da15c0d65
Update version.json 2022-04-04 16:52:18 +02:00
Julian Prieber d150822b2c
Update .env 2022-04-04 13:29:27 +02:00
Julian Prieber 2be02c6637
Update default_settings 2022-04-04 13:29:15 +02:00