Skip to content

Commit 9cdfbbc

Browse files
author
kaptron
committed
Initial commit
0 parents  commit 9cdfbbc

File tree

105 files changed

+9301
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+9301
-0
lines changed

.babelrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false,
7+
"targets": {
8+
"browsers": "> 1%",
9+
"uglify": true
10+
},
11+
"useBuiltIns": true
12+
}
13+
],
14+
"react"
15+
],
16+
"plugins": [
17+
["babel-plugin-root-import", {
18+
"rootPathSuffix": "app/javascript"
19+
}],
20+
"syntax-dynamic-import",
21+
"transform-object-rest-spread",
22+
[
23+
"transform-class-properties",
24+
{
25+
"spec": true
26+
}
27+
]
28+
]
29+
}

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
OKTA_CLIENT_ID=XXXXXXXXX
2+
OKTA_CLIENT_SECRET=XXXXXXXXXXXXXXXXXX
3+
OKTA_REDIRECT_URL=http://localhost:3000/users/auth/okta/callback
4+
OKTA_BASE_URL=http://localhost:3000
5+
OKTA_ORG=dev-744644
6+
OKTA_DOMAIN=oktapreview

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app/assets/javascripts/application.js

.eslintrc

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"plugins": [
3+
"react"
4+
],
5+
"extends" : [
6+
"airbnb",
7+
"standard",
8+
"standard-react"
9+
],
10+
"parser": "babel-eslint",
11+
"parserOptions": {
12+
"ecmaVersion": 7,
13+
"sourceType": "module",
14+
"ecmaFeatures": {
15+
"jsx": true
16+
}
17+
},
18+
"globals" : {
19+
"__DEV__" : false,
20+
"__PROD__" : false,
21+
"__DEBUG__" : false,
22+
"React": true,
23+
"ReactDOM": true,
24+
"SimpleSchema": true
25+
},
26+
"settings": {
27+
"import/resolver": {
28+
"babel-plugin-root-import": {},
29+
"node": {}
30+
}
31+
},
32+
"rules": {
33+
"react/jsx-filename-extension": 0,
34+
"import/no-absolute-path": 0,
35+
"import/extensions": 0,
36+
"semi" : [2, "never"],
37+
"camelcase": 0,
38+
"comma-dangle": 0,
39+
"arrow-parens": [0, "as-needed"],
40+
"function-paren-newline": ["error", "consistent"],
41+
"indent": ["error", 2],
42+
"no-param-reassign": ["error", { "props": false }],
43+
"radix": ["error", "as-needed"],
44+
"jsx-quotes": ["warn", "prefer-double"],
45+
"react-in-jsx-scope": 0,
46+
"react/prefer-stateless-function": 0,
47+
"react/prop-types": [1, {"skipUndeclared": true}]
48+
}
49+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
.byebug_history
17+
18+
/.env
19+
/public/packs
20+
/public/packs-test
21+
/node_modules
22+
yarn-debug.log*
23+
yarn-error.log*
24+
.yarn-integrity

.postcssrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins:
2+
postcss-import: {}
3+
postcss-cssnext: {}

