Skip to content

Commit

Permalink
#588 cleanup old controllers / enable new angular frontend. (#656)
Browse files Browse the repository at this point in the history
* remove use of eventController.showEvent #588

* remove use of eventController in event api v2 controller #588

* remove use of ticket controller in ticket api v2 controller #588

* remove use of invoice receipt controller and payment api controller in reservation api v2 controller #588

* remove use of reservationController.reSendReservationConfirmationEmail in reservation api v2 controller #588

* remove use of reservationController.validateToOverview in reservation api v2 controller #588

* remove use of reservationController in reservation api v2 controller #588

* enable the new angular frontend, remove most of the unused stuff #588
  • Loading branch information
cbellone authored Jun 13, 2019
2 parents 3544ae1 + abe3cd9 commit 14226ae
Show file tree
Hide file tree
Showing 76 changed files with 834 additions and 6,481 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'project-report'


//as pointed out by @facundofarias, we should validate minimum javac version
Expand Down Expand Up @@ -150,7 +151,8 @@ dependencies {
compile 'ch.digitalfondue.basicxlsx:basicxlsx:0.5.0'
compile 'org.imgscalr:imgscalr-lib:4.2'
compile 'org.aspectj:aspectjweaver:1.9.4'
//compile 'com.github.alfio-event:alf.io-public-frontend:-SNAPSHOT'

compile 'com.github.alfio-event:alf.io-public-frontend:8fd67bc9f6'

testCompile 'com.opentable.components:otj-pg-embedded:0.13.1'

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/alfio/config/MvcConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
ResourceHandlerRegistration reg = registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
int cacheMinutes = environment.acceptsProfiles(Profiles.of(Initializer.PROFILE_LIVE)) ? 15 : 0;
reg.setCachePeriod(cacheMinutes * 60);

//
registry
.addResourceHandler("/webjars/**")
.addResourceLocations("/webjars/");
}

@Override
Expand Down
75 changes: 0 additions & 75 deletions src/main/java/alfio/controller/DynamicResourcesController.java

This file was deleted.

Loading

0 comments on commit 14226ae

Please sign in to comment.