Commit 9af2eea3 authored by Adrien PARROT's avatar Adrien PARROT
Browse files

Creation repo

parents
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.sap.ide.ui5.libsclasspathcontainer/SAPUI5 Core Libraries">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="com.sap.ide.ui5.serversidelibsclasspathcontainer/SAPUI5 Server Side Libraries">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="build/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>conceptMapper</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>com.sap.ide.ui5.app.plugin.webappnature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="con" path="com.sap.ide.ui5.jsdt.SAPUI5Libraries"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="conceptMapper">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="conceptMapper"/>
<property name="java-output-path" value="/conceptMapper/build/classes"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="11"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="com.sap.ide.ui5.app.facet" version="latest"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Window
\ No newline at end of file
Manifest-Version: 1.0
Class-Path:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee">
<display-name>conceptMapper</display-name>
<!-- ============================================================== -->
<!-- UI5 resource servlet used to handle application resources -->
<!-- ============================================================== -->
<servlet>
<display-name>ResourceServlet</display-name>
<servlet-name>ResourceServlet</servlet-name>
<servlet-class>com.sap.ui5.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ResourceServlet</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
<!-- BEGIN: test-resources -->
<!-- test-resources mapping has to be switched off for productive use on a Java server! -->
<servlet-mapping>
<servlet-name>ResourceServlet</servlet-name>
<url-pattern>/test-resources/*</url-pattern>
</servlet-mapping>
<!-- END: test-resources -->
<!-- BEGIN: DEV MODE -->
<!-- DEV MODE switched off by default and can be switched on during development -->
<!-- but has to be switched off for productive use on a Java server! -->
<context-param>
<param-name>com.sap.ui5.resource.DEV_MODE</param-name>
<param-value>false</param-value>
</context-param>
<!-- END: DEV MODE -->
<!-- ============================================================== -->
<!-- Cache Control Filter to prevent caching of any resource -->
<!-- ============================================================== -->
<filter>
<display-name>CacheControlFilter</display-name>
<filter-name>CacheControlFilter</filter-name>
<filter-class>com.sap.ui5.resource.CacheControlFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CacheControlFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CacheControlFilter</filter-name>
<url-pattern>*.js</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CacheControlFilter</filter-name>
<url-pattern>*.xml</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CacheControlFilter</filter-name>
<url-pattern>*.json</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CacheControlFilter</filter-name>
<url-pattern>*.css</url-pattern>
</filter-mapping>
<!-- ============================================================== -->
<!-- UI5 proxy servlet -->
<!-- ============================================================== -->
<servlet>
<servlet-name>SimpleProxyServlet</servlet-name>
<servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SimpleProxyServlet</servlet-name>
<url-pattern>/proxy/*</url-pattern>
</servlet-mapping>
<!-- ============================================================== -->
<!-- Welcome file list -->
<!-- ============================================================== -->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
\ No newline at end of file
sap.ui.controller("conceptmapper.homePage", {
/**
* Called when a controller is instantiated and its View controls (if available) are already created.
* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
* @memberOf conceptmapper.homePage
*/
onInit : function() {
var sLoc = sap.ui.getCore().getConfiguration().getLanguage();
var i18nPath = "i18n/i18n";
if (sLoc === "fr") {
i18nPath = i18nPath + "_fr.properties";
} else {
i18nPath = i18nPath + ".properties";
}
var oi18nModel = new sap.ui.model.resource.ResourceModel({
bundleUrl : i18nPath
});
sap.ui.getCore().setModel(oi18nModel, "i18n");
},
/**
* Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered
* (NOT before the first rendering! onInit() is used for that one!).
* @memberOf conceptmapper.homePage
*/
// onBeforeRendering: function() {
//
// },
//This will navigate the app to product search page
goToSearch: function(oEvt){
app.to("idSearchPage");
},
/**
* Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here.
* This hook is the same one that SAPUI5 controls get after being rendered.
* @memberOf conceptmapper.homePage
*/
// onAfterRendering: function() {
//
// },
/**
* Called when the Controller is destroyed. Use this one to free resources and finalize activities.
* @memberOf conceptmapper.homePage
*/
// onExit: function() {
//
// }
});
\ No newline at end of file
sap.ui.jsview("conceptmapper.homePage", {
/**
* Specifies the Controller belonging to this View. In the case that it is
* not implemented, or that "null" is returned, this View does not have a
* Controller.
*
* @memberOf conceptmapper.homePage
*/
getControllerName : function() {
return "conceptmapper.homePage";
},
/**
* Is initially called once after the Controller has been instantiated. It
* is the place where the UI is constructed. Since the Controller is given
* to this method, its event handlers can be attached right away.
*
* @memberOf conceptmapper.homePage
*/
createContent : function(oController) {
// Common tiles
var oTileImportCSV = new sap.m.StandardTile({
title : "{i18n>tile_importCSV}",
// press:[oController.goToProductSearch,oController]
});
var oTileAlgos = new sap.m.StandardTile({
title : "{i18n>tile_algos}",
// press:[oController.goToProductAnalytics,oController]
});
var oTileSearch = new sap.m.StandardTile({
title : "{i18n>tile_search}",
press:[oController.goToSearch,oController]
});
var oTileMap = new sap.m.StandardTile({
title : "{i18n>tile_map}",
// press:[oController.goToProductAnalytics,oController]
});
// Specifique admin tiles
var oTileUsers = new sap.m.StandardTile({
title : "{i18n>tile_users}",
// press:[oController.goToProductAnalytics,oController]
});
var oTileCont = new sap.m.TileContainer({
tiles : [ oTileImportCSV, oTileUsers, oTileAlgos, oTileSearch,
oTileMap ]
});
var oPage = new sap.m.Page({
title : "{i18n>app_head}",
enableScrolling : false,
content : [ oTileCont ]
});
return oPage;
}
});
\ No newline at end of file
sap.ui.controller("conceptmapper.searchPage", {
/**
* Called when a controller is instantiated and its View controls (if available) are already created.
* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
* @memberOf conceptmapper.searchPage
*/
// onInit: function() {
//
// },
/**
* Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered
* (NOT before the first rendering! onInit() is used for that one!).
* @memberOf conceptmapper.searchPage
*/
// onBeforeRendering: function() {
//
// },
/**
* Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here.
* This hook is the same one that SAPUI5 controls get after being rendered.
* @memberOf conceptmapper.searchPage
*/
// onAfterRendering: function() {
//
// },
/**
* Called when the Controller is destroyed. Use this one to free resources and finalize activities.
* @memberOf conceptmapper.searchPage
*/
// onExit: function() {
//
// }
});
\ No newline at end of file
sap.ui.jsview("conceptmapper.searchPage", {
/** Specifies the Controller belonging to this View.
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
* @memberOf conceptmapper.searchPage
*/
getControllerName : function() {
return "conceptmapper.searchPage";
},
/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
* Since the Controller is given to this method, its event handlers can be attached right away.
* @memberOf conceptmapper.searchPage
*/
createContent : function(oController) {
var oSubHeader = new sap.m.Bar({
contentLeft : [ new sap.m.Button({
icon : "sap-icon://nav-back",
press : function(oEvt) {
app.back();
}
}) ],
contentMiddle : [ new sap.m.Label({
text : "{i18n>app_subhead_search}"
}) ]
});
var oSearchProd = new sap.m.SearchField("idSearchField", {
placeholder : "{i18n>search_placeholder}",
//search:[oController.onSearchProduct,oController],
}).addStyleClass("searchPage");
var oStandardCB = new sap.m.CheckBox({
id:"cb_with_label_size",
visible:true,
selected: true,
enabled: true,
text: "Standard"
}).addStyleClass("searchPage");
var oList = new sap.m.List({
itemPress:[oController.onProductListPress,oController]
}).addStyleClass("searchPage");
// bind the oList items to the oData collection
oList.bindItems({
path : "list>/value",
template : new sap.m.StandardListItem({
title : "{list>Name}",
description : "{list>Description}",
type: sap.m.ListType.Navigation
})
});
var oPage = new sap.m.Page({
title : "{i18n>app_head}",
showSubHeader : true,
subHeader : oSubHeader,
content : [ oSearchProd, oStandardCB, oList ]
});
return oPage;
}
});
\ No newline at end of file
.searchPage {
width: 40% !important;
margin-left: 30% !important;
}
\ No newline at end of file
tile_importCSV=CSV import
tile_users=Users management
tile_algos=Algorithms
tile_search=Concept Search
tile_map=Mapper
app_head=Concepts Mapper App
app_subhead_search=Search by id
search_placeholder=Search (id)
\ No newline at end of file
app_head=Concepts Mapper App
tile_importCSV=Import CSV
tile_users=Gestion des utilisateurs
tile_algos=Algorithmes
tile_search=Recherche
tile_map=Mapper
app_subhead_search=Recherche par id
search_placeholder=Recherche (id)
\ No newline at end of file
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
<link rel="stylesheet" type="text/css" href="css/app.css">
<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->
<script>
sap.ui.localResources("conceptmapper");
// create an app
var app = new sap.m.App({
initialPage : "idHomePage"
});
// Adding all the pages to the app
app.addPage(sap.ui.view({
id : "idHomePage",
viewName : "conceptmapper.homePage",
type : sap.ui.core.mvc.ViewType.JS
}));
app.addPage(sap.ui.view({
id : "idSearchPage",
viewName : "conceptmapper.searchPage",
type : sap.ui.core.mvc.ViewType.JS
}));
app.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment