Skip to content

Commit

Permalink
Merge pull request #177 from DFE-Digital/aj-march-update
Browse files Browse the repository at this point in the history
Aj march update
  • Loading branch information
andyjones81 authored Mar 7, 2024
2 parents d542ade + 9f8a7ea commit 1312d13
Show file tree
Hide file tree
Showing 172 changed files with 27,983 additions and 8,494 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .trunk/.gitignore
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
10 changes: 10 additions & 0 deletions .trunk/configs/.markdownlint.yaml
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
10 changes: 10 additions & 0 deletions .trunk/configs/.yamllint.yaml
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
37 changes: 37 additions & 0 deletions .trunk/trunk.yaml
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ notifyKey=preprod-x
BASE_URL=http://localhost:3066
sessionkey=x
```
Contact Design Ops for the keys to use in your local environment. These must never be checked in to source code - the file is included in the .GITIGNORE file.
Contact DesignOps for the keys to use in your local environment. These must never be checked in to source code - the file is included in the .GITIGNORE file.

Run `npm install`

Expand Down
Binary file modified app/.DS_Store
Binary file not shown.
Binary file modified app/assets/.DS_Store
Binary file not shown.
Binary file added app/assets/images/app.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/ehcp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/familyhubs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/frontends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/part-of-gdd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/sas_manage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/js/all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 16 additions & 39 deletions app/assets/js/feedback.js
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');
});
1 change: 1 addition & 0 deletions app/assets/js/govuk-frontend.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1312d13

Please sign in to comment.