-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from JSalmon11/dev
dev version 1.1.0
- Loading branch information
Showing
29 changed files
with
386 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
# CHANGELOG | ||
|
||
## [1.1.0] - 2022-04-10 | ||
### Added | ||
- Added button to check available updates. | ||
- Added internationalization support (es, en, ja). | ||
|
||
### Fixed | ||
- Handled error when length field is empty. | ||
|
||
|
||
## [1.0.0] - 2022-04-08 | ||
- Initial release | ||
|
||
[1.1.0]: https://github.com/JSalmon11/Generador-de-Contrasenias/compare/1.0.0...1.1.0 | ||
[1.0.0]: https://github.com/JSalmon11/Generador-de-Contrasenias/compare/b552912c04419d8d2ae5d9fd9bb7f315145f46d8...1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CHANGELOG | ||
|
||
## [1.1.0] - 2022-04-10 | ||
### Añadido | ||
- Añadido botón para comprobar actualizaciones. | ||
- Añadido soporte para intenacionalización (es, en, ja). | ||
|
||
### Arreglado | ||
- Controlado error cuando el campo longitud está vacío. | ||
|
||
|
||
## [1.0.0] - 2022-04-08 | ||
- Lanzamineto inicial. | ||
|
||
[1.1.0]: https://github.com/JSalmon11/Generador-de-Contrasenias/compare/1.0.0...1.1.0 | ||
[1.0.0]: https://github.com/JSalmon11/Generador-de-Contrasenias/compare/b552912c04419d8d2ae5d9fd9bb7f315145f46d8...1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# Generador de contraseñas | ||
# Password generator | ||
|
||
## Introducción | ||
## Introduction | ||
|
||
Esta es un aplicación sencilla que genera contraseñas seguras aleatorias. | ||
This is a simple app that generates random strong passwords. | ||
|
||
### Comenzando | ||
### Starting | ||
|
||
Puedes decargar el ejecutable de la versión que desees. | ||
You can download the executable of the version you want. | ||
|
||
### Pre-requisitos 📋 | ||
### Pre-requisites 📋 | ||
|
||
-Tener instalado el Java jre mínimo necesario, el [jre1.8.0_321](https://www.java.com/es/download/ie_manual.jsp). | ||
-Have the minimum necessary Java jre installed, the [jre1.8.0_321](https://www.java.com/es/download/ie_manual.jsp). | ||
|
||
### Instalación 🔧 | ||
### Installation 🔧 | ||
|
||
Con Java en tu ordenador solo tendrás que ejecutar el archivo .exe o .jar. | ||
With Java on your computer you will only have to run the .exe or .jar file. | ||
|
||
## Ejecución ⚙️ | ||
## Execution ⚙️ | ||
|
||
Al ejecutar el programa se pide la longitud deseada de la contraseña, una vez elegida pulsa el botón mostrar y aparecerá una contraseña segura, pulsa copiar para ponerla en el portapapeles y poder pegarla donde quieras. | ||
When executing the program, the desired length of the password is requested, once chosen, press the show button and a secure password will appear, press copy to put it on the clipboard and be able to paste it wherever you want. | ||
|
||
### Autor ✍️ | ||
### Author ✍️ | ||
https://github.com/JSalmon11 | ||
|
||
## Construido con 🛠️ | ||
## Built with 🛠️ | ||
|
||
* [Visual studio code](https://code.visualstudio.com/downloadl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generador de contraseñas | ||
|
||
## Introducción | ||
|
||
Esta es un aplicación sencilla que genera contraseñas seguras aleatorias. | ||
|
||
### Comenzando | ||
|
||
Puedes decargar el ejecutable de la versión que desees. | ||
|
||
### Pre-requisitos 📋 | ||
|
||
-Tener instalado el Java jre mínimo necesario, el [jre1.8.0_321](https://www.java.com/es/download/ie_manual.jsp). | ||
|
||
### Instalación 🔧 | ||
|
||
Con Java en tu ordenador solo tendrás que ejecutar el archivo .exe o .jar. | ||
|
||
## Ejecución ⚙️ | ||
|
||
Al ejecutar el programa se pide la longitud deseada de la contraseña, una vez elegida pulsa el botón mostrar y aparecerá una contraseña segura, pulsa copiar para ponerla en el portapapeles y poder pegarla donde quieras. | ||
|
||
### Autor ✍️ | ||
https://github.com/JSalmon11 | ||
|
||
## Construido con 🛠️ | ||
|
||
* [Visual studio code](https://code.visualstudio.com/downloadl) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
textLongitud=Longitud: | ||
buttonMostrar=Mostrar | ||
buttonCopiar=Copiar | ||
mainTitulo=Generador de contraseñas | ||
hoverButtonActualizar=Comprobar actualizaciones | ||
|
||
actualizarTitulo=Actualizar | ||
textActualizar=Ya tienes la última versión disponible. | ||
buttonActualizar=Actualizar | ||
buttonCancelar=Cancelar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
textLongitud=Length: | ||
buttonMostrar=Show | ||
buttonCopiar=Copy | ||
mainTitulo=Password Generator | ||
hoverButtonActualizar=Check updates | ||
|
||
actualizarTitulo=Update | ||
textActualizar=You already have the latest version available. | ||
buttonActualizar=Update | ||
buttonCancelar=Cancel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
textLongitud=長さ: | ||
buttonMostrar=公演 | ||
buttonCopiar=コピー | ||
mainTitulo=パスワードジェネレータ | ||
hoverButtonActualizar=更新を確認する | ||
|
||
actualizarTitulo=アップデート | ||
textActualizar=すでに最新バージョンが利用可能です. | ||
buttonActualizar=アップデート | ||
buttonCancelar=キャンセル |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package Utils; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.InputStreamReader; | ||
import java.net.URL; | ||
import java.net.URLConnection; | ||
|
||
public class ComprobarActualizaciones { | ||
|
||
/** | ||
* Comprueba si hay una nueva versión disponible de la aplicación mediante | ||
* GitHub. | ||
* | ||
* @author <a href="https://github.com/JSalmon11">Jorge Salmón</a> | ||
* @param version Versión actual de la aplicación. | ||
* @return | ||
* <ul> | ||
* <li>String de la nueva versión de la aplicación.</li> | ||
* <li>String "-1" si no hay nueva versión disponible.</li> | ||
* </ul> | ||
*/ | ||
public static String checkUpdate(String version) { | ||
String tagVersion = "-1"; | ||
try { | ||
URL url = new URL("https://github.com/JSalmon11/Generador-de-Contrasenias/tags"); | ||
URLConnection urlConnection = url.openConnection(); | ||
|
||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); | ||
String tags; | ||
boolean found = false; | ||
while ((tags = bufferedReader.readLine()) != null && !found) { | ||
if (tags.contains("<a href=\"/JSalmon11/Generador-de-Contrasenias/releases/tag/")) { | ||
tagVersion = tags.replaceAll("<a href=\"/JSalmon11/Generador-de-Contrasenias/releases/tag/", "") | ||
.replace(">", "").replace("\"", "").trim(); | ||
found = true; | ||
} | ||
} | ||
bufferedReader.close(); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
if (Integer.parseInt(version.replace(".", "")) >= Integer.parseInt(tagVersion.replace(".", ""))) { | ||
tagVersion = "-1"; | ||
} | ||
return tagVersion; | ||
} | ||
|
||
} |
Oops, something went wrong.