.rubocop.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
AllCops:
2+
Include:
3+
- '**/Rakefile'
4+
- '**/config.ru'
5+
- 'lib/tasks/**/*'
6+
Exclude:
7+
- Gemfile*
8+
- 'db/migrate/*'
9+
- 'db/schema.rb'
10+
- 'bin/**/*'
11+
- 'vendor/bundle/**/*'
12+
- 'node_modules/**/*'
13+
- 'config/environments/production.rb'
14+
- 'config/initializers/devise.rb'
15+
16+
# We don't care about method length, since we check method cyclomatic
17+
# complexity.
18+
Metrics/MethodLength:
19+
Enabled: false
20+
Metrics/ClassLength:
21+
Enabled: false
22+
Metrics/PerceivedComplexity:
23+
Max: 10
24+
Metrics/CyclomaticComplexity:
25+
Max: 8
26+
Metrics/AbcSize:
27+
# The ABC size is a calculated magnitude, so this number can be a Fixnum or
28+
# a Float.
29+
Max: 35
30+
31+
# Trailing commas make for clearer diffs because the last line won't appear
32+
# to have been changed, as it would if it lacked a comma and had one added.
33+
Style/TrailingCommaInArguments:
34+
EnforcedStyleForMultiline: comma
35+
Style/TrailingCommaInLiteral:
36+
EnforcedStyleForMultiline: comma
37+
38+
# Cop supports --auto-correct.
39+
# Configuration parameters: PreferredDelimiters.
40+
Style/PercentLiteralDelimiters:
41+
PreferredDelimiters:
42+
# Using `[]` for string arrays instead of `()`, since normal arrays are
43+
# indicated with `[]` not `()`.
44+
'%w': '[]'
45+
'%W': '[]'
46+
47+
Style/AndOr:
48+
# Whether `and` and `or` are banned only in conditionals (conditionals)
49+
# or completely (always).
50+
# They read better, more like normal English.
51+
Enabled: false
52+
53+
Style/ClassAndModuleChildren:
54+
Exclude:
55+
- 'app/controllers/**/*'
56+
57+
Style/EmptyMethod:
58+
Enabled: false
59+
60+
Style/ConditionalAssignment:
61+
Enabled: false
62+
63+
Style/Documentation:
64+
Enabled: false
65+
66+
Style/FrozenStringLiteralComment:
67+
Enabled: false
68+
69+
Metrics/LineLength:
70+
Max: 140
71+
Exclude:
72+
- 'config/routes.rb'
73+
74+
Metrics/BlockLength:
75+
Max: 25
76+
Exclude:
77+
- 'config/routes.rb'

.ruby-gemset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ideo-sso-demo

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.2

Gemfile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
source 'https://rubygems.org'
2+
ruby '2.4.2'
3+
4+
git_source(:github) do |repo_name|
5+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
6+
"https://github.com/#{repo_name}.git"
7+
end
8+
9+
# NOTE: IMPORTANT for this to be first so that gems e.g. omniauth-okta
10+
# can pull in the right ENV vars
11+
# ENV variables in dev
12+
gem 'dotenv-rails', groups: [:development, :test], require: 'dotenv/rails-now'
13+
14+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
15+
gem 'rails', '~> 5.1.4'
16+
# Use postgresql as the database for Active Record
17+
gem 'pg', '~> 0.21'
18+
# Use Puma as the app server
19+
gem 'puma', '~> 3.11'
20+
# Use SCSS for stylesheets
21+
gem 'sass-rails', '~> 5.0'
22+
# Use Uglifier as compressor for JavaScript assets
23+
gem 'uglifier', '>= 1.3.0'
24+
# See https://github.com/rails/execjs#readme for more supported runtimes
25+
# gem 'therubyracer', platforms: :ruby
26+
27+
# Use CoffeeScript for .coffee assets and views
28+
gem 'coffee-rails', '~> 4.2'
29+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
30+
gem 'jbuilder', '~> 2.5'
31+
# Use ActiveModel has_secure_password
32+
# gem 'bcrypt', '~> 3.1.7'
33+
34+
# Use Capistrano for deployment
35+
# gem 'capistrano-rails', group: :development
36+
37+
gem 'devise'
38+
gem 'omniauth-okta'
39+
gem 'webpacker', '~> 3.0'
40+
41+
group :development, :test do
42+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
43+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
44+
# Adds support for Capybara system testing and selenium driver
45+
gem 'capybara', '~> 2.13'
46+
gem 'selenium-webdriver'
47+
end
48+
49+
group :development do
50+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
51+
gem 'web-console', '>= 3.3.0'
52+
gem 'listen', '>= 3.0.5', '< 3.2'
53+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
54+
gem 'spring'
55+
gem 'spring-watcher-listen', '~> 2.0.0'
56+
gem 'rubocop', require: false
57+
end
58+
59+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
60+
# gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)