mkbrut 0.3.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82504e23c5bf5270d84b01b7717c8842cfbdec2a09c61976fdf3d2ec7d2d040
4
- data.tar.gz: 4ac6e8c52d140a5e2b83378e9de8b79c0089a7612de3c3286c80d0dcaeb93357
3
+ metadata.gz: 626bfeea30265e33ca6d62375a71de613a3c6dfd8686b74daf8e756330a227b9
4
+ data.tar.gz: 9cda4b60fb19f5d2dcccc21480ec954d970d5b6aa3402b4fdddf1aea658087f1
5
5
  SHA512:
6
- metadata.gz: 4ff91f6a6f3297e9ae8eea8e82cdd2a689165bb57b41a81fc2246d8b1235131d506c56368b9cce9fb7a16da121cee83bc76dd0f7342756e88de2088b6b701cf9
7
- data.tar.gz: 5b59bf2ed9c33a33f0e961e34b00195818dba5666bd7b92a00f008ee4b1556d79472921d4adc192e2ed08a3790d3f5e2c58585760d7c172bbe9ba6497cc7ed34
6
+ metadata.gz: 0c62569fa6441862162d60531e0458be4b6459654e6a4d6fe0942a3ffd56c6ca2f5062344e8ebc9f23f4fe72ee3e192e862a8652a1becb54d240de1b0f6d30f5
7
+ data.tar.gz: 87921b58cc901bca9c72315de269f0ed69f8056db6cfa37f54c4e38dfcbbdc6553b72e021e826077f17eafb9f78c111ed9ad698cf87d18b191727a906a7240ef
@@ -50,18 +50,19 @@ end},
50
50
  code: %{
51
51
  #{ @erb_binding.prefix }_example(
52
52
  transform: "upper",
53
- class: [ "ff-sans",
53
+ class: [ "pos-fixed",
54
+ "bottom-0",
55
+ "left-0",
56
+ "w-100",
57
+ "ff-sans",
54
58
  "lh-title",
55
59
  "tracked",
56
60
  "f-5",
57
61
  "f-6-ns",
58
- "bg-green-100",
59
- "red-900",
60
62
  "tc",
61
63
  "pa-3",
62
64
  "mt-3",
63
- "db",
64
- ]
65
+ "db", ]
65
66
  ) do
66
67
  "We Like the Web"
67
68
  end
@@ -1,3 +1,3 @@
1
1
  module MKBrut
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -0,0 +1,62 @@
1
+ class HomePage < AppPage
2
+ def page_template
3
+ # The duplication and excessive class sizes here are to
4
+ # make it easier for you to remove this when you start working
5
+ # on your app. There are pros and cons to how this code
6
+ # is written, so don't take this is as a directive on how to
7
+ # build your app. You do you!
8
+ img(src: "/static/images/LogoPylon.png",
9
+ class: "dn db-ns pos-fixed top-0 left-0 h-100vh w-auto z-2")
10
+
11
+ header(class: "flex flex-column items-center justify-center h-100vh") do
12
+ div(class: "flex flex-column flex-row-ns items-center justify-center gap-3") do
13
+ img(src: "/static/images/LogoTransit.png", class: "h-5")
14
+ div do
15
+ h1(class: "ff-sans ma-0 lh-title f-5 tc tl-ns flex flex-column flex-row-ns items-center gap-2") do
16
+ plain("Welcome to Brut")
17
+ end
18
+ h2(class: "ff-sans ma-0 lh-title f-3 fw-normal tc tl-ns") do
19
+ plain("v")
20
+ plain(Gem.loaded_specs["brut"].version.to_s)
21
+ end
22
+
23
+ end
24
+ end
25
+ nav(class: [ "ff-sans",
26
+ "flex",
27
+ "flex-column",
28
+ "flex-row-ns",
29
+ "items-center",
30
+ "justify-start",
31
+ "gap-3",
32
+ "mt-3",
33
+ ]) do
34
+ a(href: "https://brutrb.com",
35
+ target: "_blank",
36
+ class: "f-3 red-300 tdu tdn-ns hover-tdu-ns"
37
+ ) do
38
+ code { "brutrb.com" }
39
+ end
40
+ span(role: "separator", class: "dn di-ns f-3 red-300") do
41
+ raw(safe "&#x2299;")
42
+ end
43
+ a(href: "https://brutrb.com/api/index.html",
44
+ target: "_blank",
45
+ class: "f-3 red-300 tdu tdn-ns hover-tdu-ns"
46
+ ) do
47
+ "API Docs"
48
+ end
49
+ span(role: "separator", class: "dn di-ns f-3 red-300") do
50
+ raw(safe "&#x2299;")
51
+ end
52
+ a(href: "http://localhost:6504",
53
+ target: "_blank",
54
+ class: "f-3 red-300 tdu tdn-ns hover-tdu-ns"
55
+ ) do
56
+ "Local OpenTelemetry"
57
+ end
58
+ end
59
+ end
60
+
61
+ end
62
+ end
@@ -52,6 +52,14 @@ services:
52
52
  # This exposes ports from this running container to your localhost.
53
53
  # In this case, we expose 6502, where the app runs, and 6503, where
54
54
  # the test server runs.
