alveole 0.0.1 → 1.0.0.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +21 -26
- data/Rakefile +6 -8
- data/app/assets/config/alveole_manifest.js +5 -0
- data/app/assets/images/alveole/icons/favicon-150.png +0 -0
- data/app/assets/javascripts/alveole/application.js +10 -0
- data/app/assets/stylesheets/alveole/application.css +15 -0
- data/app/assets/stylesheets/application.tailwind.css +13 -0
- data/app/components/alveole/button_component.html.erb +10 -0
- data/app/components/alveole/button_component.rb +46 -0
- data/app/components/alveole/chip_component.html.erb +3 -0
- data/app/components/alveole/chip_component.rb +23 -0
- data/app/components/alveole/dropdown/menu_item_component.html.erb +2 -0
- data/app/components/alveole/dropdown/menu_item_component.rb +5 -0
- data/app/components/alveole/dropdown_component.html.erb +27 -0
- data/app/components/alveole/dropdown_component.rb +21 -0
- data/app/components/alveole/footer/link_component.html.erb +6 -0
- data/app/components/alveole/footer/link_component.rb +8 -0
- data/app/components/alveole/footer_component.html.erb +14 -0
- data/app/components/alveole/footer_component.rb +9 -0
- data/app/components/alveole/form_layout_component.html.erb +32 -0
- data/app/components/alveole/form_layout_component.rb +43 -0
- data/app/components/alveole/icon_component.html.erb +1 -0
- data/app/components/alveole/icon_component.rb +20 -0
- data/app/components/alveole/input/avatar_component.html.erb +16 -0
- data/app/components/alveole/input/avatar_component.rb +4 -0
- data/app/components/alveole/input/base_component.rb +16 -0
- data/app/components/alveole/input/comment_component.html.erb +153 -0
- data/app/components/alveole/input/comment_component.rb +5 -0
- data/app/components/alveole/input/counter_component.html.erb +16 -0
- data/app/components/alveole/input/counter_component.rb +4 -0
- data/app/components/alveole/input/email_component.html.erb +17 -0
- data/app/components/alveole/input/email_component.rb +4 -0
- data/app/components/alveole/input/file_component.html.erb +4 -0
- data/app/components/alveole/input/file_component.rb +4 -0
- data/app/components/alveole/input/search_component.html.erb +7 -0
- data/app/components/alveole/input/search_component.rb +5 -0
- data/app/components/alveole/input/select_component.html.erb +4 -0
- data/app/components/alveole/input/select_component.rb +12 -0
- data/app/components/alveole/input/text_component.html.erb +17 -0
- data/app/components/alveole/input/text_component.rb +4 -0
- data/app/components/alveole/input/textarea_component.html.erb +16 -0
- data/app/components/alveole/input/textarea_component.rb +4 -0
- data/app/components/alveole/mega_menu_component.html.erb +107 -0
- data/app/components/alveole/mega_menu_component.rb +6 -0
- data/app/components/alveole/sidebar/divider_component.html.erb +5 -0
- data/app/components/alveole/sidebar/divider_component.rb +5 -0
- data/app/components/alveole/sidebar/group_component.html.erb +7 -0
- data/app/components/alveole/sidebar/group_component.rb +37 -0
- data/app/components/alveole/sidebar/heading_component.html.erb +3 -0
- data/app/components/alveole/sidebar/heading_component.rb +8 -0
- data/app/components/alveole/sidebar/item_component.html.erb +14 -0
- data/app/components/alveole/sidebar/item_component.rb +17 -0
- data/app/components/alveole/sidebar_component.html.erb +13 -0
- data/app/components/alveole/sidebar_component.rb +40 -0
- data/app/controllers/alveole/application_controller.rb +4 -0
- data/app/helpers/alveole/application_helper.rb +4 -0
- data/app/jobs/alveole/application_job.rb +4 -0
- data/app/mailers/alveole/application_mailer.rb +6 -0
- data/app/models/alveole/application_record.rb +5 -0
- data/app/views/layouts/alveole/application.html.erb +28 -0
- data/config/importmap.rb +7 -0
- data/config/routes.rb +2 -0
- data/config/tailwind.config.js +42 -0
- data/lib/alveole/engine.rb +18 -21
- data/lib/alveole/version.rb +1 -1
- data/lib/alveole.rb +2 -12
- data/lib/tasks/alveole_tasks.rake +14 -0
- metadata +110 -110
- data/.gitignore +0 -8
- data/.gitlab-ci.yml +0 -55
- data/.rubocop.yml +0 -63
- data/.rubocop_todo.yml +0 -12
- data/.travis.yml +0 -6
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -171
- data/LICENSE.txt +0 -21
- data/alveole.gemspec +0 -35
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/alveole/components/avatar_component/avatar_component.html.slim +0 -6
- data/lib/alveole/components/avatar_component.rb +0 -9
- data/lib/alveole/components/badge_component/badge_component.html.slim +0 -2
- data/lib/alveole/components/badge_component.rb +0 -8
- data/lib/alveole/components/breadcrumb_component/breadcrumb_component.html.slim +0 -2
- data/lib/alveole/components/breadcrumb_component.rb +0 -8
- data/lib/alveole/components/breadcrumbs_component.rb +0 -7
- data/lib/alveole/components/button_component/button_component.html.slim +0 -5
- data/lib/alveole/components/button_component.rb +0 -15
- data/lib/alveole/components/definition_component/definition_component.html.slim +0 -4
- data/lib/alveole/components/definition_component.rb +0 -13
- data/lib/alveole/components/form_component/form_component.html.slim +0 -3
- data/lib/alveole/components/form_component.rb +0 -3
- data/lib/alveole/components/form_submit_component/form_submit_component.html.slim +0 -1
- data/lib/alveole/components/form_submit_component.rb +0 -7
- data/lib/alveole/components/heading_component/heading_component.html.slim +0 -4
- data/lib/alveole/components/heading_component.rb +0 -8
- data/lib/alveole/components/input_component/input_component.html.slim +0 -17
- data/lib/alveole/components/input_component.rb +0 -42
- data/lib/alveole/components/notice_component/notice_component.html.slim +0 -5
- data/lib/alveole/components/notice_component.rb +0 -15
- data/lib/alveole/components/page_component/page_component.html.slim +0 -10
- data/lib/alveole/components/page_component.rb +0 -4
- data/lib/alveole/components/sidebar_component/sidebar_component.html.slim +0 -7
- data/lib/alveole/components/sidebar_component.rb +0 -4
- data/lib/alveole/components/table_column_component/table_column_component.html.slim +0 -3
- data/lib/alveole/components/table_column_component.rb +0 -12
- data/lib/alveole/components/table_component/table_component.html.slim +0 -7
- data/lib/alveole/components/table_component.rb +0 -3
- data/lib/alveole/components/table_header_component/table_header_component.html.slim +0 -2
- data/lib/alveole/components/table_header_component.rb +0 -8
- data/lib/alveole/components/table_row_component/table_row_component.html.slim +0 -4
- data/lib/alveole/components/table_row_component.rb +0 -3
- data/lib/alveole/components/toolbar_component/toolbar_component.html.slim +0 -7
- data/lib/alveole/components/toolbar_component.rb +0 -4
- data/lib/alveole/concerns/bem.rb +0 -21
- data/lib/alveole/helpers/method_helper.rb +0 -31
- data/lib/alveole/javascript/components.js +0 -5
- data/lib/alveole/previews/avatar_component_preview.rb +0 -11
- data/lib/alveole/previews/badge_component_preview.rb +0 -11
- data/lib/alveole/previews/breadcrumb_component_preview.rb +0 -15
- data/lib/alveole/previews/button_component_preview.rb +0 -7
- data/lib/alveole/previews/definition_component_preview.rb +0 -33
- data/lib/alveole/previews/form_component_preview.rb +0 -18
- data/lib/alveole/previews/form_submit_component_preview.rb +0 -7
- data/lib/alveole/previews/heading_component_preview.rb +0 -11
- data/lib/alveole/previews/input_component_preview.rb +0 -32
- data/lib/alveole/previews/notice_component_preview.rb +0 -15
- data/lib/alveole/previews/page_component_preview.rb +0 -33
- data/lib/alveole/previews/sidebar_component_preview.rb +0 -33
- data/lib/alveole/previews/table_column_component_preview.rb +0 -36
- data/lib/alveole/previews/table_component_preview.rb +0 -12
- data/lib/alveole/previews/table_header_component_preview.rb +0 -27
- data/lib/alveole/previews/table_row_component_preview.rb +0 -18
- data/lib/alveole/previews/toolbar_component_preview.rb +0 -33
- data/lib/generators/alveole/config_generator.rb +0 -17
- data/lib/generators/alveole/templates/alveole_config.rb +0 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Alveole</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%= stylesheet_link_tag "alveole/application", media: "all" %>
|
9
|
+
<%= stylesheet_link_tag "alveole", "data-turbo-track": "reload" %>
|
10
|
+
|
11
|
+
<!--
|
12
|
+
NOTE: This loads/imports main app `application.js` and all the pins from
|
13
|
+
the main app and from the engine (because we set it up in the engine.rb).
|
14
|
+
-->
|
15
|
+
<%= javascript_importmap_tags %>
|
16
|
+
|
17
|
+
<!--
|
18
|
+
NOTE: To add engine's javascript functionality we have to load the
|
19
|
+
entrypoint here or `import` it in the main app `application.js`
|
20
|
+
-->
|
21
|
+
<%= javascript_import_module_tag "alveole/application" %>
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
|
25
|
+
<%= yield %>
|
26
|
+
|
27
|
+
</body>
|
28
|
+
</html>
|
data/config/importmap.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# NOTE: this pin works because `my_engine/app/assets/javascripts
|
2
|
+
# is in the `Rails.application.config.assets.paths`
|
3
|
+
pin "alveole/application"
|
4
|
+
|
5
|
+
pin "flowbite" # @2.2.1
|
6
|
+
pin "flowbite-datepicker", to: "https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/datepicker.turbo.min.js"
|
7
|
+
pin "@popperjs/core", to: "@popperjs--core.js" # @2.11.8
|
data/config/routes.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
const defaultTheme = require('tailwindcss/defaultTheme')
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
content: [
|
5
|
+
'./public/*.html',
|
6
|
+
'./app/helpers/**/*.rb',
|
7
|
+
'./app/javascript/**/*.js',
|
8
|
+
'./app/views/**/*.{erb,haml,html,slim}',
|
9
|
+
'./app/components/**/*.{rb,erb,haml,html,slim}',
|
10
|
+
'./node_modules/flowbite/**/*.js',
|
11
|
+
'./test/components/previews/alveole/**/*.rb',
|
12
|
+
],
|
13
|
+
theme: {
|
14
|
+
extend: {
|
15
|
+
fontFamily: {
|
16
|
+
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
|
17
|
+
},
|
18
|
+
colors: {
|
19
|
+
"primary": {
|
20
|
+
50: '#fdf2f8',
|
21
|
+
100: '#fce7f3',
|
22
|
+
200: '#fbcfe8',
|
23
|
+
300: '#faa7d5',
|
24
|
+
400: '#f571b7',
|
25
|
+
500: '#ee469a',
|
26
|
+
600: '#da2275',
|
27
|
+
700: '#c0165e',
|
28
|
+
800: '#9e164e',
|
29
|
+
900: '#841744',
|
30
|
+
950: '#510624',
|
31
|
+
},
|
32
|
+
},
|
33
|
+
},
|
34
|
+
},
|
35
|
+
plugins: [
|
36
|
+
require('flowbite/plugin'),
|
37
|
+
require('@tailwindcss/forms'),
|
38
|
+
require('@tailwindcss/aspect-ratio'),
|
39
|
+
require('@tailwindcss/typography'),
|
40
|
+
require('@tailwindcss/container-queries'),
|
41
|
+
]
|
42
|
+
}
|
data/lib/alveole/engine.rb
CHANGED
@@ -1,30 +1,27 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "importmap-rails"
|
2
|
+
require "view_component"
|
3
3
|
|
4
4
|
module Alveole
|
5
|
-
# :nodoc:
|
6
5
|
class Engine < ::Rails::Engine
|
7
|
-
|
6
|
+
isolate_namespace Alveole
|
8
7
|
|
9
|
-
config.
|
10
|
-
|
11
|
-
|
12
|
-
#{root}/lib/alveole/helpers
|
13
|
-
#{root}/lib/alveole/javascript
|
14
|
-
#{root}/lib/generators/
|
15
|
-
]
|
8
|
+
config.generators do |g|
|
9
|
+
g.test_framework :rspec
|
10
|
+
end
|
16
11
|
|
17
|
-
|
18
|
-
|
12
|
+
initializer "alveole.importmap", before: "importmap" do |app|
|
13
|
+
# NOTE: this will add pins from this engine to the main app
|
14
|
+
# https://github.com/rails/importmap-rails#composing-import-maps
|
15
|
+
app.config.importmap.paths << root.join("config/importmap.rb")
|
19
16
|
|
20
|
-
|
17
|
+
# NOTE: something about cache; I did not look into it.
|
18
|
+
# https://github.com/rails/importmap-rails#sweeping-the-cache-in-development-and-test
|
19
|
+
app.config.importmap.cache_sweepers << root.join("app/assets/javascripts")
|
20
|
+
end
|
21
21
|
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# initializer "primer_view_components.assets" do |app|
|
27
|
-
# app.config.assets.precompile += %w[primer_view_components] if app.config.respond_to?(:assets)
|
28
|
-
# end
|
22
|
+
# NOTE: add engine manifest to precompile assets in production
|
23
|
+
initializer "alveole.assets" do |app|
|
24
|
+
app.config.assets.precompile += %w[alveole_manifest]
|
25
|
+
end
|
29
26
|
end
|
30
27
|
end
|
data/lib/alveole/version.rb
CHANGED
data/lib/alveole.rb
CHANGED
@@ -1,16 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
|
4
|
-
require 'alveole/version'
|
5
|
-
require 'alveole/concerns/bem'
|
6
|
-
require 'alveole/helpers/method_helper'
|
7
|
-
|
8
|
-
if defined? ::Rails::Railtie
|
9
|
-
# require 'alveole/railtie'
|
10
|
-
require 'alveole/engine'
|
11
|
-
end
|
1
|
+
require "alveole/version"
|
2
|
+
require "alveole/engine"
|
12
3
|
|
13
4
|
module Alveole
|
14
|
-
class Error < StandardError; end
|
15
5
|
# Your code goes here...
|
16
6
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :alveole do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|
5
|
+
|
6
|
+
task :tailwind_engine_watch do
|
7
|
+
require "tailwindcss-rails"
|
8
|
+
# NOTE: tailwindcss-rails is an engine
|
9
|
+
system "#{Tailwindcss::Engine.root.join("exe/tailwindcss")} \
|
10
|
+
-i #{Alveole::Engine.root.join("app/assets/stylesheets/application.tailwind.css")} \
|
11
|
+
-o #{Alveole::Engine.root.join("app/assets/builds/alveole.css")} \
|
12
|
+
-c #{Alveole::Engine.root.join("config/tailwind.config.js")} \
|
13
|
+
--minify -w"
|
14
|
+
end
|
metadata
CHANGED
@@ -1,48 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alveole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
4
|
+
version: 1.0.0.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
- Thomas Kienlen
|
11
|
-
autorequire:
|
12
|
-
bindir: exe
|
7
|
+
- Clément Prod'homme
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
13
10
|
cert_chain: []
|
14
|
-
date:
|
11
|
+
date: 2024-02-10 00:00:00.000000000 Z
|
15
12
|
dependencies:
|
16
13
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
14
|
+
name: rails
|
18
15
|
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
19
|
+
version: '6.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
26
|
+
version: '6.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: importmap-rails
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
30
|
requirements:
|
34
31
|
- - ">="
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
33
|
+
version: '0'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - ">="
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
40
|
+
version: '0'
|
44
41
|
- !ruby/object:Gem::Dependency
|
45
|
-
name: rails
|
42
|
+
name: tailwindcss-rails
|
46
43
|
requirement: !ruby/object:Gem::Requirement
|
47
44
|
requirements:
|
48
45
|
- - ">="
|
@@ -59,123 +56,126 @@ dependencies:
|
|
59
56
|
name: view_component
|
60
57
|
requirement: !ruby/object:Gem::Requirement
|
61
58
|
requirements:
|
62
|
-
- - "
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: inline_svg
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
63
74
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
75
|
+
version: 1.5.0
|
65
76
|
type: :runtime
|
66
77
|
prerelease: false
|
67
78
|
version_requirements: !ruby/object:Gem::Requirement
|
68
79
|
requirements:
|
69
|
-
- - "
|
80
|
+
- - ">="
|
70
81
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
82
|
+
version: 1.5.0
|
72
83
|
- !ruby/object:Gem::Dependency
|
73
|
-
name:
|
84
|
+
name: rspec-rails
|
74
85
|
requirement: !ruby/object:Gem::Requirement
|
75
86
|
requirements:
|
76
|
-
- - "
|
87
|
+
- - ">="
|
77
88
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
89
|
+
version: '0'
|
79
90
|
type: :development
|
80
91
|
prerelease: false
|
81
92
|
version_requirements: !ruby/object:Gem::Requirement
|
82
93
|
requirements:
|
83
|
-
- - "
|
94
|
+
- - ">="
|
84
95
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
86
|
-
description:
|
96
|
+
version: '0'
|
97
|
+
description: view components of Alveole.
|
87
98
|
email:
|
88
|
-
-
|
89
|
-
- marine@captive.fr
|
90
|
-
- c.feyaerts@captive.fr
|
91
|
-
- t.kienlen@captive.fr
|
99
|
+
- clement.prod-homme@captive.fr
|
92
100
|
executables: []
|
93
101
|
extensions: []
|
94
102
|
extra_rdoc_files: []
|
95
103
|
files:
|
96
|
-
-
|
97
|
-
- ".gitlab-ci.yml"
|
98
|
-
- ".rubocop.yml"
|
99
|
-
- ".rubocop_todo.yml"
|
100
|
-
- ".travis.yml"
|
101
|
-
- CODE_OF_CONDUCT.md
|
102
|
-
- Gemfile
|
103
|
-
- Gemfile.lock
|
104
|
-
- LICENSE.txt
|
104
|
+
- MIT-LICENSE
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
107
|
+
- app/assets/config/alveole_manifest.js
|
108
|
+
- app/assets/images/alveole/icons/favicon-150.png
|
109
|
+
- app/assets/javascripts/alveole/application.js
|
110
|
+
- app/assets/stylesheets/alveole/application.css
|
111
|
+
- app/assets/stylesheets/application.tailwind.css
|
112
|
+
- app/components/alveole/button_component.html.erb
|
113
|
+
- app/components/alveole/button_component.rb
|
114
|
+
- app/components/alveole/chip_component.html.erb
|
115
|
+
- app/components/alveole/chip_component.rb
|
116
|
+
- app/components/alveole/dropdown/menu_item_component.html.erb
|
117
|
+
- app/components/alveole/dropdown/menu_item_component.rb
|
118
|
+
- app/components/alveole/dropdown_component.html.erb
|
119
|
+
- app/components/alveole/dropdown_component.rb
|
120
|
+
- app/components/alveole/footer/link_component.html.erb
|
121
|
+
- app/components/alveole/footer/link_component.rb
|
122
|
+
- app/components/alveole/footer_component.html.erb
|
123
|
+
- app/components/alveole/footer_component.rb
|
124
|
+
- app/components/alveole/form_layout_component.html.erb
|
125
|
+
- app/components/alveole/form_layout_component.rb
|
126
|
+
- app/components/alveole/icon_component.html.erb
|
127
|
+
- app/components/alveole/icon_component.rb
|
128
|
+
- app/components/alveole/input/avatar_component.html.erb
|
129
|
+
- app/components/alveole/input/avatar_component.rb
|
130
|
+
- app/components/alveole/input/base_component.rb
|
131
|
+
- app/components/alveole/input/comment_component.html.erb
|
132
|
+
- app/components/alveole/input/comment_component.rb
|
133
|
+
- app/components/alveole/input/counter_component.html.erb
|
134
|
+
- app/components/alveole/input/counter_component.rb
|
135
|
+
- app/components/alveole/input/email_component.html.erb
|
136
|
+
- app/components/alveole/input/email_component.rb
|
137
|
+
- app/components/alveole/input/file_component.html.erb
|
138
|
+
- app/components/alveole/input/file_component.rb
|
139
|
+
- app/components/alveole/input/search_component.html.erb
|
140
|
+
- app/components/alveole/input/search_component.rb
|
141
|
+
- app/components/alveole/input/select_component.html.erb
|
142
|
+
- app/components/alveole/input/select_component.rb
|
143
|
+
- app/components/alveole/input/text_component.html.erb
|
144
|
+
- app/components/alveole/input/text_component.rb
|
145
|
+
- app/components/alveole/input/textarea_component.html.erb
|
146
|
+
- app/components/alveole/input/textarea_component.rb
|
147
|
+
- app/components/alveole/mega_menu_component.html.erb
|
148
|
+
- app/components/alveole/mega_menu_component.rb
|
149
|
+
- app/components/alveole/sidebar/divider_component.html.erb
|
150
|
+
- app/components/alveole/sidebar/divider_component.rb
|
151
|
+
- app/components/alveole/sidebar/group_component.html.erb
|
152
|
+
- app/components/alveole/sidebar/group_component.rb
|
153
|
+
- app/components/alveole/sidebar/heading_component.html.erb
|
154
|
+
- app/components/alveole/sidebar/heading_component.rb
|
155
|
+
- app/components/alveole/sidebar/item_component.html.erb
|
156
|
+
- app/components/alveole/sidebar/item_component.rb
|
157
|
+
- app/components/alveole/sidebar_component.html.erb
|
158
|
+
- app/components/alveole/sidebar_component.rb
|
159
|
+
- app/controllers/alveole/application_controller.rb
|
160
|
+
- app/helpers/alveole/application_helper.rb
|
161
|
+
- app/jobs/alveole/application_job.rb
|
162
|
+
- app/mailers/alveole/application_mailer.rb
|
163
|
+
- app/models/alveole/application_record.rb
|
164
|
+
- app/views/layouts/alveole/application.html.erb
|
165
|
+
- config/importmap.rb
|
166
|
+
- config/routes.rb
|
167
|
+
- config/tailwind.config.js
|
110
168
|
- lib/alveole.rb
|
111
|
-
- lib/alveole/components/avatar_component.rb
|
112
|
-
- lib/alveole/components/avatar_component/avatar_component.html.slim
|
113
|
-
- lib/alveole/components/badge_component.rb
|
114
|
-
- lib/alveole/components/badge_component/badge_component.html.slim
|
115
|
-
- lib/alveole/components/breadcrumb_component.rb
|
116
|
-
- lib/alveole/components/breadcrumb_component/breadcrumb_component.html.slim
|
117
|
-
- lib/alveole/components/breadcrumbs_component.rb
|
118
|
-
- lib/alveole/components/button_component.rb
|
119
|
-
- lib/alveole/components/button_component/button_component.html.slim
|
120
|
-
- lib/alveole/components/definition_component.rb
|
121
|
-
- lib/alveole/components/definition_component/definition_component.html.slim
|
122
|
-
- lib/alveole/components/form_component.rb
|
123
|
-
- lib/alveole/components/form_component/form_component.html.slim
|
124
|
-
- lib/alveole/components/form_submit_component.rb
|
125
|
-
- lib/alveole/components/form_submit_component/form_submit_component.html.slim
|
126
|
-
- lib/alveole/components/heading_component.rb
|
127
|
-
- lib/alveole/components/heading_component/heading_component.html.slim
|
128
|
-
- lib/alveole/components/input_component.rb
|
129
|
-
- lib/alveole/components/input_component/input_component.html.slim
|
130
|
-
- lib/alveole/components/notice_component.rb
|
131
|
-
- lib/alveole/components/notice_component/notice_component.html.slim
|
132
|
-
- lib/alveole/components/page_component.rb
|
133
|
-
- lib/alveole/components/page_component/page_component.html.slim
|
134
|
-
- lib/alveole/components/sidebar_component.rb
|
135
|
-
- lib/alveole/components/sidebar_component/sidebar_component.html.slim
|
136
|
-
- lib/alveole/components/table_column_component.rb
|
137
|
-
- lib/alveole/components/table_column_component/table_column_component.html.slim
|
138
|
-
- lib/alveole/components/table_component.rb
|
139
|
-
- lib/alveole/components/table_component/table_component.html.slim
|
140
|
-
- lib/alveole/components/table_header_component.rb
|
141
|
-
- lib/alveole/components/table_header_component/table_header_component.html.slim
|
142
|
-
- lib/alveole/components/table_row_component.rb
|
143
|
-
- lib/alveole/components/table_row_component/table_row_component.html.slim
|
144
|
-
- lib/alveole/components/toolbar_component.rb
|
145
|
-
- lib/alveole/components/toolbar_component/toolbar_component.html.slim
|
146
|
-
- lib/alveole/concerns/bem.rb
|
147
169
|
- lib/alveole/engine.rb
|
148
|
-
- lib/alveole/helpers/method_helper.rb
|
149
|
-
- lib/alveole/javascript/components.js
|
150
|
-
- lib/alveole/previews/avatar_component_preview.rb
|
151
|
-
- lib/alveole/previews/badge_component_preview.rb
|
152
|
-
- lib/alveole/previews/breadcrumb_component_preview.rb
|
153
|
-
- lib/alveole/previews/button_component_preview.rb
|
154
|
-
- lib/alveole/previews/definition_component_preview.rb
|
155
|
-
- lib/alveole/previews/form_component_preview.rb
|
156
|
-
- lib/alveole/previews/form_submit_component_preview.rb
|
157
|
-
- lib/alveole/previews/heading_component_preview.rb
|
158
|
-
- lib/alveole/previews/input_component_preview.rb
|
159
|
-
- lib/alveole/previews/notice_component_preview.rb
|
160
|
-
- lib/alveole/previews/page_component_preview.rb
|
161
|
-
- lib/alveole/previews/sidebar_component_preview.rb
|
162
|
-
- lib/alveole/previews/table_column_component_preview.rb
|
163
|
-
- lib/alveole/previews/table_component_preview.rb
|
164
|
-
- lib/alveole/previews/table_header_component_preview.rb
|
165
|
-
- lib/alveole/previews/table_row_component_preview.rb
|
166
|
-
- lib/alveole/previews/toolbar_component_preview.rb
|
167
170
|
- lib/alveole/version.rb
|
168
|
-
- lib/
|
169
|
-
|
170
|
-
homepage: https://git.captive.fr
|
171
|
+
- lib/tasks/alveole_tasks.rake
|
172
|
+
homepage: https://github.com/Captive-Studio/alveole
|
171
173
|
licenses:
|
172
174
|
- MIT
|
173
175
|
metadata:
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
changelog_uri: https://git.captive.fr
|
178
|
-
post_install_message:
|
176
|
+
homepage_uri: https://github.com/Captive-Studio/alveole
|
177
|
+
source_code_uri: https://github.com/Captive-Studio/alveole
|
178
|
+
post_install_message:
|
179
179
|
rdoc_options: []
|
180
180
|
require_paths:
|
181
181
|
- lib
|
@@ -183,15 +183,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: '0'
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
|
-
- - "
|
189
|
+
- - ">"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version:
|
191
|
+
version: 1.3.1
|
192
192
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
194
|
-
signing_key:
|
193
|
+
rubygems_version: 3.3.26
|
194
|
+
signing_key:
|
195
195
|
specification_version: 4
|
196
|
-
summary:
|
196
|
+
summary: view components of Alveole.
|
197
197
|
test_files: []
|
data/.gitignore
DELETED
data/.gitlab-ci.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
image: registry.git.captive.fr/captive/systeme/docker/ruby:3.0.2-0-build
|
2
|
-
|
3
|
-
stages:
|
4
|
-
- build
|
5
|
-
- pre-test
|
6
|
-
- test
|
7
|
-
# - release
|
8
|
-
|
9
|
-
cache:
|
10
|
-
key: $CI_PROJECT_NAME
|
11
|
-
paths:
|
12
|
-
- vendor/ruby
|
13
|
-
|
14
|
-
before_script:
|
15
|
-
- git checkout -B "$CI_BUILD_REF_NAME"
|
16
|
-
- bundle config --local path 'vendor'
|
17
|
-
- bundle install
|
18
|
-
|
19
|
-
build:
|
20
|
-
stage: build
|
21
|
-
script:
|
22
|
-
# - bundle exec rake build
|
23
|
-
- gem build alveole.gemspec
|
24
|
-
except:
|
25
|
-
- /^backup\//
|
26
|
-
|
27
|
-
pre-test:lint:rubocop:
|
28
|
-
stage: pre-test
|
29
|
-
script:
|
30
|
-
- bundle exec rubocop -v
|
31
|
-
- bundle exec rubocop -f simple
|
32
|
-
except:
|
33
|
-
- /^backup\//
|
34
|
-
|
35
|
-
# pre-test:lint:slim-lint:
|
36
|
-
# stage: pre-test
|
37
|
-
# script:
|
38
|
-
# - bundle exec slim-lint -v
|
39
|
-
# - bundle exec slim-lint .
|
40
|
-
# except:
|
41
|
-
# - /^backup\//
|
42
|
-
|
43
|
-
test:
|
44
|
-
stage: test
|
45
|
-
script:
|
46
|
-
- bundle exec rake test
|
47
|
-
except:
|
48
|
-
- /^backup\//
|
49
|
-
|
50
|
-
# release:gem:
|
51
|
-
# stage: release
|
52
|
-
# script:
|
53
|
-
# - bundle exec rake release
|
54
|
-
# rules:
|
55
|
-
# - if: '$CI_COMMIT_TAG =~ /^v([0-9]|[1-9][0-9]+)\.([0-9]|[1-9][0-9]+)\.([0-9]|[1-9][0-9]+)$/'
|
data/.rubocop.yml
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
NewCops: enable
|
5
|
-
|
6
|
-
Layout/LineLength:
|
7
|
-
Enabled: false
|
8
|
-
|
9
|
-
Layout/SpaceAroundMethodCallOperator:
|
10
|
-
Enabled: true
|
11
|
-
|
12
|
-
Lint/RaiseException:
|
13
|
-
Enabled: true
|
14
|
-
|
15
|
-
Lint/StructNewOverride:
|
16
|
-
Enabled: true
|
17
|
-
|
18
|
-
Lint/EmptyClass:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
Metrics/AbcSize:
|
22
|
-
Max: 50
|
23
|
-
Exclude:
|
24
|
-
- test/**/*
|
25
|
-
|
26
|
-
Metrics/BlockLength:
|
27
|
-
Exclude:
|
28
|
-
- config/**/*
|
29
|
-
- test/**/*
|
30
|
-
- lib/tasks/*
|
31
|
-
|
32
|
-
Metrics/CyclomaticComplexity:
|
33
|
-
Max: 10
|
34
|
-
|
35
|
-
Metrics/ClassLength:
|
36
|
-
Exclude:
|
37
|
-
- test/**/*
|
38
|
-
|
39
|
-
Metrics/MethodLength:
|
40
|
-
Max: 25
|
41
|
-
Exclude:
|
42
|
-
- test/**/*
|
43
|
-
|
44
|
-
Metrics/PerceivedComplexity:
|
45
|
-
Max: 10
|
46
|
-
|
47
|
-
Style/Documentation:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
Style/ExponentialNotation:
|
51
|
-
Enabled: false
|
52
|
-
|
53
|
-
Style/FrozenStringLiteralComment:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/HashEachMethods:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Style/HashTransformKeys:
|
60
|
-
Enabled: false
|
61
|
-
|
62
|
-
Style/HashTransformValues:
|
63
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2021-08-18 13:26:25 UTC using RuboCop version 1.18.3.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
11
|
-
Metrics/ParameterLists:
|
12
|
-
Max: 8
|