-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from noremacsim/1.1.0/bug/Fix_requested_path
1.1.0 - Move Core Features
- Loading branch information
Showing
41 changed files
with
396 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ package-lock.json | |
package.json | ||
postman.json | ||
readme.md | ||
SECURITY.md | ||
SECURITY.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = { | ||
name: 'public', | ||
|
||
home: async (request, h) => { | ||
return h.fullView('welcome', null); | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,66 @@ | ||
<style> | ||
* { | ||
font-family: Google sans, Arial; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.flex-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
color: white; | ||
animation: colorSlide 15s cubic-bezier(0.075, 0.82, 0.165, 1) infinite; | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>404 Page Not Found</title> | ||
<style type="text/css"> | ||
::selection { | ||
background-color: #e13300; | ||
color: white; | ||
} | ||
::-moz-selection { | ||
background-color: #e13300; | ||
color: white; | ||
} | ||
|
||
.text-center { | ||
text-align: center; | ||
h1, | ||
h3 { | ||
margin: 10px; | ||
cursor: default; | ||
body { | ||
background-color: #fff; | ||
margin: 40px; | ||
font: 13px/20px normal Helvetica, Arial, sans-serif; | ||
color: #4f5155; | ||
} | ||
|
||
.fade-in { | ||
animation: fadeIn 2s ease infinite; | ||
} | ||
a { | ||
color: #003399; | ||
background-color: transparent; | ||
font-weight: normal; | ||
} | ||
|
||
h1 { | ||
font-size: 8em; | ||
transition: font-size 200ms ease-in-out; | ||
border-bottom: 1px dashed white; | ||
|
||
span#digit1 { | ||
animation-delay: 200ms; | ||
} | ||
span#digit2 { | ||
animation-delay: 300ms; | ||
} | ||
span#digit3 { | ||
animation-delay: 400ms; | ||
} | ||
color: #444; | ||
background-color: transparent; | ||
border-bottom: 1px solid #d0d0d0; | ||
font-size: 19px; | ||
font-weight: normal; | ||
margin: 0 0 14px; | ||
padding: 14px 15px 10px; | ||
} | ||
|
||
button { | ||
border: 1px solid white; | ||
background: transparent; | ||
outline: none; | ||
padding: 10px 20px; | ||
font-size: 1.1rem; | ||
font-weight: bold; | ||
color: white; | ||
text-transform: uppercase; | ||
transition: background-color 200ms ease-in; | ||
margin: 20px 0; | ||
|
||
&:hover { | ||
background-color: white; | ||
color: #555; | ||
cursor: pointer; | ||
} | ||
code { | ||
font-family: Consolas, Monaco, Courier New, Courier, monospace; | ||
font-size: 12px; | ||
background-color: #f9f9f9; | ||
border: 1px solid #d0d0d0; | ||
color: #002166; | ||
display: block; | ||
margin: 14px 0; | ||
padding: 12px 10px; | ||
} | ||
} | ||
} | ||
|
||
@keyframes colorSlide { | ||
0% { | ||
background-color: #152a68; | ||
} | ||
25% { | ||
background-color: royalblue; | ||
} | ||
50% { | ||
background-color: seagreen; | ||
} | ||
75% { | ||
background-color: tomato; | ||
} | ||
100% { | ||
background-color: #152a68; | ||
} | ||
} | ||
#container { | ||
margin: 10px; | ||
border: 1px solid #d0d0d0; | ||
box-shadow: 0 0 8px #d0d0d0; | ||
} | ||
|
||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
</style> | ||
<div class="flex-container"> | ||
<div class="text-center"> | ||
<h1> | ||
<span class="fade-in" id="digit1">4</span> | ||
<span class="fade-in" id="digit2">0</span> | ||
<span class="fade-in" id="digit3">4</span> | ||
</h1> | ||
<h3 class="fadeIn">PAGE NOT FOUND</h3> | ||
<button type="button" name="button">Return To Home</button> | ||
</div> | ||
</div> | ||
p { | ||
margin: 12px 15px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="container"> | ||
<h1>404 Page Not Found</h1> | ||
<p>The page you requested was not found.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
let controller; | ||
let Controllers = []; | ||
|
||
fs.readdirSync(path.join(__dirname, '../../App/controllers/')) | ||
.filter((file) => file !== 'index.js') | ||
.forEach((file) => { | ||
controller = require(path.join( | ||
__dirname + '../../../App/controllers/', | ||
file | ||
)); | ||
Controllers[controller.name] = controller; | ||
}); | ||
|
||
module.exports = Controllers; |
Oops, something went wrong.