-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SISRP-6547 - Campus Solutions splash page #1
Changes from 1 commit
8014166
da5a64d
40c2404
25658ff
5c41497
9b62908
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# Tempfiles | ||
/tmp | ||
|
||
# .DS_Store files on Mac | ||
.DS_Store | ||
|
||
# Files that might appear on external disks | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# SASS cache | ||
.sass-cache | ||
|
||
# Node modules | ||
/node_modules | ||
|
||
# Npm log | ||
npm-debug.log | ||
|
||
# Dist directory | ||
/dist | ||
|
||
# Server perm file (used for https) | ||
server.pem |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @winstonkim can we run this somewhere? |
||
"disallowDanglingUnderscores": true, | ||
"disallowEmptyBlocks": true, | ||
"disallowKeywords": ["with"], | ||
"disallowKeywordsOnNewLine": ["else"], | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowMultipleLineBreaks": true, | ||
"disallowMultipleLineStrings": true, | ||
"disallowMultipleVarDecl": true, | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"disallowPaddingNewlinesInBlocks": true, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": [ | ||
"++", | ||
"--", | ||
"+", | ||
"-", | ||
"~", | ||
"!" | ||
], | ||
"disallowSpaceBeforePostfixUnaryOperators": [ | ||
"++", | ||
"--" | ||
], | ||
"disallowSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInNamedFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInFunction": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInsideArrayBrackets": true, | ||
"disallowSpacesInsideObjectBrackets": true, | ||
"disallowSpacesInsideParentheses": true, | ||
"disallowTrailingComma": true, | ||
"disallowTrailingWhitespace": true, | ||
"excludeFiles": [ | ||
"src/assets/javascripts/angularlib/**", | ||
"src/assets/javascripts/lib/**", | ||
"public/assets/**", | ||
"coverage/**", | ||
"node_modules/**", | ||
"vendor/**", | ||
"dist/**" | ||
], | ||
"requireBlocksOnNewline": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"requireCurlyBraces": true, | ||
"requireDotNotation": true, | ||
"requireLineFeedAtFileEnd": true, | ||
"requireOperatorBeforeLineBreak": [ | ||
"?", | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"=", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==", | ||
">", | ||
">=", | ||
"<", | ||
"<=" | ||
], | ||
"requireParenthesesAroundIIFE": true, | ||
"requireSpaceAfterBinaryOperators": [ | ||
"=", | ||
",", | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==" | ||
], | ||
"requireSpaceAfterKeywords": [ | ||
"do", | ||
"for", | ||
"if", | ||
"else", | ||
"switch", | ||
"case", | ||
"try", | ||
"catch", | ||
"void", | ||
"while", | ||
"with", | ||
"return" | ||
], | ||
"requireSpaceAfterBinaryOperators": [ | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"=", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==" | ||
], | ||
"requireSpaceAfterLineComment": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireSpaceBeforeKeywords": [ | ||
"else", | ||
"while", | ||
"catch" | ||
], | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireSpaceBetweenArguments": true, | ||
"requireSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInConditionalExpression": { | ||
"afterTest": true, | ||
"beforeConsequent": true, | ||
"afterConsequent": true, | ||
"beforeAlternate": true | ||
}, | ||
"requireSpacesInNamedFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInFunction": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInFunctionDeclaration": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"validateLineBreaks": "LF", | ||
"validateIndentation": 2, | ||
"validateParameterSeparator": ", ", | ||
"validateQuoteMarks": "'" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist/** | ||
node_modules/** |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"bitwise": true, | ||
"browser": true, | ||
"browserify": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"freeze": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": true, | ||
"maxdepth": 5, | ||
"noempty": true, | ||
"nonew": true, | ||
"quotmark": "single", | ||
"strict": true, | ||
"undef": true, | ||
"unused": true, | ||
"trailing": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
exclude: | ||
- 'node_modules/**' | ||
- 'dist/**' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @winstonkim can we remove it here as well? |
||
- 'src/css/**' | ||
|
||
linters: | ||
IdSelector: | ||
exclude: 'src/css/cs/items/_mainheader.scss' | ||
ImportantRule: | ||
enabled: false | ||
NameFormat: | ||
allow_leading_underscore: false | ||
NestingDepth: | ||
max_depth: 7 | ||
SelectorDepth: | ||
enabled: false | ||
StringQuotes: | ||
enabled: false | ||
QualifyingElement: | ||
enabled: false | ||
UrlFormat: | ||
enabled: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
# https://github.com/sass/node-sass/issues/490 | ||
# - "0.11" | ||
- "0.10" | ||
before_script: | ||
- gem install scss-lint | ||
- npm install -g gulp | ||
script: gulp prod | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @winstonkim looks like we don't have |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Copyright 2014 - 2015, Regents of the University of California | ||
Licensed under the Educational Community License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
||
You may obtain a copy of the License at: http://opensource.org/licenses/ECL-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an "AS IS" | ||
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
or implied. See the License for the specific language governing | ||
permissions and limitations under the License. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# The SIS Splash Page | ||
This is the splash page for PeopleSoft consultants to log in to Campus Solutions. Consultants can access the log in portal through the splash page in addition to links to useful resources that a consultant might need. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also accessed by staff & faculty |
||
## Build | ||
This page uses Gulp to convert the SCSS files into inline CSS. Run the following command to compile the splash page: | ||
|
||
## Example | ||
|
||
```bash | ||
gulp | ||
``` | ||
## Screenshot | ||
![SIS Splash Page Screenshot](http://s21.postimg.org/6akk8gnt3/splashpagescreenshot.png) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Include gulp | ||
var gulp = require('gulp'); | ||
|
||
// Include Our Plugins | ||
var jshint = require('gulp-jshint'); | ||
var sass = require('gulp-sass'); | ||
var concat = require('gulp-concat'); | ||
var uglify = require('gulp-uglify'); | ||
var rename = require('gulp-rename'); | ||
var inlinesource = require('gulp-inline-source'); | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
|
||
// Lint Task | ||
gulp.task('lint', function() { | ||
return gulp.src('js/*.js') | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')); | ||
}); | ||
|
||
// Compile Our Sass | ||
gulp.task('sass', function() { | ||
return gulp.src('src/scss/*.scss') | ||
.pipe(sass()) | ||
.pipe(autoprefixer({ | ||
browsers: ['last 2 versions'], | ||
cascade: false | ||
})) | ||
.pipe(gulp.dest('src/css')); | ||
}); | ||
|
||
// Concatenate & Minify JS | ||
gulp.task('scripts', function() { | ||
return gulp.src('js/*.js') | ||
.pipe(concat('all.js')) | ||
.pipe(gulp.dest('dist')) | ||
.pipe(rename('all.min.js')) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @winstonkim as discussed please remove all the JavaScript references. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ChristianV sorry need some clarification. should we remove jshint and jscs files even when we are using gulpfile.js? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @winstonkim yes, I would be fine with that. |
||
.pipe(uglify()) | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
|
||
gulp.task('inlinesource', ['sass'], function() { | ||
return gulp.src('./src/index.html') | ||
.pipe(inlinesource()) | ||
.pipe(gulp.dest('./out')); | ||
}); | ||
|
||
// Watch Files For Changes | ||
gulp.task('watch', function() { | ||
gulp.watch('js/*.js', ['lint', 'scripts']); | ||
gulp.watch('src/scss/*.scss', ['inlinesource']); | ||
}); | ||
|
||
// Default Task | ||
gulp.task('default', ['lint', 'sass', 'scripts', 'watch', 'inlinesource']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@winstonkim can we add an end of line here?