Merge branch 'develop' into frontend/robin
This commit is contained in:
commit
cbc448b048
@ -7,7 +7,7 @@ plugins {
|
|||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'com.moowork.node'
|
apply plugin: 'com.moowork.node'
|
||||||
//apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
|
|
||||||
group = 'de.hhn.labsw'
|
group = 'de.hhn.labsw'
|
||||||
version = '0.0.1-SNAPSHOT'
|
version = '0.0.1-SNAPSHOT'
|
||||||
@ -23,6 +23,7 @@ dependencies {
|
|||||||
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
||||||
runtimeOnly 'mysql:mysql-connector-java'
|
runtimeOnly 'mysql:mysql-connector-java'
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
|
compile 'org.springframework.boot:spring-boot-starter-web'
|
||||||
|
|
||||||
//JPA
|
//JPA
|
||||||
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
|
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
@ -40,14 +41,14 @@ dependencies {
|
|||||||
|
|
||||||
compile 'org.springframework.boot:spring-boot-starter-tomcat'
|
compile 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||||
//compile 'org.springframework.boot:spring-boot-starter-security'
|
//compile 'org.springframework.boot:spring-boot-starter-security'
|
||||||
compile 'org.springframework.boot:spring-boot-starter-actuator'
|
//compile 'org.springframework.boot:spring-boot-starter-actuator'
|
||||||
//compile 'org.springframework.boot:spring-boot-starter-aop'
|
//compile 'org.springframework.boot:spring-boot-starter-aop'
|
||||||
//ompile group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '1.2.0.RELEASE'
|
//ompile group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '1.2.0.RELEASE'
|
||||||
|
|
||||||
compile group: 'org.springframework.security', name: 'spring-security-core', version: '5.1.4.RELEASE'
|
compile group: 'org.springframework.security', name: 'spring-security-core', version: '5.1.4.RELEASE'
|
||||||
//compile group: 'at.favre.lib', name: 'bcrypt', version: '{latest-version}'
|
//compile group: 'at.favre.lib', name: 'bcrypt', version: '{latest-version}'
|
||||||
|
|
||||||
//providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||||
|
|
||||||
//JWT
|
//JWT
|
||||||
compile 'io.jsonwebtoken:jjwt-api:0.10.5'
|
compile 'io.jsonwebtoken:jjwt-api:0.10.5'
|
||||||
|
|||||||
@ -99,7 +99,7 @@ module.exports = function (ctx) {
|
|||||||
// extractCSS: false,
|
// extractCSS: false,
|
||||||
//distDir: 'springwebdir/{ctx.modeName}',
|
//distDir: 'springwebdir/{ctx.modeName}',
|
||||||
distDir: '../src/main/resources/public/',
|
distDir: '../src/main/resources/public/',
|
||||||
extendWebpack (cfg) {
|
extendWebpack(cfg) {
|
||||||
cfg.module.rules.push({
|
cfg.module.rules.push({
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
test: /\.(js|vue)$/,
|
test: /\.(js|vue)$/,
|
||||||
@ -110,12 +110,12 @@ module.exports = function (ctx) {
|
|||||||
env: ctx.dev
|
env: ctx.dev
|
||||||
? { // Base URL for API-Calls: DEV
|
? { // Base URL for API-Calls: DEV
|
||||||
API: JSON.stringify('http://localhost:8080'),
|
API: JSON.stringify('http://localhost:8080'),
|
||||||
// API: JSON.stringify('https://seserver.se.hs-heilbronn.de:8443/buga19geocaching'),
|
//API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19geocaching'),
|
||||||
USER_API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19usermanagement')
|
USER_API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19usermanagement')
|
||||||
}
|
}
|
||||||
: { // Base URL for API-Calls: PRODUCTION (build)
|
: { // Base URL for API-Calls: PRODUCTION (build)
|
||||||
API: JSON.stringify('http://localhost:8080'),
|
API: JSON.stringify('http://localhost:8080'),
|
||||||
//API: JSON.stringify('https://seserver.se.hs-heilbronn.de:8443/buga19geocaching'),
|
//API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19geocaching'),
|
||||||
USER_API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19usermanagement')
|
USER_API: JSON.stringify('https://seserver.se.hs-heilbronn.de:9443/buga19usermanagement')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -181,7 +181,7 @@ module.exports = function (ctx) {
|
|||||||
electron: {
|
electron: {
|
||||||
// bundler: 'builder', // or 'packager'
|
// bundler: 'builder', // or 'packager'
|
||||||
|
|
||||||
extendWebpack (cfg) {
|
extendWebpack(cfg) {
|
||||||
// do something with Electron main process Webpack cfg
|
// do something with Electron main process Webpack cfg
|
||||||
// chainWebpack also available besides this extendWebpack
|
// chainWebpack also available besides this extendWebpack
|
||||||
},
|
},
|
||||||
|
|||||||
@ -784,13 +784,20 @@ public class Controller {
|
|||||||
|
|
||||||
User user = (User) getUser.getBody();
|
User user = (User) getUser.getBody();
|
||||||
|
|
||||||
List<TeamInvite> teamInvitesList = new ArrayList<>();
|
List<TeamInvite> teamInvitesList = teamInviteRepository.findByUser(user);
|
||||||
|
|
||||||
for (TeamInvite teamInvite : teamInviteRepository.findAll()) {
|
for (TeamInvite tmp : teamInvitesList){
|
||||||
|
tmp.setUser(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*for (TeamInvite teamInvite : teamInviteRepository.findAll()) {
|
||||||
if (teamInvite.getUser() == user) {
|
if (teamInvite.getUser() == user) {
|
||||||
teamInvitesList.add(teamInvite);
|
teamInvitesList.add(teamInvite);
|
||||||
}
|
}
|
||||||
}
|
}+/
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
return ResponseEntity.status(200).body(new Gson().toJson(teamInvitesList));
|
return ResponseEntity.status(200).body(new Gson().toJson(teamInvitesList));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,9 @@ import hhn.labsw.bugageocaching.entities.TeamInvite;
|
|||||||
import hhn.labsw.bugageocaching.entities.User;
|
import hhn.labsw.bugageocaching.entities.User;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface TeamInviteRepository extends JpaRepository<TeamInvite, Integer> {
|
public interface TeamInviteRepository extends JpaRepository<TeamInvite, Integer> {
|
||||||
TeamInvite findByUserAndTeam(User user, Team team);
|
TeamInvite findByUserAndTeam(User user, Team team);
|
||||||
|
List<TeamInvite> findByUser(User user);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user