Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1c68242b
authored
May 12, 2017
by
Tuomas Riihimäki
Committed by
Tuukka Kivilahti
Feb 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettyfaces redirect for moya-angular + random stuff
1 parent
f0306ea8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
1 deletions
code/moya-angular/.gitignore
code/moya-angular/WebContent/WEB-INF/pretty-config.xml
code/moya-angular/WebContent/WEB-INF/web.xml
code/moya-angular/package.json
code/moya-angular/pom.xml
code/moya-angular/.gitignore
View file @
1c68242
...
...
@@ -6,6 +6,7 @@
# dependencies
/node_modules
/node
# IDEs and editors
/.idea
...
...
code/moya-angular/WebContent/WEB-INF/pretty-config.xml
0 → 100644
View file @
1c68242
<pretty-config
xmlns=
"http://ocpsoft.org/schema/rewrite-config-prettyfaces"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd"
>
<rewrite
match=
"^(?!.*\.(js|css|jpg|gif|png|ico|html)).*$"
substitute=
"/index.html"
redirect=
"chain"
/>
</pretty-config>
code/moya-angular/WebContent/WEB-INF/web.xml
0 → 100644
View file @
1c68242
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://xmlns.jcp.org/xml/ns/javaee"
xmlns:web=
"http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version=
"3.1"
>
<display-name>
MoyaAngularWeb
</display-name>
<context-param>
<param-name>
javax.faces.FACELETS_SKIP_COMMENTS
</param-name>
<param-value>
true
</param-value>
</context-param>
<!-- Asetetaan PROJECT_STAGE JNDI:llä, ja fallbackataan arvoon Development -->
<resource-ref>
<res-ref-name>
jsf/ProjectStage
</res-ref-name>
<res-type>
java.lang.String
</res-type>
</resource-ref>
<!-- Handle hostname filter BEFORE jsonp so errors are transmitted correctly -->
<absolute-ordering>
<name>
com_ocpsoft_rewrite
</name>
</absolute-ordering>
<session-config>
<session-timeout>
10
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.jsf
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.wtf
</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>
java.lang.Exception
</exception-type>
<location>
/error.jsf
</location>
</error-page>
<security-constraint>
<display-name>
Forbidden resource
</display-name>
<web-resource-collection>
<web-resource-name>
Forbidden
</web-resource-name>
<url-pattern>
*.xhtml
</url-pattern>
<url-pattern>
/layout/*
</url-pattern>
<url-pattern>
/resources/tools/*
</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>
Thou shall not read the sources or use utils directly
</description>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>
FORM
</auth-method>
<realm-name>
moyaRealm
</realm-name>
<form-login-config>
<form-login-page>
/auth/login.jsf
</form-login-page>
<form-error-page>
/auth/loginError.jsf
</form-error-page>
</form-login-config>
</login-config>
<persistence-unit-ref>
<persistence-unit-ref-name>
BortalEMF
</persistence-unit-ref-name>
</persistence-unit-ref>
</web-app>
code/moya-angular/package.json
View file @
1c68242
...
...
@@ -25,7 +25,7 @@
"@angular/router"
:
"^4.1.2"
,
"bootstrap"
:
"^4.0.0-alpha.6"
,
"core-js"
:
"^2.4.1"
,
"moya-angular-common"
:
"file:
///Users/tuukka/Projects/moya/code
/moya-angular-common/src"
,
"moya-angular-common"
:
"file:
..
/moya-angular-common/src"
,
"ng2-bootstrap"
:
"^1.3.3"
,
"node-sass"
:
"^4.5.0"
,
"rxjs"
:
"^5.0.1"
,
...
...
code/moya-angular/pom.xml
View file @
1c68242
...
...
@@ -61,6 +61,19 @@
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>
org.ocpsoft.rewrite
</groupId>
<artifactId>
rewrite-servlet
</artifactId>
<version>
${rewriteservlet.version}
</version>
</dependency>
<dependency>
<groupId>
org.ocpsoft.rewrite
</groupId>
<artifactId>
rewrite-config-prettyfaces
</artifactId>
<version>
${rewriteservlet.version}
</version>
</dependency>
</dependencies>
<parent>
<groupId>
fi.codecrew.moya
</groupId>
<artifactId>
moya-parent
</artifactId>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment