Skip to content

Commit

Permalink
Init for linting and formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Andrew Hinchey <[email protected]>
  • Loading branch information
ChrisHinchey committed Jul 11, 2023
1 parent 9f8da44 commit 6e5761e
Show file tree
Hide file tree
Showing 113 changed files with 4,648 additions and 3,161 deletions.
16 changes: 15 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
GqlGetBlogDataFromID: 'readonly',
GqlGetBlogAuthor: 'readonly',
GqlBlogPosts: 'readonly',
GqlGetAllDocumentation: 'readonly',
GqlGetIndexDocumentation: 'readonly',
GqlGetDocumentation: 'readonly',
GqlGetFaqByQuestionNumber: 'readonly',
Expand All @@ -39,7 +40,18 @@ module.exports = {
GqlGetGuidanceDataFromID: 'readonly',
GqlGetValidateData: 'readonly',
GqlGetHardenData: 'readonly',
GqlGetGettingStartedPage: 'readonly',
GqlGetToolset: 'readonly',
GqlGetCapabilities: 'readonly',
GqlGetSponsors: 'readonly',
GqlGetVendors: 'readonly',
GqlGetUserStories: 'readonly',
GqlGetTenets: 'readonly',
GqlFAQs: 'readonly',
GqlGetApplicationPage: 'readonly',
GqlGetFrameworkPage: 'readonly',
GqlGetLibraryPageByName: 'readonly',
GqlGetLibraryPageByName: 'readonly',
useNuxtApp: 'readonly',
useRoute: 'readonly',
useAsyncData: 'readonly',
Expand All @@ -60,5 +72,7 @@ module.exports = {
}
],
// add your custom rules here
rules: {}
rules: {
'vue/multi-word-component-names': 'off'
}
};
18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
15 changes: 6 additions & 9 deletions .github/ISSUE_TEMPLATE/user-story-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Create a user story for this project
title: ''
labels: ''
assignees: ''

---

**Summary**
Expand All @@ -15,7 +14,6 @@ A user story should typically have a summary structured this way:
1. **I want** [goal of the story]
1. **so that** [reason for the story]


**Acceptance Criteria**

1. [If I do A.]
Expand All @@ -27,18 +25,17 @@ Also, here are a few points that need to be addressed:
1. Constraint 1;
1. Constraint 2;
1. Constraint 3.
]
]

**Resources:**

* Mockups: [Here goes a URL to or the name of the mockup(s) in inVision];
* Testing URL: [Here goes a URL to the testing branch or IP];
* Staging URL: [Here goes a URL to the feature on staging];

- Mockups: [Here goes a URL to or the name of the mockup(s) in inVision];
- Testing URL: [Here goes a URL to the testing branch or IP];
- Staging URL: [Here goes a URL to the feature on staging];

**Notes**

[Some complementary notes if necessary:]

* > Here goes a quote from an email
* Here goes whatever useful information can exist…
- > Here goes a quote from an email
- Here goes whatever useful information can exist…
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'
6 changes: 3 additions & 3 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Tests: E2E"
name: 'Tests: E2E'

on: [pull_request]

Expand All @@ -14,7 +14,7 @@ jobs:
uses: josephduffy/wait-for-netlify-action@v1
id: wait-for-netflify-preview
with:
site_name: "mitre-saf-v2"
site_name: 'mitre-saf-v2'
max_timeout: 180

tests_e2e_netlify:
Expand All @@ -32,5 +32,5 @@ jobs:
- name: yarn run test:e2e
run: yarn run test:e2e
env:
PLAYWRIGHT_TEST_BASE_URL: "https://deploy-preview-${{env.GITHUB_PR_NUMBER}}--mitre-saf-v2.netlify.app/"
PLAYWRIGHT_TEST_BASE_URL: 'https://deploy-preview-${{env.GITHUB_PR_NUMBER}}--mitre-saf-v2.netlify.app/'
DEBUG: pw:api
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
9 changes: 4 additions & 5 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

