Skip to content

Commit 96a0511

Browse files
Merge pull request #2393 from fossasia/development
2 parents 81d3e2c + 2281d84 commit 96a0511

23 files changed

+1736
-1511
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ configmap.yml.secret
5151
.tool-versions
5252
.env
5353
.vscode
54+
55+
package-lock.json

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
dist: xenial
1+
dist: bionic
22
language: node_js
33
node_js:
44
- 12
55

66
services:
77
- docker
88
- redis
9+
- xvfb
910

1011
env:
1112
- TESTFOLDER=test/serverTest.js
@@ -15,10 +16,7 @@ env:
1516
- TESTFOLDER=test/sessionEventAndCoC.js
1617

1718
addons:
18-
sauce_connect:
19-
username: princu7
20-
jwt:
21-
secure: FslueGK2gtPHkRANMpUlGyCGsr1jTVuaKpP+SvYUxBYh5zbz73GMq+VsqlE29IZ1ER1+xMfWuCCvg3VA7HePyN6hzoZ/t0LADureYVPur6R5ZJgqgQpBinjpytIjo2BhN3NqaNWaIJZTLDSAT76R7HuNm016jbuOEjO5foYWuz2F82B03viHmk42CRNl3eqXEMcwkkLfEkvu9iupeVAArPXepA2YCpaaFbV2D5ahTelzMROnc2YQ/HyAdaaLtto8L0CDmZSrFsPZtTGQKarFdOgKWeor2iD1AiYLHYdcbvXV5YbBVvi7tFJG8r5h0YBUu1JIkhvzWIi698GJRGwDCONStCaKVhrMvpL7C8fEpbzullxFSpWOVupTEjn+u0OGaxrugwSZ1dtSkbIu+2SlVR/QuXS8o6OMiDz7lrFhIc+hF6EvFRWI7UIjt9NPte1o3COA8WESaseCWKhLY0g/hgpRSM7pyfKx2NAj4UCXyPATTKRJNlEHcs/jMpgxu+RSjPYphK4rrWxm6O6bJxd+jNwQNBOmJ1lQgOPAxpA7SvRDpN5Et+L61tWttR1EEO1+sj0g/iGO+zrZfD8m+jxNnIGWih/ykSzggiaJ42VFbQcJFk5BCfxlty6c0p8DvJkdulcRkboU21nQx9irqWmSeedcA3VJX2r0womx3tZYnbY=
19+
chrome: stable
2220
apt:
2321
sources:
2422
- ubuntu-toolchain-r-test

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Open Event Website Generator
22
![Open Event webapp](./docs/images/wsgen_branding.png)
33

