diff --git a/build.gradle b/build.gradle
index b5f3c4e..494eebf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -116,7 +116,7 @@ dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
- compile group: 'org.webjars', name: 'font-awesome', version: '5.8.1'
+ compile group: 'org.webjars', name: 'font-awesome', version: '4.7.0'
compile group: 'org.webjars', name: 'bootstrap', version: '4.1.3'
compile group: 'org.webjars.npm', name: 'vue', version: '2.6.9'
compile group: 'org.webjars.npm', name: 'vuex', version: '3.1.0'
diff --git a/src/main/java/ru/ulstu/configuration/MailTemplateConfiguration.java b/src/main/java/ru/ulstu/configuration/MailTemplateConfiguration.java
index addf7ac..6cf3b11 100644
--- a/src/main/java/ru/ulstu/configuration/MailTemplateConfiguration.java
+++ b/src/main/java/ru/ulstu/configuration/MailTemplateConfiguration.java
@@ -17,7 +17,6 @@ public class MailTemplateConfiguration {
final SpringTemplateEngine templateEngine = new SpringTemplateEngine();
templateEngine.addTemplateResolver(templateResolver);
templateEngine.addTemplateResolver(emailTemplateResolver());
- templateEngine.addTemplateResolver(mvcTemplateResolver());
templateEngine.addDialect(new LayoutDialect());
templateEngine.addDialect(sec);
return templateEngine;
@@ -32,15 +31,4 @@ public class MailTemplateConfiguration {
emailTemplateResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
return emailTemplateResolver;
}
-
- public ClassLoaderTemplateResolver mvcTemplateResolver() {
- ClassLoaderTemplateResolver emailTemplateResolver = new ClassLoaderTemplateResolver();
- emailTemplateResolver.setPrefix("templates");
- emailTemplateResolver.setTemplateMode("HTML5");
- emailTemplateResolver.setSuffix(".html");
- emailTemplateResolver.setOrder(2);
- emailTemplateResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
- return emailTemplateResolver;
- }
-
}
diff --git a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java b/src/main/java/ru/ulstu/configuration/MvcConfiguration.java
deleted file mode 100644
index 496d493..0000000
--- a/src/main/java/ru/ulstu/configuration/MvcConfiguration.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package ru.ulstu.configuration;
-
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
-import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
-
-@Configuration
-public class MvcConfiguration extends WebMvcConfigurerAdapter {
- @Override
- public void addViewControllers(ViewControllerRegistry registry) {
- 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");
- }
-
- @Override
- public void addResourceHandlers(ResourceHandlerRegistry registry) {
- registry
- .addResourceHandler("/webjars/**")
- .addResourceLocations("/webjars/");
- }
-}
diff --git a/src/main/java/ru/ulstu/core/controller/ForwardingController.java b/src/main/java/ru/ulstu/core/controller/ForwardingController.java
new file mode 100644
index 0000000..36e75df
--- /dev/null
+++ b/src/main/java/ru/ulstu/core/controller/ForwardingController.java
@@ -0,0 +1,15 @@
+package ru.ulstu.core.controller;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import springfox.documentation.annotations.ApiIgnore;
+
+@Controller
+@ApiIgnore
+public class ForwardingController {
+ @GetMapping(path = "/**/{url:[^\\.]+}")
+ public String forward(@PathVariable("url") String url) {
+ return "forward:/";
+ }
+}
diff --git a/src/main/resources/static/core-components/app-index.vue b/src/main/resources/static/core-components/app-index.vue
new file mode 100644
index 0000000..26297d7
--- /dev/null
+++ b/src/main/resources/static/core-components/app-index.vue
@@ -0,0 +1,154 @@
+
+
status
-status
- - -