Commit 798dac1c by Tuukka Kivilahti

väliaikacommit

1 parent f6cf18d8
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd"> http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd">
<rewrite match="^(?!.*\.(js|css|jpg|gif|png|ico|html)$).*$" substitute="/index.html" redirect="chain" /> <rewrite match="^(?!.*\.(js|css|jpg|gif|png|ico|html|svg)$).*$" substitute="/index.html" redirect="chain" />
</pretty-config> </pretty-config>
...@@ -35,6 +35,7 @@ const appRoutes: Routes = [ ...@@ -35,6 +35,7 @@ const appRoutes: Routes = [
{ path: '', component: InfoMenuComponent, outlet: 'left-menu' }, { path: '', component: InfoMenuComponent, outlet: 'left-menu' },
{ path: '', pathMatch: 'full', component: OldMoyaComponent }, { path: '', pathMatch: 'full', component: OldMoyaComponent },
{ path: 'old', component: OldMoyaComponent }, { path: 'old', component: OldMoyaComponent },
{ path: 'viplist', component: ViplistComponent },
] ]
}, },
{ path: 'admin', { path: 'admin',
......
...@@ -9,7 +9,7 @@ import {MENU} from '../defines/menu'; ...@@ -9,7 +9,7 @@ import {MENU} from '../defines/menu';
}) })
export class AdminMenuComponent implements OnInit { export class AdminMenuComponent implements OnInit {
menu: MenuGroup[]= MENU.INFO; menu: MenuGroup[]= MENU.ADMIN;
constructor() { } constructor() { }
......
...@@ -18,7 +18,8 @@ export class MENU { ...@@ -18,7 +18,8 @@ export class MENU {
{ {
'name': 'Users', 'name': 'Users',
'items': [ 'items': [
{ 'path': '/info/old', 'name': 'List users', 'params': {p: 'useradmin/list.jsf'} } { 'path': '/info/old', 'name': 'List users', 'params': {p: 'useradmin/list.jsf'} },
{ 'path': '/info/viplist', 'name': 'VipList'}
]} ]}
]; ];
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
</nav> </nav>
<img id="moya-logo" src="assets/moya-logo.svg" /> <a href="http://codecrew.fi" alt="Codecrew homepage" target="_blank"><img id="moya-logo" src="assets/moya-logo.svg" /></a>
</div> </div>
...@@ -28,7 +28,6 @@ export class OldMoyaComponent implements OnInit { ...@@ -28,7 +28,6 @@ export class OldMoyaComponent implements OnInit {
this.frameUrl = '/MoyaWeb/' + x; this.frameUrl = '/MoyaWeb/' + x;
} }
}); });
} }
......
...@@ -180,10 +180,10 @@ ...@@ -180,10 +180,10 @@
if(window.self === window.top) { if(window.self === window.top) {
var url = document.location.href.split("/MoyaWeb/", 2); var url = document.location.href.split("/MoyaWeb/", 2);
var realUrl = "/MoyaNG/old"; var realUrl = "/MoyaNG";
if(url.length > 1) { if(url.length > 1) {
realUrl = "/MoyaNG/old?p=" + url[1]; realUrl = "/MoyaNG/user/old?p=" + url[1];
} }
document.location.href = realUrl; document.location.href = realUrl;
......
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
<rewriteservlet.version>3.4.1.Final</rewriteservlet.version> <rewriteservlet.version>3.4.1.Final</rewriteservlet.version>
<iudex.standalone>1.0.23</iudex.standalone> <iudex.standalone>1.0.23</iudex.standalone>
<js.node.version>v7.10.0</js.node.version> <js.node.version>v6.9.1</js.node.version>
<js.npm.version>4.1.0</js.npm.version> <js.npm.version>4.1.2</js.npm.version>
<eirslett.frontend.version>1.4</eirslett.frontend.version> <eirslett.frontend.version>1.4</eirslett.frontend.version>
</properties> </properties>
...@@ -105,8 +105,11 @@ ...@@ -105,8 +105,11 @@
<name>jvnet-nexus-releases</name> <name>jvnet-nexus-releases</name>
<url>https://maven.java.net/content/repositories/releases/</url> <url>https://maven.java.net/content/repositories/releases/</url>
</repository> </repository>
<!-- <repository>
--> <id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>https://repository.primefaces.org</url>
</repository>
<repository> <repository>
<id>apache.snapshots</id> <id>apache.snapshots</id>
<url>http://repository.apache.org/snapshots/</url> <url>http://repository.apache.org/snapshots/</url>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!