Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
daaexample
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Iago Gómez Salgado
daaexample
Commits
87695a66
Commit
87695a66
authored
Mar 01, 2017
by
Iago Gómez Salgado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Frontend: Jquery -> ReactJS
parent
79dd78e0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
402 additions
and
476 deletions
+402
-476
people-container.js
src/main/webapp/js/view/people-container.js
+372
-0
people.js
src/main/webapp/js/view/people.js
+0
-455
main.html
src/main/webapp/main.html
+30
-21
No files found.
src/main/webapp/js/view/people-container.js
0 → 100644
View file @
87695a66
This diff is collapsed.
Click to expand it.
src/main/webapp/js/view/people.js
deleted
100644 → 0
View file @
79dd78e0
This diff is collapsed.
Click to expand it.
src/main/webapp/main.html
View file @
87695a66
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DAA Example
</title>
</head>
<body>
<div
id=
"people-container"
>
<h1>
People
</h1>
<a
id=
"#logout"
href=
"logout"
>
Logout
</a>
</div>
<head>
<meta
charset=
"UTF-8"
>
<title>
DAA Example
</title>
<script
type=
"text/javascript"
src=
"http://code.jquery.com/jquery-2.2.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/dao/people.js"
></script>
<script
type=
"text/javascript"
src=
"js/view/people.js"
></script>
<script
type=
"text/javascript"
src=
"js/dao/pets.js"
></script>
<script
type=
"text/javascript"
src=
"js/view/pets.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
view
=
new
PeopleView
(
new
PeopleDAO
(),
new
PetsDAO
(),
'people-container'
,
'people-container'
);
view
.
init
();
});
</script>
</body>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
>
</head>
<body>
<div
class=
"page-header"
>
<h1>
People and Pets Manager
<small>
simple webapp to manage people and their pets
</small></h1>
</div>
<div
id=
"people-container"
>
</div>
<a
id=
"#logout"
href=
"logout"
><button
type=
"button"
class=
"btn btn-danger"
>
Logout
</button></a>
<script
type=
"text/javascript"
src=
"http://code.jquery.com/jquery-2.2.0.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
></script>
<script
src=
"https://unpkg.com/react@15/dist/react.js"
></script>
<script
src=
"https://unpkg.com/react-dom@15/dist/react-dom.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/react-select/0.9.1/react-select.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.23.1/babel.js"
></script>
<script
type=
"text/javascript"
src=
"js/dao/people.js"
></script>
<script
type=
"text/javascript"
src=
"js/dao/pets.js"
></script>
<script
type=
"text/babel"
src=
"js/view/people-container.js"
></script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment