Commit Graph

2184 Commits

Author SHA1 Message Date
Julian Prieber bcc5050c35 Added Custom Website button
Added new Custom Website button which visually looks similar to the previously added Website button with an except of the icon of the new button being the favicon of the chose link. The text on the button is set with the button title, just like the Custom button.

The favicon request is performed via the Google API. The icon displays correctly in most cases, with some exceptions. I might add a function later on that displays a generic icon if no icon was found.
2022-03-18 14:59:45 +01:00
Julian Prieber 35b487d48a
Fixed SQLSTATE Exception 2022-03-18 13:34:41 +01:00
Julian Prieber 7fb6068d49 Made link title optional
Made link title (previously required) optional when adding personal LittleLink links on the User/Admin Panel.
If the 'Title' field is left empty, the button name is now used instead of rejecting the addition.
2022-03-18 12:04:13 +01:00
Julian Prieber fe7fc9f714 Updated Domain 2022-03-17 21:28:26 +01:00
Julian Prieber 09bd0aed96 Added new buttons
Added new 'Buy me a Coffee' and 'generic Website' buttons
2022-03-17 21:19:30 +01:00
Julian Prieber 9bb6d949fc
Update README.md 2022-03-17 18:49:04 +01:00
Julian Prieber 1d2df13b0f Added footer to Admin Panel
I re-enabled the footer disabled by Latuminggi's LittleLink Admin fork. This footer adds a Home button which brings you to the landing page, in addition to Terms, Privacy and Contact buttons.

