Commit Graph

826 Commits

Author SHA1 Message Date
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
Julian Prieber 693964e19d
Update .env 2022-04-04 13:28:13 +02:00
Julian Prieber 63cfc6050f
Update README.md 2022-04-03 21:44:36 +02:00
Julian Prieber 2f04511c9d
Merge pull request #24 from JulianPrieber/dependabot/composer/phpunit/phpunit-9.5.20
Bump phpunit/phpunit from 9.5.19 to 9.5.20
2022-04-01 18:32:30 +02:00
dependabot[bot] e73246ecb8
Bump phpunit/phpunit from 9.5.19 to 9.5.20
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.19 to 9.5.20.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.19...9.5.20)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 16:30:13 +00:00
Julian Prieber 6062ff6f4e
Update version.json 2022-03-31 23:19:25 +02:00
Julian Prieber 05c99947af Updated 'More information' message 2022-03-31 22:59:39 +02:00
Julian Prieber 5e5ce391b9 Added check, if added links end with "/"
Added check if added, or edited links end with "/". Previously if links were saved without this formatting applied an error exception would be thrown.

For this, I used the previously added functions to check if the link ends with the slash.
2022-03-31 22:45:51 +02:00
Julian Prieber 268c6557a1 Added check, if added links begin with "https"
Added check added, or edited links begin with https. Previously if links were saved without this formatting applied an error exception would be thrown.

For this I added two functions, one can check if a string ends with a certain string, the other checks if it ends with a certain string. The first function is used for the newly added check, the other one is planned to be used in a similar check in the future.
2022-03-31 22:43:01 +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
Julian Prieber 56643ed068 Fixed bug 'profile changes not applying'
Fixed a bug where users were unable to change name, email or password unless every value was changed at once.
2022-03-31 21:31:00 +02:00
Julian Prieber 0aa99064eb Fixed fadein class for home message 2022-03-31 14:06:58 +02:00
Julian Prieber 1abd7b1a2b
Update version.json 2022-03-30 14:57:50 +02:00
Julian Prieber d7656b2338
Update version.json 2022-03-30 14:42:14 +02:00
Julian Prieber 613c585efd Update composer.lock 2022-03-30 11:48:40 +02:00
Julian Prieber 10b902f108 Added share button to LittleLink pages
Added share button that is displayed on user's personal pages that if clicked either copies the profile URL or opens a share dialog window depending on the browser and operating system.

Read the blog post about this topic here: https://blog.littlelink-custom.com/share-button
2022-03-29 23:08:06 +02:00
Julian Prieber 8ffc5f5415
Merge pull request #19 from JulianPrieber/dependabot/composer/laravel/breeze-1.9.0
Bump laravel/breeze from 1.8.2 to 1.9.0
2022-03-29 18:43:33 +02:00
Julian Prieber 9dde12f41f
Merge pull request #20 from JulianPrieber/dependabot/composer/laravel/tinker-2.7.2
Bump laravel/tinker from 2.7.1 to 2.7.2
2022-03-29 18:43:26 +02:00
Julian Prieber 562facf337
Merge pull request #21 from JulianPrieber/dependabot/composer/laravel/framework-8.83.6
Bump laravel/framework from 8.83.5 to 8.83.6
2022-03-29 18:43:19 +02:00
Julian Prieber 008d3aa1ae
Merge pull request #22 from JulianPrieber/dependabot/composer/laravel/sail-1.13.8
Bump laravel/sail from 1.13.7 to 1.13.8
2022-03-29 18:43:10 +02:00
dependabot[bot] 9ad9a1f6dd
Bump laravel/sail from 1.13.7 to 1.13.8
Bumps [laravel/sail](https://github.com/laravel/sail) from 1.13.7 to 1.13.8.
- [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.7...v1.13.8)

---
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-03-29 16:34:24 +00:00
dependabot[bot] b94dc63ef6
Bump laravel/framework from 8.83.5 to 8.83.6
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.83.5 to 8.83.6.
- [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.5...v8.83.6)

---
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-03-29 16:34:14 +00:00
dependabot[bot] ef7a8069f7
Bump laravel/tinker from 2.7.1 to 2.7.2
Bumps [laravel/tinker](https://github.com/laravel/tinker) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/laravel/tinker/releases)
- [Changelog](https://github.com/laravel/tinker/blob/2.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/tinker/compare/v2.7.1...v2.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 16:33:59 +00:00
dependabot[bot] c702e11f8d
Bump laravel/breeze from 1.8.2 to 1.9.0
Bumps [laravel/breeze](https://github.com/laravel/breeze) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/laravel/breeze/releases)
- [Changelog](https://github.com/laravel/breeze/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/breeze/compare/v1.8.2...v1.9.0)

---
updated-dependencies:
- dependency-name: laravel/breeze
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 16:33:49 +00:00
Julian Prieber 805e71b886 Update footer.blade.php 2022-03-29 17:45:48 +02:00
Julian Prieber 8fdc1a7f74 Fixed spacing on custom links added by text editor
Fixed word spacing bug in texts added by the new page editor. This bug caused inserted links to have extended spacing between words.

This 'bug' was a previous feature added to display links further apart for easier readability. The feature didn't scale well with the newly added page editor which allowed users to add their own links to edited texts, causing the bug.

The extended spacing was achieved with the 'padding' CSS tag. I simply removed the tag from all an HTML tags and made it into its own class, 'spacing'. I added the class to every element on the site that previously depended on this tag.
2022-03-29 16:27:50 +02:00
Julian Prieber 0e414dfcaf Updated default privacy notice 2022-03-29 15:49:12 +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 89479791de
Update version.json 2022-03-28 12:48:06 +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 89d54492fd Added option to set profile as homepage
The homepage can now be changed to a user's profile page with the option "HOME_URL" in the config (found on the Admin Panel under Admin>Config).

This commit is a bit janky, I wanted to change the homepage with a setting saved in the database, but I couldn't finish this in time, so this has to do for now.

An if statement in the web routes PHP checks if the new setting is present in the config and changes the homepage to the listed LittleLink Custom name. If the homage  is changed, the page previously set as the homepage where users can register and or login can now be found at .../home.
2022-03-24 14:44:33 +01:00
Julian Prieber 4b9d39ce66
Update FUNDING.yml 2022-03-23 19:33:44 +01:00
Julian Prieber 6c7f982e5e
Update README.md 2022-03-23 17:50:51 +01:00
Julian Prieber 1afe98faec
Update README.md 2022-03-23 17:40:38 +01:00
Julian Prieber 99a7a2e74f
Update LICENSE 2022-03-23 17:39:13 +01:00