Skip to content

Commit

Permalink
Merge pull request #3275 from DamnClin/delete-project
Browse files Browse the repository at this point in the history
Delete legacy project
  • Loading branch information
DamnClin authored Aug 27, 2022
2 parents 4fc3536 + a2510c8 commit e6cba20
Show file tree
Hide file tree
Showing 143 changed files with 362 additions and 2,199 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,6 @@ jobs:
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
if [ -f 'mvnw' ]; then
git init
git config user.email "test@jhipster.com"
git config user.name "Test"
git add .
git commit -m "Initial commit"
./mvnw clean verify sonar:sonar
fi
- name: 'Test: check local Sonar Analysis'
Expand Down
57 changes: 0 additions & 57 deletions src/main/java/tech/jhipster/lite/common/domain/FileUtils.java

This file was deleted.

24 changes: 0 additions & 24 deletions src/main/java/tech/jhipster/lite/common/domain/WordUtils.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
package tech.jhipster.lite.common.domain;
package tech.jhipster.lite.generator.base64.domain;

import java.security.SecureRandom;
import java.util.Base64;

public final class Base64Utils {

private static final SecureRandom random = new SecureRandom();
private static final SecureRandom RANDOM = new SecureRandom();

private Base64Utils() {}

public static String getBase64Secret() {
return getBase64Secret(64);
}

private static String getBase64Secret(int length) {
return Base64.getEncoder().encodeToString(getRandomHexString(length).getBytes());
return Base64.getEncoder().encodeToString(getRandomHexString(64).getBytes());
}

private static String getRandomHexString(int length) {
StringBuilder result = new StringBuilder();

while (result.length() < length) {
result.append(Integer.toHexString(random.nextInt()));
result.append(Integer.toHexString(RANDOM.nextInt()));
}

return result.substring(0, length);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@tech.jhipster.lite.SharedKernel
package tech.jhipster.lite.generator.base64;
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class MavenModuleConfiguration {
JHipsterModuleResource mavenModule(MavenApplicationService maven) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/build-tools/maven")
.slug("maven-java")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().addProjectName().build())
.apiDoc(new JHipsterModuleApiDoc("Build Tool", "Init Maven project with pom.xml and wrapper"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class GitHubActionsModuleConfiguration {
JHipsterModuleResource gutHubActionsModule(GitHubActionsApplicationService gitHubActions) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/developer-tools/github-actions")
.slug("github-actions")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Continuous Integration", "Add GitHub Actions for Maven Build"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class GitLabCiModuleConfiguration {
JHipsterModuleResource gitlabCiModule(GitLabCiApplicationService gitlabCi) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/developer-tools/gitlab-ci")
.slug("gitlab-ci")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Continuous Integration", "Add GitLab CI for Maven Build"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class AngularhealthModuleConfiguration {
JHipsterModuleResource angularHealthModule(AngularHealthApplicationService angularHealth) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/angular/admin-pages/health")
.slug("angular-health")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Angular", "Angular Health"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class AngularCoreModuleConfiguration {
JHipsterModuleResource angularModule(AngularApplicationService angular) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/angular")
.slug("angular-core")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addBasePackage().addProjectBaseName().addProjectName().build())
.apiDoc(new JHipsterModuleApiDoc("Angular", "Add Angular + Angular CLI"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class AngularJwtModuleConfiguration {
JHipsterModuleResource angularJwtModule(AngularJwtApplicationService angularJwt) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/angular/jwt")
.slug("angular-jwt")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addProjectBaseName().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("Angular", "Add Angular with authentication JWT"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class AngularOAuth2ModuleConfiguration {
JHipsterModuleResource angularOAuth2Module(AngularOauth2ApplicationService angularOAuth2) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/angular/oauth2")
.slug("angular-oauth2")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("Angular", "Add OAuth2 authentication"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ReactCoreModulesConfiguration {
JHipsterModuleResource styledReactCoreModule(ReactCoreApplicationService react) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/react/styles")
.slug("react-core")
.propertiesDefinition(properties())
.apiDoc(new JHipsterModuleApiDoc("React", "Add React+Vite with minimal CSS"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class ReactJwtModuleConfiguration {
JHipsterModuleResource reactJwtModule(ReactJwtApplicationService reactJwt) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/react/jwt")
.slug("react-jwt")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("React", "Add JWT Login React"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class SvelteModuleConfiguration {
JHipsterModuleResource svelteModule(SvelteApplicationService svelteApplicationService) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/svelte/styles")
.slug("svelte")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Svelte", "Add Svelte"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class CypressModuleConfiguration {
JHipsterModuleResource cypresModule(CypressApplicationService cypress) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/cypress")
.slug("cypress")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addServerPort().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("E2e", "Add Cypress"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class PlaywrightModuleConfiguration {
JHipsterModuleResource playwrightModule(PlaywrightApplicationService playwright) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/playwright")
.slug("client-common-playwright")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addServerPort().build())
.apiDoc(new JHipsterModuleApiDoc("E2e", "/api/clients/playwright"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class VueModuleConfiguration {
JHipsterModuleResource vueModule(VueApplicationService vue) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/vue")
.slug("vue")
.propertiesDefinition(JHipsterModulePropertiesDefinition.builder().addIndentation().build())
.apiDoc(new JHipsterModuleApiDoc("Vue", "Add Vue+Vite"))
Expand All @@ -28,7 +27,6 @@ JHipsterModuleResource vueModule(VueApplicationService vue) {
JHipsterModuleResource vuePiniaModule(VueApplicationService vue) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/clients/vue/stores/pinia")
.slug("vue-pinia")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Vue", "Add pinia for state management"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class InfinitestModuleConfiguration {
JHipsterModuleResource infinitestModule(InfinitestApplicationService infinitest) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/infinitest-filters")
.slug("infinitest-filters")
.withoutProperties()
.apiDoc(new JHipsterModuleApiDoc("Base", "Add filter for infinitest"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class InitModuleConfiguration {
JHipsterModuleResource initModule(InitApplicationService inits) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/inits")
.slug("init")
.propertiesDefinition(initPropertiesDefinition())
.apiDoc(new JHipsterModuleApiDoc("Init", "Init project"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class PrettierModuleConfiguration {
JHipsterModuleResource prettierModule(PrettierApplicationService prettier) {
return JHipsterModuleResource
.builder()
.legacyUrl("/api/prettier")
.slug("prettier")
.propertiesDefinition(initPropertiesDefinition())
.apiDoc(new JHipsterModuleApiDoc("Prettier", "Format project with prettier"))
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e6cba20

Please sign in to comment.