-
-
Notifications
You must be signed in to change notification settings - Fork 217
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 #2192 from DamnClin/vue-modules
Migrate vue module
- Loading branch information
Showing
30 changed files
with
455 additions
and
999 deletions.
There are no files selected for viewing
19 changes: 10 additions & 9 deletions
19
.../java/tech/jhipster/lite/generator/client/vue/core/application/VueApplicationService.java
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,23 +1,24 @@ | ||
package tech.jhipster.lite.generator.client.vue.core.application; | ||
|
||
import org.springframework.stereotype.Service; | ||
import tech.jhipster.lite.generator.client.vue.core.domain.VueService; | ||
import tech.jhipster.lite.generator.project.domain.Project; | ||
import tech.jhipster.lite.generator.client.vue.core.domain.VueModulesFactory; | ||
import tech.jhipster.lite.generator.module.domain.JHipsterModule; | ||
import tech.jhipster.lite.generator.module.domain.properties.JHipsterModuleProperties; | ||
|
||
@Service | ||
public class VueApplicationService { | ||
|
||
private final VueService vueService; | ||
private final VueModulesFactory factory; | ||
|
||
public VueApplicationService(VueService vueService) { | ||
this.vueService = vueService; | ||
public VueApplicationService() { | ||
factory = new VueModulesFactory(); | ||
} | ||
|
||
public void addVue(Project project) { | ||
vueService.addVue(project); | ||
public JHipsterModule buildVueModule(JHipsterModuleProperties properties) { | ||
return factory.buildVueModule(properties); | ||
} | ||
|
||
public void addPinia(Project project) { | ||
vueService.addPinia(project); | ||
public JHipsterModule buildPiniaModule(JHipsterModuleProperties properties) { | ||
return factory.buildPiniaModule(properties); | ||
} | ||
} |
81 changes: 0 additions & 81 deletions
81
src/main/java/tech/jhipster/lite/generator/client/vue/core/domain/Vue.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.