Licensed under the apache-2.0 license, except as noted below.
Licensed under the apache-2.0 license, except as noted below.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright/ digital rights legend, this list of conditions and the following Notice.
- Redistributions of source code must retain the above copyright/ digital rights legend, this list of conditions and the following Notice.

* Redistributions in binary form must reproduce the above copyright copyright/ digital rights legend, this list of conditions and the following Notice in the documentation and/or other materials provided with the distribution.
- Redistributions in binary form must reproduce the above copyright copyright/ digital rights legend, this list of conditions and the following Notice in the documentation and/or other materials provided with the distribution.

* Neither the name of The MITRE Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- Neither the name of The MITRE Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12 changes: 6 additions & 6 deletions NOTICE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
© 2023 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 18-3678.

NOTICE

MITRE grants permission to reproduce, distribute, modify, and otherwise use this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.

This software was produced by The MITRE Corporation for the U. S. Government under contract. As such the U.S. Government has certain use and data rights in this software. No use other than those granted to the U. S. Government, or to those acting on behalf of the U. S. Government, under these contract arrangements is authorized without the express written permission of The MITRE Corporation.

For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.

DISA STIGs are published by DISA IASE, see: https://iase.disa.mil/Pages/privacy_policy.aspx
DISA STIGs are published by DISA IASE, see: https://iase.disa.mil/Pages/privacy_policy.aspx
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MITRE Security Automation Framework Website

## Overview

The MITRE Security Automation Framework© (SAF) brings together open-source, accessible applications, techniques, libraries, and tools developed by MITRE and the security community to streamline security automation for systems and DevOps pipelines.
The MITRE Security Automation Framework© (SAF) brings together open-source, accessible applications, techniques, libraries, and tools developed by MITRE and the security community to streamline security automation for systems and DevOps pipelines.

This repository contains the frontend source code for the upcoming new https://saf.mitre.org website.

Expand All @@ -17,11 +17,12 @@ This repository contains the frontend source code for the upcoming new https://s
3. Install playwright dependencies with `npx playwright install`
4. Copy `.env-sample` into `.env` and replace `CHANGEME` values as appropriate
5. For developing use: `yarn dev`
6. For production use: `yarn build` and `yarn preview`
6. For production use: `yarn build` and `yarn preview`

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://mitre-saf-v2.netlify.app/)

## Backend Development

