trestle-auth 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +11 -4
- data/Gemfile +3 -1
- data/app/assets/bundle/trestle/auth/bundle.css +1 -1
- data/app/assets/bundle/trestle/auth/userbox.css +1 -1
- data/app/views/trestle/auth/sessions/new.html.erb +4 -0
- data/gemfiles/rails-5.0.gemfile +2 -0
- data/gemfiles/rails-5.1.gemfile +2 -0
- data/gemfiles/rails-5.2.gemfile +2 -0
- data/gemfiles/rails-6.0.gemfile +3 -1
- data/gemfiles/{rails-4.2.gemfile → rails-6.1.gemfile} +4 -2
- data/gemfiles/rails-7.0.gemfile +20 -0
- data/lib/trestle/auth/version.rb +1 -1
- data/package.json +11 -11
- data/trestle-auth.gemspec +1 -1
- data/webpack.config.js +15 -15
- data/yarn.lock +1846 -3618
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f20f20a18e7d3b1ee6d2cd1249fd39f6062f53f6cbccef84fe4d511edcb6a537
|
4
|
+
data.tar.gz: b091455c598714024772029a647c39db37d09280918de086304e59980b20be0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d20962a10869bd335dd768da2bfc84f90b339a7dc37f3756b117d4f316f815d6962be7556e82267b4f9d3a182b70fa711203aeb2535e831f13bf113cfc28d5
|
7
|
+
data.tar.gz: dc9422562f26242e5ed5dd6d16b8a2e6655c96d3b8e57ebbad06c1d0aed7cb8a70a7d430791bb9acfeffe8ccd70c1ca0e1baccf9869ceebfe367b9256f04388d
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
os: linux
|
2
|
+
dist: bionic
|
3
|
+
|
1
4
|
language: ruby
|
2
5
|
|
3
6
|
cache: bundler
|
@@ -7,16 +10,20 @@ before_install:
|
|
7
10
|
- gem install bundler
|
8
11
|
|
9
12
|
rvm:
|
10
|
-
- 2.6
|
13
|
+
- 2.7.6
|
11
14
|
|
12
15
|
gemfile:
|
13
16
|
- gemfiles/rails-5.0.gemfile
|
14
17
|
- gemfiles/rails-5.1.gemfile
|
15
18
|
- gemfiles/rails-5.2.gemfile
|
16
19
|
- gemfiles/rails-6.0.gemfile
|
20
|
+
- gemfiles/rails-6.1.gemfile
|
21
|
+
- gemfiles/rails-7.0.gemfile
|
17
22
|
|
18
23
|
jobs:
|
19
24
|
include:
|
20
|
-
gemfile: gemfiles/rails-
|
21
|
-
|
22
|
-
|
25
|
+
- gemfile: gemfiles/rails-6.1.gemfile
|
26
|
+
rvm: 3.0.4
|
27
|
+
|
28
|
+
- gemfile: gemfiles/rails-7.0.gemfile
|
29
|
+
rvm: 3.0.4
|
data/Gemfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.auth-body{display:flex
|
1
|
+
.auth-body{color:#fff;display:flex}.auth-body .container{margin:auto;width:320px}.auth-header{margin-bottom:20px;text-align:center}.auth-header h1{align-items:center;display:flex;font-size:1.75rem;font-weight:500;justify-content:center;padding:.75rem 1rem;text-shadow:rgba(0,0,0,.5) 0 1px 1px}.auth-header img{max-height:100%;max-width:80%}.auth-header span{margin-left:10px}.login-form .form-control,.login-form .input-group-text{background:hsla(0,0%,100%,.1);border:0}.login-form .form-control{color:#fff;font-size:1.1rem;padding:1.75rem .75rem}.login-form .form-control:focus{box-shadow:none;outline-color:transparent;outline-style:none}.login-form .form-control::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control::placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control:-webkit-autofill{-webkit-text-fill-color:#fff}.login-form .form-control:-webkit-autofill,.login-form .form-control:-webkit-autofill:active,.login-form .form-control:-webkit-autofill:focus,.login-form .form-control:-webkit-autofill:hover{-webkit-transition:background-color 9999999s ease-in-out 0s;transition:background-color 9999999s ease-in-out 0s}.login-form .input-group-prepend{margin-right:0}.login-form .input-group-text{color:hsla(0,0%,100%,.5);padding:.375rem .25rem .375rem 1rem}.login-form .btn-primary{box-shadow:0 0 2px rgba(0,0,0,.1);padding-bottom:.75rem;padding-top:.75rem}.login-form .alert-danger{background-color:hsla(2,62%,66%,.75)}.login-form .remember-me{font-size:.95rem;line-height:1.5;padding-left:0}.login-form .remember-me .custom-control-label{background:rgba(0,0,0,.075);border-radius:.25rem;color:hsla(0,0%,100%,.75);cursor:pointer;display:block;padding:.75em 1.5em .75em 3.25em}.login-form .remember-me .custom-control-label:hover{background:rgba(0,0,0,.125)}.login-form .remember-me .custom-control-label:after,.login-form .remember-me .custom-control-label:before{left:1.1em;top:.925em}
|
@@ -1 +1 @@
|
|
1
|
-
.userbox{order:99;padding:2px 0
|
1
|
+
.userbox{align-items:center;display:flex;order:99;padding:2px 0}.userbox>a{color:#333;display:block;font-weight:400;line-height:40px;padding:2px 0}.userbox>a:focus,.userbox>a:hover{text-decoration:none}.userbox .avatar{margin-left:6px;vertical-align:top}.userbox .dropdown-toggle:after{vertical-align:middle}@media (max-width:767.98px){.userbox{display:block;position:relative;z-index:5}.userbox .name{display:none}.userbox .avatar{border:1px solid hsla(0,0%,100%,.25);margin-left:0}}
|
data/gemfiles/rails-5.0.gemfile
CHANGED
data/gemfiles/rails-5.1.gemfile
CHANGED
data/gemfiles/rails-5.2.gemfile
CHANGED
data/gemfiles/rails-6.0.gemfile
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
group :test do
|
4
|
+
gem "rspec-rails", "~> 5.0"
|
5
|
+
|
4
6
|
gem "coveralls", require: false
|
5
7
|
gem "capybara"
|
6
8
|
|
7
|
-
gem "sqlite3", "~> 1.
|
9
|
+
gem "sqlite3", "~> 1.4"
|
8
10
|
gem "devise"
|
9
11
|
end
|
10
12
|
|
11
|
-
gem "rails", "~>
|
13
|
+
gem "rails", "~> 6.1.0"
|
12
14
|
gem "sassc-rails"
|
13
15
|
|
14
16
|
gem "rake", "~> 12.0"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
group :test do
|
4
|
+
gem "rspec-rails", "~> 5.0"
|
5
|
+
|
6
|
+
gem "coveralls", require: false
|
7
|
+
gem "capybara"
|
8
|
+
|
9
|
+
gem "sqlite3", "~> 1.4"
|
10
|
+
gem "devise"
|
11
|
+
end
|
12
|
+
|
13
|
+
gem "rails", "~> 7.0.0"
|
14
|
+
gem "sassc-rails"
|
15
|
+
|
16
|
+
gem "rake", "~> 12.0"
|
17
|
+
|
18
|
+
gem "trestle", github: "TrestleAdmin/trestle"
|
19
|
+
|
20
|
+
gemspec path: "../"
|
data/lib/trestle/auth/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "trestle-auth",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.4",
|
4
4
|
"description": "Authentication plugin for the Trestle admin framework",
|
5
5
|
"repository": "https://github.com/TrestleAdmin/trestle-auth.git",
|
6
6
|
"author": "Sam Pohlenz <sam@sampohlenz.com>",
|
@@ -15,15 +15,15 @@
|
|
15
15
|
"trestle": "https://github.com/TrestleAdmin/trestle.git"
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
|
-
"autoprefixer": "^
|
19
|
-
"css-loader": "^
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"postcss-loader": "^
|
24
|
-
"sass-loader": "^
|
25
|
-
"webpack": "^
|
26
|
-
"webpack-cli": "^
|
27
|
-
"webpack-
|
18
|
+
"autoprefixer": "^10.2.6",
|
19
|
+
"css-loader": "^5.2.6",
|
20
|
+
"css-minimizer-webpack-plugin": "^3.0.2",
|
21
|
+
"mini-css-extract-plugin": "^2.0.0",
|
22
|
+
"node-sass": "^7.0.0",
|
23
|
+
"postcss-loader": "^6.1.1",
|
24
|
+
"sass-loader": "^12.1.0",
|
25
|
+
"webpack": "^5.42.0",
|
26
|
+
"webpack-cli": "^4.7.2",
|
27
|
+
"webpack-remove-empty-scripts": "^0.7.1"
|
28
28
|
}
|
29
29
|
}
|
data/trestle-auth.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "trestle", "~> 0.9.0", ">= 0.9.3"
|
25
25
|
spec.add_dependency "bcrypt", "~> 3.1.7"
|
26
26
|
|
27
|
-
spec.add_development_dependency "rspec-rails"
|
27
|
+
spec.add_development_dependency "rspec-rails"
|
28
28
|
spec.add_development_dependency "show_me_the_cookies", "~> 5.0"
|
29
29
|
spec.add_development_dependency "timecop", "~> 0.9.1"
|
30
30
|
end
|
data/webpack.config.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
const path = require('path');
|
2
2
|
|
3
|
+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
3
4
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
4
|
-
const
|
5
|
-
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
|
5
|
+
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');
|
6
6
|
|
7
7
|
module.exports = {
|
8
|
+
mode: 'production',
|
8
9
|
entry: {
|
9
10
|
bundle: path.resolve(__dirname, 'frontend/index.scss'),
|
10
11
|
userbox: path.resolve(__dirname, 'frontend/userbox.scss')
|
@@ -13,18 +14,8 @@ module.exports = {
|
|
13
14
|
path: path.resolve(__dirname, 'app/assets/bundle/trestle/auth')
|
14
15
|
},
|
15
16
|
optimization: {
|
16
|
-
splitChunks: {
|
17
|
-
cacheGroups: {
|
18
|
-
styles: {
|
19
|
-
name: 'bundle',
|
20
|
-
test: /\.css$/,
|
21
|
-
chunks: 'all',
|
22
|
-
enforce: true
|
23
|
-
}
|
24
|
-
}
|
25
|
-
},
|
26
17
|
minimizer: [
|
27
|
-
new
|
18
|
+
new CssMinimizerPlugin({})
|
28
19
|
]
|
29
20
|
},
|
30
21
|
module: {
|
@@ -34,14 +25,23 @@ module.exports = {
|
|
34
25
|
use: [
|
35
26
|
{ loader: MiniCssExtractPlugin.loader },
|
36
27
|
{ loader: 'css-loader' },
|
37
|
-
{
|
28
|
+
{
|
29
|
+
loader: 'postcss-loader',
|
30
|
+
options: {
|
31
|
+
postcssOptions: {
|
32
|
+
plugins: [
|
33
|
+
['autoprefixer', {}]
|
34
|
+
]
|
35
|
+
}
|
36
|
+
}
|
37
|
+
},
|
38
38
|
{ loader: 'sass-loader' }
|
39
39
|
]
|
40
40
|
}
|
41
41
|
]
|
42
42
|
},
|
43
43
|
plugins: [
|
44
|
-
new
|
44
|
+
new RemoveEmptyScriptsPlugin(),
|
45
45
|
new MiniCssExtractPlugin({
|
46
46
|
filename: '[name].css'
|
47
47
|
})
|