cafe_car 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +682 -8
- data/Rakefile +21 -0
- data/app/assets/fonts/Lexend.css +7 -0
- data/app/assets/fonts/Lexend.ttf +0 -0
- data/app/assets/images/noise.svg +16 -0
- data/app/assets/stylesheets/actiontext.css +31 -0
- data/app/assets/stylesheets/application.css +1 -0
- data/app/assets/stylesheets/cafe_car/code/base16-dark.css +89 -0
- data/app/assets/stylesheets/cafe_car/code/base16-light.css +90 -0
- data/app/assets/stylesheets/cafe_car/pagination.css +5 -0
- data/app/assets/stylesheets/cafe_car/themes/cool.css +32 -0
- data/app/assets/stylesheets/cafe_car/themes/cool2.css +31 -0
- data/app/assets/stylesheets/cafe_car/themes/defaults.css +60 -0
- data/app/assets/stylesheets/cafe_car/themes/warm-dark.css +29 -0
- data/app/assets/stylesheets/cafe_car/themes/warm.css +24 -0
- data/app/assets/stylesheets/cafe_car/tooltips.css +20 -0
- data/app/assets/stylesheets/cafe_car/trix.css +56 -0
- data/app/assets/stylesheets/cafe_car/utility.css +63 -0
- data/app/assets/stylesheets/cafe_car.css +96 -0
- data/app/assets/stylesheets/iconoir.css +22 -0
- data/app/assets/stylesheets/ui/Alert.css +25 -0
- data/app/assets/stylesheets/ui/Article.css +11 -0
- data/app/assets/stylesheets/ui/Button.css +42 -0
- data/app/assets/stylesheets/ui/Card.css +74 -0
- data/app/assets/stylesheets/ui/Chat.css +33 -0
- data/app/assets/stylesheets/ui/Close.css +11 -0
- data/app/assets/stylesheets/ui/Code.css +4 -0
- data/app/assets/stylesheets/ui/Controls.css +16 -0
- data/app/assets/stylesheets/ui/Error.css +3 -0
- data/app/assets/stylesheets/ui/Example.css +45 -0
- data/app/assets/stylesheets/ui/Field.css +31 -0
- data/app/assets/stylesheets/ui/Grid.css +6 -0
- data/app/assets/stylesheets/ui/Group.css +16 -0
- data/app/assets/stylesheets/ui/Icon.css +27 -0
- data/app/assets/stylesheets/ui/Image.css +14 -0
- data/app/assets/stylesheets/ui/InfoCircle.css +11 -0
- data/app/assets/stylesheets/ui/Input.css +36 -0
- data/app/assets/stylesheets/ui/Layout.css +100 -0
- data/app/assets/stylesheets/ui/Menu.css +38 -0
- data/app/assets/stylesheets/ui/Modal.css +26 -0
- data/app/assets/stylesheets/ui/Navigation.css +37 -0
- data/app/assets/stylesheets/ui/Page.css +105 -0
- data/app/assets/stylesheets/ui/Row.css +9 -0
- data/app/assets/stylesheets/ui/Table.css +101 -0
- data/app/assets/stylesheets/ui/components.css +24 -0
- data/app/controllers/cafe_car/application_controller.rb +9 -0
- data/app/controllers/cafe_car/examples_controller.rb +22 -0
- data/app/controllers/cafe_car/sessions_controller.rb +30 -0
- data/app/controllers/concerns/cafe_car/authentication.rb +61 -0
- data/app/javascript/application.js +5 -0
- data/app/javascript/cafe_car.js +174 -0
- data/app/models/cafe_car/session.rb +18 -0
- data/app/policies/cafe_car/application_policy.rb +42 -0
- data/app/policies/cafe_car/session_policy.rb +19 -0
- data/app/presenters/cafe_car/action_text/rich_text_presenter.rb +7 -0
- data/app/presenters/cafe_car/active_record/base_presenter.rb +6 -0
- data/app/presenters/cafe_car/active_record/relation_presenter.rb +17 -0
- data/app/presenters/cafe_car/active_storage/attached/one_presenter.rb +9 -0
- data/app/presenters/cafe_car/active_storage/attachment_presenter.rb +18 -0
- data/app/presenters/cafe_car/basic_object_presenter.rb +5 -0
- data/app/presenters/cafe_car/code_presenter.rb +18 -0
- data/app/presenters/cafe_car/currency_presenter.rb +5 -0
- data/app/presenters/cafe_car/date_and_time/compatibility_presenter.rb +6 -0
- data/app/presenters/cafe_car/date_presenter.rb +5 -0
- data/app/presenters/cafe_car/date_time_presenter.rb +11 -0
- data/app/presenters/cafe_car/enumerable_presenter.rb +13 -0
- data/app/presenters/cafe_car/false_class_presenter.rb +5 -0
- data/app/presenters/cafe_car/hash_presenter.rb +6 -0
- data/app/presenters/cafe_car/nil_class_presenter.rb +13 -0
- data/app/presenters/cafe_car/presenter.rb +157 -0
- data/app/presenters/cafe_car/range_presenter.rb +16 -0
- data/app/presenters/cafe_car/record_presenter.rb +5 -0
- data/app/presenters/cafe_car/string_presenter.rb +20 -0
- data/app/presenters/cafe_car/symbol_presenter.rb +5 -0
- data/app/presenters/cafe_car/true_class_presenter.rb +5 -0
- data/app/ui/cafe_car/ui/button.rb +9 -0
- data/app/ui/cafe_car/ui/card.rb +18 -0
- data/app/ui/cafe_car/ui/field.rb +11 -0
- data/app/ui/cafe_car/ui/grid.rb +30 -0
- data/app/ui/cafe_car/ui/layout.rb +7 -0
- data/app/ui/cafe_car/ui/page.rb +14 -0
- data/app/views/application/_actions.html.haml +1 -0
- data/app/views/application/_alerts.html.haml +2 -0
- data/app/views/application/_body.html.haml +7 -0
- data/app/views/application/_controls.html.haml +12 -0
- data/app/views/application/_debug.html.haml +18 -0
- data/app/views/application/_empty.html.haml +1 -0
- data/app/views/application/_errors.html.haml +4 -0
- data/app/views/application/_field.html.haml +5 -0
- data/app/views/application/_fields.html.haml +1 -0
- data/app/views/application/_filters.html.haml +8 -0
- data/app/views/application/_form.html.haml +6 -0
- data/app/views/application/_grid.html.haml +3 -0
- data/app/views/application/_grid_item.html.haml +1 -0
- data/app/views/application/_head.html.haml +17 -0
- data/app/views/application/_index.html.haml +8 -0
- data/app/views/application/_index_actions.html.haml +7 -0
- data/app/views/application/_navigation.html.haml +9 -0
- data/app/views/application/_navigation_links.html.haml +5 -0
- data/app/views/application/_notes.html.haml +10 -0
- data/app/views/application/_popup.html.haml +7 -0
- data/app/views/application/_show.html.haml +9 -0
- data/app/views/application/_submit.html.haml +1 -0
- data/app/views/application/_table.html.haml +6 -0
- data/app/views/cafe_car/application/create.turbo_stream.haml +2 -0
- data/app/views/cafe_car/application/destroy.turbo_stream.haml +1 -0
- data/app/views/cafe_car/application/edit.html.haml +18 -0
- data/app/views/cafe_car/application/edit.turbo_stream.haml +7 -0
- data/app/views/cafe_car/application/index.html.haml +15 -0
- data/app/views/cafe_car/application/new.html.haml +8 -0
- data/app/views/cafe_car/application/new.turbo_stream.haml +8 -0
- data/app/views/cafe_car/application/show.html.haml +36 -0
- data/app/views/cafe_car/application/update.turbo_stream.haml +2 -0
- data/app/views/cafe_car/examples/_example.html.haml +12 -0
- data/app/views/cafe_car/examples/_index.html.haml +16 -0
- data/app/views/cafe_car/examples/_navigation_links.html.haml +2 -0
- data/app/views/cafe_car/examples/ui/_alert.html.haml +4 -0
- data/app/views/cafe_car/examples/ui/_button.html.haml +3 -0
- data/app/views/cafe_car/examples/ui/_card.html.haml +6 -0
- data/app/views/cafe_car/examples/ui/_chat.html.haml +3 -0
- data/app/views/cafe_car/examples/ui/_controls.html.haml +3 -0
- data/app/views/cafe_car/examples/ui/_error.html.haml +1 -0
- data/app/views/cafe_car/examples/ui/_field.html.haml +9 -0
- data/app/views/cafe_car/examples/ui/_grid.html.haml +11 -0
- data/app/views/cafe_car/examples/ui/_group.html.haml +21 -0
- data/app/views/cafe_car/examples/ui/_info_circle.html.haml +1 -0
- data/app/views/cafe_car/examples/ui/_menu.html.haml +5 -0
- data/app/views/cafe_car/examples/ui/_modal.html.haml +4 -0
- data/app/views/cafe_car/examples/ui/_navigation.html.haml +4 -0
- data/app/views/cafe_car/examples/ui/_page.html.haml +4 -0
- data/app/views/cafe_car/examples/ui/_table.html.haml +13 -0
- data/app/views/cafe_car/layouts/mailer.html.haml +8 -0
- data/app/views/cafe_car/layouts/mailer.text.erb +1 -0
- data/app/views/layouts/action_text/contents/_content.html.erb +3 -0
- data/app/views/layouts/application.html.haml +4 -0
- data/app/views/layouts/mailer.html.erb +13 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/notes/_fields.html.haml +1 -0
- data/app/views/passwords_mailer/reset.html.haml +5 -0
- data/app/views/passwords_mailer/reset.text.erb +4 -0
- data/app/views/ui/_card.html.haml +8 -0
- data/app/views/ui/_field.html.haml +1 -0
- data/app/views/ui/_modal_close.html.haml +1 -0
- data/app/views/ui/_page.html.haml +7 -0
- data/config/brakeman.ignore +77 -0
- data/config/importmap.rb +12 -0
- data/config/locales/en.yml +63 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20251005220017_create_slugs.rb +13 -0
- data/lib/cafe_car/active_record.rb +21 -0
- data/lib/cafe_car/application_responder.rb +17 -0
- data/lib/cafe_car/attributes.rb +23 -0
- data/lib/cafe_car/auto_resolver.rb +49 -0
- data/lib/cafe_car/caching.rb +20 -0
- data/lib/cafe_car/component.rb +155 -0
- data/lib/cafe_car/context.rb +17 -0
- data/lib/cafe_car/controller/filtering.rb +30 -0
- data/lib/cafe_car/controller.rb +218 -0
- data/lib/cafe_car/core_ext/array.rb +24 -0
- data/lib/cafe_car/core_ext/hash.rb +15 -0
- data/lib/cafe_car/core_ext/module.rb +15 -0
- data/lib/cafe_car/core_ext.rb +5 -0
- data/lib/cafe_car/current.rb +9 -0
- data/lib/cafe_car/engine.rb +107 -0
- data/lib/cafe_car/field_builder.rb +44 -0
- data/lib/cafe_car/field_info.rb +144 -0
- data/lib/cafe_car/fields.rb +21 -0
- data/lib/cafe_car/filter/field_builder.rb +4 -0
- data/lib/cafe_car/filter/field_info.rb +22 -0
- data/lib/cafe_car/filter/form_builder.rb +21 -0
- data/lib/cafe_car/filter.rb +5 -0
- data/lib/cafe_car/filter_builder.rb +20 -0
- data/lib/cafe_car/form_builder.rb +105 -0
- data/lib/cafe_car/generators.rb +30 -0
- data/lib/cafe_car/helpers.rb +178 -0
- data/lib/cafe_car/href_builder.rb +97 -0
- data/lib/cafe_car/informable.rb +9 -0
- data/lib/cafe_car/input_builder.rb +25 -0
- data/lib/cafe_car/inputs/association_builder.rb +6 -0
- data/lib/cafe_car/inputs/base_input.rb +19 -0
- data/lib/cafe_car/inputs/belongs_to_builder.rb +6 -0
- data/lib/cafe_car/inputs/password_input.rb +7 -0
- data/lib/cafe_car/inputs/string_input.rb +7 -0
- data/lib/cafe_car/link_builder.rb +65 -0
- data/lib/cafe_car/model.rb +23 -0
- data/lib/cafe_car/model_info.rb +24 -0
- data/lib/cafe_car/name_patch.rb +17 -0
- data/lib/cafe_car/navigation.rb +76 -0
- data/lib/cafe_car/option_helpers.rb +53 -0
- data/lib/cafe_car/param_parser.rb +45 -0
- data/lib/cafe_car/pluralization.rb +15 -0
- data/lib/cafe_car/policy.rb +77 -0
- data/lib/cafe_car/proc_helpers.rb +13 -0
- data/lib/cafe_car/query_builder.rb +186 -0
- data/lib/cafe_car/queryable.rb +29 -0
- data/lib/cafe_car/resolver.rb +27 -0
- data/lib/cafe_car/routing.rb +17 -0
- data/lib/cafe_car/table/body_builder.rb +12 -0
- data/lib/cafe_car/table/builder.rb +52 -0
- data/lib/cafe_car/table/foot_builder.rb +14 -0
- data/lib/cafe_car/table/head_builder.rb +26 -0
- data/lib/cafe_car/table/label_builder.rb +48 -0
- data/lib/cafe_car/table/objects_builder.rb +8 -0
- data/lib/cafe_car/table/row_builder.rb +39 -0
- data/lib/cafe_car/table_builder.rb +13 -0
- data/lib/cafe_car/turbo_tag_builder.rb +7 -0
- data/lib/cafe_car/ui.rb +11 -0
- data/lib/cafe_car/version.rb +1 -1
- data/lib/cafe_car/visitors.rb +21 -0
- data/lib/cafe_car.rb +25 -168
- data/lib/generators/cafe_car/controller/USAGE +11 -0
- data/lib/generators/cafe_car/controller/controller_generator.rb +26 -0
- data/lib/generators/cafe_car/controller/templates/controller.rb.tt +5 -0
- data/lib/generators/cafe_car/install/USAGE +8 -0
- data/lib/generators/cafe_car/install/install_generator.rb +46 -0
- data/lib/generators/cafe_car/install/templates/application_policy.rb.tt +7 -0
- data/lib/generators/cafe_car/notes/USAGE +12 -0
- data/lib/generators/cafe_car/notes/notes_generator.rb +13 -0
- data/lib/generators/cafe_car/notes/templates/create_notes.rb.tt +12 -0
- data/lib/generators/cafe_car/notes/templates/notable.rb.tt +7 -0
- data/lib/generators/cafe_car/notes/templates/note.rb.tt +6 -0
- data/lib/generators/cafe_car/policy/USAGE +8 -0
- data/lib/generators/cafe_car/policy/policy_generator.rb +39 -0
- data/lib/generators/cafe_car/policy/templates/policy.rb.tt +20 -0
- data/lib/generators/cafe_car/resource/USAGE +13 -0
- data/lib/generators/cafe_car/resource/resource_generator.rb +32 -0
- data/lib/generators/cafe_car/sessions/USAGE +17 -0
- data/lib/generators/cafe_car/sessions/sessions_generator.rb +29 -0
- data/lib/generators/cafe_car/sessions/templates/create_sessions.rb.tt +12 -0
- data/lib/tasks/holdco_tasks.rake +532 -0
- data/lib/tasks/templates/tasks_header.md +37 -0
- metadata +444 -21
- data/app/views/cafe_car/application/_fields.html.erb +0 -7
- data/app/views/cafe_car/application/_filters.html.erb +0 -0
- data/app/views/cafe_car/application/_form.html.erb +0 -22
- data/lib/cafe_car/railtie.rb +0 -4
- /data/app/views/{cafe_car/application/_actions.html.erb → application/_aside.html.haml} +0 -0
- /data/app/views/{cafe_car/application/_aside.html.erb → application/_footer.html.haml} +0 -0
- /data/app/views/cafe_car/{application/_extra_fields.html.erb → examples/_index_actions.html.haml} +0 -0
data/Rakefile
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
require "bundler/setup"
|
|
2
2
|
|
|
3
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
|
4
|
+
load "rails/tasks/engine.rake"
|
|
5
|
+
|
|
3
6
|
require "bundler/gem_tasks"
|
|
7
|
+
require "rubocop/rake_task"
|
|
8
|
+
|
|
9
|
+
RuboCop::RakeTask.new
|
|
10
|
+
|
|
11
|
+
task :brakeman do
|
|
12
|
+
require "brakeman"
|
|
13
|
+
Brakeman.run app_path: ".", print_report: true, pager: false
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
task :test do
|
|
17
|
+
Rails::TestUnit::Runner.run_from_rake("test")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
task default: %i[rubocop test brakeman]
|
|
21
|
+
|
|
22
|
+
# Holdco backlog machinery (tasks:new, tasks:index, tasks:claim, tasks:done, rake task).
|
|
23
|
+
# Loads every .rake under lib/tasks/ so the gem's own tasks and holdco_tasks both run.
|
|
24
|
+
Dir.glob(File.expand_path("lib/tasks/*.rake", __dir__)).sort.each { |f| load f }
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- <svg viewBox='0 0 275 275' xmlns='http://www.w3.org/2000/svg'>
|
|
2
|
+
<filter id='noiseFilter'>
|
|
3
|
+
<feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='3' stitchTiles='stitch' />
|
|
4
|
+
</filter>
|
|
5
|
+
|
|
6
|
+
<rect width='100%' height='100%' filter='url(#noiseFilter)' />
|
|
7
|
+
</svg> -->
|
|
8
|
+
<svg width="100%" height="100%" xmlns='http://www.w3.org/2000/svg'>
|
|
9
|
+
<filter id='noiseFilter'>
|
|
10
|
+
<feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='5' />
|
|
11
|
+
<!-- <feColorMatrix type="matrix" values="0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.5 0" /> -->
|
|
12
|
+
<feColorMatrix type="saturate" values=".1" />
|
|
13
|
+
</filter>
|
|
14
|
+
|
|
15
|
+
<rect width='100%' height='100%' filter='url(#noiseFilter)' />
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
|
|
3
|
+
* the trix-editor content (whether displayed or under editing). Feel free to incorporate this
|
|
4
|
+
* inclusion directly in any other asset bundle and remove this file.
|
|
5
|
+
*
|
|
6
|
+
*= require trix
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* We need to override trix.css’s image gallery styles to accommodate the
|
|
11
|
+
* <action-text-attachment> element we wrap around attachments. Otherwise,
|
|
12
|
+
* images in galleries will be squished by the max-width: 33%; rule.
|
|
13
|
+
*/
|
|
14
|
+
.trix-content .attachment-gallery > action-text-attachment,
|
|
15
|
+
.trix-content .attachment-gallery > .attachment {
|
|
16
|
+
flex: 1 0 33%;
|
|
17
|
+
padding: 0 0.5em;
|
|
18
|
+
max-width: 33%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
|
|
22
|
+
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
|
|
23
|
+
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
|
|
24
|
+
flex-basis: 50%;
|
|
25
|
+
max-width: 50%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.trix-content action-text-attachment .attachment {
|
|
29
|
+
padding: 0 !important;
|
|
30
|
+
max-width: 100% !important;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url(cafe_car.css);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.highlight table td { padding: 5px; }
|
|
2
|
+
.highlight table pre { margin: 0; }
|
|
3
|
+
.highlight, .highlight .w {
|
|
4
|
+
color: #d8d8d8;
|
|
5
|
+
}
|
|
6
|
+
.highlight .err {
|
|
7
|
+
color: #181818;
|
|
8
|
+
background-color: #ab4642;
|
|
9
|
+
}
|
|
10
|
+
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
|
|
11
|
+
color: #585858;
|
|
12
|
+
}
|
|
13
|
+
.highlight .cp {
|
|
14
|
+
color: #f7ca88;
|
|
15
|
+
}
|
|
16
|
+
.highlight .nt {
|
|
17
|
+
color: #f7ca88;
|
|
18
|
+
}
|
|
19
|
+
.highlight .o, .highlight .ow {
|
|
20
|
+
color: #d8d8d8;
|
|
21
|
+
}
|
|
22
|
+
.highlight .p, .highlight .pi {
|
|
23
|
+
color: #d8d8d8;
|
|
24
|
+
}
|
|
25
|
+
.highlight .gi {
|
|
26
|
+
color: #a1b56c;
|
|
27
|
+
}
|
|
28
|
+
.highlight .gd {
|
|
29
|
+
color: #ab4642;
|
|
30
|
+
}
|
|
31
|
+
.highlight .gh {
|
|
32
|
+
color: #7cafc2;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
}
|
|
35
|
+
.highlight .ge {
|
|
36
|
+
font-style: italic;
|
|
37
|
+
}
|
|
38
|
+
.highlight .ges {
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
font-style: italic;
|
|
41
|
+
}
|
|
42
|
+
.highlight .gs {
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
}
|
|
45
|
+
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
|
|
46
|
+
color: #ba8baf;
|
|
47
|
+
}
|
|
48
|
+
.highlight .kc {
|
|
49
|
+
color: #dc9656;
|
|
50
|
+
}
|
|
51
|
+
.highlight .kt {
|
|
52
|
+
color: #dc9656;
|
|
53
|
+
}
|
|
54
|
+
.highlight .kd {
|
|
55
|
+
color: #dc9656;
|
|
56
|
+
}
|
|
57
|
+
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
|
|
58
|
+
color: #a1b56c;
|
|
59
|
+
}
|
|
60
|
+
.highlight .sa {
|
|
61
|
+
color: #ba8baf;
|
|
62
|
+
}
|
|
63
|
+
.highlight .sr {
|
|
64
|
+
color: #86c1b9;
|
|
65
|
+
}
|
|
66
|
+
.highlight .si {
|
|
67
|
+
color: #a16946;
|
|
68
|
+
}
|
|
69
|
+
.highlight .se {
|
|
70
|
+
color: #a16946;
|
|
71
|
+
}
|
|
72
|
+
.highlight .nn {
|
|
73
|
+
color: #f7ca88;
|
|
74
|
+
}
|
|
75
|
+
.highlight .nc {
|
|
76
|
+
color: #f7ca88;
|
|
77
|
+
}
|
|
78
|
+
.highlight .no {
|
|
79
|
+
color: #f7ca88;
|
|
80
|
+
}
|
|
81
|
+
.highlight .na {
|
|
82
|
+
color: #7cafc2;
|
|
83
|
+
}
|
|
84
|
+
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
|
|
85
|
+
color: #a1b56c;
|
|
86
|
+
}
|
|
87
|
+
.highlight .ss {
|
|
88
|
+
color: #a1b56c;
|
|
89
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.highlight table td { padding: 5px; }
|
|
2
|
+
.highlight table pre { margin: 0; }
|
|
3
|
+
.highlight, .highlight .w {
|
|
4
|
+
color: #383838;
|
|
5
|
+
}
|
|
6
|
+
.highlight .err {
|
|
7
|
+
color: #181818;
|
|
8
|
+
background-color: #ab4642;
|
|
9
|
+
}
|
|
10
|
+
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
|
|
11
|
+
color: #585858;
|
|
12
|
+
}
|
|
13
|
+
.highlight .cp {
|
|
14
|
+
color: #f7ca88;
|
|
15
|
+
}
|
|
16
|
+
.highlight .nt {
|
|
17
|
+
color: #f7ca88;
|
|
18
|
+
}
|
|
19
|
+
.highlight .o, .highlight .ow {
|
|
20
|
+
color: #d8d8d8;
|
|
21
|
+
}
|
|
22
|
+
.highlight .p, .highlight .pi {
|
|
23
|
+
color: #d8d8d8;
|
|
24
|
+
}
|
|
25
|
+
.highlight .gi {
|
|
26
|
+
color: #a1b56c;
|
|
27
|
+
}
|
|
28
|
+
.highlight .gd {
|
|
29
|
+
color: #ab4642;
|
|
30
|
+
}
|
|
31
|
+
.highlight .gh {
|
|
32
|
+
color: #7cafc2;
|
|
33
|
+
background-color: #181818;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
.highlight .ge {
|
|
37
|
+
font-style: italic;
|
|
38
|
+
}
|
|
39
|
+
.highlight .ges {
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
}
|
|
43
|
+
.highlight .gs {
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
}
|
|
46
|
+
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
|
|
47
|
+
color: #ba8baf;
|
|
48
|
+
}
|
|
49
|
+
.highlight .kc {
|
|
50
|
+
color: #dc9656;
|
|
51
|
+
}
|
|
52
|
+
.highlight .kt {
|
|
53
|
+
color: #dc9656;
|
|
54
|
+
}
|
|
55
|
+
.highlight .kd {
|
|
56
|
+
color: #dc9656;
|
|
57
|
+
}
|
|
58
|
+
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
|
|
59
|
+
color: #a1b56c;
|
|
60
|
+
}
|
|
61
|
+
.highlight .sa {
|
|
62
|
+
color: #ba8baf;
|
|
63
|
+
}
|
|
64
|
+
.highlight .sr {
|
|
65
|
+
color: #86c1b9;
|
|
66
|
+
}
|
|
67
|
+
.highlight .si {
|
|
68
|
+
color: #a16946;
|
|
69
|
+
}
|
|
70
|
+
.highlight .se {
|
|
71
|
+
color: #a16946;
|
|
72
|
+
}
|
|
73
|
+
.highlight .nn {
|
|
74
|
+
color: #f7ca88;
|
|
75
|
+
}
|
|
76
|
+
.highlight .nc {
|
|
77
|
+
color: #f7ca88;
|
|
78
|
+
}
|
|
79
|
+
.highlight .no {
|
|
80
|
+
color: #f7ca88;
|
|
81
|
+
}
|
|
82
|
+
.highlight .na {
|
|
83
|
+
color: #7cafc2;
|
|
84
|
+
}
|
|
85
|
+
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
|
|
86
|
+
color: #a1b56c;
|
|
87
|
+
}
|
|
88
|
+
.highlight .ss {
|
|
89
|
+
color: #a1b56c;
|
|
90
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import url(defaults.css);
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--red: #CC4B00;
|
|
5
|
+
|
|
6
|
+
--color: rgb(24, 36, 51);
|
|
7
|
+
--dim: #6c7a91;
|
|
8
|
+
|
|
9
|
+
--accent: rgb(6, 111, 209);
|
|
10
|
+
--border: #e6e8ec;
|
|
11
|
+
--background: #f6f8fa;
|
|
12
|
+
--input: #f6f8fa;
|
|
13
|
+
--invalid: #f6f8fa;
|
|
14
|
+
--card: white;
|
|
15
|
+
--hover: rgb(50 50 93 / .03);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (prefers-color-scheme: dark) {
|
|
19
|
+
:root {
|
|
20
|
+
--red: #d63939;
|
|
21
|
+
--input: #151f2c;
|
|
22
|
+
--invalid: #351f2c;
|
|
23
|
+
--background: #151f2c;
|
|
24
|
+
|
|
25
|
+
--color: #dce1e7;
|
|
26
|
+
--dim: #6c7a91;
|
|
27
|
+
|
|
28
|
+
--card: #192433;
|
|
29
|
+
--border: #1f2e42;
|
|
30
|
+
--accent: #6aa9e3;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import url(defaults.css);
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--red: #CC4B00;
|
|
5
|
+
|
|
6
|
+
--color: rgb(24, 36, 51);
|
|
7
|
+
--dim: #6c7a91;
|
|
8
|
+
|
|
9
|
+
--accent: rgb(6, 111, 209);
|
|
10
|
+
--card: rgb(127 127 127 / .2);
|
|
11
|
+
--background: #f6f8fa;
|
|
12
|
+
--input: #f6f8fa;
|
|
13
|
+
--invalid: #f6f8fa;
|
|
14
|
+
--border: rgb(127 127 127 / .1);
|
|
15
|
+
|
|
16
|
+
--hover: rgb(50 50 93 / .03);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-color-scheme: dark) {
|
|
20
|
+
:root {
|
|
21
|
+
--red: #d63939;
|
|
22
|
+
--input: #151f2c;
|
|
23
|
+
--invalid: #351f2c;
|
|
24
|
+
--background: #0f131e;
|
|
25
|
+
|
|
26
|
+
--color: #dce1e7;
|
|
27
|
+
--dim: #6c7a91;
|
|
28
|
+
|
|
29
|
+
--accent: #6a9ae3;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light dark;
|
|
3
|
+
accent-color: var(--accent);
|
|
4
|
+
scroll-behavior: smooth;
|
|
5
|
+
|
|
6
|
+
--blue: blue;
|
|
7
|
+
--green: green;
|
|
8
|
+
--orange: orange;
|
|
9
|
+
--red: red;
|
|
10
|
+
|
|
11
|
+
--white: white;
|
|
12
|
+
--gray: #eee;
|
|
13
|
+
--black: black;
|
|
14
|
+
|
|
15
|
+
--accent: var(--blue);
|
|
16
|
+
--primary: var(--accent);
|
|
17
|
+
--secondary: var(--accent);
|
|
18
|
+
--tertiary: var(--accent);
|
|
19
|
+
|
|
20
|
+
--success: var(--green);
|
|
21
|
+
--warning: var(--orange);
|
|
22
|
+
--danger: var(--red);
|
|
23
|
+
--error: var(--red);
|
|
24
|
+
--info: var(--blue);
|
|
25
|
+
|
|
26
|
+
--link: var(--accent);
|
|
27
|
+
--card: var(--white);
|
|
28
|
+
--button: var(--gray);
|
|
29
|
+
--menu: var(--card);
|
|
30
|
+
|
|
31
|
+
--shadow: rgb(50 50 93 / 0.25);
|
|
32
|
+
--backdrop: rgb(0 0 0 / 0.5);
|
|
33
|
+
|
|
34
|
+
--hover: rgb(50 50 93 / 0.03);
|
|
35
|
+
--outline: var(--accent);
|
|
36
|
+
--invalid: color-mix(in lab, var(--error) 3%, var(--input));
|
|
37
|
+
--selection: color-mix(in lab, var(--accent) 25%, transparent);
|
|
38
|
+
|
|
39
|
+
--font-family: ui-sans-serif, -apple-system, menu, sans-serif;
|
|
40
|
+
--font: 16px var(--font-family);
|
|
41
|
+
|
|
42
|
+
--box-shadow: var(--shadow) 0 2px 5px -1px, var(--shadow) 0 1px 3px -1px;
|
|
43
|
+
--inset-shadow: inset var(--shadow) 0 1px 3px -1px;
|
|
44
|
+
|
|
45
|
+
--gap: 1rem;
|
|
46
|
+
--indent: 0;
|
|
47
|
+
--half-gap: calc(var(--gap) / 2);
|
|
48
|
+
--third-gap: calc(var(--gap) / 3);
|
|
49
|
+
--gap2: calc(var(--gap) * 2);
|
|
50
|
+
--radius: 12px;
|
|
51
|
+
--menu-radius: calc(var(--radius) / 2);
|
|
52
|
+
--control-radius: calc(var(--radius) / 3);
|
|
53
|
+
|
|
54
|
+
--max-width: 720px;
|
|
55
|
+
--page-width: 1024px;
|
|
56
|
+
--aside-width: 20vw;
|
|
57
|
+
--modal-width: 720px;
|
|
58
|
+
|
|
59
|
+
--duration: 100ms;
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import url(defaults.css);
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--blue: rgb(35, 175, 208);
|
|
5
|
+
|
|
6
|
+
--input: #1e1e1d;
|
|
7
|
+
--background: #191918;
|
|
8
|
+
--button: #333;
|
|
9
|
+
|
|
10
|
+
--color: #e7e3dc;
|
|
11
|
+
--dim: #6c7a91;
|
|
12
|
+
|
|
13
|
+
--card: #222221;
|
|
14
|
+
--border: #2A2A28;
|
|
15
|
+
--hover: rgb(42, 42, 40);
|
|
16
|
+
--shadow: rgba(0, 0, 0, 0.2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
scrollbar-color: rgb(73, 72, 70) rgb(25, 25, 24);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.Card, .Table {
|
|
24
|
+
border: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.Table_Head {
|
|
28
|
+
background-color: var(--card);
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import url(defaults.css);
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--blue: rgb(0, 120, 212);
|
|
5
|
+
--red: rgb(220, 47, 47);
|
|
6
|
+
--orange: rgb(206, 133, 44);
|
|
7
|
+
--green: rgb(38, 158, 106);
|
|
8
|
+
|
|
9
|
+
--color: rgb(34 32 29);
|
|
10
|
+
--dim: #6c7a91;
|
|
11
|
+
|
|
12
|
+
--accent: var(--blue);
|
|
13
|
+
--border: rgb(228 225 222);
|
|
14
|
+
--background: #f6f5f3;
|
|
15
|
+
--backdrop: rgb(58 50 37 / .5);
|
|
16
|
+
--input: #fff;
|
|
17
|
+
--card: white;
|
|
18
|
+
--hover: rgb(63 52 31 / .05);
|
|
19
|
+
--shadow: rgb(34 32 29 / .1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
scrollbar-color: rgb(209, 206, 203) rgb(246, 245, 243);
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[data-tip]:not(:has([data-tip]:hover)):hover {
|
|
2
|
+
&::before {
|
|
3
|
+
content: attr(data-tip, attr(title));
|
|
4
|
+
position: fixed;
|
|
5
|
+
display: block;
|
|
6
|
+
|
|
7
|
+
position-anchor: auto;
|
|
8
|
+
position-area: top;
|
|
9
|
+
position-try-fallbacks: flip-block;
|
|
10
|
+
|
|
11
|
+
z-index: 99;
|
|
12
|
+
background: var(--tooltip, rgb(0 0 0 / 0.8));
|
|
13
|
+
font-size: 0.8rem;
|
|
14
|
+
color: var(--white, white);
|
|
15
|
+
padding: 0.25rem 0.5rem;
|
|
16
|
+
max-width: 80%;
|
|
17
|
+
white-space: wrap;
|
|
18
|
+
border-radius: var(--control-radius);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
trix-editor {
|
|
2
|
+
background: var(--input);
|
|
3
|
+
border: 1px solid var(--border);
|
|
4
|
+
|
|
5
|
+
.trix-button {
|
|
6
|
+
border-bottom: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:focus {
|
|
10
|
+
outline-width: 2px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (prefers-color-scheme: dark) {
|
|
15
|
+
trix-toolbar {
|
|
16
|
+
.trix-button-group {
|
|
17
|
+
border: 1px solid var(--border);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.trix-button {
|
|
21
|
+
border: none;
|
|
22
|
+
|
|
23
|
+
&.trix-active {
|
|
24
|
+
background: var(--link);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:first-child {
|
|
28
|
+
border-top-left-radius: inherit;
|
|
29
|
+
border-bottom-left-radius: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:last-child {
|
|
33
|
+
border-top-right-radius: inherit;
|
|
34
|
+
border-bottom-right-radius: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:not(:first-child) {
|
|
38
|
+
border-left: 1px solid var(--border);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.trix-dialog {
|
|
43
|
+
background: var(--card);
|
|
44
|
+
box-shadow: var(--shadow);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-trix-dialog] [data-trix-validate]:invalid {
|
|
48
|
+
background: var(--invalid);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.trix-button--icon::before {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
filter: invert(100%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@keyframes fade-in {
|
|
2
|
+
from { opacity: 0 }
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@keyframes fade-out {
|
|
6
|
+
to { opacity: 0 }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.remove {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
transition: all var(--duration);
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.disabled, [disabled]:not(input) {
|
|
16
|
+
opacity: .3;
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
text-decoration: line-through;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.left { float: left; margin-right: 1em; }
|
|
22
|
+
.right { float: right; margin-left: 1em; }
|
|
23
|
+
|
|
24
|
+
.center {text-align: center;}
|
|
25
|
+
|
|
26
|
+
.reset {
|
|
27
|
+
appearance: none;
|
|
28
|
+
border: none;
|
|
29
|
+
background: none;
|
|
30
|
+
color: inherit;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.h1 {
|
|
39
|
+
font-size: 2em;
|
|
40
|
+
margin: .67em 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.h2 {
|
|
44
|
+
font-size: 1.5em;
|
|
45
|
+
margin: .83em 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
.shy {
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:hover > .shy {
|
|
54
|
+
visibility: visible;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pretty_inspect {
|
|
58
|
+
white-space: pre-wrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.auto {
|
|
62
|
+
field-sizing: content;
|
|
63
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
|
|
3
|
+
@layer vendor, default, theme, component, modifier, layout, utility;
|
|
4
|
+
|
|
5
|
+
@import url(trix.css) layer(vendor);
|
|
6
|
+
@import url(iconoir.css) layer(vendor);
|
|
7
|
+
@import url(cafe_car/trix.css);
|
|
8
|
+
|
|
9
|
+
@import url(cafe_car/pagination.css);
|
|
10
|
+
@import url(cafe_car/tooltips.css);
|
|
11
|
+
@import url(cafe_car/utility.css);
|
|
12
|
+
@import url(ui/components.css);
|
|
13
|
+
@import url(Lexend.css);
|
|
14
|
+
@import url(cafe_car/themes/warm.css);
|
|
15
|
+
@import url(cafe_car/themes/warm-dark.css) (prefers-color-scheme: dark);
|
|
16
|
+
|
|
17
|
+
@import url(cafe_car/code/base16-light.css);
|
|
18
|
+
@import url(cafe_car/code/base16-dark.css) (prefers-color-scheme: dark);
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
--font-family: Lexend, ui-sans-serif, -apple-system, menu, sans-serif;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:focus {
|
|
25
|
+
z-index: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a {
|
|
29
|
+
color: var(--link);
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
filter: brightness(1.05);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:active {
|
|
38
|
+
filter: brightness(0.95);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dim {
|
|
43
|
+
color: var(--gray);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
* {
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
outline-color: var(--outline);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
body {
|
|
52
|
+
color: var(--color);
|
|
53
|
+
background: var(--background);
|
|
54
|
+
/* background-image: url(noise.svg);
|
|
55
|
+
background-blend-mode: soft-light; */
|
|
56
|
+
font: var(--font);
|
|
57
|
+
margin: 0;
|
|
58
|
+
min-height: 100dvh;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-flow: column;
|
|
61
|
+
|
|
62
|
+
> * {
|
|
63
|
+
flex: 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
h1,
|
|
68
|
+
h2,
|
|
69
|
+
h4,
|
|
70
|
+
h5,
|
|
71
|
+
h6,
|
|
72
|
+
p {
|
|
73
|
+
margin-left: var(--indent);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
time {
|
|
77
|
+
text-decoration: dotted underline;
|
|
78
|
+
text-decoration-color: var(--dim);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
html[data-turbo-visit-direction="forward"]::view-transition-group(root),
|
|
82
|
+
html[data-turbo-visit-direction="back"]::view-transition-group(root) {
|
|
83
|
+
animation: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
turbo-frame {
|
|
87
|
+
display: contents;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
::selection {
|
|
91
|
+
background-color: var(--selection);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.highlight {
|
|
95
|
+
white-space: pre-wrap;
|
|
96
|
+
}
|