- Backend is handled in the [saf-site backend repository](https://github.com/mitre/saf-site-backend)

## Technology Stack
Expand All @@ -42,7 +43,6 @@ This repository contains the frontend source code for the upcoming new https://s
- [tailwindcss/line-clamp](https://github.com/tailwindlabs/tailwindcss-line-clamp)
- [tailwindcss/aspect-ratio](https://github.com/tailwindlabs/tailwindcss-aspect-ratio)


## Contributing, Issues and Support

### Contributing
Expand All @@ -53,7 +53,6 @@ Please feel free to look through our issues, make a fork and submit PRs and impr

Please feel free to contact us by **opening an issue** on the issue board, or, at [[email protected]](mailto:[email protected]) should you have any suggestions, questions or issues.


### NOTICE

© 2023 The MITRE Corporation.
Expand All @@ -70,6 +69,4 @@ This software was produced for the U. S. Government under Contract Number HHSM-5

No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.


For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.

10 changes: 4 additions & 6 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<template>
<div class="bg-neutral-1 text-foreground overscroll-none">
<div class="overscroll-none bg-neutral-1 text-foreground">
<NuxtLayout>
<NuxtLoadingIndicator />
<!-- <NuxtLoadingBar :duration="1000" /> -->
<NuxtPage />
</NuxtLayout>
</div>
</template>

</template>

<script setup>
import './assets/tailwind.css'
</script>

import './assets/tailwind.css';
</script>
6 changes: 4 additions & 2 deletions assets/icons/DiagonalArrow.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
<path d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z" />
<path
d="M20 4h1a1 1 0 00-1-1v1zm-1 12a1 1 0 102 0h-2zM8 3a1 1 0 000 2V3zM3.293 19.293a1 1 0 101.414 1.414l-1.414-1.414zM19 4v12h2V4h-2zm1-1H8v2h12V3zm-.707.293l-16 16 1.414 1.414 16-16-1.414-1.414z"
/>
</svg>
</template>
</template>
72 changes: 47 additions & 25 deletions assets/icons/HardenIcon.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,50 @@
<template>
<svg width="87px" height="104px" viewBox="0 0 87 104" version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
<title>Harden Icon</title>
<desc>Created with Sketch.</desc>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="LightMode" transform="translate(-131.000000, -196.000000)" fill-rule="nonzero">
<g id="Harden" transform="translate(124.000000, 196.000000)">
<g id="Harden-Icon" transform="translate(7.000000, 0.000000)">
<g id="Group-16">
<g id="noun_Security_2995532" fill="#CBD2DF">
<path
d="M86.9078384,26.7231437 C86.8021324,23.9632559 86.8021324,21.3095177 86.8021324,18.7619291 C86.8021324,16.745088 85.2165426,15.1528451 83.2081289,15.1528451 C67.6693491,15.0466956 55.8302787,10.5884154 45.9996221,1.0349579 C44.6254442,-0.344985966 42.2999126,-0.344985966 40.9257348,1.0349579 C31.0950781,10.5884154 19.2560077,15.0466956 3.82293387,15.0466956 C1.81452015,15.0466956 0.228930371,16.6389385 0.228930371,18.6557795 C0.228930371,21.2033682 0.228930371,23.8571064 0.123224386,26.7231437 C-0.405305542,52.9420771 -1.14524744,88.714468 42.2999126,103.787701 C42.7227365,103.89385 43.0398545,104 43.4626784,104 C43.8855023,104 44.3083263,103.89385 44.6254442,103.787701 C88.0706042,88.714468 87.3306624,52.9420771 86.9078384,26.7231437 Z M43.113642,98.4633834 C4.21175749,84.2578863 4.76434108,53.1833616 5.31692467,25.7711915 C5.31692467,24.1064848 5.42744138,22.5527586 5.42744138,20.9990323 C20.5682317,20.2221692 32.7250706,15.6719709 43.113642,6.57157438 C53.5022134,15.6719709 65.6590523,20.3331496 80.7998426,20.8880519 C80.7998426,22.4417781 80.7998426,23.9955043 80.9103593,25.660211 C81.4629429,53.1833616 82.0155265,84.2578863 43.113642,98.4633834 Z"
id="Shape"></path>
</g>
<g id="noun_padlock_174116" transform="translate(27.000000, 29.000000)" fill="#005B94">
<path
d="M30.4006849,17.1662304 L27.8013699,17.1662304 L27.8013699,11.2565445 C27.8013699,5.06544503 22.7157534,0 16.5,0 C10.2277397,0 5.14212329,5.06544503 5.14212329,11.3128272 L5.14212329,17.2225131 L2.59931507,17.2225131 C1.18664384,17.2225131 0,18.4044503 0,19.8115183 L0,40.4109948 C0,41.8180628 1.18664384,43 2.59931507,43 L30.4006849,43 C31.8133562,43 33,41.8180628 33,40.4109948 L33,19.7552356 C33,18.3481675 31.8133562,17.1662304 30.4006849,17.1662304 Z M19.1558219,33.882199 C19.1558219,34.6138743 18.5907534,35.1767016 17.8561644,35.1767016 L15.2003425,35.1767016 C14.4657534,35.1767016 13.9006849,34.6138743 13.9006849,33.882199 L13.9006849,26.171466 C13.9006849,25.4397906 14.4657534,24.8769634 15.2003425,24.8769634 L17.8561644,24.8769634 C18.5907534,24.8769634 19.1558219,25.4397906 19.1558219,26.171466 L19.1558219,33.882199 Z M22.6592466,17.1662304 L10.3407534,17.1662304 L10.3407534,11.2565445 C10.3407534,7.87958115 13.109589,5.12172775 16.5,5.12172775 C19.890411,5.12172775 22.6592466,7.87958115 22.6592466,11.2565445 L22.6592466,17.1662304 Z"
id="Shape"></path>
</g>
</g>
</g>
</g>
<svg
width="87px"
height="104px"
viewBox="0 0 87 104"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
<title>Harden Icon</title>
<desc>Created with Sketch.</desc>
<g
id="Page-1"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
>
<g
id="LightMode"
transform="translate(-131.000000, -196.000000)"
fill-rule="nonzero"
>
<g id="Harden" transform="translate(124.000000, 196.000000)">
<g id="Harden-Icon" transform="translate(7.000000, 0.000000)">
<g id="Group-16">
<g id="noun_Security_2995532" fill="#CBD2DF">
<path
id="Shape"
d="M86.9078384,26.7231437 C86.8021324,23.9632559 86.8021324,21.3095177 86.8021324,18.7619291 C86.8021324,16.745088 85.2165426,15.1528451 83.2081289,15.1528451 C67.6693491,15.0466956 55.8302787,10.5884154 45.9996221,1.0349579 C44.6254442,-0.344985966 42.2999126,-0.344985966 40.9257348,1.0349579 C31.0950781,10.5884154 19.2560077,15.0466956 3.82293387,15.0466956 C1.81452015,15.0466956 0.228930371,16.6389385 0.228930371,18.6557795 C0.228930371,21.2033682 0.228930371,23.8571064 0.123224386,26.7231437 C-0.405305542,52.9420771 -1.14524744,88.714468 42.2999126,103.787701 C42.7227365,103.89385 43.0398545,104 43.4626784,104 C43.8855023,104 44.3083263,103.89385 44.6254442,103.787701 C88.0706042,88.714468 87.3306624,52.9420771 86.9078384,26.7231437 Z M43.113642,98.4633834 C4.21175749,84.2578863 4.76434108,53.1833616 5.31692467,25.7711915 C5.31692467,24.1064848 5.42744138,22.5527586 5.42744138,20.9990323 C20.5682317,20.2221692 32.7250706,15.6719709 43.113642,6.57157438 C53.5022134,15.6719709 65.6590523,20.3331496 80.7998426,20.8880519 C80.7998426,22.4417781 80.7998426,23.9955043 80.9103593,25.660211 C81.4629429,53.1833616 82.0155265,84.2578863 43.113642,98.4633834 Z"
></path>
</g>
<g
id="noun_padlock_174116"
transform="translate(27.000000, 29.000000)"
fill="#005B94"
>
<path
id="Shape"
d="M30.4006849,17.1662304 L27.8013699,17.1662304 L27.8013699,11.2565445 C27.8013699,5.06544503 22.7157534,0 16.5,0 C10.2277397,0 5.14212329,5.06544503 5.14212329,11.3128272 L5.14212329,17.2225131 L2.59931507,17.2225131 C1.18664384,17.2225131 0,18.4044503 0,19.8115183 L0,40.4109948 C0,41.8180628 1.18664384,43 2.59931507,43 L30.4006849,43 C31.8133562,43 33,41.8180628 33,40.4109948 L33,19.7552356 C33,18.3481675 31.8133562,17.1662304 30.4006849,17.1662304 Z M19.1558219,33.882199 C19.1558219,34.6138743 18.5907534,35.1767016 17.8561644,35.1767016 L15.2003425,35.1767016 C14.4657534,35.1767016 13.9006849,34.6138743 13.9006849,33.882199 L13.9006849,26.171466 C13.9006849,25.4397906 14.4657534,24.8769634 15.2003425,24.8769634 L17.8561644,24.8769634 C18.5907534,24.8769634 19.1558219,25.4397906 19.1558219,26.171466 L19.1558219,33.882199 Z M22.6592466,17.1662304 L10.3407534,17.1662304 L10.3407534,11.2565445 C10.3407534,7.87958115 13.109589,5.12172775 16.5,5.12172775 C19.890411,5.12172775 22.6592466,7.87958115 22.6592466,11.2565445 L22.6592466,17.1662304 Z"
></path>
</g>
</g>
</g>
</g>
</svg>
</template>
</g>
</g>
</svg>
</template>
Loading

0 comments on commit 6e5761e

Please sign in to comment.