diff --git a/build.gradle b/build.gradle index 2698a15..d1b27c7 100644 --- a/build.gradle +++ b/build.gradle @@ -112,6 +112,12 @@ dependencies { compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7' + compile group: 'org.webjars', name: 'bootstrap', version: '4.1.0' + compile group: 'org.webjars', name: 'bootstrap-select', version: '1.13.3' + compile group: 'org.webjars', name: 'jquery', version: '3.3.1-1' + compile group: 'org.webjars.npm', name: 'jquery.easing', version: '1.4.1' + compile group: 'org.webjars', name: 'font-awesome', version: '4.7.0' + compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.6.0' compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.6.0' compile group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.35.0' diff --git a/src/main/java/ru/ulstu/conference/controller/ConferenceConverter.java b/src/main/java/ru/ulstu/conference/controller/ConferenceConverter.java deleted file mode 100644 index b566624..0000000 --- a/src/main/java/ru/ulstu/conference/controller/ConferenceConverter.java +++ /dev/null @@ -1,29 +0,0 @@ -package ru.ulstu.conference.controller; - -import org.springframework.stereotype.Service; -import ru.ulstu.conference.model.Conference; -import ru.ulstu.conference.service.ConferenceService; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.inject.Inject; - - -@Service -public class ConferenceConverter implements Converter { - @Inject - private ConferenceService conferenceService; - - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return value == null || value.equals("") ? null : conferenceService.findOne(Integer.valueOf(value)); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return value == null - ? "" - : (value.getClass().equals(Conference.class) ? ((Conference) value).getId().toString() : null); - } -} diff --git a/src/main/java/ru/ulstu/conference/controller/ConferenceDashboardView.java b/src/main/java/ru/ulstu/conference/controller/ConferenceDashboardView.java deleted file mode 100644 index 388dbfe..0000000 --- a/src/main/java/ru/ulstu/conference/controller/ConferenceDashboardView.java +++ /dev/null @@ -1,71 +0,0 @@ -package ru.ulstu.conference.controller; - -import ru.ulstu.conference.model.Conference; -import ru.ulstu.conference.service.ConferenceService; -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.List; - -@Named -@ViewScoped -public class ConferenceDashboardView { - @Inject - private ConferenceService conferenceService; - - @Inject - private UserService userService; - - private List conferences; - - private List selectedConferences = new ArrayList<>(); - - private String newConferenceTitle; - - @PostConstruct - public void init() { - conferences = conferenceService.findAllActiveByCurrentUser(); - } - - public List getConferences() { - return conferences; - } - - public void create() { - conferenceService.createByTitle(newConferenceTitle); - FacesUtil.showInfoMessage("Статья создана", newConferenceTitle); - newConferenceTitle = ""; - conferences = conferenceService.findAllActiveByCurrentUser(); - } - - public void deleteSelected() { - conferenceService.delete(selectedConferences); - conferences = conferenceService.findAllActiveByCurrentUser(); - FacesUtil.showInfoMessage("Было удалено статей: " + selectedConferences.size(), ""); - } - - public String getNewConferenceTitle() { - return newConferenceTitle; - } - - public void setNewConferenceTitle(String newConferenceTitle) { - this.newConferenceTitle = newConferenceTitle; - } - - public List getSelectedConferences() { - return selectedConferences; - } - - public void setSelectedConferences(List selectedConferences) { - this.selectedConferences = selectedConferences; - } - - public String getCurrentUser() { - return userService.getCurrentUser().getUserAbbreviate(); - } -} diff --git a/src/main/java/ru/ulstu/conference/controller/ConferenceView.java b/src/main/java/ru/ulstu/conference/controller/ConferenceView.java deleted file mode 100644 index d0d28d2..0000000 --- a/src/main/java/ru/ulstu/conference/controller/ConferenceView.java +++ /dev/null @@ -1,89 +0,0 @@ -package ru.ulstu.conference.controller; - -import ru.ulstu.conference.model.Conference; -import ru.ulstu.conference.service.ConferenceService; -import ru.ulstu.core.navigation.Page; -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.deadline.model.Deadline; -import ru.ulstu.deadline.service.DeadlineService; -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.io.Serializable; -import java.util.Date; -import java.util.List; - -@Named -@ViewScoped -public class ConferenceView implements Serializable { - @Inject - private ConferenceService conferenceService; - - @Inject - private DeadlineService deadlineService; - - @Inject - private UserService userService; - - private Conference conference; - - private Date newDeadlineDate; - - private String newDeadlineDescription; - - @PostConstruct - public void init() { - conference = conferenceService.findOne(Integer.valueOf(FacesUtil.getRequestParams().get("id"))); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - FacesUtil.showInfoMessage("Статья открыта", ""); - } - - public Conference getConference() { - return conference; - } - - public void setConference(Conference conference) { - this.conference = conference; - } - - public List getAuthors() { - return userService.findAll(); - } - - public String save() { - conferenceService.save(conference); - FacesUtil.showInfoMessage("Статья сохранена", ""); - return Page.CONFERENCE_LIST + "?faces-redirect=true"; - } - - public Date getNewDeadlineDate() { - return newDeadlineDate; - } - - public void setNewDeadlineDate(Date newDeadlineDate) { - this.newDeadlineDate = newDeadlineDate; - } - - public String getNewDeadlineDescription() { - return newDeadlineDescription; - } - - public void setNewDeadlineDescription(String newDeadlineDescription) { - this.newDeadlineDescription = newDeadlineDescription; - } - - public void deleteDeadline(Deadline deadline) { - conference.getDeadlines().remove(deadline); - } - - public void addDeadline() { - conference.getDeadlines().add(deadlineService.create(newDeadlineDescription, newDeadlineDate)); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - } -} diff --git a/src/main/java/ru/ulstu/conference/controller/ConferencesView.java b/src/main/java/ru/ulstu/conference/controller/ConferencesView.java deleted file mode 100644 index 59fa81c..0000000 --- a/src/main/java/ru/ulstu/conference/controller/ConferencesView.java +++ /dev/null @@ -1,63 +0,0 @@ -package ru.ulstu.conference.controller; - -import ru.ulstu.conference.model.Conference; -import ru.ulstu.conference.service.ConferenceService; -import ru.ulstu.core.util.FacesUtil; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.List; - -@Named -@ViewScoped -public class ConferencesView { - @Inject - private ConferenceService conferenceService; - - private List conferences; - - private List selectedConferences = new ArrayList<>(); - - private String newConferenceTitle; - - @PostConstruct - public void init() { - conferences = conferenceService.findAll(); - } - - public void create() { - conferenceService.createByTitle(newConferenceTitle); - FacesUtil.showInfoMessage("Конференция создана", newConferenceTitle); - newConferenceTitle = ""; - conferences = conferenceService.findAll(); - } - - public void deleteSelected() { - conferenceService.delete(selectedConferences); - conferences = conferenceService.findAll(); - FacesUtil.showInfoMessage("Было удалено конференций: " + selectedConferences.size(), ""); - } - - public List getConferences() { - return conferences; - } - - public String getNewConferenceTitle() { - return newConferenceTitle; - } - - public void setNewConferenceTitle(String newConferenceTitle) { - this.newConferenceTitle = newConferenceTitle; - } - - public List getSelectedConferences() { - return selectedConferences; - } - - public void setSelectedConferences(List selectedConferences) { - this.selectedConferences = selectedConferences; - } -} diff --git a/src/main/java/ru/ulstu/configuration/Constants.java b/src/main/java/ru/ulstu/configuration/Constants.java index 5738b8f..e018b07 100644 --- a/src/main/java/ru/ulstu/configuration/Constants.java +++ b/src/main/java/ru/ulstu/configuration/Constants.java @@ -14,7 +14,7 @@ public class Constants { public static final String LOGIN_REGEX = "^[_'.@A-Za-z0-9-]*$"; public static final String COOKIES_NAME = "JSESSIONID"; - public static final String LOGOUT_URL = "/login.xhtml"; + public static final String LOGOUT_URL = "/login?logout"; public static final String SESSION_ID_ATTR = "sessionId"; public static final int SESSION_TIMEOUT_SECONDS = 30 * 60; diff --git a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java index 7d2ab4c..35e9ad2 100644 --- a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java +++ b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java @@ -1,10 +1,7 @@ package ru.ulstu.configuration; -import org.springframework.boot.web.server.ErrorPage; -import org.springframework.boot.web.server.ErrorPageRegistrar; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.http.HttpStatus; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @@ -12,14 +9,20 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; public class MvcConfiguration implements WebMvcConfigurer { @Override public void addViewControllers(ViewControllerRegistry registry) { - registry.addRedirectViewController("/", "/index.xhtml"); + registry.addViewController("/{articlename:\\w+}"); + registry.addViewController("/admin/{articlename:\\w+}"); + registry.addViewController("/papers/{articlename:\\w+}"); + registry.addViewController("/grants/{articlename:\\w+}"); + registry.addViewController("/conferences/{articlename:\\w+}"); + registry.addViewController("/students/{articlename:\\w+}"); + registry.addRedirectViewController("/", "/index"); + registry.addRedirectViewController("/default", "/index"); } - @Bean - public ErrorPageRegistrar errorPageRegistrar() { - return registry -> { - registry.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/error/404.xhtml")); - registry.addErrorPages(new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/error/500.xhtml")); - }; + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry + .addResourceHandler("/webjars/**") + .addResourceLocations("/webjars/"); } } diff --git a/src/main/java/ru/ulstu/configuration/SecurityConfiguration.java b/src/main/java/ru/ulstu/configuration/SecurityConfiguration.java index 190f697..68bc120 100644 --- a/src/main/java/ru/ulstu/configuration/SecurityConfiguration.java +++ b/src/main/java/ru/ulstu/configuration/SecurityConfiguration.java @@ -29,7 +29,7 @@ import org.springframework.security.web.authentication.AuthenticationFailureHand import org.springframework.security.web.authentication.AuthenticationSuccessHandler; import org.springframework.security.web.authentication.logout.LogoutSuccessHandler; import ru.ulstu.core.model.AuthFailureHandler; -import ru.ulstu.core.navigation.Page; +import ru.ulstu.user.controller.UserController; import ru.ulstu.user.model.UserRoleConstants; import ru.ulstu.user.service.UserService; @@ -87,35 +87,29 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { .principal("admin") .authorities(UserRoleConstants.ADMIN); } else { + log.debug("Security enabled"); http.authorizeRequests() - .antMatchers("/login.xhtml", "/logout") - .permitAll() - .anyRequest() - .authenticated() + .antMatchers(UserController.ACTIVATE_URL).permitAll() + .antMatchers(Constants.PASSWORD_RESET_REQUEST_PAGE).permitAll() + .antMatchers(Constants.PASSWORD_RESET_PAGE).permitAll() + .antMatchers("/users/block").permitAll() + .antMatchers(UserController.URL + UserController.REGISTER_URL).permitAll() + .antMatchers(UserController.URL + UserController.ACTIVATE_URL).permitAll() + .antMatchers(UserController.URL + UserController.PASSWORD_RESET_REQUEST_URL).permitAll() + .antMatchers(UserController.URL + UserController.PASSWORD_RESET_URL).permitAll() .antMatchers("/swagger-ui.html").hasAuthority(UserRoleConstants.ADMIN) + .anyRequest().authenticated() .and() .formLogin() - .loginPage("/login.xhtml") + .loginPage("/login") .successHandler(authenticationSuccessHandler) .failureHandler(authenticationFailureHandler) .permitAll() .and() - .oauth2Login() - .loginPage("/login.xhtml") - .authorizationEndpoint() - .baseUri("/oauth2/authorize-client") - .authorizationRequestRepository(authorizationRequestRepository()) - .and() - .tokenEndpoint() - .accessTokenResponseClient(accessTokenResponseClient()) - .and() - .defaultSuccessUrl(Page.INDEX) - .failureUrl("/loginFailure") - .and() .logout() .logoutSuccessHandler(logoutSuccessHandler) - .logoutSuccessUrl(Page.LOGOUT) - .invalidateHttpSession(true) + .logoutSuccessUrl(Constants.LOGOUT_URL) + .invalidateHttpSession(false) .clearAuthentication(true) .deleteCookies(Constants.COOKIES_NAME) .permitAll(); diff --git a/src/main/java/ru/ulstu/core/controller/AdviceController.java b/src/main/java/ru/ulstu/core/controller/AdviceController.java new file mode 100644 index 0000000..aab904e --- /dev/null +++ b/src/main/java/ru/ulstu/core/controller/AdviceController.java @@ -0,0 +1,115 @@ +package ru.ulstu.core.controller; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.validation.FieldError; +import org.springframework.web.bind.MethodArgumentNotValidException; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ModelAttribute; +import ru.ulstu.core.error.EntityIdIsNullException; +import ru.ulstu.core.model.ErrorConstants; +import ru.ulstu.core.model.response.Response; +import ru.ulstu.core.model.response.ResponseExtended; +import ru.ulstu.user.error.UserActivationError; +import ru.ulstu.user.error.UserEmailExistsException; +import ru.ulstu.user.error.UserIdExistsException; +import ru.ulstu.user.error.UserIsUndeadException; +import ru.ulstu.user.error.UserLoginExistsException; +import ru.ulstu.user.error.UserNotActivatedException; +import ru.ulstu.user.error.UserNotFoundException; +import ru.ulstu.user.error.UserPasswordsNotValidOrNotMatchException; +import ru.ulstu.user.error.UserResetKeyError; +import ru.ulstu.user.error.UserSendingMailException; +import ru.ulstu.user.service.UserService; + +import java.util.Set; +import java.util.stream.Collectors; + +//@ControllerAdvice +public class AdviceController { + private final Logger log = LoggerFactory.getLogger(AdviceController.class); + private final UserService userService; + + public AdviceController(UserService userService) { + this.userService = userService; + } + + @ModelAttribute("flashMessage") + public String getFlashMessage() { + return null; + } + + private Response handleException(ErrorConstants error) { + log.warn(error.toString()); + return new Response<>(error); + } + + private ResponseExtended handleException(ErrorConstants error, E errorData) { + log.warn(error.toString()); + return new ResponseExtended<>(error, errorData); + } + + @ExceptionHandler(EntityIdIsNullException.class) + public Response handleEntityIdIsNullException(Throwable e) { + return handleException(ErrorConstants.ID_IS_NULL); + } + + @ExceptionHandler(MethodArgumentNotValidException.class) + public ResponseExtended> handleMethodArgumentNotValidException(MethodArgumentNotValidException e) { + final Set errors = e.getBindingResult().getAllErrors().stream() + .filter(error -> error instanceof FieldError) + .map(error -> ((FieldError) error).getField()) + .collect(Collectors.toSet()); + return handleException(ErrorConstants.VALIDATION_ERROR, errors); + } + + @ExceptionHandler(UserIdExistsException.class) + public Response handleUserIdExistsException(Throwable e) { + return handleException(ErrorConstants.USER_ID_EXISTS); + } + + @ExceptionHandler(UserActivationError.class) + public ResponseExtended handleUserActivationError(Throwable e) { + return handleException(ErrorConstants.USER_ACTIVATION_ERROR, e.getMessage()); + } + + @ExceptionHandler(UserLoginExistsException.class) + public ResponseExtended handleUserLoginExistsException(Throwable e) { + return handleException(ErrorConstants.USER_LOGIN_EXISTS, e.getMessage()); + } + + @ExceptionHandler(UserEmailExistsException.class) + public ResponseExtended handleUserEmailExistsException(Throwable e) { + return handleException(ErrorConstants.USER_EMAIL_EXISTS, e.getMessage()); + } + + @ExceptionHandler(UserPasswordsNotValidOrNotMatchException.class) + public Response handleUserPasswordsNotValidOrNotMatchException(Throwable e) { + return handleException(ErrorConstants.USER_PASSWORDS_NOT_VALID_OR_NOT_MATCH); + } + + @ExceptionHandler(UserNotFoundException.class) + public ResponseExtended handleUserNotFoundException(Throwable e) { + return handleException(ErrorConstants.USER_NOT_FOUND, e.getMessage()); + } + + @ExceptionHandler(UserNotActivatedException.class) + public Response handleUserNotActivatedException(Throwable e) { + return handleException(ErrorConstants.USER_NOT_ACTIVATED); + } + + @ExceptionHandler(UserResetKeyError.class) + public ResponseExtended handleUserResetKeyError(Throwable e) { + return handleException(ErrorConstants.USER_RESET_ERROR, e.getMessage()); + } + + @ExceptionHandler(UserIsUndeadException.class) + public ResponseExtended handleUserIsUndeadException(Throwable e) { + return handleException(ErrorConstants.USER_UNDEAD_ERROR, e.getMessage()); + } + + @ExceptionHandler(UserSendingMailException.class) + public ResponseExtended handleUserSendingMailException(Throwable e) { + return handleException(ErrorConstants.USER_SENDING_MAIL_EXCEPTION, e.getMessage()); + } +} \ No newline at end of file diff --git a/src/main/java/ru/ulstu/core/navigation/Page.java b/src/main/java/ru/ulstu/core/navigation/Page.java index bd86917..3cd6a7f 100644 --- a/src/main/java/ru/ulstu/core/navigation/Page.java +++ b/src/main/java/ru/ulstu/core/navigation/Page.java @@ -1,22 +1,19 @@ package ru.ulstu.core.navigation; -import javax.inject.Named; - -@Named public class Page { - public static final String INDEX = "/index.xhtml"; - public static final String PAPER = "/paper/paper.xhtml"; - public static final String PAPER_LIST = "/paper/papers.xhtml"; - public static final String PAPER_DASHBOARD = "/paper/dashboard.xhtml"; - public static final String GRANT = "/grant/grant.xhtml"; - public static final String GRANT_LIST = "/grant/grants.xhtml"; - public static final String GRANT_DASHBOARD = "/grant/dashboard.xhtml"; - public static final String USER_LIST = "/admin/users.xhtml"; + public static final String INDEX = "/index.html"; + public static final String PAPER = "/paper/paper.html"; + public static final String PAPER_LIST = "/paper/papers.html"; + public static final String PAPER_DASHBOARD = "/paper/dashboard.html"; + public static final String GRANT = "/grant/grant.html"; + public static final String GRANT_LIST = "/grant/grants.html"; + public static final String GRANT_DASHBOARD = "/grant/dashboard.html"; + public static final String USER_LIST = "/admin/users.html"; public static final String LOGOUT = "/logout"; - public static final String CONFERENCE = "/conference/conference.xhtml"; - public static final String CONFERENCE_DASHBOARD = "/conference/dashboard.xhtml"; - public static final String CONFERENCE_LIST = "/conference/conferences.xhtml"; - public static final String PROJECT_DASHBOARD = "/conference/dashboard.xhtml"; + public static final String CONFERENCE = "/conference/conference.html"; + public static final String CONFERENCE_DASHBOARD = "/conference/dashboard.html"; + public static final String CONFERENCE_LIST = "/conference/conferences.html"; + public static final String PROJECT_DASHBOARD = "/conference/dashboard.html"; public String getIndex() { return INDEX; diff --git a/src/main/java/ru/ulstu/core/util/FacesUtil.java b/src/main/java/ru/ulstu/core/util/FacesUtil.java deleted file mode 100644 index 74279dd..0000000 --- a/src/main/java/ru/ulstu/core/util/FacesUtil.java +++ /dev/null @@ -1,47 +0,0 @@ -package ru.ulstu.core.util; - -import javax.faces.FacesException; -import javax.faces.application.FacesMessage; -import javax.faces.context.ExternalContext; -import javax.faces.context.FacesContext; -import java.io.IOException; -import java.util.Map; - -public class FacesUtil { - public static void redirectToPage(FacesContext context, String page, String params) { - ExternalContext extContext = context.getExternalContext(); - String url = extContext.encodeActionURL(context.getApplication().getViewHandler().getActionURL(context, page) - + params); - try { - extContext.redirect(url); - } catch (IOException e) { - throw new FacesException(e); - } - } - - public static void redirectToPage(String page) { - redirectToPage(FacesContext.getCurrentInstance(), page, ""); - } - - public static void redirectToPage(String page, String params) { - redirectToPage(FacesContext.getCurrentInstance(), page, params); - } - - public static Map getRequestParams() { - return FacesContext.getCurrentInstance(). - getExternalContext().getRequestParameterMap(); - } - - public static void showInfoMessage(String summary, String detail) { - FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, detail); - FacesContext fc = FacesContext.getCurrentInstance(); - fc.getExternalContext().getFlash().setKeepMessages(true); - fc.addMessage("messages", message); - } - - public static void showDangerMessage(String summary, String detail) { - FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, summary, detail); - FacesContext.getCurrentInstance().addMessage(null, message); - } - -} diff --git a/src/main/java/ru/ulstu/grant/controller/GrantDashboardView.java b/src/main/java/ru/ulstu/grant/controller/GrantDashboardView.java deleted file mode 100644 index 81b4685..0000000 --- a/src/main/java/ru/ulstu/grant/controller/GrantDashboardView.java +++ /dev/null @@ -1,76 +0,0 @@ -package ru.ulstu.grant.controller; - -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.grant.model.Grant; -import ru.ulstu.grant.service.GrantService; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -@Named -@ViewScoped -public class GrantDashboardView { - @Inject - private GrantService grantService; - - @Inject - private UserService userService; - - private List grants; - - private List selectedGrants = new ArrayList<>(); - - private String newGrantTitle; - - @PostConstruct - public void init() { - grants = grantService.findAllActiveByCurrentUser(); - } - - public List getGrants() { - return grants; - } - - public void create() { - grantService.createByTitle(newGrantTitle); - FacesUtil.showInfoMessage("Статья создана", newGrantTitle); - newGrantTitle = ""; - grants = grantService.findAllActiveByCurrentUser(); - } - - public void deleteSelected() { - grantService.delete(selectedGrants); - grants = grantService.findAllActiveByCurrentUser(); - FacesUtil.showInfoMessage("Было удалено грантов: " + selectedGrants.size(), ""); - } - - public List getGrantStatuses() { - return Arrays.asList(Grant.GrantStatus.values()); - } - - public String getNewGrantTitle() { - return newGrantTitle; - } - - public void setNewGrantTitle(String newGrantTitle) { - this.newGrantTitle = newGrantTitle; - } - - public List getSelectedGrants() { - return selectedGrants; - } - - public void setSelectedGrants(List selectedGrants) { - this.selectedGrants = selectedGrants; - } - - public String getCurrentUser() { - return userService.getCurrentUser().getUserAbbreviate(); - } -} diff --git a/src/main/java/ru/ulstu/grant/controller/GrantStatusConverter.java b/src/main/java/ru/ulstu/grant/controller/GrantStatusConverter.java deleted file mode 100644 index 51d1b2c..0000000 --- a/src/main/java/ru/ulstu/grant/controller/GrantStatusConverter.java +++ /dev/null @@ -1,21 +0,0 @@ -package ru.ulstu.grant.controller; - -import ru.ulstu.grant.model.Grant; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; - -@FacesConverter(value = "grantStatusConverter") -public class GrantStatusConverter implements Converter { - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return Grant.GrantStatus.valueOf(value); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return value == null ? "" : ((Grant.GrantStatus) value).name(); - } -} diff --git a/src/main/java/ru/ulstu/grant/controller/GrantView.java b/src/main/java/ru/ulstu/grant/controller/GrantView.java deleted file mode 100644 index 105f5da..0000000 --- a/src/main/java/ru/ulstu/grant/controller/GrantView.java +++ /dev/null @@ -1,94 +0,0 @@ -package ru.ulstu.grant.controller; - -import ru.ulstu.core.navigation.Page; -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.deadline.model.Deadline; -import ru.ulstu.deadline.service.DeadlineService; -import ru.ulstu.grant.model.Grant; -import ru.ulstu.grant.service.GrantService; -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.io.Serializable; -import java.util.Arrays; -import java.util.Date; -import java.util.List; - -@Named -@ViewScoped -public class GrantView implements Serializable { - @Inject - private GrantService grantService; - - @Inject - private DeadlineService deadlineService; - - @Inject - private UserService userService; - - private Grant grant; - - private Date newDeadlineDate; - - private String newDeadlineDescription; - - @PostConstruct - public void init() { - grant = grantService.findById(Integer.valueOf(FacesUtil.getRequestParams().get("id"))); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - FacesUtil.showInfoMessage("Статья открыта", ""); - } - - public Grant getGrant() { - return grant; - } - - public void setGrant(Grant grant) { - this.grant = grant; - } - - public List getGrantStatuses() { - return Arrays.asList(Grant.GrantStatus.values()); - } - - public List getAuthors() { - return userService.findAll(); - } - - public String save() { - grantService.save(grant); - FacesUtil.showInfoMessage("Грант сохранен", ""); - return Page.GRANT_LIST + "?faces-redirect=true"; - } - - public Date getNewDeadlineDate() { - return newDeadlineDate; - } - - public void setNewDeadlineDate(Date newDeadlineDate) { - this.newDeadlineDate = newDeadlineDate; - } - - public String getNewDeadlineDescription() { - return newDeadlineDescription; - } - - public void setNewDeadlineDescription(String newDeadlineDescription) { - this.newDeadlineDescription = newDeadlineDescription; - } - - public void deleteDeadline(Deadline deadline) { - grant.getDeadlines().remove(deadline); - } - - public void addDeadline() { - grant.getDeadlines().add(deadlineService.create(newDeadlineDescription, newDeadlineDate)); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - } -} diff --git a/src/main/java/ru/ulstu/grant/controller/GrantsView.java b/src/main/java/ru/ulstu/grant/controller/GrantsView.java deleted file mode 100644 index f3c693d..0000000 --- a/src/main/java/ru/ulstu/grant/controller/GrantsView.java +++ /dev/null @@ -1,68 +0,0 @@ -package ru.ulstu.grant.controller; - -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.grant.model.Grant; -import ru.ulstu.grant.service.GrantService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -@Named -@ViewScoped -public class GrantsView { - @Inject - private GrantService grantService; - - private List grants; - - private List selectedGrants = new ArrayList<>(); - - private String newGrantTitle; - - @PostConstruct - public void init() { - grants = grantService.findAll(); - } - - public void create() { - grantService.createByTitle(newGrantTitle); - FacesUtil.showInfoMessage("Статья создана", newGrantTitle); - newGrantTitle = ""; - grants = grantService.findAll(); - } - - public void deleteSelected() { - grantService.delete(selectedGrants); - grants = grantService.findAll(); - FacesUtil.showInfoMessage("Было удалено грантов: " + selectedGrants.size(), ""); - } - - public List getGrantStatuses() { - return Arrays.asList(Grant.GrantStatus.values()); - } - - public List getGrants() { - return grants; - } - - public String getNewGrantTitle() { - return newGrantTitle; - } - - public void setNewGrantTitle(String newGrantTitle) { - this.newGrantTitle = newGrantTitle; - } - - public List getSelectedGrants() { - return selectedGrants; - } - - public void setSelectedGrants(List selectedGrants) { - this.selectedGrants = selectedGrants; - } -} diff --git a/src/main/java/ru/ulstu/index/controller/IndexController.java b/src/main/java/ru/ulstu/index/controller/IndexController.java new file mode 100644 index 0000000..91b5c75 --- /dev/null +++ b/src/main/java/ru/ulstu/index/controller/IndexController.java @@ -0,0 +1,23 @@ +package ru.ulstu.index.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import ru.ulstu.core.controller.AdviceController; +import ru.ulstu.user.service.UserService; +import springfox.documentation.annotations.ApiIgnore; + +@Controller() +@RequestMapping(value = "/index") +@ApiIgnore +public class IndexController extends AdviceController { + public IndexController(UserService userService) { + super(userService); + } + + @GetMapping + public void currentUser(ModelMap modelMap) { + //нужен здесь для добавления параметров на стартовой странице + } +} \ No newline at end of file diff --git a/src/main/java/ru/ulstu/index/controller/IndexView.java b/src/main/java/ru/ulstu/index/controller/IndexView.java deleted file mode 100644 index 9756992..0000000 --- a/src/main/java/ru/ulstu/index/controller/IndexView.java +++ /dev/null @@ -1,28 +0,0 @@ -package ru.ulstu.index.controller; - -import ru.ulstu.core.navigation.Page; -import ru.ulstu.index.model.Section; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.List; - -@Named -@ViewScoped -public class IndexView { - private List
sections = new ArrayList<>(); - - @PostConstruct - public void init() { - sections.add(new Section("Статьи", Page.PAPER_DASHBOARD, "papers.jpg")); - sections.add(new Section("Конференции", Page.CONFERENCE_DASHBOARD, "conf.jpg")); - sections.add(new Section("Гранты", Page.GRANT_DASHBOARD, "grants.jpg")); - sections.add(new Section("Проекты", Page.PROJECT_DASHBOARD, "projects.jpg")); - } - - public List
getSections() { - return sections; - } -} diff --git a/src/main/java/ru/ulstu/paper/controller/PaperDashboardView.java b/src/main/java/ru/ulstu/paper/controller/PaperDashboardView.java deleted file mode 100644 index 5bbf85d..0000000 --- a/src/main/java/ru/ulstu/paper/controller/PaperDashboardView.java +++ /dev/null @@ -1,76 +0,0 @@ -package ru.ulstu.paper.controller; - -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.paper.model.Paper; -import ru.ulstu.paper.service.PaperService; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -@Named -@ViewScoped -public class PaperDashboardView { - @Inject - private PaperService paperService; - - @Inject - private UserService userService; - - private List papers; - - private List selectedPapers = new ArrayList<>(); - - private String newPaperTitle; - - @PostConstruct - public void init() { - papers = paperService.findAllActiveByCurrentUser(); - } - - public List getPapers() { - return papers; - } - - public void create() { - paperService.createByTitle(newPaperTitle); - FacesUtil.showInfoMessage("Статья создана", newPaperTitle); - newPaperTitle = ""; - papers = paperService.findAllActiveByCurrentUser(); - } - - public void deleteSelected() { - paperService.delete(selectedPapers); - papers = paperService.findAllActiveByCurrentUser(); - FacesUtil.showInfoMessage("Было удалено статей: " + selectedPapers.size(), ""); - } - - public List getPaperStatuses() { - return Arrays.asList(Paper.PaperStatus.values()); - } - - public String getNewPaperTitle() { - return newPaperTitle; - } - - public void setNewPaperTitle(String newPaperTitle) { - this.newPaperTitle = newPaperTitle; - } - - public List getSelectedPapers() { - return selectedPapers; - } - - public void setSelectedPapers(List selectedPapers) { - this.selectedPapers = selectedPapers; - } - - public String getCurrentUser() { - return userService.getCurrentUser().getUserAbbreviate(); - } -} diff --git a/src/main/java/ru/ulstu/paper/controller/PaperStatusConverter.java b/src/main/java/ru/ulstu/paper/controller/PaperStatusConverter.java deleted file mode 100644 index 8f809b0..0000000 --- a/src/main/java/ru/ulstu/paper/controller/PaperStatusConverter.java +++ /dev/null @@ -1,21 +0,0 @@ -package ru.ulstu.paper.controller; - -import ru.ulstu.paper.model.Paper; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; - -@FacesConverter(value = "paperStatusConverter") -public class PaperStatusConverter implements Converter { - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return Paper.PaperStatus.valueOf(value); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return value == null ? "" : ((Paper.PaperStatus) value).name(); - } -} diff --git a/src/main/java/ru/ulstu/paper/controller/PaperTypeConverter.java b/src/main/java/ru/ulstu/paper/controller/PaperTypeConverter.java deleted file mode 100644 index b06fb38..0000000 --- a/src/main/java/ru/ulstu/paper/controller/PaperTypeConverter.java +++ /dev/null @@ -1,21 +0,0 @@ -package ru.ulstu.paper.controller; - -import ru.ulstu.paper.model.Paper; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; - -@FacesConverter(value = "paperTypeConverter") -public class PaperTypeConverter implements Converter { - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return Paper.PaperType.valueOf(value); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return ((Paper.PaperType) value).name(); - } -} diff --git a/src/main/java/ru/ulstu/paper/controller/PaperView.java b/src/main/java/ru/ulstu/paper/controller/PaperView.java deleted file mode 100644 index f37ae79..0000000 --- a/src/main/java/ru/ulstu/paper/controller/PaperView.java +++ /dev/null @@ -1,120 +0,0 @@ -package ru.ulstu.paper.controller; - -import org.apache.commons.lang3.StringUtils; -import ru.ulstu.conference.model.Conference; -import ru.ulstu.conference.service.ConferenceService; -import ru.ulstu.core.navigation.Page; -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.deadline.model.Deadline; -import ru.ulstu.deadline.service.DeadlineService; -import ru.ulstu.paper.model.Paper; -import ru.ulstu.paper.service.PaperService; -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.io.Serializable; -import java.util.Arrays; -import java.util.Date; -import java.util.List; - -@Named -@ViewScoped -public class PaperView implements Serializable { - private static final int MAX_CONFERENCE_TITLE_LENGTH = 20; - - @Inject - private PaperService paperService; - - @Inject - private DeadlineService deadlineService; - - @Inject - private UserService userService; - - @Inject - private ConferenceService conferenceService; - - private Paper paper; - - private Date newDeadlineDate; - - private String newDeadlineDescription; - - @PostConstruct - public void init() { - paper = paperService.findPaperById(Integer.valueOf(FacesUtil.getRequestParams().get("id"))); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - FacesUtil.showInfoMessage("Статья открыта", ""); - } - - public Paper getPaper() { - return paper; - } - - public void setPaper(Paper paper) { - this.paper = paper; - } - - public List getPaperStatuses() { - return Arrays.asList(Paper.PaperStatus.values()); - } - - public List getPaperTypes() { - return Arrays.asList(Paper.PaperType.values()); - } - - public List getAuthors() { - return userService.findAll(); - } - - public String save() { - paperService.save(paper); - FacesUtil.showInfoMessage("Статья сохранена", ""); - return Page.PAPER_LIST + "?faces-redirect=true"; - } - - public Date getNewDeadlineDate() { - return newDeadlineDate; - } - - public void setNewDeadlineDate(Date newDeadlineDate) { - this.newDeadlineDate = newDeadlineDate; - } - - public String getNewDeadlineDescription() { - return newDeadlineDescription; - } - - public void setNewDeadlineDescription(String newDeadlineDescription) { - this.newDeadlineDescription = newDeadlineDescription; - } - - public void deleteDeadline(Deadline deadline) { - paper.getDeadlines().remove(deadline); - } - - public void addDeadline() { - paper.getDeadlines().add(deadlineService.create(newDeadlineDescription, newDeadlineDate)); - newDeadlineDescription = ""; - newDeadlineDate = new Date(); - } - - public List getConferences() { - return conferenceService.findAllActive(); - } - - public String getConferenceTitle(Conference conference) { - if (conference == null) { - return null; - } - if (conference.getTitle().length() > MAX_CONFERENCE_TITLE_LENGTH) { - return StringUtils.truncate(conference.getTitle(), MAX_CONFERENCE_TITLE_LENGTH) + "..."; - } - return conference.getTitle(); - } -} diff --git a/src/main/java/ru/ulstu/paper/controller/PapersView.java b/src/main/java/ru/ulstu/paper/controller/PapersView.java deleted file mode 100644 index ae5f7e9..0000000 --- a/src/main/java/ru/ulstu/paper/controller/PapersView.java +++ /dev/null @@ -1,68 +0,0 @@ -package ru.ulstu.paper.controller; - -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.paper.model.Paper; -import ru.ulstu.paper.service.PaperService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -@Named -@ViewScoped -public class PapersView { - @Inject - private PaperService paperService; - - private List papers; - - private List selectedPapers = new ArrayList<>(); - - private String newPaperTitle; - - @PostConstruct - public void init() { - papers = paperService.findAll(); - } - - public void create() { - paperService.createByTitle(newPaperTitle); - FacesUtil.showInfoMessage("Статья создана", newPaperTitle); - newPaperTitle = ""; - papers = paperService.findAll(); - } - - public void deleteSelected() { - paperService.delete(selectedPapers); - papers = paperService.findAll(); - FacesUtil.showInfoMessage("Было удалено статей: " + selectedPapers.size(), ""); - } - - public List getPaperStatuses() { - return Arrays.asList(Paper.PaperStatus.values()); - } - - public List getPapers() { - return papers; - } - - public String getNewPaperTitle() { - return newPaperTitle; - } - - public void setNewPaperTitle(String newPaperTitle) { - this.newPaperTitle = newPaperTitle; - } - - public List getSelectedPapers() { - return selectedPapers; - } - - public void setSelectedPapers(List selectedPapers) { - this.selectedPapers = selectedPapers; - } -} diff --git a/src/main/java/ru/ulstu/user/controller/UserConverter.java b/src/main/java/ru/ulstu/user/controller/UserConverter.java deleted file mode 100644 index 61997f4..0000000 --- a/src/main/java/ru/ulstu/user/controller/UserConverter.java +++ /dev/null @@ -1,26 +0,0 @@ -package ru.ulstu.user.controller; - -import org.springframework.stereotype.Service; -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.inject.Inject; - -@Service -public class UserConverter implements Converter { - @Inject - private UserService userService; - - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return value == null ? null : userService.findById(Integer.valueOf(value)); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return ((User) value).getId().toString(); - } -} diff --git a/src/main/java/ru/ulstu/user/controller/UserDegreeConverter.java b/src/main/java/ru/ulstu/user/controller/UserDegreeConverter.java deleted file mode 100644 index db8ae77..0000000 --- a/src/main/java/ru/ulstu/user/controller/UserDegreeConverter.java +++ /dev/null @@ -1,21 +0,0 @@ -package ru.ulstu.user.controller; - -import ru.ulstu.user.model.User; - -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; - -@FacesConverter(value = "userDegreeConverter") -public class UserDegreeConverter implements Converter { - @Override - public Object getAsObject(FacesContext context, UIComponent component, String value) { - return User.UserDegree.valueOf(value); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, Object value) { - return ((User.UserDegree) value).name(); - } -} diff --git a/src/main/java/ru/ulstu/user/controller/UserView.java b/src/main/java/ru/ulstu/user/controller/UserView.java deleted file mode 100644 index 2a9bf31..0000000 --- a/src/main/java/ru/ulstu/user/controller/UserView.java +++ /dev/null @@ -1,46 +0,0 @@ -package ru.ulstu.user.controller; - -import ru.ulstu.core.navigation.Page; -import ru.ulstu.core.util.FacesUtil; -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.io.Serializable; -import java.util.Arrays; -import java.util.List; - -@Named -@ViewScoped -public class UserView implements Serializable { - @Inject - private UserService userService; - - private User user; - - @PostConstruct - public void init() { - user = userService.findById(Integer.valueOf(FacesUtil.getRequestParams().get("id"))); - } - - public User getUser() { - return user; - } - - public void setUser(User user) { - this.user = user; - } - - public List getDegrees() { - return Arrays.asList(User.UserDegree.values()); - } - - public String save() { - userService.updateUserInformation(user); - FacesUtil.showInfoMessage("Данные пользователя сохранены", user.getUserAbbreviate()); - return Page.USER_LIST + "?faces-redirect=true"; - } -} diff --git a/src/main/java/ru/ulstu/user/controller/UsersView.java b/src/main/java/ru/ulstu/user/controller/UsersView.java deleted file mode 100644 index 31320c9..0000000 --- a/src/main/java/ru/ulstu/user/controller/UsersView.java +++ /dev/null @@ -1,29 +0,0 @@ -package ru.ulstu.user.controller; - -import ru.ulstu.user.model.User; -import ru.ulstu.user.service.UserService; - -import javax.annotation.PostConstruct; -import javax.faces.view.ViewScoped; -import javax.inject.Inject; -import javax.inject.Named; -import java.io.Serializable; -import java.util.List; - -@Named -@ViewScoped -public class UsersView implements Serializable { - @Inject - private UserService userService; - - private List users; - - @PostConstruct - public void init() { - users = userService.findAll(); - } - - public List getUsers() { - return users; - } -} diff --git a/src/main/resources/META-INF/resources/admin/user.xhtml b/src/main/resources/META-INF/resources/admin/user.xhtml deleted file mode 100644 index 0fcf312..0000000 --- a/src/main/resources/META-INF/resources/admin/user.xhtml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - Редактирование пользователя - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/admin/users.xhtml b/src/main/resources/META-INF/resources/admin/users.xhtml deleted file mode 100644 index ba394a0..0000000 --- a/src/main/resources/META-INF/resources/admin/users.xhtml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - #{user.userAbbreviate} - - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/basicTemplate.xhtml b/src/main/resources/META-INF/resources/basicTemplate.xhtml deleted file mode 100644 index 9c777cb..0000000 --- a/src/main/resources/META-INF/resources/basicTemplate.xhtml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - <ui:insert name="header">NG-Tracker</ui:insert> - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - - - - -
- - Content -
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/conference/conference.xhtml b/src/main/resources/META-INF/resources/conference/conference.xhtml deleted file mode 100644 index 8ac4630..0000000 --- a/src/main/resources/META-INF/resources/conference/conference.xhtml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - Редактирование конференции - - - - -
-
-
- -
-
- - -
- -
- -
-
- - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
- - - - - - - - -
-
- -
-
-
-
- -
- -
-
- -
-
- - - -
-
-
- -
-
- -
-
- - - -
-
-
-
- -
- -
-
- -
-
-

