Skip to content

Commit

Permalink
Merge pull request #8 from OakLabsInc/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
rjoffray authored Sep 27, 2019
2 parents 8b56aa9 + e6e1ff5 commit 8d42836
Show file tree
Hide file tree
Showing 10 changed files with 3,063 additions and 1,219 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ services:
environment:
- API_KEY=X11DQgKGIZex0yd7QQVtLhDljL13
- SCHEDULE_NAME=oakos_intro
- TZ=America/Los_Angeles
- TZ=America/Los_Angeles
- ELECTRON_DISABLE_SECURITY_WARNINGS=true
370 changes: 151 additions & 219 deletions functions/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ gulp.task('pug', function () {
.pipe(gulp.dest(DIST_PATH))
})

gulp.task('default', ['stylus', 'pug'])
gulp.task('default', gulp.parallel('stylus', 'pug'))
3,857 changes: 2,892 additions & 965 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@
},
"homepage": "https://github.com/OakLabsInc/app-schedule#readme",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-pug": "^3.3.0",
"gulp-stylus": "^2.7.0",
"gulp-watch": "^4.3.11",
"gulp": "~4.0.2",
"gulp-pug": "~4.0.1",
"gulp-stylus": "~2.7.0",
"gulp-watch": "~5.0.1",
"oak": "~5.0.9",
"standard": "^14.3.1"
"standard": "~14.3.1"
},
"dependencies": {
"express": "~4.17.1",
"lodash": "^4.17.15",
"md-color-picker": "^0.2.6",
"firebase-admin": "~8.6.0",
"firebase-functions": "~3.2.0",
"lodash": "~4.17.15",
"md-color-picker": "~0.2.6",
"nib": "~1.1.2",
"pug-cli": "~1.0.0-alpha6",
"stylus": "~0.54.7"
Expand Down
2 changes: 2 additions & 0 deletions src/public/vendor/firebase.app-6.6.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/public/vendor/firebase.firestore-6.6.2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const stylus = require('stylus')
const app = express()

const port = process.env.PORT ? _.toNumber(process.env.PORT) : 9000

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = true
let publicPath = join(__dirname, 'public')
let viewsPath = join(__dirname, 'views')

Expand Down
22 changes: 0 additions & 22 deletions src/views/footer.pug
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
script(src="/vendor/firebase.min.js")

script.
var app = firebase.initializeApp({
apiKey: "AIzaSyDr_LrNrgPwZXtSTXScZJ3DvMB-gmP2hec",
authDomain: "oak-schedule.firebaseapp.com",
databaseURL: "https://oak-schedule.firebaseio.com",
projectId: "oak-schedule",
storageBucket: "oak-schedule.appspot.com",
messagingSenderId: "1046369340167"
});
// Initialize Cloud Firestore through Firebase
var db = firebase.firestore()

db.enablePersistence({
experimentalTabSynchronization:true
}).catch(function(err) {
if (err.code == 'failed-precondition') {
console.error('Multiple tabs open, persistence can only be enabled in one tab at a a time.')
} else if (err.code == 'unimplemented') {
console.error('The current browser does not support all of the features required to enable persistence.')
}
});
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular.min.js")
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular-animate.min.js")
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular-aria.min.js")
Expand Down
6 changes: 3 additions & 3 deletions src/views/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0')


link(href='/vendor/angular-material.min.css', rel='stylesheet', type='text/css')
link(href='/index.css', rel='stylesheet', type='text/css')
link(href='/vendor/demo.css', rel='stylesheet', type='text/css')
script(src="/vendor/firebase.min.js")


script(src="/vendor/firebase.app-6.6.2.min.js")
script(src="/vendor/firebase.firestore-6.6.2.min.js")
script.
var app = firebase.initializeApp({
apiKey: "AIzaSyDr_LrNrgPwZXtSTXScZJ3DvMB-gmP2hec",
Expand Down

0 comments on commit 8d42836

Please sign in to comment.