diff --git a/README.md b/README.md index e075411..c70cbea 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ # ![Logo](src/main/resources/public/assets/favicon-32.png) Simply Shorten -A fork of [this project](https://gitlab.com/draganczukp/simply-shorten). - # What is it? A simple selfhosted URL shortener with no unnecessary features. @@ -143,3 +141,8 @@ an exact value: INSECURE_DISABLE_PASSWORD=I_KNOW_ITS_BAD ``` Any other value will not work. + +## Notes +- This is a fork of [this project](https://gitlab.com/draganczukp/simply-shorten). +- The list of adjectives and names used for random short url generation is a modified + version of [this list used by docker](https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go). \ No newline at end of file diff --git a/build.gradle b/build.gradle index 6106106..db4f6ed 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ repositories { jar { manifest { - attributes "Main-Class": "tk.draganczuk.url.App" + attributes "Main-Class": "tk.sintan1729.url.App" } from { @@ -29,5 +29,5 @@ dependencies { } application { - mainClassName = 'tk.draganczuk.url.App' + mainClassName = 'tk.sintan1729.url.App' } diff --git a/src/main/java/tk/draganczuk/url/App.java b/src/main/java/tk/sintan1729/url/App.java similarity index 97% rename from src/main/java/tk/draganczuk/url/App.java rename to src/main/java/tk/sintan1729/url/App.java index 9efbac0..ba67847 100644 --- a/src/main/java/tk/draganczuk/url/App.java +++ b/src/main/java/tk/sintan1729/url/App.java @@ -1,4 +1,4 @@ -package tk.draganczuk.url; +package tk.sintan1729.url; import static spark.Spark.*; diff --git a/src/main/java/tk/draganczuk/url/Filters.java b/src/main/java/tk/sintan1729/url/Filters.java similarity index 95% rename from src/main/java/tk/draganczuk/url/Filters.java rename to src/main/java/tk/sintan1729/url/Filters.java index 83ad996..c77ce5b 100644 --- a/src/main/java/tk/draganczuk/url/Filters.java +++ b/src/main/java/tk/sintan1729/url/Filters.java @@ -1,4 +1,4 @@ -package tk.draganczuk.url; +package tk.sintan1729.url; import com.qmetric.spark.authentication.AuthenticationDetails; import com.qmetric.spark.authentication.BasicAuthenticationFilter; diff --git a/src/main/java/tk/draganczuk/url/Routes.java b/src/main/java/tk/sintan1729/url/Routes.java similarity index 98% rename from src/main/java/tk/draganczuk/url/Routes.java rename to src/main/java/tk/sintan1729/url/Routes.java index d141e8c..9bcaf08 100644 --- a/src/main/java/tk/draganczuk/url/Routes.java +++ b/src/main/java/tk/sintan1729/url/Routes.java @@ -1,4 +1,4 @@ -package tk.draganczuk.url; +package tk.sintan1729.url; import org.eclipse.jetty.http.HttpStatus; import spark.Request; diff --git a/src/main/java/tk/draganczuk/url/UrlRepository.java b/src/main/java/tk/sintan1729/url/UrlRepository.java similarity index 99% rename from src/main/java/tk/draganczuk/url/UrlRepository.java rename to src/main/java/tk/sintan1729/url/UrlRepository.java index 767c1ba..fe2f14b 100644 --- a/src/main/java/tk/draganczuk/url/UrlRepository.java +++ b/src/main/java/tk/sintan1729/url/UrlRepository.java @@ -1,4 +1,4 @@ -package tk.draganczuk.url; +package tk.sintan1729.url; import java.sql.*; import java.util.ArrayList; diff --git a/src/main/java/tk/draganczuk/url/Utils.java b/src/main/java/tk/sintan1729/url/Utils.java similarity index 99% rename from src/main/java/tk/draganczuk/url/Utils.java rename to src/main/java/tk/sintan1729/url/Utils.java index dafc615..e714568 100644 --- a/src/main/java/tk/draganczuk/url/Utils.java +++ b/src/main/java/tk/sintan1729/url/Utils.java @@ -1,4 +1,4 @@ -package tk.draganczuk.url; +package tk.sintan1729.url; import java.util.Random; import java.util.regex.Pattern; @@ -11,7 +11,7 @@ public class Utils { // The following lists are modified versions of the strings in // https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go - + private static final String[] adjective = new String[] {"admiring", "adoring", "affectionate", "agitated", "amazing", "angry", "awesome", "beautiful", "blissful", "bold", "boring", "brave", "busy", "charming", "clever", "compassionate", "competent", "condescending", "confident", "cool", "cranky", "crazy", "dazzling", "determined", "distracted", "dreamy", "eager", "ecstatic", "elastic", "elated", "elegant", "eloquent", "epic",