This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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 #590 from ejplatform/develop
Release minor 1.1 da Ada Lovelace
- Loading branch information
Showing
83 changed files
with
5,503 additions
and
1,826 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Nginx configuration to use in a VM-based deploy | ||
upstream django { | ||
server 127.0.0.1:8000; | ||
} | ||
|
||
|
||
# configuration of the server | ||
server { | ||
# the port your site will be served on | ||
listen 80; | ||
server_name 35.199.67.151; | ||
charset utf-8; | ||
|
||
# max upload size | ||
client_max_body_size 5M; # adjust to taste | ||
|
||
# Django media | ||
location /media { | ||
alias /var/www/media; # your Django project's media files - amend as required | ||
} | ||
|
||
location /static { | ||
alias /var/www/static; # your Django project's static files - amend as required | ||
} | ||
|
||
location / { | ||
# an HTTP header important enough to have its own Wikipedia entry: | ||
# http://en.wikipedia.org/wiki/X-Forwarded-For | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
|
||
# enable this if and only if you use HTTPS, this helps Rack | ||
# set the proper protocol for doing redirects: | ||
# proxy_set_header X-Forwarded-Proto https; | ||
|
||
# pass the Host: header from the client right along so redirects | ||
# can be set properly within the Rack application | ||
proxy_set_header Host $http_host; | ||
|
||
# we don't want nginx trying to do something clever with | ||
# redirects, we set the Host: header above already. | ||
proxy_redirect off; | ||
|
||
# set "proxy_buffering off" *only* for Rainbows! when doing | ||
# Comet/long-poll stuff. It's also safe to set if you're | ||
# using only serving fast clients with Unicorn + nginx. | ||
# Otherwise you _want_ nginx to buffer responses to slow | ||
# clients, really. | ||
# proxy_buffering off; | ||
|
||
# Try to serve static files from nginx, no point in making an | ||
# *application* server like Unicorn/Rainbows! serve static files. | ||
if (!-f $request_filename) { | ||
proxy_pass http://django; | ||
break; | ||
} | ||
} | ||
|
||
# Error pages | ||
error_page 500 502 503 504 /500.html; | ||
location = /500.html { | ||
root /var/share/www/static/; | ||
} | ||
} |
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,8 @@ | ||
[program:ej-server] | ||
command=inv db -m sass -t cpa collect gunicorn | ||
autostart=true | ||
autorestart=true | ||
user=django | ||
env=DJANGO_DEBUG=false,EJ_THEME=default,EJ_ROCKETCHAT_INTEGRATION=false | ||
stderr_logfile=/var/log/ej-server.err.log | ||
stdout_logfile=/var/log/ej-server.out.log |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python3 | ||
python3-pip | ||
supervisor | ||
nginx | ||
sass |
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,7 @@ | ||
{ | ||
"presets": [ | ||
"flow", | ||
["env", { "modules": false }] | ||
], | ||
"plugins": ['transform-class-properties'] | ||
} |
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,2 @@ | ||
[options] | ||
esproposal.decorators=ignore |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
function headerScroll($elem) { | ||
|
||
// Hide Header on on scroll down | ||
var didScroll; | ||
var lastScrollTop = 0; | ||
var delta = 5; | ||
var navbarHeight = $elem.outerHeight(); | ||
|
||
$(window).scroll(function (event) { | ||
didScroll = true; | ||
}); | ||
|
||
setInterval(function () { | ||
if (didScroll) { | ||
hasScrolled(); | ||
didScroll = false; | ||
} | ||
}, 250); | ||
|
||
function hasScrolled() { | ||
var st = $(this).scrollTop(); | ||
|
||
// Make sure they scroll more than delta | ||
if (Math.abs(lastScrollTop - st) <= delta) return; | ||
|
||
// If they scrolled down and are past the navbar, add class .nav-up. | ||
// This is necessary so you never see what is "behind" the navbar. | ||
if (st > lastScrollTop && st > navbarHeight) { | ||
// Scroll Down | ||
$('header').removeClass('nav-down').addClass('nav-up'); | ||
} else { | ||
// Scroll Up | ||
if (st + $(window).height() < $(document).height()) { | ||
$('header').removeClass('nav-up').addClass('nav-down'); | ||
} | ||
} | ||
|
||
lastScrollTop = st; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @flow | ||
import './unpoly-compilers.js'; |
Oops, something went wrong.