Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ad375ccd
authored
Jun 07, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
väliaikacommit
1 parent
2d910117
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
10 deletions
code/moya-angular/WebContent/WEB-INF/pretty-config.xml
code/moya-angular/pom.xml
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/app/menu/admin-menu/admin-menu.component.ts
code/moya-angular/src/app/menu/defines/menu.ts
code/moya-angular/src/app/menu/left-menu/left-menu.component.html
code/moya-angular/src/app/old-moya/old-moya.component.ts
code/moya-web/WebContent/resources/templates/nglayout/template.xhtml
code/pom.xml
code/moya-angular/WebContent/WEB-INF/pretty-config.xml
View file @
ad375cc
...
@@ -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>
code/moya-angular/pom.xml
View file @
ad375cc
code/moya-angular/src/app/app.module.ts
View file @
ad375cc
...
@@ -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'
,
...
...
code/moya-angular/src/app/menu/admin-menu/admin-menu.component.ts
View file @
ad375cc
...
@@ -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
()
{
}
...
...
code/moya-angular/src/app/menu/defines/menu.ts
View file @
ad375cc
...
@@ -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'
}
]}
]}
];
];
...
...
code/moya-angular/src/app/menu/left-menu/left-menu.component.html
View file @
ad375cc
...
@@ -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>
code/moya-angular/src/app/old-moya/old-moya.component.ts
View file @
ad375cc
...
@@ -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
;
}
}
});
});
}
}
...
...
code/moya-web/WebContent/resources/templates/nglayout/template.xhtml
View file @
ad375cc
...
@@ -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
;
...
...
code/pom.xml
View file @
ad375cc
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,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>
v
7.10.0
</js.node.version>
<js.node.version>
v
6.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>
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
<repository>
<repository>
<id>
prime-repo
</id>
<id>
prime-repo
</id>
<name>
PrimeFaces Maven Repository
</name>
<name>
PrimeFaces Maven Repository
</name>
<url>
http://repository.primefaces.org
</url>
<url>
http
s
://repository.primefaces.org
</url>
</repository>
</repository>
<repository>
<repository>
<id>
apache.snapshots
</id>
<id>
apache.snapshots
</id>
...
...
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