- Конференция создана -

-

- Конференция обновлена -

-
-
- -
-
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/conference/conferenceStatusFragment.xhtml b/src/main/resources/META-INF/resources/conference/conferenceStatusFragment.xhtml deleted file mode 100644 index cb23a05..0000000 --- a/src/main/resources/META-INF/resources/conference/conferenceStatusFragment.xhtml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/conference/conferences.xhtml b/src/main/resources/META-INF/resources/conference/conferences.xhtml deleted file mode 100644 index 28d72d9..0000000 --- a/src/main/resources/META-INF/resources/conference/conferences.xhtml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{conference.title} - - - - -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/conference/dashboard.xhtml b/src/main/resources/META-INF/resources/conference/dashboard.xhtml deleted file mode 100644 index b8b5a81..0000000 --- a/src/main/resources/META-INF/resources/conference/dashboard.xhtml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{conference.title} - - - - -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/css/google/droid.css b/src/main/resources/META-INF/resources/css/google/droid.css deleted file mode 100644 index c321e4d..0000000 --- a/src/main/resources/META-INF/resources/css/google/droid.css +++ /dev/null @@ -1,35 +0,0 @@ -/* latin */ -@font-face { - font-family: 'Droid Serif'; - font-style: italic; - font-weight: 400; - src: local('Droid Serif Italic'), local('DroidSerif-Italic'), url(https://fonts.gstatic.com/s/droidserif/v8/tDbK2oqRg1oM3QBjjcaDkOr4nAfcHg.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* latin */ -@font-face { - font-family: 'Droid Serif'; - font-style: italic; - font-weight: 700; - src: local('Droid Serif Bold Italic'), local('DroidSerif-BoldItalic'), url(https://fonts.gstatic.com/s/droidserif/v8/tDbX2oqRg1oM3QBjjcaDkOr4lLz5CwOnSA.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* latin */ -@font-face { - font-family: 'Droid Serif'; - font-style: normal; - font-weight: 400; - src: local('Droid Serif Regular'), local('DroidSerif-Regular'), url(https://fonts.gstatic.com/s/droidserif/v8/tDbI2oqRg1oM3QBjjcaDkOr9rAU.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* latin */ -@font-face { - font-family: 'Droid Serif'; - font-style: normal; - font-weight: 700; - src: local('Droid Serif Bold'), local('DroidSerif-Bold'), url(https://fonts.gstatic.com/s/droidserif/v8/tDbV2oqRg1oM3QBjjcaDkOJGiRD7OwE.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} diff --git a/src/main/resources/META-INF/resources/css/google/kaushan.css b/src/main/resources/META-INF/resources/css/google/kaushan.css deleted file mode 100644 index ebc3fd5..0000000 --- a/src/main/resources/META-INF/resources/css/google/kaushan.css +++ /dev/null @@ -1,17 +0,0 @@ -/* latin-ext */ -@font-face { - font-family: 'Kaushan Script'; - font-style: normal; - font-weight: 400; - src: local('Kaushan Script'), local('KaushanScript-Regular'), url(https://fonts.gstatic.com/s/kaushanscript/v6/vm8vdRfvXFLG3OLnsO15WYS5DG72wNJHMw.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Kaushan Script'; - font-style: normal; - font-weight: 400; - src: local('Kaushan Script'), local('KaushanScript-Regular'), url(https://fonts.gstatic.com/s/kaushanscript/v6/vm8vdRfvXFLG3OLnsO15WYS5DG74wNI.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} diff --git a/src/main/resources/META-INF/resources/css/google/montserrat.css b/src/main/resources/META-INF/resources/css/google/montserrat.css deleted file mode 100644 index 26c55ad..0000000 --- a/src/main/resources/META-INF/resources/css/google/montserrat.css +++ /dev/null @@ -1,89 +0,0 @@ -/* cyrillic-ext */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 400; - src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v12/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 400; - src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v12/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* vietnamese */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 400; - src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v12/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 400; - src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v12/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 400; - src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v12/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 700; - src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v12/JTURjIg1_i6t8kCHKm45_dJE3gTD_u50.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 700; - src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v12/JTURjIg1_i6t8kCHKm45_dJE3g3D_u50.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* vietnamese */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 700; - src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v12/JTURjIg1_i6t8kCHKm45_dJE3gbD_u50.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 700; - src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v12/JTURjIg1_i6t8kCHKm45_dJE3gfD_u50.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Montserrat'; - font-style: normal; - font-weight: 700; - src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v12/JTURjIg1_i6t8kCHKm45_dJE3gnD_g.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} diff --git a/src/main/resources/META-INF/resources/css/google/roboto.css b/src/main/resources/META-INF/resources/css/google/roboto.css deleted file mode 100644 index 6f7e4e3..0000000 --- a/src/main/resources/META-INF/resources/css/google/roboto.css +++ /dev/null @@ -1,251 +0,0 @@ -/* cyrillic-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qqh5CCD.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qOh5CCD.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1quh5CCD.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qSh5CCD.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -/* vietnamese */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qih5CCD.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qmh5CCD.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 100; - src: local('Roboto Slab Thin'), local('RobotoSlab-Thin'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngOUXZYTXPIvIBgJJSb6u-u1qeh5A.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCLwR26eg.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCCwR26eg.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCKwR26eg.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCFwR26eg.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -/* vietnamese */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCJwR26eg.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCIwR26eg.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 300; - src: local('Roboto Slab Light'), local('RobotoSlab-Light'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u9mxLCGwR0.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufA5qW54A.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufJ5qW54A.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufB5qW54A.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufO5qW54A.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -/* vietnamese */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufC5qW54A.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufD5qW54A.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 400; - src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngMUXZYTXPIvIBgJJSb6ufN5qU.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -/* cyrillic-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CLwR26eg.woff2) format('woff2'); - unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; -} - -/* cyrillic */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CCwR26eg.woff2) format('woff2'); - unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; -} - -/* greek-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CKwR26eg.woff2) format('woff2'); - unicode-range: U+1F00-1FFF; -} - -/* greek */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CFwR26eg.woff2) format('woff2'); - unicode-range: U+0370-03FF; -} - -/* vietnamese */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CJwR26eg.woff2) format('woff2'); - unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; -} - -/* latin-ext */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CIwR26eg.woff2) format('woff2'); - unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; -} - -/* latin */ -@font-face { - font-family: 'Roboto Slab'; - font-style: normal; - font-weight: 700; - src: local('Roboto Slab Bold'), local('RobotoSlab-Bold'), url(https://fonts.gstatic.com/s/robotoslab/v7/BngRUXZYTXPIvIBgJJSb6u92w7CGwR0.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} diff --git a/src/main/resources/META-INF/resources/css/style.css b/src/main/resources/META-INF/resources/css/style.css deleted file mode 100644 index d5e56f5..0000000 --- a/src/main/resources/META-INF/resources/css/style.css +++ /dev/null @@ -1,49 +0,0 @@ -.black { - background-color: #383838 !important; -} - -.ui-picklist-list-wrapper { - width: 50% !important; -} - -.ui-picklist-list { - width: 100% !important; -} - - -.text-draft { - color: rgba(0, 0, 0, 0.48) !important; -} - -.text-primary { - color: #228bba !important; -} - -.text-warning { - color: #940000 !important; -} - -.text-review { - color: #94028d !important; -} - -.text-success { - color: #007741 !important; -} - -.text-accepted { - color: #fec503 !important; -} - -.text-not-accepted { - color: #A38831 !important; -} - -.text-failed { - color: #A38831 !important; -} - -.navbar-brand { - color: #fed136 !important; - font-family: 'Kaushan Script', 'Helvetica Neue', Helvetica, Arial, cursive; -} diff --git a/src/main/resources/META-INF/resources/error/403.xhtml b/src/main/resources/META-INF/resources/error/403.xhtml deleted file mode 100644 index 8d25bc6..0000000 --- a/src/main/resources/META-INF/resources/error/403.xhtml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Доступ запрещен - - - - - -
-
-
-
-

Доступ запрещен

- - Вернуться на главную - -
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/error/404.xhtml b/src/main/resources/META-INF/resources/error/404.xhtml deleted file mode 100644 index 598c7db..0000000 --- a/src/main/resources/META-INF/resources/error/404.xhtml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Страница не найдена - - - -
-
-
- - - Вернуться на главную - - -
-
-
- diff --git a/src/main/resources/META-INF/resources/error/500.xhtml b/src/main/resources/META-INF/resources/error/500.xhtml deleted file mode 100644 index 72ceb67..0000000 --- a/src/main/resources/META-INF/resources/error/500.xhtml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Ошибка сервера - - -
-
-
- - - Вернуться на главную - - - - - - - - - - -
-                                #{requestScope['javax.servlet.error.exception']}
-                            
-
-
-
- -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/grant/dashboard.xhtml b/src/main/resources/META-INF/resources/grant/dashboard.xhtml deleted file mode 100644 index a394873..0000000 --- a/src/main/resources/META-INF/resources/grant/dashboard.xhtml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{grant.title} - - - - - - - - - - - - - - - -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/grant/grant.xhtml b/src/main/resources/META-INF/resources/grant/grant.xhtml deleted file mode 100644 index 6941241..0000000 --- a/src/main/resources/META-INF/resources/grant/grant.xhtml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - Редактирование гранта - - - - -
-
-
- -
-
- - -
-
- -
-
- -
-
- - - - - - - - - - -
- -
- -
-
- - - - -
-
- -
-
-
-
- -
- -
-
- -
-
- - - -
-
-
- -
-
- -
-
- - - -
-
-
-
- -
- -
-
- -
-
-

- Грант создан -

-

- Грант обновлен -

-
-
- -
-
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/grant/grantStatusFragment.xhtml b/src/main/resources/META-INF/resources/grant/grantStatusFragment.xhtml deleted file mode 100644 index 48313fb..0000000 --- a/src/main/resources/META-INF/resources/grant/grantStatusFragment.xhtml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/grant/grants.xhtml b/src/main/resources/META-INF/resources/grant/grants.xhtml deleted file mode 100644 index 1e2ed60..0000000 --- a/src/main/resources/META-INF/resources/grant/grants.xhtml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{grant.title} - - - - - - - - - - - - - - - -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/img/conference/back.png b/src/main/resources/META-INF/resources/img/conference/back.png deleted file mode 100644 index 7667350..0000000 Binary files a/src/main/resources/META-INF/resources/img/conference/back.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/conference/delete.png b/src/main/resources/META-INF/resources/img/conference/delete.png deleted file mode 100644 index 595bf63..0000000 Binary files a/src/main/resources/META-INF/resources/img/conference/delete.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/conference/edit.png b/src/main/resources/META-INF/resources/img/conference/edit.png deleted file mode 100644 index 832bef3..0000000 Binary files a/src/main/resources/META-INF/resources/img/conference/edit.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/conference/paper.png b/src/main/resources/META-INF/resources/img/conference/paper.png deleted file mode 100644 index 78a0dfc..0000000 Binary files a/src/main/resources/META-INF/resources/img/conference/paper.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/header-bg.jpg b/src/main/resources/META-INF/resources/img/header-bg.jpg deleted file mode 100644 index 6ac14cf..0000000 Binary files a/src/main/resources/META-INF/resources/img/header-bg.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/logo.png b/src/main/resources/META-INF/resources/img/logo.png deleted file mode 100644 index 7d3d33c..0000000 Binary files a/src/main/resources/META-INF/resources/img/logo.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/ajax-loader.gif b/src/main/resources/META-INF/resources/img/main/ajax-loader.gif deleted file mode 100644 index f2a1bc0..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/ajax-loader.gif and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/career.jpg b/src/main/resources/META-INF/resources/img/main/career.jpg deleted file mode 100644 index 71615c2..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/career.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/conf.jpg b/src/main/resources/META-INF/resources/img/main/conf.jpg deleted file mode 100644 index bf10948..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/conf.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/grants.jpg b/src/main/resources/META-INF/resources/img/main/grants.jpg deleted file mode 100644 index d7de0e0..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/grants.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/papers.jpg b/src/main/resources/META-INF/resources/img/main/papers.jpg deleted file mode 100644 index 055f864..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/papers.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/projects.jpg b/src/main/resources/META-INF/resources/img/main/projects.jpg deleted file mode 100644 index d3085b7..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/projects.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/students.jpg b/src/main/resources/META-INF/resources/img/main/students.jpg deleted file mode 100644 index 25ea94a..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/students.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/tasks.jpg b/src/main/resources/META-INF/resources/img/main/tasks.jpg deleted file mode 100644 index ca20f61..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/tasks.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/team.jpg b/src/main/resources/META-INF/resources/img/main/team.jpg deleted file mode 100644 index f30744d..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/team.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/main/templates.jpg b/src/main/resources/META-INF/resources/img/main/templates.jpg deleted file mode 100644 index 9cafc26..0000000 Binary files a/src/main/resources/META-INF/resources/img/main/templates.jpg and /dev/null differ diff --git a/src/main/resources/META-INF/resources/img/map-image.png b/src/main/resources/META-INF/resources/img/map-image.png deleted file mode 100644 index a047a27..0000000 Binary files a/src/main/resources/META-INF/resources/img/map-image.png and /dev/null differ diff --git a/src/main/resources/META-INF/resources/index.xhtml b/src/main/resources/META-INF/resources/index.xhtml deleted file mode 100644 index 1cc7d7e..0000000 --- a/src/main/resources/META-INF/resources/index.xhtml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/login.xhtml b/src/main/resources/META-INF/resources/login.xhtml deleted file mode 100644 index e779e63..0000000 --- a/src/main/resources/META-INF/resources/login.xhtml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - Вход в систему - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - -
-
-
-
- -
- -
- Войти с учетной записью Google - - Расписание УлГТУ -
-
-
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/paper/dashboard.xhtml b/src/main/resources/META-INF/resources/paper/dashboard.xhtml deleted file mode 100644 index 7cd52eb..0000000 --- a/src/main/resources/META-INF/resources/paper/dashboard.xhtml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{paper.title} - - - - - - - - - - - - - - - -
-
-
-
- diff --git a/src/main/resources/META-INF/resources/paper/paper.xhtml b/src/main/resources/META-INF/resources/paper/paper.xhtml deleted file mode 100644 index 82b0fdf..0000000 --- a/src/main/resources/META-INF/resources/paper/paper.xhtml +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - Редактирование статьи - - - - -
-
-
- -
-
- - -
-
- - - - - -
-
- -
-
- - - - - - - - - - -
-
- - #{paperView.getConferenceTitle(paperView.paper.conference)} - - -
-
- -
-
- - - -
-
- -
-
- - - - -
-
- -
-
-
-
- -
- -
-
- -
-
- - - -
-
-
- -
-
- -
-
- - - -
-
-
-
- -
- -
-
- -
-
-

- Статья создана - - - -

-

- Статья обновлена - - - -

-
-
- -
-
-
-
-
-
- diff --git a/src/main/resources/META-INF/resources/paper/paperStatusFragment.xhtml b/src/main/resources/META-INF/resources/paper/paperStatusFragment.xhtml deleted file mode 100644 index b99161f..0000000 --- a/src/main/resources/META-INF/resources/paper/paperStatusFragment.xhtml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/META-INF/resources/paper/papers.xhtml b/src/main/resources/META-INF/resources/paper/papers.xhtml deleted file mode 100644 index 2a8787b..0000000 --- a/src/main/resources/META-INF/resources/paper/papers.xhtml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - -
-
-
- - -
-
- - -
-
- - - -
- - - - -
- - - - - - - - - - - - - - - - - #{paper.title} - - - - - - - - - - - - - - - -
-
-
-
- diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f1697ba..8531d06 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -15,11 +15,6 @@ server.ssl.key-password=password logging.level.ru.ulstu=DEBUG #HtmlUnit logging.level.com.gargoylesoftware.htmlunit=ERROR -#jsf -#joinfaces.primefaces.theme=casablanca -joinfaces.primefaces.theme=afterdark -joinfaces.primefaces.font-awesome=true -joinfaces.mojarra.enable-restore-view11-compatibility=true # Mail Settings spring.mail.host=smtp.yandex.ru spring.mail.port=465 diff --git a/src/main/resources/templates/error/403.html b/src/main/resources/templates/error/403.html new file mode 100644 index 0000000..d850fa9 --- /dev/null +++ b/src/main/resources/templates/error/403.html @@ -0,0 +1,21 @@ + + + + + +
+
+
+
+
+

Доступ запрещен

+

Вернуться на главную

+
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/resources/templates/error/404.html b/src/main/resources/templates/error/404.html new file mode 100644 index 0000000..7233d72 --- /dev/null +++ b/src/main/resources/templates/error/404.html @@ -0,0 +1,21 @@ + + + + + +
+
+
+
+
+

Страница не найдена

+

Вернуться на главную

+
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/resources/templates/error/500.html b/src/main/resources/templates/error/500.html new file mode 100644 index 0000000..d42e7b4 --- /dev/null +++ b/src/main/resources/templates/error/500.html @@ -0,0 +1,21 @@ + + + + + +
+
+
+
+
+

Ошибка сервера

+

Вернуться на главную

+
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 1478197..bc6a3a0 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -34,10 +34,6 @@ -

Login with:

-

- Client -