Skip to content

Commit

Permalink
rename base package from de.tinycodecrank → kryptonbutterfly
Browse files Browse the repository at this point in the history
  • Loading branch information
kryptonbutterfly committed Jan 23, 2024
1 parent de0b547 commit 7c2ad79
Show file tree
Hide file tree
Showing 39 changed files with 211 additions and 227 deletions.
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-18">
<attributes>
<attribute name="module" value="true"/>
<attribute name="add-opens" value="java.desktop/sun.awt.X11=de.tinycodecrank.ReflectionUtils"/>
<attribute name="add-opens" value="java.desktop/sun.awt.X11=kryptonbutterfly.ReflectionUtils"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img width="82" align="left" src="https://raw.githubusercontent.com/tinycodecrank/TinyTotp/master/deb-content/icon.svg"/>
<img width="82" align="left" src="https://raw.githubusercontent.com/kryptonbutterfly/TinyTotp/master/deb-content/icon.svg"/>

# TinyTotp

Expand All @@ -8,7 +8,7 @@ A Totp Client

java version | app version | jar | deb
:----------: | :---------: | :-: | :-:
18+ | 2.0.0 | [TinyTotp.jar](https://github.com/tinycodecrank/TinyTotp/releases/download/v2.0.0/TinyTotp.jar) | [TinyTotp-2.0.0.deb](https://github.com/tinycodecrank/TinyTotp/releases/download/v2.0.0/TinyTotp-2.0.0.deb)
18+ | 2.0.0 | [TinyTotp.jar](https://github.com/kryptonbutterfly/TinyTotp/releases/download/v2.0.0/TinyTotp.jar) | [TinyTotp-2.0.0.deb](https://github.com/kryptonbutterfly/TinyTotp/releases/download/v2.0.0/TinyTotp-2.0.0.deb)

## Important

Expand All @@ -19,5 +19,5 @@ This password is used to encryt/decrypt your totp secrets.

## Images

![](https://raw.githubusercontent.com/tinycodecrank/TinyTotp/master/md/Main.png)
![](https://raw.githubusercontent.com/tinycodecrank/TinyTotp/master/md/AddSecret.png)
![](https://raw.githubusercontent.com/kryptonbutterfly/TinyTotp/master/md/Main.png)
![](https://raw.githubusercontent.com/kryptonbutterfly/TinyTotp/master/md/AddSecret.png)
2 changes: 1 addition & 1 deletion deb-content/packagedeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cp $SOURCE_DIR/target/$ARTIFACT_NAME-$PACKAGE_VERSION.jar $BUILD_DIR/usr/share/$

echo "$PACKAGE_NAME ($PACKAGE_VERSION) trusty; urgency=low" > changelog
echo " * Rebuild" >> changelog
echo " -- tinycodecrank <[email protected]> `date -R`" >> changelog
echo " -- kryptonbutterfly <[email protected]> `date -R`" >> changelog
gzip -9c changelog > $BUILD_DIR/usr/share/doc/$PACKAGE_NAME/changelog.gz

cp *.svg $BUILD_DIR/usr/share/$PACKAGE_NAME/
Expand Down
34 changes: 17 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>tiny_totp</artifactId>
<version>2.0.0</version>
<version>3.0.0</version>
<name>TinyTOTP</name>
<description>A TOTP client</description>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub tinycodecrank Apache Maven Packages</name>
<url>https://maven.pkg.github.com/tinycodecrank/maven-repo</url>
<name>GitHub kryptonbutterfly Apache Maven Packages</name>
<url>https://maven.pkg.github.com/kryptonbutterfly/maven-repo</url>
</repository>
</distributionManagement>

Expand All @@ -23,7 +23,7 @@
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/tinycodecrank/maven-repo</url>
<url>https://maven.pkg.github.com/kryptonbutterfly/maven-repo</url>
</repository>
</repositories>

Expand All @@ -41,29 +41,29 @@
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>reflection_utils</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>tiny_system_utils</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>tiny_cache</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>tiny_swing_utils</artifactId>
<version>1.0.0</version>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>de.tinycodecrank</groupId>
<groupId>kryptonbutterfly</groupId>
<artifactId>linear_algebra</artifactId>
<version>1.1.0</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down Expand Up @@ -106,7 +106,7 @@
<archive>
<manifest>
<addClasspath>false</addClasspath>
<mainClass>d.t.totp.TinyTotp</mainClass>
<mainClass>kryptonbutterfly.totp.TinyTotp</mainClass>
</manifest>
<manifestEntries>
<Add-Opens>java.desktop/sun.awt.X11</Add-Opens>
Expand All @@ -128,7 +128,7 @@
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<entryPoints>
<entryPoint>d.t.topt.TinyTotp</entryPoint>
<entryPoint>kryptonbutterfly.topt.TinyTotp</entryPoint>
</entryPoints>
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}.jar</outputFile>
</configuration>
Expand Down
8 changes: 0 additions & 8 deletions src/d/t/totp/misc/EditResult.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d.t.totp;
package kryptonbutterfly.totp;

import java.awt.Color;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d.t.totp;
package kryptonbutterfly.totp;

import java.awt.Color;
import java.awt.EventQueue;
Expand All @@ -16,28 +16,25 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import d.t.totp.misc.Assets;
import d.t.totp.misc.HtmlColors;
import d.t.totp.prefs.TotpConfig;
import d.t.totp.prefs.TotpImageCache;
import d.t.totp.prefs.TotpWindowStates;
import d.t.totp.ui.main.MainGui;
import d.t.totp.ui.passwd.PasswdGui;
import de.tinycodecrank.monads.opt.Opt;
import de.tinycodecrank.os.BaseDirectory;
import de.tinycodecrank.os.Platforms;
import de.tinycodecrank.reflectionUtils.Accessor;
import de.tinycodecrank.util.swing.ObservableGui;
import de.tinycodecrank.util.swing.events.GuiCloseEvent;
import kryptonbutterfly.monads.opt.Opt;
import kryptonbutterfly.os.BaseDirectory;
import kryptonbutterfly.os.Platforms;
import kryptonbutterfly.reflectionUtils.Accessor;
import kryptonbutterfly.totp.misc.Assets;
import kryptonbutterfly.totp.misc.HtmlColors;
import kryptonbutterfly.totp.prefs.TotpConfig;
import kryptonbutterfly.totp.prefs.TotpImageCache;
import kryptonbutterfly.totp.prefs.TotpWindowStates;
import kryptonbutterfly.totp.ui.main.MainGui;
import kryptonbutterfly.totp.ui.passwd.PasswdGui;
import kryptonbutterfly.util.swing.ObservableGui;
import kryptonbutterfly.util.swing.events.GuiCloseEvent;
import lombok.SneakyThrows;

public class TinyTotp implements TotpConstants
{
private static Gson GSON = createGson();

// private static final File CONFIG_FOLDER = new File(
// Platforms.getAppDataFile(),
// ".config/tinycodecrank/tinyTotp");
private static final BaseDirectory BASE_DIR = Platforms.baseDir(ORG_NAME, PROGRAM_NAME);

private static final File CONFIG = new File(BASE_DIR.dataHome(), "config.json");
Expand All @@ -54,8 +51,7 @@ public static void main(String[] args)
imageCache.loadFromCache();
setLookAndFeel();
ObservableGui.setDefaultAppImage(Opt.of(Assets.ICON));
EventQueue.invokeLater(() -> new PasswdGui(gce ->
{
EventQueue.invokeLater(() -> new PasswdGui(gce -> {
gce.getReturnValue()
.if_(passwd -> EventQueue.invokeLater(() -> new MainGui(TinyTotp::terminateListener, passwd)))
.else_(() -> terminateListener(null));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package d.t.totp;
package kryptonbutterfly.totp;

import java.util.Random;

import de.tinycodecrank.math.vector._int.Vec2i;
import kryptonbutterfly.math.vector._int.Vec2i;

public interface TotpConstants
{
public static final Random FAST_RANDOM = new Random();

public static final String PROGRAM_DOCK_NAME = "tiny TOTP";
public static final String PROGRAM_NAME = "TinyTotp";
public static final String ORG_NAME = "tinycodecrank";
public static final String ORG_NAME = "kryptonbutterfly";

public static final String PNG = "png";
public static final String SHA1 = "SHA1";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.Color;
import java.awt.Image;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.Color;
import java.util.HashSet;
import java.util.function.Function;

import de.tinycodecrank.math.vector._int.IVecI;
import de.tinycodecrank.monads.opt.Opt;
import kryptonbutterfly.math.vector._int.IVecI;
import kryptonbutterfly.monads.opt.Opt;
import lombok.val;

public final class ColorCloud<Col extends NamedColor, Vec extends IVecI<Vec>>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.Color;

Expand Down
8 changes: 8 additions & 0 deletions src/kryptonbutterfly/totp/misc/EditResult.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package kryptonbutterfly.totp.misc;

import kryptonbutterfly.totp.prefs.TotpEntry;

public record EditResult(
boolean delete,
TotpEntry entry)
{}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.Color;

import javax.swing.ImageIcon;

import d.t.totp.prefs.TotpCategory;
import de.tinycodecrank.math.vector._int.Vec3i;
import de.tinycodecrank.monads.opt.Opt;
import kryptonbutterfly.math.vector._int.Vec3i;
import kryptonbutterfly.monads.opt.Opt;
import kryptonbutterfly.totp.prefs.TotpCategory;
import lombok.val;

public enum HtmlColors implements NamedColor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;

import de.tinycodecrank.math.vector._int.Vec2i;
import kryptonbutterfly.math.vector._int.Vec2i;

public class ImageUtils
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import java.awt.Color;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import static de.tinycodecrank.math.utils.range.Range.*;
import static kryptonbutterfly.math.utils.range.Range.*;

import java.math.BigInteger;
import java.util.Arrays;
Expand All @@ -10,8 +10,8 @@
import javax.crypto.spec.SecretKeySpec;
import javax.swing.Box;

import d.t.totp.prefs.TotpEntry;
import d.t.totp.ui.main.TotpComponent;
import kryptonbutterfly.totp.prefs.TotpEntry;
import kryptonbutterfly.totp.ui.main.TotpComponent;
import lombok.SneakyThrows;

public final class TotpGenerator extends Thread
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package d.t.totp.misc;
package kryptonbutterfly.totp.misc;

import de.tinycodecrank.math.vector._int.IVecI;
import kryptonbutterfly.math.vector._int.IVecI;

record VectorizedColor<Color extends NamedColor, Vec extends IVecI<Vec>>(Vec vec, Color color)
{}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package d.t.totp.prefs;
package kryptonbutterfly.totp.prefs;

import static de.tinycodecrank.math.utils.range.Range.*;
import static kryptonbutterfly.math.utils.range.Range.*;

import java.awt.Component;
import java.awt.Frame;
Expand All @@ -10,8 +10,8 @@

import com.google.gson.annotations.Expose;

import de.tinycodecrank.math.utils.limit.LimitInt;
import de.tinycodecrank.monads.opt.Opt;
import kryptonbutterfly.math.utils.limit.LimitInt;
import kryptonbutterfly.monads.opt.Opt;

public class GuiPrefs
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package d.t.totp.prefs;
package kryptonbutterfly.totp.prefs;

import static de.tinycodecrank.math.utils.range.Range.*;
import static kryptonbutterfly.math.utils.range.Range.*;

import java.awt.Color;
import java.awt.image.BufferedImage;
Expand All @@ -9,9 +9,9 @@

import com.google.gson.annotations.Expose;

import d.t.totp.misc.Assets;
import d.t.totp.misc.HtmlColors;
import de.tinycodecrank.cache.LRUCache;
import kryptonbutterfly.cache.LRUCache;
import kryptonbutterfly.totp.misc.Assets;
import kryptonbutterfly.totp.misc.HtmlColors;

public final class TotpCategory implements Cloneable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package d.t.totp.prefs;
package kryptonbutterfly.totp.prefs;

import java.util.ArrayList;

import com.google.gson.annotations.Expose;

import d.t.totp.misc.HtmlColors;
import de.tinycodecrank.monads.opt.Opt;
import kryptonbutterfly.monads.opt.Opt;
import kryptonbutterfly.totp.misc.HtmlColors;

public final class TotpConfig
{
Expand Down
Loading

0 comments on commit 7c2ad79

Please sign in to comment.