Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
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 798dac1c
authored
Jun 07, 2017
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
väliaikacommit
1 parent
f6cf18d8
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
11 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 @
798dac1
...
@@ -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 @
798dac1
code/moya-angular/src/app/app.module.ts
View file @
798dac1
...
@@ -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 @
798dac1
...
@@ -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 @
798dac1
...
@@ -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 @
798dac1
...
@@ -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 @
798dac1
...
@@ -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 @
798dac1
...
@@ -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 @
798dac1
...
@@ -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>
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>
...
@@ -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>
...
...
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