-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from DFE-Digital/aj-march-update
Aj march update
- Loading branch information
Showing
172 changed files
with
27,983 additions
and
8,494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*out | ||
*logs | ||
*actions | ||
*notifications | ||
*tools | ||
plugins | ||
user_trunk.yaml | ||
user.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Autoformatter friendly markdownlint config (all formatting rules disabled) | ||
default: true | ||
blank_lines: false | ||
bullet: false | ||
html: false | ||
indentation: false | ||
line_length: false | ||
spaces: false | ||
url: false | ||
whitespace: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
rules: | ||
quoted-strings: | ||
required: only-when-needed | ||
extra-allowed: ['{|}'] | ||
empty-values: | ||
forbid-in-block-mappings: true | ||
forbid-in-flow-mappings: true | ||
key-duplicates: {} | ||
octal-values: | ||
forbid-implicit-octal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This file controls the behavior of Trunk: https://docs.trunk.io/cli | ||
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml | ||
version: 0.1 | ||
cli: | ||
version: 1.18.1 | ||
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) | ||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v1.4.1 | ||
uri: https://github.com/trunk-io/plugins | ||
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) | ||
runtimes: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) | ||
lint: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- git-diff-check | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
actions: | ||
disabled: | ||
- trunk-announce | ||
- trunk-check-pre-push | ||
- trunk-fmt-pre-commit | ||
enabled: | ||
- trunk-upgrade-available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,28 @@ | ||
var feedbackTab = document.getElementById('feedback-tab'); | ||
var feedbackPanel = document.getElementById('feedback-panel'); | ||
|
||
var feedbackForm = document.getElementById('feedback-form'); | ||
var feedbackFormInput = document.getElementById('feedback_form_input'); | ||
var servicesTab = document.getElementById('services-tab'); | ||
var servicesPanel = document.getElementById('services-panel'); | ||
|
||
var submitButton = document.getElementById('submitbutton'); | ||
var cancelButton = document.getElementById('cancelbutton'); | ||
var closeNav = document.getElementById('closeNav'); | ||
|
||
feedbackTab.addEventListener('click', function (event) { | ||
|
||
servicesTab.addEventListener('click', function (event) { | ||
event.preventDefault(); // prevent the default link behavior | ||
if (feedbackPanel.style.display === 'none') { | ||
feedbackPanel.style.display = 'block'; | ||
feedbackPanel.setAttribute('aria-hidden', 'false'); | ||
feedbackTab.setAttribute('aria-expanded', 'true'); | ||
if (servicesPanel.style.display === 'none') { | ||
servicesPanel.style.display = 'block'; | ||
servicesPanel.setAttribute('aria-hidden', 'false'); | ||
servicesTab.setAttribute('aria-expanded', 'true'); | ||
} else { | ||
feedbackPanel.style.display = 'none'; | ||
feedbackPanel.setAttribute('aria-hidden', 'true'); | ||
feedbackTab.setAttribute('aria-expanded', 'false'); | ||
servicesPanel.style.display = 'none'; | ||
servicesPanel.setAttribute('aria-hidden', 'true'); | ||
servicesTab.setAttribute('aria-expanded', 'false'); | ||
} | ||
}); | ||
|
||
|
||
submitButton.addEventListener('click', function (event) { | ||
closeNav.addEventListener('click', function (event) { | ||
event.preventDefault(); | ||
var formData = new FormData(feedbackForm); | ||
var xhr = new XMLHttpRequest(); | ||
|
||
xhr.open('POST', '/submit-feedback'); | ||
xhr.onload = function () { | ||
if (xhr.status === 200) { | ||
feedbackFormInput.value = ""; | ||
feedbackTab.textContent = 'Feedback submitted'; | ||
feedbackPanel.style.display = 'none'; | ||
feedbackPanel.setAttribute('aria-hidden', 'true'); | ||
feedbackTab.setAttribute('aria-expanded', 'false'); | ||
} | ||
}; | ||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); | ||
xhr.send(new URLSearchParams(formData).toString()); | ||
|
||
}); | ||
|
||
cancelButton.addEventListener('click', function (event) { | ||
event.preventDefault(); | ||
|
||
feedbackFormInput.value = ""; | ||
feedbackPanel.style.display = 'none'; | ||
feedbackPanel.setAttribute('aria-hidden', 'true'); | ||
feedbackTab.setAttribute('aria-expanded', 'false'); | ||
servicesPanel.style.display = 'none'; | ||
servicesPanel.setAttribute('aria-hidden', 'true'); | ||
servicesTab.setAttribute('aria-expanded', 'false'); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.