govuk_publishing_components 39.2.1 → 39.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +1 -1
- data/app/controllers/govuk_publishing_components/audit_controller.rb +16 -0
- data/app/views/govuk_publishing_components/audit/_applications.html.erb +3 -3
- data/app/views/govuk_publishing_components/components/_google_tag_manager_script.html.erb +3 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f075a264f61ccb95027ab5172ae627d62cd9875732ee918a7932749e2db96d4
|
4
|
+
data.tar.gz: 6dc2ac039da50369abfba6b2553f2f400ea9f914e67e994eaf063ef514fa5f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e171df9ac39bbeff26a3245c670e8484d27e3331785fbb2e0961bdb029032152b9f255df0e0234f808d95a4905eaeff37ab61693a479508958debf763f54d9db
|
7
|
+
data.tar.gz: 5131dce03a41072b27d8edf76ca8a67acd5fb05354a64e0ca21dc7bb15b85aff9175c0cb9a8c2a6a419873553066c359015874d669b2d404a3295fb48cb76829
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# GOV.UK Publishing Components
|
2
|
-
|
3
|
-
[![status](https://badgen.net/github/status/alphagov/govuk_publishing_components/main)](https://github.com/alphagov/govuk_publishing_components/actions?query=branch%3Amain)
|
2
|
+
[![status](https://github.com/alphagov/govuk_publishing_components/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/alphagov/govuk_publishing_components/actions/workflows/ci.yml?query=branch%3Amain)
|
4
3
|
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
|
5
4
|
[![Stylelint Style Guide](https://img.shields.io/badge/code_style-stylelint-brightgreen.svg)](https://github.com/alphagov/stylelint-config-gds/)
|
6
5
|
|
@@ -447,7 +447,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
447
447
|
var $cell = cells[i]
|
448
448
|
var cellVal = parseFloat(this.utils.stripValue($cell.innerText), 10)
|
449
449
|
var $cellSpan = $cell.querySelector('span')
|
450
|
-
var spanWidth = $cell.querySelector('span').offsetWidth +
|
450
|
+
var spanWidth = $cell.querySelector('span').offsetWidth + 10 // +10 just for extra padding
|
451
451
|
var cellWidth = $cell.offsetWidth
|
452
452
|
|
453
453
|
if (!this.options.stacked) {
|
@@ -2,22 +2,38 @@ module GovukPublishingComponents
|
|
2
2
|
class AuditController < GovukPublishingComponents::ApplicationController
|
3
3
|
def show
|
4
4
|
application_dirs = %w[
|
5
|
+
account-api
|
5
6
|
collections
|
6
7
|
collections-publisher
|
8
|
+
contacts-admin
|
7
9
|
content-data-admin
|
8
10
|
content-publisher
|
11
|
+
content-tagger
|
9
12
|
datagovuk_find
|
10
13
|
email-alert-frontend
|
11
14
|
feedback
|
12
15
|
finder-frontend
|
13
16
|
frontend
|
14
17
|
government-frontend
|
18
|
+
govspeak
|
15
19
|
govspeak-preview
|
20
|
+
govuk-developer-docs
|
21
|
+
local-links-manager
|
22
|
+
manuals-publisher
|
23
|
+
maslow
|
24
|
+
places-manager
|
25
|
+
publisher
|
16
26
|
release
|
17
27
|
search-admin
|
28
|
+
search-v2-evaluator
|
29
|
+
service-manual-publisher
|
30
|
+
short-url-manager
|
18
31
|
signon
|
19
32
|
smart-answers
|
33
|
+
specialist-publisher
|
20
34
|
static
|
35
|
+
support
|
36
|
+
transition
|
21
37
|
travel-advice-publisher
|
22
38
|
whitehall
|
23
39
|
]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%
|
2
|
-
title = "Applications"
|
2
|
+
title = "Applications (" + @applications.length.to_s + ")"
|
3
3
|
title = "This application" unless ENV["MAIN_COMPONENT_GUIDE"]
|
4
4
|
%>
|
5
5
|
<%= render "govuk_publishing_components/components/heading", {
|
@@ -77,7 +77,7 @@
|
|
77
77
|
None
|
78
78
|
<% end %>
|
79
79
|
<% end %>
|
80
|
-
<%
|
80
|
+
<%
|
81
81
|
items << {
|
82
82
|
field: "#{item[:name]} (#{item[:value].length})",
|
83
83
|
value: content
|
@@ -134,7 +134,7 @@
|
|
134
134
|
} %>
|
135
135
|
<p class="govuk-body">This is a list of components found in this application. Note that some components may appear to be missing files due to inconsistencies in directory structure and naming conventions.</p>
|
136
136
|
<%= render "component_contents", passed_components: application_components, show_application_name: false %>
|
137
|
-
<% end %>
|
137
|
+
<% end %>
|
138
138
|
<% else %>
|
139
139
|
<p class="govuk-body">This application was not found. This could be because you do not have this repository checked out locally.</p>
|
140
140
|
<% end %>
|
@@ -2,11 +2,12 @@
|
|
2
2
|
gtm_auth ||= nil
|
3
3
|
gtm_preview ||= nil
|
4
4
|
|
5
|
-
gtm_attributes =
|
5
|
+
gtm_attributes = []
|
6
6
|
gtm_attributes << "gtm_auth=" + gtm_auth if gtm_auth
|
7
|
-
gtm_attributes << "gtm_preview="
|
7
|
+
gtm_attributes << "gtm_preview=#{gtm_preview}>m_cookies_win=x" if gtm_preview
|
8
8
|
gtm_attributes = gtm_attributes.join('&')
|
9
9
|
%>
|
10
|
+
|
10
11
|
<%= javascript_tag nonce: true do -%>
|
11
12
|
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
12
13
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 39.2.
|
4
|
+
version: 39.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -1605,7 +1605,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1605
1605
|
- !ruby/object:Gem::Version
|
1606
1606
|
version: '0'
|
1607
1607
|
requirements: []
|
1608
|
-
rubygems_version: 3.5.
|
1608
|
+
rubygems_version: 3.5.15
|
1609
1609
|
signing_key:
|
1610
1610
|
specification_version: 4
|
1611
1611
|
summary: A gem to document components in GOV.UK frontend applications
|