I also edited the policy pages for the buttons named above to include the new logo as well as the dark mode detection.
2022-03-17 17:33:37 +01:00
Julian Prieber 5751dbce12
Update README.md 2022-03-17 15:33:41 +01:00
Julian Prieber 89b61c5855
Update .env 2022-03-17 13:47:41 +01:00
Julian Prieber f27286ae60
Update version.json 2022-03-16 21:36:15 +01:00
Julian Prieber 887a266ff3 Update composer.lock 2022-03-16 20:48:50 +01:00
Julian Prieber 379382749b
Merge pull request #9 from JulianPrieber/dependabot/composer/laravel/tinker-2.7.1
Bump laravel/tinker from 2.6.1 to 2.7.1
2022-03-16 14:56:56 +01:00
Julian Prieber 86f7e099ec
Merge pull request #7 from JulianPrieber/dependabot/composer/guzzlehttp/guzzle-7.4.1
Bump guzzlehttp/guzzle from 7.3.0 to 7.4.1
2022-03-16 14:56:45 +01:00
Julian Prieber 1a8fa928ef
Merge pull request #8 from JulianPrieber/dependabot/composer/mockery/mockery-1.5.0
Bump mockery/mockery from 1.4.3 to 1.5.0
2022-03-16 14:56:35 +01:00
Julian Prieber 47722482d7
Merge pull request #10 from JulianPrieber/dependabot/composer/fruitcake/laravel-cors-2.2.0
Bump fruitcake/laravel-cors from 2.0.4 to 2.2.0
2022-03-16 14:56:24 +01:00
Julian Prieber 96c65e7ed6
Merge pull request #11 from JulianPrieber/dependabot/composer/facade/ignition-2.17.5
Bump facade/ignition from 2.10.2 to 2.17.5
2022-03-16 14:56:12 +01:00
Julian Prieber c36191daf1
Update README.md 2022-03-16 14:54:09 +01:00
Julian Prieber 518ae76f9f
Update LICENSE 2022-03-16 14:52:25 +01:00
dependabot[bot] 7609570aa3
Bump facade/ignition from 2.10.2 to 2.17.5
Bumps [facade/ignition](https://github.com/facade/ignition) from 2.10.2 to 2.17.5.
- [Release notes](https://github.com/facade/ignition/releases)
- [Changelog](https://github.com/facade/ignition/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facade/ignition/compare/2.10.2...2.17.5)

---
updated-dependencies:
- dependency-name: facade/ignition
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:47:07 +00:00
dependabot[bot] 685f613c18
Bump fruitcake/laravel-cors from 2.0.4 to 2.2.0
Bumps [fruitcake/laravel-cors](https://github.com/fruitcake/laravel-cors) from 2.0.4 to 2.2.0.
- [Release notes](https://github.com/fruitcake/laravel-cors/releases)
- [Changelog](https://github.com/fruitcake/laravel-cors/blob/master/changelog.md)
- [Commits](https://github.com/fruitcake/laravel-cors/compare/v2.0.4...v2.2.0)

---
updated-dependencies:
- dependency-name: fruitcake/laravel-cors
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:46:55 +00:00
dependabot[bot] 1fb76b4591
Bump laravel/tinker from 2.6.1 to 2.7.1
Bumps [laravel/tinker](https://github.com/laravel/tinker) from 2.6.1 to 2.7.1.
- [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.6.1...v2.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:46:45 +00:00
dependabot[bot] e833e7b922
Bump mockery/mockery from 1.4.3 to 1.5.0
Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mockery/mockery/compare/1.4.3...1.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:46:35 +00:00
dependabot[bot] 538942cd61
Bump guzzlehttp/guzzle from 7.3.0 to 7.4.1
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.3.0 to 7.4.1.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.3.0...7.4.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:46:30 +00:00
Julian Prieber f4e0e4defb
Update dependabot.yml 2022-03-16 14:46:09 +01:00
Julian Prieber b6b705e452
Create dependabot.yml 2022-03-16 14:43:54 +01:00
Julian Prieber b77da3b670
Merge pull request #6 from JulianPrieber/dependabot/npm_and_yarn/postcss-8.2.13
Bump postcss from 8.2.8 to 8.2.13
2022-03-16 14:35:03 +01:00
dependabot[bot] 6703793883
Bump postcss from 8.2.8 to 8.2.13
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.8 to 8.2.13.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.8...8.2.13)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:32:51 +00:00
Julian Prieber b8f59598a9
Merge pull request #5 from JulianPrieber/dependabot/npm_and_yarn/url-parse-1.5.10
Bump url-parse from 1.5.1 to 1.5.10
2022-03-16 14:23:59 +01:00
dependabot[bot] 350abb5626
Bump url-parse from 1.5.1 to 1.5.10
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 13:18:02 +00:00
Julian Prieber fef2e09aa9 Added built in Config Editor
LittleLink Custom now includes an .env config editor. This editor can be accessed via the Admin Panel under Admin>Config.
This editor allows admins to edit, backup, download and upload the .env configuration file. All in all, the new feature, allows users to more easily edit the configuration file, contributing to my goal of making LittleLink Custom easier to use.

Read more about this topic on the Blog https://blog.littlelink-custom.com/built-in-config-editor
2022-03-16 14:16:03 +01:00
Julian Prieber 9bdf937e4b
Update README.md 2022-03-16 13:06:01 +01:00
Julian Prieber 0aaa86224e Built in SMTP server
LittleLink Custom now includes an open and free to use SMTP server. Mails from this service may only be used for password recovery and registration purposes involving users personal LittleLink Custom or LittleLink Admin pages.
Users of this service must abide by our Terms and Conditions found at https://llc-mail.tru.io/.

Motivations for this are explained on my blog post about this topic, which you can read here: https://blog.littlelink-custom.com/littlelink-custom-mail-server/
2022-03-16 13:03:43 +01:00
Julian Prieber d8482e3182
Update README.md
Added a new Blog to document this project and better communicate updates and discuss them with others.
2022-03-15 10:10:31 +01:00
Julian Prieber 62eaa99870
Update version.json 2022-03-03 12:33:00 +01:00
JulianPrieber 907a3116bb Fixed dark mode not applying on first visit
This 'bug' was caused due to the way the dark mode was applied. The dark mode detection detects the preferred theme style from the client and then saves the preferred type with a cookie, all with JavaScript. Then a simple PHP if-else statement loads either the dark or light mode CSS theme, depending on the cookie.

The problem here was that the cookie would only be detected if the page was refreshed, so once the cookie was set, the dark mode was applied every time without a problem. But the first time a user visited the site and the preferred theme was set to dark mode, the page would still display the white version until the page was refreshed.

Now, I could have changed how the page applies the dark mode, however I decided against that and went with this commit instead.

Now I'm not really experienced with JavaScript at all, so this definitely could have been solved in a more elegant way, but this is what I did:

I added a bit to the JavaScript that sets and reads the cookie. When the page finished loading, a simple if statement is run that requires the following conditions: 
The URL contains a '#' and the color scheme equals 'dark' and the cookie isn't set yet. 
After these conditions are met, '#dark' is added to the URL and the page will be refreshed.

This refresh is only performed without the cookie, thus only refreshing the page on the first visit if the dark mode would be applied.

The '#dark' is only added to the URL to fail the first requirement of the if statement, preventing the page from being reloaded in an infinite loop. Otherwise, the  '#dark' part of the URL fulfills no purpose and only the '#' part is required, so it doesn't even matter what comes after the hash. I just chose this for clarification.

If the dark mode cookie is blocked by the user, the page will be set to light mode and refreshed every time they visit but the '#dark' will still be added to the URL, preventing the infinite refresh-loop.
2022-03-03 10:49:10 +01:00
Julian Prieber b8831c9969
Update README.md 2022-03-02 09:30:55 +01:00
Julian Prieber f176e93307
Update README.md 2022-02-28 00:00:11 +01:00
Julian Prieber 78b00d4cea
Update README.md 2022-02-27 23:59:48 +01:00
Julian Prieber 2877afb8bd
Update README.md 2022-02-27 23:56:02 +01:00
Julian Prieber b75720ad53
Update version.json 2022-02-27 23:46:24 +01:00
Julian Prieber a755de769a
Added full Demo Page
This is a full-fledged demo of the website, complete with login and register functionality.
Feel free to register your account and try out all the features of LittleLink Custom.

Please take into account that performance on this page might not represent optimal performance achievable with LittleLink Custom due to compromises regarding our web hosting budget.

LittleLink Custom administrators reserve the right to remove any content or account registered on this page without prior warning for any reason whatsoever.
2022-02-27 23:44:25 +01:00
Julian Prieber 81e5c5a377
Security update
Update security by preventing access to hidden and .sqlite files via the .htaccess file.
2022-02-27 23:12:22 +01:00
Julian Prieber 3db8d5b8fd
Update README.md 2022-02-27 22:03:32 +01:00
Julian Prieber d683bc03fe
Update version.json 2022-02-27 21:13:57 +01:00
Julian Prieber 9cc1f416b0
Update version.json 2022-02-27 20:46:59 +01:00
Julian Prieber 9a3348ffd2
Fixed register/login... dark mode
Removed check for browser type, now applies dark mode regardless of browser type if dark mode cookie is detected
2022-02-27 19:43:58 +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
Julian Prieber 3cf687a37f
Updated version file 2022-02-23 23:57:20 +01:00
Julian Prieber bbc0e8e86e
Fixed bug ErrorException
Fixed bug where a timeout in the update server response would throw an Error Exception
2022-02-23 20:53:50 +01:00
JulianPrieber 4e78b1a58f Added option to disable registration
Added option to disable registration.
2022-02-23 20:19:15 +01:00