4-
[![Build Status](https://travis-ci.org/fossasia/open-event-wsgen.svg?branch=development)](https://travis-ci.org/fossasia/open-event-wsgen?branch=development)
5-
[![Heroku](https://heroku-badge.herokuapp.com/?app=opev-webgen-dev)](http://opev-webgen-dev.herokuapp.com)
4+
[![Build Status](https://travis-ci.com/fossasia/open-event-wsgen.svg?branch=development)](https://travis-ci.com/fossasia/open-event-wsgen)
5+
[![Heroku](https://heroku-badge.herokuapp.com/?app=open-event-wsgen-dev)](http://open-event-wsgen-dev.herokuapp.com)
66
[![Dependencies](https://david-dm.org/fossasia/open-event-wsgen.svg)](https://david-dm.org/fossasia/open-event-wsgen)
77
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c5b7e2ca3e4640c9b38e2f3274072583)](https://www.codacy.com/app/dev_19/open-event-wsgen?utm_source=github.com&utm_medium=referral&utm_content=fossasia/open-event-wsgen&utm_campaign=Badge_Grade)
8-
[![Code Climate](https://api.codeclimate.com/v1/badges/44552f8cc1b5ba1c760d/maintainability.svg)](https://codeclimate.com/github/fossasia/open-event-webapp)
8+
[![Maintainability](https://api.codeclimate.com/v1/badges/6498f490127101665851/maintainability)](https://codeclimate.com/github/fossasia/open-event-wsgen/maintainability)
99
[![codecov](https://codecov.io/gh/fossasia/open-event-wsgen/branch/development/graph/badge.svg)](https://codecov.io/gh/fossasia/open-event-wsgen)
10-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/fossasia/open-event-wsgen?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1110
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
11+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/fossasia/open-event-wsgen?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
12+
[![Mailing](https://img.shields.io/badge/Mailing-List-red.svg)](https://groups.google.com/forum/#!forum/open-event)
13+
[![Twitter Follow](https://img.shields.io/twitter/follow/eventyay.svg?style=social&label=Follow&maxAge=2592000?style=flat-square)](https://twitter.com/eventyay)
14+
1215

1316
The **Open Event Website Generator App** project has **TWO** components :
1417
- **An event website generator**
@@ -140,9 +143,9 @@ The HTML pages of the generated website are created using Handelbars templates.
140143

141144
### Web App Generator Test Installation
142145

143-
* You can try out the web generator at https://opev-webgen.herokuapp.com
146+
* You can try out the web generator at https://open-event-wsgen.herokuapp.com
144147

145-
* The `development-version` is available here: https://opev-webgen-dev.herokuapp.com
148+
* The `development-version` is available here: https://open-event-wsgen-dev.herokuapp.com
146149

147150
* You can use one of the event sample zip files here: https://github.com/fossasia/open-event/tree/master/sample
148151

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"PORT": 5000,
2+
"PORT": 3000,
33
"DEFAULT_MAIL_STRATEGY": "Sendgrid",
44
"DEFAULT_FROM_EMAIL": "[email protected]",
55
"SMTP_HOST": "mail.smtp2go.com",

docs/INSTALLATION_LOCAL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ or
3636
npm run server.generator
3737
```
3838

39-
The app will be running on http://localhost:5000
39+
The app will be running on http://localhost:3000
4040

4141
Note : If you are running the app behind a proxy, set the proxy option in config.json to `http://username:password@proxy_url:proxy_port`, and make sure it is url encoded.
4242

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,63 +24,65 @@
2424
},
2525
"homepage": "https://github.com/fossasia/open-event-webapp#readme",
2626
"dependencies": {
27-
"archiver": "^3.1.1",
27+
"@babel/core": "^7.0.0",
28+
"@babel/preset-env": "^7.12.1",
29+
"@octokit/rest": "^14.0.0",
30+
"archiver": "^5.0.2",
2831
"async": "^3.2.0",
2932
"aws-sdk": "^2.639.0",
30-
"babel-preset-es2015": "^6.24.0",
31-
"bee-queue": "^1.2.2",
33+
"bee-queue": "^1.3.0",
3234
"bluebird": "^3.4.7",
3335
"body-parser": "^1.15.2",
3436
"chai": "^4.0.1",
3537
"compression": "^1.6.2",
3638
"connect-domain": "^0.5.0",
37-
"cookie-parser": "^1.4.4",
39+
"cookie-parser": "^1.4.5",
3840
"decompress-zip": "^0.3.0",
39-
"del": "^5.1.0",
41+
"del": "^6.0.0",
4042
"dotenv": "^8.2.0",
4143
"express": "^4.13.4",
42-
"express-session": "^1.15.0",
43-
"folder-hash": "^3.3.0",
44+
"express-session": "^1.17.1",
45+
"folder-hash": "^4.0.0",
4446
"fs": "0.0.2",
45-
"fs-extra": "^3.0.1",
46-
"ftp-deploy": "^2.3.6",
47-
"github": "^9.2.0",
47+
"fs-extra": "^9.0.1",
48+
"ftp-deploy": "^2.3.7",
4849
"gulp": "^4.0.2",
49-
"gulp-babel": "^6.1.2",
50+
"gulp-babel": "^8.0.0",
5051
"gulp-concat": "^2.6.1",
5152
"gulp-htmlmin": "^5.0.1",
5253
"gulp-iife": "^0.4.0",
5354
"gulp-minify-css": "^1.2.4",
5455
"gulp-uglify": "^3.0.0",
55-
"handlebars": "^4.0.5",
56+
"handlebars": "^4.7.6",
5657
"html-minifier": "^4.0.0",
5758
"jsonapi-serializer": "^3.5.3",
58-
"jsonfile": "^6.0.1",
59-
"moment": "^2.13.0",
60-
"node-sass": "^4.5.3",
59+
"jsonfile": "^6.1.0",
60+
"moment": "^2.27.0",
61+
"node-sass": "^4.14.0",
6162
"node-uuid": "^1.4.7",
62-
"nodemailer": "^6.4.5",
63+
"nodemailer": "^6.4.15",
6364
"nodemailer-smtp-transport": "^2.7.2",
64-
"npm": "^6.14.2",
65+
"npm": "^6.14.7",
6566
"passport": "^0.4.1",
6667
"passport-github": "^1.1.0",
6768
"path": "^0.12.7",
6869
"progress-stream": "^2.0.0",
70+
"promise-ftp-common": "^1.1.5",
6971
"raven": "^2.6.4",
7072
"recursive-readdir": "^2.1.0",
7173
"redis": "^3.0.2",
7274
"request": "^2.74.0",
7375
"selenium-webdriver": "^3.4.0",
7476
"sendgrid": "^5.1.1",
75-
"sharp": "^0.25.1",
77+
"sharp": "^0.26.2",
7678
"socket.io": "^2.0.2",
7779
"socket.io-stream": "^0.9.1",
7880
"socketio-file-upload": "^0.7.0",
7981
"stream-buffers": "^3.0.1",
8082
"url-join": "^4.0.1"
8183
},
8284
"devDependencies": {
83-
"eslint": "^6.8.0",
85+
"eslint": "^7.13.0",
8486
"husky": "^0.14.3"
8587
}
8688
}

src/backend/_scss/application.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,6 @@ a {
10791079
}
10801080

10811081
margin-right: 10px;
1082-
display: inline-block;
10831082
vertical-align: text-top;
10841083
}
10851084

@@ -1396,8 +1395,9 @@ a {
13961395
}
13971396

13981397
.speaker-description {
1398+
padding-top: 20px;
13991399
text-align: center;
1400-
width: 50%;
1400+
width: 100%;
14011401
}
14021402
}
14031403
}
@@ -2469,3 +2469,14 @@ a.skip:hover {
24692469
display: none;
24702470
}
24712471
}
2472+
2473+
.date-list-search-filter {
2474+
2475+
label {
2476+
display: inline;
2477+
2478+
.fa {
2479+
margin-top: 13px;
2480+
}
2481+
}
2482+
}

src/backend/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const distHelper = require('./dist.js');
55
const fs = require('fs');
6-
const Github = require('github');
6+
const Github = require('@octokit/rest');
77
const gh = new Github();
88
const async = require('async');
99
let results, bitmap, i, file, fullPath, eventName, repoName, total, counter, elem, fileName, sha;

src/backend/dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const extensionChange = function(image) {
146146
};
147147

148148
const optimizeBackground = function(image, socket, done) {
149-
if (image !== null) {
149+
if (image) {
150150
sharp(image)
151151
.resize({
152152
width: 1150,
@@ -480,7 +480,7 @@ module.exports = {
480480
});
481481

482482
unzipper.extract({
483-
path: appPath + '/zip'
483+
path: 'dist/' + appFolder + '/zip'
484484
});
485485

486486
unzipper.on('extract', function(log) {
@@ -499,7 +499,7 @@ module.exports = {
499499
const fPath = appPath + '/zip/' + file;
500500

501501
function check(error) {
502-
if (error !== null) {
502+
if (error) {
503503
logger.addLog('Error', 'Error while copying folder', socket, error);
504504
cb(err);
505505
} else {
@@ -538,7 +538,7 @@ module.exports = {
538538
default: cb(null);
539539
}
540540
}, function(error) {
541-
if (error !== null) {
541+
if (error) {
542542
return done(error);
543543
}
544544

@@ -581,7 +581,7 @@ module.exports = {
581581
// duplicate folder found
582582
logger.addLog('Info', 'Removing the duplicate folder', socket);
583583
fs.remove(removeFolder, function(error) {
584-
if (error !== null) {
584+
if (error) {
585585
logger.addLog('Error', 'Error occured during deletion of the duplicate folder', socket, error);
586586
return done(error);
587587
}

src/backend/fold_v2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function returnAttendees(attendeesData) {
440440
}
441441

442442
function createSocialLinks(event) {
443-
const sociallinks = Array.from(event['social-links']);
443+
const sociallinks = Array.from(event['social-links']).filter(Boolean);
444444

445445
sociallinks.forEach((link) => {
446446
link.show = true;
@@ -488,7 +488,7 @@ function createSocialLinks(event) {
488488
}
489489

490490
function extractEventUrls(event, speakers, sponsors, reqOpts, next) {
491-
const sociallinks = Array.from(event['social-links']);
491+
const sociallinks = Array.from(event['social-links']).filter(Boolean);
492492
let sociallink = '';
493493
let featuresection = 0;
494494
let sponsorsection = 0;

0 commit comments

Comments
 (0)