-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ad1c94f
Showing
531 changed files
with
238,474 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,51 @@ | ||
<script> | ||
// in the past the documentation structure was flat | ||
// then we moved pages in several subdirectories | ||
// this scripts tries to redirect requests for old pages | ||
// /docs/etag -> /docs/mongodb-rest/etag | ||
|
||
// remove first slash char | ||
var path = window.location.pathname.substr(1); | ||
|
||
if (path[path.length-1] == "/") { | ||
path = path.substr(0, path.length - 1); | ||
} | ||
|
||
path = path.substr(path.indexOf("/")); | ||
|
||
// prepend to path | ||
const pathMongoREST = '/docs/mongodb-rest/' + path; | ||
const pathMongoWebsocket = '/docs/mongodb-websocket/' + path; | ||
const pathMongoGraphQL = '/docs/mongodb-graphql/' + path; | ||
path = '/docs' + path; | ||
|
||
var URL = window.location.origin + path | ||
|
||
const URLMongoREST = window.location.origin + pathMongoREST; | ||
const URLMongoWebsocket = window.location.origin + pathMongoWebsocket; | ||
const URLMongoGraphQL = window.location.origin + pathMongoGraphQL; | ||
|
||
//console.log(URL); | ||
//console.log(URLV3); | ||
var requestedPageExists = function(resourceUrl){ | ||
var http = new XMLHttpRequest(); | ||
|
||
http.open('GET', resourceUrl, false); | ||
http.send(); | ||
|
||
return http.status != 404; | ||
} | ||
|
||
if(requestedPageExists(URL)) { | ||
window.location.replace(URL); | ||
} else if (requestedPageExists(URLMongoREST)) { | ||
window.location.replace(URLMongoREST); | ||
} else if (requestedPageExists(URLMongoWebsocket)) { | ||
window.location.replace(URLMongoWebsocket); | ||
} else if (requestedPageExists(URLMongoGraphQL)) { | ||
window.location.replace(URLMongoGraphQL); | ||
} else { | ||
window.location.replace(window.location.origin + '/not-found'); | ||
}; | ||
</script> | ||
|
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 @@ | ||
restheart.org |
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,13 @@ | ||
restheart-website | ||
================= | ||
|
||
[restheart.org](https://restheart.org) Web site. | ||
|
||
## RESTHeart - Ready to use backend for the modern Web. | ||
|
||
### Automatic REST, GraphQL and WebSocket APIs for MongoDB and any compatible database. | ||
|
||
fork it on [GitHub](https://github.com/SoftInstigate/restheart) | ||
<hr></hr> | ||
|
||
_Made with :heart: by [SoftInstigate](https://www.softinstigate.com/)_ |
Binary file not shown.
Binary file not shown.
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,216 @@ | ||
/* -------------------------------- | ||
Primary style | ||
-------------------------------- */ | ||
|
||
*, *::after, *::before { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
.animated-container { | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
font-size: 62.5%; | ||
} | ||
|
||
.cd-title { | ||
position: relative; | ||
height: 160px; | ||
line-height: 230px; | ||
text-align: center; | ||
} | ||
.cd-title h1 { | ||
font-size: 2.4rem; | ||
font-weight: 700; | ||
} | ||
@media only screen and (min-width: 768px) { | ||
.cd-title { | ||
line-height: 250px; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 1170px) { | ||
.cd-title { | ||
height: 200px; | ||
line-height: 300px; | ||
} | ||
.cd-title h1 { | ||
font-size: 3rem; | ||
} | ||
} | ||
|
||
.cd-intro { | ||
max-width: 100vw; | ||
text-align: center; | ||
} | ||
|
||
.cd-intro { | ||
margin: 4em auto; | ||
} | ||
@media only screen and (min-width: 768px) { | ||
.cd-intro { | ||
margin: 5em auto; | ||
} | ||
} | ||
@media only screen and (min-width: 1170px) { | ||
.cd-intro { | ||
margin: 6em auto; | ||
} | ||
} | ||
|
||
.cd-headline { | ||
font-size: 1.5rem; | ||
line-height: 1.2; | ||
} | ||
|
||
.cd-headline i { | ||
font-style: normal!important | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.cd-headline { | ||
font-size: 1.4rrem; | ||
font-weight: 200; | ||
} | ||
} | ||
@media only screen and (min-width: 1170px) { | ||
.cd-headline { | ||
font-size: 1.6rem; | ||
} | ||
} | ||
|
||
.cd-words-wrapper { | ||
display: inline-block; | ||
position: relative; | ||
min-height: 90px; | ||
} | ||
|
||
.cd-words-wrapper b { | ||
display: inline-block; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
} | ||
.cd-words-wrapper b.is-visible { | ||
position: relative; | ||
} | ||
.no-js .cd-words-wrapper b { | ||
opacity: 0; | ||
} | ||
.no-js .cd-words-wrapper b.is-visible { | ||
opacity: 1; | ||
} | ||
|
||
/* -------------------------------- | ||
xtype | ||
-------------------------------- */ | ||
.cd-headline.type .cd-words-wrapper { | ||
vertical-align: top; | ||
overflow: hidden; | ||
/* min-height: 76px; */ | ||
min-width: 90%; | ||
} | ||
.cd-headline.type .cd-words-wrapper::after { | ||
/* vertical bar */ | ||
content: ''; | ||
position: absolute; | ||
right: 0; | ||
top: 50%; | ||
bottom: auto; | ||
-webkit-transform: translateY(-50%); | ||
-moz-transform: translateY(-50%); | ||
-ms-transform: translateY(-50%); | ||
-o-transform: translateY(-50%); | ||
transform: translateY(-50%); | ||
height: 90%; | ||
width: 1px; | ||
background-color: #aebcb9; | ||
} | ||
.cd-headline.type .cd-words-wrapper.waiting::after { | ||
-webkit-animation: cd-pulse 1s infinite; | ||
-moz-animation: cd-pulse 1s infinite; | ||
animation: cd-pulse 1s infinite; | ||
} | ||
/* .cd-headline.type .cd-words-wrapper.selected { | ||
background-color: lightgray; | ||
} */ | ||
.cd-headline.type .cd-words-wrapper.selected::after { | ||
visibility: hidden; | ||
} | ||
.cd-headline.type .cd-words-wrapper.selected b { | ||
color: #e59728; | ||
} | ||
.cd-headline.type b { | ||
visibility: hidden; | ||
} | ||
.cd-headline.type b.is-visible { | ||
visibility: visible; | ||
} | ||
.cd-headline.type i { | ||
position: absolute; | ||
visibility: hidden; | ||
} | ||
.cd-headline.type i.in { | ||
position: relative; | ||
visibility: visible; | ||
} | ||
|
||
@-webkit-keyframes cd-pulse { | ||
0% { | ||
-webkit-transform: translateY(-50%) scale(1); | ||
opacity: 1; | ||
} | ||
40% { | ||
-webkit-transform: translateY(-50%) scale(0.9); | ||
opacity: 0; | ||
} | ||
100% { | ||
-webkit-transform: translateY(-50%) scale(0); | ||
opacity: 0; | ||
} | ||
} | ||
@-moz-keyframes cd-pulse { | ||
0% { | ||
-moz-transform: translateY(-50%) scale(1); | ||
opacity: 1; | ||
} | ||
40% { | ||
-moz-transform: translateY(-50%) scale(0.9); | ||
opacity: 0; | ||
} | ||
100% { | ||
-moz-transform: translateY(-50%) scale(0); | ||
opacity: 0; | ||
} | ||
} | ||
@keyframes cd-pulse { | ||
0% { | ||
-webkit-transform: translateY(-50%) scale(1); | ||
-moz-transform: translateY(-50%) scale(1); | ||
-ms-transform: translateY(-50%) scale(1); | ||
-o-transform: translateY(-50%) scale(1); | ||
transform: translateY(-50%) scale(1); | ||
opacity: 1; | ||
} | ||
40% { | ||
-webkit-transform: translateY(-50%) scale(0.9); | ||
-moz-transform: translateY(-50%) scale(0.9); | ||
-ms-transform: translateY(-50%) scale(0.9); | ||
-o-transform: translateY(-50%) scale(0.9); | ||
transform: translateY(-50%) scale(0.9); | ||
opacity: 0; | ||
} | ||
100% { | ||
-webkit-transform: translateY(-50%) scale(0); | ||
-moz-transform: translateY(-50%) scale(0); | ||
-ms-transform: translateY(-50%) scale(0); | ||
-o-transform: translateY(-50%) scale(0); | ||
transform: translateY(-50%) scale(0); | ||
opacity: 0; | ||
} | ||
} |
Oops, something went wrong.