Skip to content

Commit 35fb475

Browse files
authored
Merge Version 3.5.0 (#208)
2 parents 1ff8d94 + 3a4d8e2 commit 35fb475

34 files changed

+1391
-750
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ ENV/
103103
# JetBrains
104104
.idea/
105105

106+
# vscode
107+
.vscode
108+
106109
# Configurations
107110
config.py
108111

@@ -128,3 +131,5 @@ packet/static/safari-pinned-tab.svg
128131
packet/static/site.webmanifest
129132
faviconData.json
130133

134+
# csvs
135+
*.csv

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
language: python
22
python:
33
- "3.7"
4+
services:
5+
- "docker"
46

57
install:
68
- "pip install -r requirements.txt"
9+
- "curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh | bash"
10+
- "nvm install"
11+
- "nvm use"
12+
- "npm install -g gulp"
13+
- "npm install"
714
script:
8-
- "pylint --load-plugins pylint_quotes packet/routes packet"
15+
- "gulp lint"
16+
- "docker build -t packet ."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fail blocking you from merging. To make your life easier just run it before maki
106106

107107
To run pylint use this command:
108108
```bash
109-
pylint packet
109+
pylint --load-plugins pylint_quotes packet/routes packet
110110
```
111111

112112
All python files should have a top-level docstring explaining the contents of the file and complex functions should

frontend/scss/components/code.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pre{
2+
white-space: pre-wrap;
3+
}

frontend/scss/packet.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ $csh-pink: #b0197e;
77
@import "components/buttons";
88
@import "components/signatures";
99
@import "components/badges";
10+
@import "components/code";

frontend/scss/partials/_global.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,8 @@ tr {
103103

104104
.eval-user-img {
105105
border-radius: 50%;
106-
}
106+
}
107+
108+
select.form-control:not([size]):not([multiple]) {
109+
height: calc(3rem + 2px);
110+
}

gulpfile.js/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ requireDir('./tasks', {recurse: true});
1919

2020
// Default task
2121
gulp.task('default', gulp.parallel('css', 'js'));
22-
gulp.task('production', gulp.parallel('css', 'js', 'generate-favicon', 'pylint'));
22+
gulp.task('production', gulp.parallel('css', 'js', 'generate-favicon'));
23+
gulp.task('lint', gulp.parallel('pylint'));

gulpfile.js/tasks/pylint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const gulp = require('gulp');
22
const exec = require('child_process').exec;
33

44
let pylintTask = (cb) => {
5-
exec('pylint packet', function (err, stdout, stderr) {
5+
exec('pylint --load-plugins pylint_quotes packet/routes packet', function (err, stdout, stderr) {
66
console.log(stdout);
77
console.log(stderr);
88
cb(err);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "CSH Packet",
33
"name": "csh-packet",
4-
"version": "3.4.0",
4+
"version": "3.5.0",
55
"description": "A web app implementation of the CSH introductory packet.",
66
"bugs": {
77
"url": "https://github.com/ComputerScienceHouse/packet/issues",
@@ -20,10 +20,10 @@
2020
"devDependencies": {
2121
"gulp": "^4.0.2",
2222
"gulp-clean-css": "^4.2.0",
23+
"gulp-minify": "^3.1.0",
2324
"gulp-real-favicon": "^0.3.2",
2425
"gulp-rename": "^1.4.0",
2526
"gulp-sass": "^4.0.2",
26-
"gulp-minify": "^3.1.0",
2727
"require-dir": "^1.2.0"
2828
}
2929
}

packet/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080

8181
if app.config['REALM'] == 'csh':
8282
from .routes import upperclassmen
83+
from .routes import admin
8384
else:
8485
from .routes import freshmen
8586

0 commit comments

Comments
 (0)