govuk_publishing_components 37.9.1 → 38.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -15
- data/app/assets/config/govuk_publishing_components_sassc-rails_manifest.js +0 -1
- data/app/assets/images/govuk_publishing_components/crests/hmrc_crest_13px.png +0 -0
- data/app/assets/images/govuk_publishing_components/crests/hmrc_crest_13px_x2.png +0 -0
- data/app/assets/images/govuk_publishing_components/crests/hmrc_crest_18px.png +0 -0
- data/app/assets/images/govuk_publishing_components/crests/hmrc_crest_18px_x2.png +0 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +2 -1
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
- data/app/models/govuk_publishing_components/component_docs.rb +1 -3
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +0 -11
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +12 -1
- data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -14
- data/app/views/govuk_publishing_components/components/_warning_text.html.erb +1 -10
- data/app/views/govuk_publishing_components/components/docs/contextual_footer.yml +6 -12
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +0 -9
- data/app/views/govuk_publishing_components/components/docs/notice.yml +0 -10
- data/app/views/govuk_publishing_components/components/docs/related_navigation.yml +9 -49
- data/app/views/govuk_publishing_components/components/docs/warning_text.yml +0 -7
- data/config/locales/ar.yml +0 -7
- data/config/locales/az.yml +0 -7
- data/config/locales/be.yml +0 -7
- data/config/locales/bg.yml +0 -7
- data/config/locales/bn.yml +0 -7
- data/config/locales/cs.yml +0 -7
- data/config/locales/cy.yml +0 -7
- data/config/locales/da.yml +0 -7
- data/config/locales/de.yml +0 -7
- data/config/locales/dr.yml +0 -7
- data/config/locales/el.yml +0 -7
- data/config/locales/en.yml +0 -7
- data/config/locales/es-419.yml +0 -7
- data/config/locales/es.yml +0 -7
- data/config/locales/et.yml +0 -7
- data/config/locales/fa.yml +0 -7
- data/config/locales/fi.yml +0 -7
- data/config/locales/fr.yml +0 -7
- data/config/locales/gd.yml +0 -7
- data/config/locales/gu.yml +0 -7
- data/config/locales/he.yml +0 -7
- data/config/locales/hi.yml +0 -7
- data/config/locales/hr.yml +0 -7
- data/config/locales/hu.yml +0 -7
- data/config/locales/hy.yml +0 -7
- data/config/locales/id.yml +0 -7
- data/config/locales/is.yml +0 -7
- data/config/locales/it.yml +0 -7
- data/config/locales/ja.yml +0 -7
- data/config/locales/ka.yml +0 -7
- data/config/locales/kk.yml +0 -7
- data/config/locales/ko.yml +0 -7
- data/config/locales/lt.yml +0 -7
- data/config/locales/lv.yml +0 -7
- data/config/locales/ms.yml +0 -7
- data/config/locales/mt.yml +0 -7
- data/config/locales/nl.yml +0 -7
- data/config/locales/no.yml +0 -7
- data/config/locales/pa-pk.yml +0 -7
- data/config/locales/pa.yml +0 -7
- data/config/locales/pl.yml +0 -7
- data/config/locales/ps.yml +0 -7
- data/config/locales/pt.yml +0 -7
- data/config/locales/ro.yml +0 -7
- data/config/locales/ru.yml +0 -7
- data/config/locales/si.yml +0 -7
- data/config/locales/sk.yml +0 -7
- data/config/locales/sl.yml +0 -7
- data/config/locales/so.yml +0 -7
- data/config/locales/sq.yml +0 -7
- data/config/locales/sr.yml +0 -7
- data/config/locales/sv.yml +0 -7
- data/config/locales/sw.yml +0 -7
- data/config/locales/ta.yml +0 -7
- data/config/locales/th.yml +0 -7
- data/config/locales/tk.yml +0 -7
- data/config/locales/tr.yml +0 -7
- data/config/locales/uk.yml +0 -7
- data/config/locales/ur.yml +0 -7
- data/config/locales/uz.yml +0 -7
- data/config/locales/vi.yml +0 -7
- data/config/locales/zh-hk.yml +0 -7
- data/config/locales/zh-tw.yml +0 -7
- data/config/locales/zh.yml +0 -7
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +0 -5
- data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +1 -1
- data/lib/govuk_publishing_components/presenters/content_item.rb +0 -4
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -8
- data/lib/govuk_publishing_components/presenters/intervention_helper.rb +6 -4
- data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +6 -20
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/lib/govuk_publishing_components.rb +0 -1
- metadata +3 -8
- data/app/assets/javascripts/govuk_publishing_components/components/show-password.js +0 -82
- data/app/assets/stylesheets/govuk_publishing_components/components/_show-password.scss +0 -70
- data/app/views/govuk_publishing_components/components/_show_password.html.erb +0 -46
- data/app/views/govuk_publishing_components/components/docs/show_password.yml +0 -91
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_topic.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87cef821e4ae9b4d7fa52ef1fc3a468a702d71ee03bd7d5b6afa0a99559f5f81
|
4
|
+
data.tar.gz: 979505b76284209ccf75d0946e78bcd758c02a4008d1a86feb7b51dd3a35f7cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ebd2207d9db80007d355793381095168b7449bd51d3e4b4ba197b8b7709f9f33281da4317f53179e133bc0a16754eb2db3662ab72c5c55a4c401674f6292a4'
|
7
|
+
data.tar.gz: ed20b2fd0321e9f4d45a173d00845a507286203fe50542f44517a2a5102f2dd572e07974ebbc2d43b2e4de05b17753b9ccaffe31f8574636b89b19c6712495e0
|
data/README.md
CHANGED
@@ -4,50 +4,64 @@
|
|
4
4
|
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
|
5
5
|
[![Stylelint Style Guide](https://img.shields.io/badge/code_style-stylelint-brightgreen.svg)](https://github.com/alphagov/stylelint-config-gds/)
|
6
6
|
|
7
|
-
|
7
|
+
govuk_publishing_components is a Ruby gem to document and distribute components for GOV.UK applications. It provides:
|
8
8
|
|
9
9
|
- a shared library of components
|
10
10
|
- helpers to generate component payloads
|
11
11
|
- an application to preview components and provide guidance
|
12
12
|
- [GOV.UK Design System](https://design-system.service.gov.uk/) styles and components (via [GOV.UK Frontend](https://github.com/alphagov/govuk-frontend))
|
13
13
|
|
14
|
-
|
14
|
+
Only add a component to this gem if it is required in more than one application. Please do not add application-specific components to govuk_publishing_components.
|
15
|
+
|
16
|
+
All components should meet the accessibility standards for browser and assistive technology support described in [GOV.UK Frontend](https://github.com/alphagov/govuk-frontend#browser-and-assistive-technology-support).
|
15
17
|
|
16
18
|
## Technical documentation
|
17
19
|
|
18
|
-
|
20
|
+
### Run the application
|
21
|
+
|
22
|
+
```sh
|
23
|
+
./startup.sh
|
24
|
+
```
|
19
25
|
|
20
|
-
|
26
|
+
See also [Local frontend development](https://docs.publishing.service.gov.uk/manual/local-frontend-development.html).
|
21
27
|
|
22
|
-
###
|
28
|
+
### Run the test suite
|
23
29
|
|
24
30
|
```sh
|
31
|
+
bundle install
|
32
|
+
yarn install
|
25
33
|
bundle exec rake
|
26
34
|
```
|
27
35
|
|
28
|
-
|
36
|
+
### Run the JavaScript tests alone
|
29
37
|
|
30
|
-
|
31
|
-
# run JS tests in browser
|
32
|
-
yarn run jasmine:browser
|
38
|
+
With text-only output to the terminal:
|
33
39
|
|
34
|
-
|
40
|
+
```sh
|
35
41
|
yarn run jasmine:ci
|
36
42
|
```
|
37
43
|
|
38
|
-
|
44
|
+
With output viewable in a browser at <http://localhost:8888/>:
|
45
|
+
|
46
|
+
```sh
|
47
|
+
yarn run jasmine:browser
|
48
|
+
```
|
49
|
+
|
50
|
+
You need to restart the `jasmine:browser` test server for it to pick up any changes to JavaScript code.
|
51
|
+
|
52
|
+
### Use the gem
|
39
53
|
|
40
54
|
- [Install and use this gem](docs/install-and-use.md)
|
41
55
|
- [Use a component in your application](docs/use-components.md)
|
42
56
|
- [Test a branch of the gem](docs/test-a-branch-of-the-gem.md)
|
43
57
|
|
44
|
-
###
|
58
|
+
### Manage the gem
|
45
59
|
|
46
60
|
- [Publish/release a new version of the gem](docs/publishing-to-rubygems.md)
|
47
61
|
- [Keep this gem in sync with the Design System](docs/upgrade-govuk-frontend.md)
|
48
62
|
- [Move a component from an application to the gem](docs/moving-components-upstream-into-this-gem.md)
|
49
63
|
|
50
|
-
###
|
64
|
+
### Make a new component
|
51
65
|
|
52
66
|
- [Generate a new component](docs/generate-a-new-component.md)
|
53
67
|
- [Component conventions](docs/component_conventions.md)
|
@@ -55,12 +69,12 @@ yarn run jasmine:ci
|
|
55
69
|
|
56
70
|
### Further documentation
|
57
71
|
|
58
|
-
- [
|
72
|
+
- [Test a component](docs/testing-components.md)
|
59
73
|
- [Component auditing](docs/auditing.md)
|
60
74
|
- [Code documentation on rubydoc.info](http://www.rubydoc.info/gems/govuk_publishing_components)
|
61
75
|
- [Our analytics approach](docs/analytics-ga4/analytics.md)
|
62
76
|
|
63
|
-
|
77
|
+
There is more documentation in the [docs directory](docs/).
|
64
78
|
|
65
79
|
## Licence
|
66
80
|
|
@@ -73,7 +73,6 @@
|
|
73
73
|
//= link govuk_publishing_components/components/_search.css
|
74
74
|
//= link govuk_publishing_components/components/_select.css
|
75
75
|
//= link govuk_publishing_components/components/_share-links.css
|
76
|
-
//= link govuk_publishing_components/components/_show-password.css
|
77
76
|
//= link govuk_publishing_components/components/_signup-link.css
|
78
77
|
//= link govuk_publishing_components/components/_single-page-notification-button.css
|
79
78
|
//= link govuk_publishing_components/components/_skip-link.css
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -62,7 +62,8 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
|
|
62
62
|
intervention: this.getBannerPresence('[data-ga4-intervention-banner]'),
|
63
63
|
query_string: this.getQueryString(),
|
64
64
|
search_term: this.getSearchTerm(),
|
65
|
-
spelling_suggestion: this.getMetaContent('spelling-suggestion')
|
65
|
+
spelling_suggestion: this.getMetaContent('spelling-suggestion'),
|
66
|
+
discovery_engine_attribution_token: this.getMetaContent('discovery-engine-attribution-token')
|
66
67
|
}
|
67
68
|
}
|
68
69
|
window.GOVUK.analyticsGa4.core.sendData(data)
|
data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js
CHANGED
@@ -134,8 +134,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
134
134
|
var $navMenuLinks = this.$navMenu.querySelectorAll('li a')
|
135
135
|
var $firstNavLink = $navMenuLinks[0]
|
136
136
|
var $lastNavLink = $navMenuLinks[$navMenuLinks.length - 1]
|
137
|
-
var $
|
138
|
-
var $
|
137
|
+
var $searchMenuTabbable = this.$searchMenu.querySelectorAll('li a, input, button')
|
138
|
+
var $lastSearchMenuTabbable = $searchMenuTabbable[$searchMenuTabbable.length - 1]
|
139
139
|
|
140
140
|
if (event.keyCode === KEY_TAB) {
|
141
141
|
if (!this.$navMenu.hasAttribute('hidden')) {
|
@@ -169,7 +169,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
169
169
|
break
|
170
170
|
}
|
171
171
|
} else if (!this.$searchMenu.hasAttribute('hidden')) {
|
172
|
-
if (document.activeElement === $
|
172
|
+
if (document.activeElement === $lastSearchMenuTabbable) {
|
173
173
|
if (!event.shiftKey) {
|
174
174
|
hide(this.$searchToggle, this.$searchMenu)
|
175
175
|
}
|
@@ -70,7 +70,6 @@ $govuk-new-link-styles: true;
|
|
70
70
|
@import "components/search";
|
71
71
|
@import "components/select";
|
72
72
|
@import "components/share-links";
|
73
|
-
@import "components/show-password";
|
74
73
|
@import "components/signup-link";
|
75
74
|
@import "components/single-page-notification-button";
|
76
75
|
@import "components/skip-link";
|
@@ -45,9 +45,7 @@ module GovukPublishingComponents
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def parse_documentation(file)
|
48
|
-
|
49
|
-
# but until we drop support for Ruby 2.7 and Ruby 3.0, we need to support both major versions of Psych
|
50
|
-
yaml = YAML.respond_to?(:unsafe_load_file) ? YAML.unsafe_load_file(file) : YAML.load_file(file)
|
48
|
+
yaml = YAML.load_file(file, aliases: true, permitted_classes: [Symbol, Time])
|
51
49
|
{ id: File.basename(file, ".yml") }.merge(yaml).with_indifferent_access
|
52
50
|
end
|
53
51
|
|
@@ -10,20 +10,9 @@
|
|
10
10
|
classes << "disable-youtube" if disable_youtube_expansions
|
11
11
|
classes << "gem-c-govspeak--inverse" if inverse
|
12
12
|
|
13
|
-
disable_ga4 ||= false
|
14
|
-
|
15
13
|
data_modules = "govspeak"
|
16
|
-
data_modules << " ga4-link-tracker" unless disable_ga4
|
17
14
|
data_attributes = { module: data_modules }
|
18
15
|
|
19
|
-
unless disable_ga4
|
20
|
-
data_attributes.merge!({
|
21
|
-
ga4_track_links_only: "",
|
22
|
-
ga4_limit_to_element_class: "call-to-action, info-notice, help-notice, advisory",
|
23
|
-
ga4_link: { "event_name": "navigation", "type": "callout" }.to_json,
|
24
|
-
})
|
25
|
-
end
|
26
|
-
|
27
16
|
%>
|
28
17
|
|
29
18
|
<%= tag.div(class: "gem-c-govspeak govuk-govspeak " + classes.join(" "), data: data_attributes) do %>
|
data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb
CHANGED
@@ -350,11 +350,22 @@
|
|
350
350
|
</h3>
|
351
351
|
<div class="govuk-grid-row">
|
352
352
|
<div class="govuk-grid-column-full">
|
353
|
+
<%
|
354
|
+
form_attributes = {
|
355
|
+
event_name: "search",
|
356
|
+
type: "header menu bar",
|
357
|
+
section: "Search GOV.UK",
|
358
|
+
action: "search",
|
359
|
+
url: "/search/all",
|
360
|
+
index_section: 3,
|
361
|
+
index_section_count: 3,
|
362
|
+
}.to_json
|
363
|
+
%>
|
353
364
|
<form
|
354
365
|
class="gem-c-layout-super-navigation-header__search-form"
|
355
366
|
id="search"
|
356
367
|
data-module="ga4-form-tracker"
|
357
|
-
data-ga4-form=
|
368
|
+
data-ga4-form="<%= form_attributes %>"
|
358
369
|
data-ga4-form-include-text
|
359
370
|
data-ga4-form-no-answer-undefined
|
360
371
|
action="<%= absolute_links_helper.make_url_absolute('/search') %>"
|
@@ -25,28 +25,15 @@
|
|
25
25
|
aria_attributes[:labelledby] = banner_title_id if show_banner_title
|
26
26
|
|
27
27
|
description_present = description.present? || description_text.present? || description_govspeak.present?
|
28
|
-
disable_ga4 ||= false
|
29
28
|
|
30
29
|
if description_govspeak
|
31
30
|
govspeak_data_attributes = {
|
32
31
|
content: description_govspeak,
|
33
|
-
disable_ga4: true # Keep the govspeak component GA4 tracking disabled, otherwise tracking will be duplicated when tracking is enabled on this component.
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
unless disable_ga4
|
38
|
-
section_data_attributes = {
|
39
|
-
module: "ga4-link-tracker",
|
40
|
-
ga4_track_links_only: "",
|
41
|
-
ga4_link: {
|
42
|
-
event_name: "navigation",
|
43
|
-
type: "callout"
|
44
|
-
}.to_json
|
45
32
|
}
|
46
33
|
end
|
47
34
|
%>
|
48
35
|
<% if title || description_present %>
|
49
|
-
<%= tag.section class: css_classes, aria: aria_attributes, lang: lang, role: "region"
|
36
|
+
<%= tag.section class: css_classes, aria: aria_attributes, lang: lang, role: "region" do %>
|
50
37
|
<%= tag.div class: "govuk-notification-banner__header" do %>
|
51
38
|
<%= tag.h2 banner_title, class: "govuk-notification-banner__title", id: banner_title_id %>
|
52
39
|
<% end if show_banner_title %>
|
@@ -14,18 +14,9 @@
|
|
14
14
|
text_classes << "gem-c-warning-text__text--no-indent" if text_icon.empty?
|
15
15
|
text_classes << "gem-c-warning-text__text--large" if large_font
|
16
16
|
text_classes << "gem-c-warning-text__text--highlight" if highlight_text
|
17
|
-
|
18
|
-
disable_ga4 ||= false
|
19
|
-
|
20
|
-
ga4_data_attributes = {
|
21
|
-
"module": "ga4-link-tracker",
|
22
|
-
"ga4-track-links-only": "",
|
23
|
-
"ga4-link": { "event_name": "navigation", "type": "callout" }.to_json
|
24
|
-
} unless disable_ga4
|
25
|
-
|
26
17
|
%>
|
27
18
|
|
28
|
-
<%= tag.div id: id, class: "gem-c-warning-text govuk-warning-text"
|
19
|
+
<%= tag.div id: id, class: "gem-c-warning-text govuk-warning-text" do %>
|
29
20
|
<% unless text_icon.empty? %>
|
30
21
|
<%= tag.span text_icon, class: "govuk-warning-text__icon", "aria-hidden": "true" %>
|
31
22
|
<% end %>
|
@@ -22,16 +22,13 @@ examples:
|
|
22
22
|
content_item:
|
23
23
|
title: "A content item"
|
24
24
|
links:
|
25
|
-
|
25
|
+
mainstream_browse_pages:
|
26
26
|
- title: Apprenticeships, 14 to 19 education and training for work
|
27
27
|
base_path: /browse/education/find-course
|
28
|
-
document_type:
|
28
|
+
document_type: mainstream_browse_page
|
29
29
|
- title: Finding a job
|
30
30
|
base_path: /browse/working/finding-job
|
31
|
-
document_type:
|
32
|
-
- title: Apprenticeships
|
33
|
-
base_path: /topic/further-education-skills/apprenticeships
|
34
|
-
document_type: topic
|
31
|
+
document_type: mainstream_browse_page
|
35
32
|
topical_events:
|
36
33
|
- title: UK-China High-Level People to People Dialogue 2017
|
37
34
|
base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017
|
@@ -76,16 +73,13 @@ examples:
|
|
76
73
|
content_item:
|
77
74
|
title: "A content item"
|
78
75
|
links:
|
79
|
-
|
76
|
+
mainstream_browse_pages:
|
80
77
|
- title: Apprenticeships, 14 to 19 education and training for work
|
81
78
|
base_path: /browse/education/find-course
|
82
|
-
document_type:
|
79
|
+
document_type: mainstream_browse_page
|
83
80
|
- title: Finding a job
|
84
81
|
base_path: /browse/working/finding-job
|
85
|
-
document_type:
|
86
|
-
- title: Apprenticeships
|
87
|
-
base_path: /topic/further-education-skills/apprenticeships
|
88
|
-
document_type: topic
|
82
|
+
document_type: mainstream_browse_page
|
89
83
|
topical_events:
|
90
84
|
- title: UK-China High-Level People to People Dialogue 2017
|
91
85
|
base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017
|
@@ -914,12 +914,3 @@ examples:
|
|
914
914
|
<p>Deforested area. Credit: Blue Ventures-Garth Cripps</p>
|
915
915
|
</figcaption>
|
916
916
|
</figure>
|
917
|
-
without_ga4_tracking:
|
918
|
-
description: |
|
919
|
-
Disables GA4 tracking on the component. Tracking is enabled by default. This adds a data module and data-attributes with JSON data. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
920
|
-
data:
|
921
|
-
block: |
|
922
|
-
<p>
|
923
|
-
<a href='https://www.gov.uk'>Hello World</a>
|
924
|
-
</p>
|
925
|
-
disable_ga4: true
|
@@ -65,13 +65,3 @@ examples:
|
|
65
65
|
description_govspeak: <p>This document is no longer current. We published a new version on 30 September 2015.</p>
|
66
66
|
show_banner_title: true
|
67
67
|
banner_title: "Information"
|
68
|
-
with_ga4_tracking_disabled:
|
69
|
-
description: |
|
70
|
-
Disables GA4 tracking on the component. Tracking on the component is enabled by default. Tracking on the nested govspeak component is always disabled to prevent duplication. When tracking is enabled on this component, a data module and data attributes are added to the parent element. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
71
|
-
data:
|
72
|
-
disable_ga4: true
|
73
|
-
title: 'This publication was withdrawn on 30 September 2015'
|
74
|
-
description_govspeak: <p>This document is no longer current. We published a new version on 30 September 2015.</p>
|
75
|
-
show_banner_title: true
|
76
|
-
banner_title: "Information"
|
77
|
-
|
@@ -19,20 +19,6 @@ examples:
|
|
19
19
|
base_path: /training-study-work-your-rights
|
20
20
|
- title: Careers helpline for teenagers
|
21
21
|
base_path: /careers-helpline-for-teenagers
|
22
|
-
with_curated_topics:
|
23
|
-
data:
|
24
|
-
content_item:
|
25
|
-
links:
|
26
|
-
topics:
|
27
|
-
- title: Apprenticeships, 14 to 19 education and training for work
|
28
|
-
base_path: /browse/education/find-course
|
29
|
-
document_type: topic
|
30
|
-
- title: Finding a job
|
31
|
-
base_path: /browse/working/finding-job
|
32
|
-
document_type: topic
|
33
|
-
- title: Apprenticeships
|
34
|
-
base_path: /topic/further-education-skills/apprenticeships
|
35
|
-
document_type: topic
|
36
22
|
with_mainstream_browse_pages:
|
37
23
|
data:
|
38
24
|
content_item:
|
@@ -53,24 +39,8 @@ examples:
|
|
53
39
|
base_path: /transport/driving-instruction-and-driving-lessons
|
54
40
|
phase: live
|
55
41
|
document_type: taxon
|
56
|
-
|
57
|
-
description:
|
58
|
-
data:
|
59
|
-
content_item:
|
60
|
-
links:
|
61
|
-
mainstream_browse_pages:
|
62
|
-
- title: Driving licences
|
63
|
-
base_path: /browse/driving/driving-licences
|
64
|
-
document_type: mainstream_browse_page
|
65
|
-
- title: Driving tests and learning to drive or ride
|
66
|
-
base_path: /browse/driving/learning-to-drive
|
67
|
-
document_type: mainstream_browse_page
|
68
|
-
topics:
|
69
|
-
- title: Cars
|
70
|
-
base_path: /topic/driving-tests-and-learning-to-drive/car
|
71
|
-
document_type: topic
|
72
|
-
with_curated_topics_and_mainstream_browse_pages_and_taxons:
|
73
|
-
description: Currated topics and mainstream browse pages take precedence over the sidewide topic taxonomy.
|
42
|
+
with_mainstream_browse_pages_and_taxons:
|
43
|
+
description: Mainstream browse pages take precedence over the sidewide topic taxonomy.
|
74
44
|
data:
|
75
45
|
content_item:
|
76
46
|
links:
|
@@ -86,10 +56,6 @@ examples:
|
|
86
56
|
base_path: /transport/driving-instruction-and-driving-lessons
|
87
57
|
phase: live
|
88
58
|
document_type: taxon
|
89
|
-
topics:
|
90
|
-
- title: Cars
|
91
|
-
base_path: /topic/driving-tests-and-learning-to-drive/car
|
92
|
-
document_type: topic
|
93
59
|
with_collections:
|
94
60
|
data:
|
95
61
|
content_item:
|
@@ -218,7 +184,7 @@ examples:
|
|
218
184
|
- title: Find an apprenticeship (French)
|
219
185
|
base_path: /apply-apprenticeship.fr
|
220
186
|
locale: fr
|
221
|
-
|
187
|
+
mainstream_browse_pages:
|
222
188
|
- title: Apprenticeships, 14 to 19 education and training for work (Korean)
|
223
189
|
base_path: /browse/education/find-course.ko
|
224
190
|
document_type: topic
|
@@ -263,16 +229,13 @@ examples:
|
|
263
229
|
base_path: /training-study-work-your-rights
|
264
230
|
- title: Careers helpline for teenagers
|
265
231
|
base_path: /careers-helpline-for-teenagers
|
266
|
-
|
232
|
+
mainstream_browse_pages:
|
267
233
|
- title: Apprenticeships, 14 to 19 education and training for work
|
268
234
|
base_path: /browse/education/find-course
|
269
|
-
document_type:
|
235
|
+
document_type: mainstream_browse_page
|
270
236
|
- title: Finding a job
|
271
237
|
base_path: /browse/working/finding-job
|
272
|
-
document_type:
|
273
|
-
- title: Apprenticeships
|
274
|
-
base_path: /topic/further-education-skills/apprenticeships
|
275
|
-
document_type: topic
|
238
|
+
document_type: mainstream_browse_page
|
276
239
|
topical_events:
|
277
240
|
- title: UK-China High-Level People to People Dialogue 2017
|
278
241
|
base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017
|
@@ -319,16 +282,13 @@ examples:
|
|
319
282
|
base_path: /training-study-work-your-rights
|
320
283
|
- title: Careers helpline for teenagers
|
321
284
|
base_path: /careers-helpline-for-teenagers
|
322
|
-
|
285
|
+
mainstream_browse_pages:
|
323
286
|
- title: Apprenticeships, 14 to 19 education and training for work
|
324
287
|
base_path: /browse/education/find-course
|
325
|
-
document_type:
|
288
|
+
document_type: mainstream_browse_page
|
326
289
|
- title: Finding a job
|
327
290
|
base_path: /browse/working/finding-job
|
328
|
-
document_type:
|
329
|
-
- title: Apprenticeships
|
330
|
-
base_path: /topic/further-education-skills/apprenticeships
|
331
|
-
document_type: topic
|
291
|
+
document_type: mainstream_browse_page
|
332
292
|
topical_events:
|
333
293
|
- title: UK-China High-Level People to People Dialogue 2017
|
334
294
|
base_path: /government/topical-events/uk-china-high-level-people-to-people-dialogue-2017
|
@@ -33,10 +33,3 @@ examples:
|
|
33
33
|
data:
|
34
34
|
text: "This is a heading 3"
|
35
35
|
heading_level: 3
|
36
|
-
without_ga4_tracking:
|
37
|
-
description: |
|
38
|
-
Disables GA4 tracking on warning text links. Tracking is enabled by default, which adds a data module and data attributes to the component. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
|
39
|
-
data:
|
40
|
-
disable_ga4: true
|
41
|
-
text: "This is a heading 3"
|
42
|
-
heading_level: 3
|
data/config/locales/ar.yml
CHANGED
@@ -181,13 +181,6 @@ ar:
|
|
181
181
|
share_links:
|
182
182
|
all_opens_in_new_tab:
|
183
183
|
opens_in_new_tab:
|
184
|
-
show_password:
|
185
|
-
announce_hide: كلمة مرورك مخفيَّة
|
186
|
-
announce_show: كلمة مرورك معروضة
|
187
|
-
hide: إخفاء
|
188
|
-
hide_password: إخفاء كلمة المرور
|
189
|
-
show: إظهار
|
190
|
-
show_password: إظهار كلمة المرور
|
191
184
|
single_page_notification_button:
|
192
185
|
subscribe_text:
|
193
186
|
unsubscribe_text:
|
data/config/locales/az.yml
CHANGED
@@ -178,13 +178,6 @@ az:
|
|
178
178
|
share_links:
|
179
179
|
all_opens_in_new_tab:
|
180
180
|
opens_in_new_tab:
|
181
|
-
show_password:
|
182
|
-
announce_hide: Şifrəniz gizlədilib
|
183
|
-
announce_show: Şifrəniz göstərilir
|
184
|
-
hide: Gizlət
|
185
|
-
hide_password: Şifrəni gizlət
|
186
|
-
show: Göstər
|
187
|
-
show_password: Şifrəni göstər
|
188
181
|
single_page_notification_button:
|
189
182
|
subscribe_text:
|
190
183
|
unsubscribe_text:
|
data/config/locales/be.yml
CHANGED
@@ -184,13 +184,6 @@ be:
|
|
184
184
|
share_links:
|
185
185
|
all_opens_in_new_tab:
|
186
186
|
opens_in_new_tab:
|
187
|
-
show_password:
|
188
|
-
announce_hide: Ваш пароль схаваны
|
189
|
-
announce_show: Ваш пароль адлюстроўваецца
|
190
|
-
hide: Схаваць
|
191
|
-
hide_password: Схаваць пароль
|
192
|
-
show: Паказаць
|
193
|
-
show_password: Адлюстраваць пароль
|
194
187
|
single_page_notification_button:
|
195
188
|
subscribe_text:
|
196
189
|
unsubscribe_text:
|
data/config/locales/bg.yml
CHANGED
@@ -182,13 +182,6 @@ bg:
|
|
182
182
|
share_links:
|
183
183
|
all_opens_in_new_tab:
|
184
184
|
opens_in_new_tab:
|
185
|
-
show_password:
|
186
|
-
announce_hide: Вашата парола е скрита
|
187
|
-
announce_show: Вашата парола е видима
|
188
|
-
hide: Скриване
|
189
|
-
hide_password: Скриване на паролата
|
190
|
-
show: Показване
|
191
|
-
show_password: Показване на паролата
|
192
185
|
single_page_notification_button:
|
193
186
|
subscribe_text:
|
194
187
|
unsubscribe_text:
|
data/config/locales/bn.yml
CHANGED
@@ -179,13 +179,6 @@ bn:
|
|
179
179
|
share_links:
|
180
180
|
all_opens_in_new_tab:
|
181
181
|
opens_in_new_tab:
|
182
|
-
show_password:
|
183
|
-
announce_hide: আপনার পাসওয়ার্ড লুকানো
|
184
|
-
announce_show: আপনার পাসওয়ার্ড দেখানো হয়েছে
|
185
|
-
hide: লুকিয়ে রাখুন
|
186
|
-
hide_password: পাসওয়ার্ড লুকিয়ে রাখুন
|
187
|
-
show: দেখান
|
188
|
-
show_password: পাসওয়ার্ড প্রদর্শন করুন
|
189
182
|
single_page_notification_button:
|
190
183
|
subscribe_text:
|
191
184
|
unsubscribe_text:
|
data/config/locales/cs.yml
CHANGED
@@ -183,13 +183,6 @@ cs:
|
|
183
183
|
share_links:
|
184
184
|
all_opens_in_new_tab:
|
185
185
|
opens_in_new_tab:
|
186
|
-
show_password:
|
187
|
-
announce_hide: Vaše heslo je skryté
|
188
|
-
announce_show: Zobrazí se vaše heslo
|
189
|
-
hide: Skrýt
|
190
|
-
hide_password: Skrýt heslo
|
191
|
-
show: Zobrazit
|
192
|
-
show_password: Zobrazit heslo
|
193
186
|
single_page_notification_button:
|
194
187
|
subscribe_text:
|
195
188
|
unsubscribe_text:
|
data/config/locales/cy.yml
CHANGED
@@ -182,13 +182,6 @@ cy:
|
|
182
182
|
share_links:
|
183
183
|
all_opens_in_new_tab: Bydd rhannu yn agor y dudalen hon mewn tab newydd
|
184
184
|
opens_in_new_tab:
|
185
|
-
show_password:
|
186
|
-
announce_hide: Mae eich cyfrinair wedi'i guddio
|
187
|
-
announce_show: Mae eich cyfrinair yn cael ei ddangos
|
188
|
-
hide: Cuddio
|
189
|
-
hide_password: Cuddio'r cyfrinair
|
190
|
-
show: Dangos
|
191
|
-
show_password: Dangos y cyfrinair
|
192
185
|
single_page_notification_button:
|
193
186
|
subscribe_text:
|
194
187
|
unsubscribe_text:
|
data/config/locales/da.yml
CHANGED
@@ -179,13 +179,6 @@ da:
|
|
179
179
|
share_links:
|
180
180
|
all_opens_in_new_tab:
|
181
181
|
opens_in_new_tab:
|
182
|
-
show_password:
|
183
|
-
announce_hide: Din adgangskode er skjult
|
184
|
-
announce_show: Din adgangskode vises
|
185
|
-
hide: Skjul
|
186
|
-
hide_password: skjul adgangskode
|
187
|
-
show: Vise
|
188
|
-
show_password: Skjul adgangskode
|
189
182
|
single_page_notification_button:
|
190
183
|
subscribe_text:
|
191
184
|
unsubscribe_text:
|
data/config/locales/de.yml
CHANGED
@@ -182,13 +182,6 @@ de:
|
|
182
182
|
share_links:
|
183
183
|
all_opens_in_new_tab:
|
184
184
|
opens_in_new_tab:
|
185
|
-
show_password:
|
186
|
-
announce_hide: Ihr Passwort ist ausgeblendet
|
187
|
-
announce_show: Ihr Passwort ist eingeblendet
|
188
|
-
hide: Ausblenden
|
189
|
-
hide_password: Passwort ausblenden
|
190
|
-
show: Anzeigen
|
191
|
-
show_password: Passwort anzeigen
|
192
185
|
single_page_notification_button:
|
193
186
|
subscribe_text:
|
194
187
|
unsubscribe_text:
|
data/config/locales/dr.yml
CHANGED
@@ -180,13 +180,6 @@ dr:
|
|
180
180
|
share_links:
|
181
181
|
all_opens_in_new_tab:
|
182
182
|
opens_in_new_tab:
|
183
|
-
show_password:
|
184
|
-
announce_hide: رمز عبور شما مخفی شده است
|
185
|
-
announce_show: رمز عبور شما نشان داده شده است
|
186
|
-
hide: مخفی کردن
|
187
|
-
hide_password: رمز عبور را مخفی نمایید
|
188
|
-
show: نمایش دهید
|
189
|
-
show_password: رمز عبور را نمایش دهید
|
190
183
|
single_page_notification_button:
|
191
184
|
subscribe_text:
|
192
185
|
unsubscribe_text:
|
data/config/locales/el.yml
CHANGED
@@ -178,13 +178,6 @@ el:
|
|
178
178
|
share_links:
|
179
179
|
all_opens_in_new_tab:
|
180
180
|
opens_in_new_tab:
|
181
|
-
show_password:
|
182
|
-
announce_hide: Ο κωδικός πρόσβασής σας είναι κρυμμένος
|
183
|
-
announce_show: Ο κωδικός πρόσβασής σας εμφανίζεται
|
184
|
-
hide: Απόκρυψη
|
185
|
-
hide_password: Απόκρυψη κωδικού πρόσβασης
|
186
|
-
show: Εμφάνιση
|
187
|
-
show_password: Εμφάνιση κωδικού πρόσβασης
|
188
181
|
single_page_notification_button:
|
189
182
|
subscribe_text:
|
190
183
|
unsubscribe_text:
|
data/config/locales/en.yml
CHANGED
@@ -293,13 +293,6 @@ en:
|
|
293
293
|
share_links:
|
294
294
|
all_opens_in_new_tab: The following links open in a new tab
|
295
295
|
opens_in_new_tab: "(opens in new tab)"
|
296
|
-
show_password:
|
297
|
-
announce_hide: Your password is hidden
|
298
|
-
announce_show: Your password is shown
|
299
|
-
hide: Hide
|
300
|
-
hide_password: Hide password
|
301
|
-
show: Show
|
302
|
-
show_password: Show password
|
303
296
|
single_page_notification_button:
|
304
297
|
subscribe_text: Get emails about this page
|
305
298
|
unsubscribe_text: Stop getting emails about this page
|