55
+ #
56
+ # To change this, the port before the colon is where the app
57
+ # will be available on your localhost. The port AFTER the colon is where
58
+ # the app runs in the container. So: change the port before the colon, and
59
+ # don't change the one after.
60
+ #
61
+ # * 6502 - dev
62
+ # * 6503 - test server (run by E2E tests)
55
63
  ports:
56
64
  - "6502:6502"
57
65
  - "6503:6503"
@@ -66,20 +74,19 @@ services:
66
74
  pull_policy: "missing"
67
75
  environment:
68
76
  # Postgres will not work without being told the password. The most
69
- # direct way to do that is via thsi environment variable.
77
+ # direct way to do that is via this environment variable.
70
78
  POSTGRES_PASSWORD: postgres
71
- # This service runs Redis, though actuallyu ValKey.
72
- redis:
73
- image: valkey/valkey:7.2
74
79
  # This runes otel-deskop-viewer, which will receive OpenTelemetry traces
75
80
  # from your app. You can connect to this to observe those traces.
76
81
  otel-desktop-viewer:
77
82
  # The otel-desktop-viewer maintainers do not maintain a Docker
78
83
  # image of the app. I have made one available on my DockerHub account.
79
- # If you want to build your own, see https://github.com/CtrlSpice/otel-desktop-viewer?tab=readme-ov-file#via-docker
84
+ # If you want to build your own, see
85
+ # https://github.com/CtrlSpice/otel-desktop-viewer?tab=readme-ov-file#via-docker
80
86
  # When you build that image, change the value for image: below to the image
81
87
  # name you chose.
82
88
  image: davetron5000/otel-desktop-viewer:alpine-3
83
- # This runs on port 8000 and will be available on port 6504 of your machine.
89
+ # This runs internally on port 8000 but will be available
90
+ # on port 6504 of your machine.
84
91
  ports:
85
92
  - "6504:8000"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkbrut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Copeland
@@ -109,6 +109,8 @@ files:
109
109
  - templates/Base/app/src/front_end/fonts/monaspace-xenon.ttf
110
110
  - templates/Base/app/src/front_end/forms/app_form.rb
111
111
  - templates/Base/app/src/front_end/handlers/app_handler.rb
112
+ - templates/Base/app/src/front_end/images/LogoPylon.png
113
+ - templates/Base/app/src/front_end/images/LogoTransit.png
112
114
  - templates/Base/app/src/front_end/images/apple-touch-icon-120x120.png
113
115
  - templates/Base/app/src/front_end/images/apple-touch-icon-152x152.png
114
116
  - templates/Base/app/src/front_end/images/apple-touch-icon-167x167.png
@@ -119,7 +121,7 @@ files:
119
121
  - templates/Base/app/src/front_end/js/index.js
120
122
  - templates/Base/app/src/front_end/layouts/default_layout.rb.erb
121
123
  - templates/Base/app/src/front_end/pages/app_page.rb
122
- - templates/Base/app/src/front_end/pages/home_page.rb.erb
124
+ - templates/Base/app/src/front_end/pages/home_page.rb
123
125
  - templates/Base/app/src/front_end/support/app_session.rb
124
126
  - templates/Base/app/src/front_end/svgs/README.md
125
127
  - templates/Base/app/src/front_end/svgs/comment-button.svg
@@ -1,54 +0,0 @@
1
- class HomePage < AppPage
2
- def page_template
3
- # The duplication and excessive class sizes here are to
4
- # make it easier for you to remove this when you start working
5
- # on your app. There are pros and cons to how this code
6
- # is written, so don't take this is as a directive on how to
7
- # build your app. You do you!
8
- div(class: "flex flex-column items-center justify-center h-80vh") do
9
- img(src: "/static/images/icon.png", class: "h-50")
10
- h1(class: "ff-sans ma-0 lh-title f-5") do
11
- "Welcome to Brut"
12
- end
13
- h2(class: "ff-sans ma-0 lh-title f-4 fw-normal") do
14
- plain("Version ")
15
- plain(Gem.loaded_specs["brut"].version.to_s)
16
- end
17
-
18
- nav(class: [ "ff-sans",
19
- "flex",
20
- "flex-column",
21
- "flex-row-ns",
22
- "items-center",
23
- "justify-between",
24
- "gap-3",
25
- "mt-3",
26
- "ph-3"
27
- ]) do
28
- a(href: "https://brutrb.com",
29
- target: "_blank",
30
- class: "f-3 red-300 tdu tdn-ns hover-tdu-ns") do
31
- code { "brutrb.com" }
32
- end
33
- span(role: "separator",
34
- class: "dn di-ns f-3 red-300") do
35
- raw(safe "&#10019;")
36
- end
37
- a(href: "https://brutrb.com/api/index.html",
38
- target: "_blank",
39
- class: "f-3 red-300 tdu tdn-ns hover-tdu-ns") do
40
- "API Docs"
41
- end
42
- span(role: "separator",
43
- class: "dn di-ns f-3 red-300") do
44
- raw(safe "&#10019;")
45
- end
46
- a(href: "http://localhost:6504",
47
- target: "_blank",
48
- class: "f-3 red-300 tdu tdn-ns hover-tdu-ns") do
49
- "Local OpenTelemetry"
50
- end
51
- end
52
- end
53
- end
54
- end