#5 -- fix code

This commit is contained in:
Anton Romanov 2021-08-02 12:06:36 +04:00
parent b0b68199ee
commit 1734b09eba
6 changed files with 0 additions and 106 deletions

View File

@ -16,7 +16,6 @@ public class MvcConfiguration implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/{articlename:\\w+}");
//registry.addRedirectViewController("/", "/index.html");
}
@Override

View File

@ -1,58 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (C) 2021 Anton Romanov - All Rights Reserved
- You may use, distribute and modify this code, please write to: romanov73@gmail.com.
-
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
<title>Time series smoothing</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<h:outputStylesheet name="css/style.css"/>
</h:head>
<h:body>
<div class="ui-g">
<div class="ui-g-12">
<p:outputPanel>
<p:growl id="msgs" showDetail="true"/>
<a href="/index.xhtml">
<img src="/img/logo.png" alt="" width="100"/>
</a>
</p:outputPanel>
</div>
</div>
<div class="ui-g">
<div class="ui-g-12">
<ui:insert name="content">Content</ui:insert>
</div>
</div>
<div class="ui-g">
<div class="ui-g-12">
<p:outputPanel>
<div class="ui-g">
<div class="ui-g-12 ui-md-12 ui-lg-3">Ulyanovsk State Technical University</div>
<div class="ui-g-6 ui-md-6 ui-lg-3">
<h:outputLink
value="http://ulstu.ru">ulstu.ru
</h:outputLink>
</div>
<div class="ui-g-6 ui-md-6 ui-lg-3">
<h:outputLink target="_blank"
value="/swagger-ui.html">api for developers
</h:outputLink>
</div>
<div class="ui-g-6 ui-md-6 ui-lg-3">2020</div>
</div>
</p:outputPanel>
</div>
</div>
</h:body>
</html>

View File

@ -1,7 +0,0 @@
.ui-picklist-list-wrapper {
width: 50% !important;
}
.ui-picklist-list {
width: 100% !important;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1,40 +0,0 @@
<!--
- Copyright (C) 2021 Anton Romanov - All Rights Reserved
- You may use, distribute and modify this code, please write to: romanov73@gmail.com.
-
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<ui:composition template="/basicTemplate.xhtml">
<ui:define name="content">
<h:form id="form">
<div class="ui-g">
<div class="ui-g-12 ui-md-12 ui-lg-12">
<p:selectOneMenu id="timeSeriesSelect" value="#{indexView.timeSeriesMeta}"
converter="timeSeriesMetaConverter">
<f:selectItem itemLabel="Выберите временной ряд из базы" itemValue=""/>
<f:selectItems value="#{indexView.timeSeriesMetas}"
var="meta"
itemLabel="#{meta.key}"
itemValue="#{meta.key}"/>
<!-- <p:ajax event="change" process="@this" update="form:chart" />-->
</p:selectOneMenu>
<p:commandButton action="#{indexView.createChart}" value="Refresh" update="form:chart"
process="form:timeSeriesSelect" ajax="true"/>
</div>
</div>
<div class="ui-g">
<div class="ui-g-12 ui-md-12 ui-lg-12">
<p:chart id="chart" type="line" model="#{indexView.model}" style="height:300px;"/>
</div>
</div>
</h:form>
</ui:define>
</ui:composition>
</html>