Skip to content

Commit

Permalink
Fix potential typing issue
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Andrew Hinchey <chinchey@mitre.org>
  • Loading branch information
ChrisHinchey committed Nov 20, 2023
1 parent 21a3ce6 commit 7a18374
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 33 deletions.
2 changes: 0 additions & 2 deletions components/ApplicationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
</template>

<script setup lang="ts">
import {ApplicationPageFeature} from '~/global';
/* Data */
const props = defineProps({
productIcon: {
Expand Down
1 change: 0 additions & 1 deletion components/blog/PostCards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<script setup lang="ts">
import {ref, onMounted, nextTick} from 'vue';
import slugify from '@/utils/useSlugify';
import {BlogPost} from '~/global';
/* Data */
const isLoaded = ref(false);
Expand Down
1 change: 0 additions & 1 deletion components/documentation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ import {
TransitionChild,
TransitionRoot
} from '@headlessui/vue';
import {DocumentationCommandPaletteResult} from '~/global';
/* Data */
const isLoaded = ref(false);
Expand Down
2 changes: 0 additions & 2 deletions components/documentation/CurrentPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
</template>

<script setup lang="ts">
import {DocLink} from '~/global';
/* Data */
const props = defineProps({
renderedContent: {
Expand Down
1 change: 0 additions & 1 deletion components/documentation/PageNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

<script setup lang="ts">
import slugify from '@/utils/useSlugify';
import {DocumentationTableContent} from '~/global';
/* Data */
const props = defineProps({
Expand Down
1 change: 0 additions & 1 deletion components/framework/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ import GitHubLogo from '@/assets/logos/GitHubLogo.vue';
import {ref, computed} from 'vue';
import slugify from '@/utils/useSlugify';
import _ from 'lodash';
import {FilteredLibraryData, LibraryTableEntry} from '~/global';
/* Data */
const categories = [
Expand Down
1 change: 0 additions & 1 deletion components/home/Capabilities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@

<script setup lang="ts">
import DiagonalArrow from '@/assets/icons/DiagonalArrow.vue';
import {Capability} from '~/global';
/* Data */
const props = defineProps({
Expand Down
2 changes: 0 additions & 2 deletions components/home/LogoCloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
</template>

<script setup lang="ts">
import {LogoCloudEntry} from '~/global';
/* Data */
const props = defineProps({
title: {
Expand Down
1 change: 0 additions & 1 deletion components/home/Tenets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import {
AnnotationIcon
} from '@heroicons/vue/outline';
import OsiKeyhole from '@/assets/icons/OsiKeyhole.vue';
import {Tenet} from '~/global';
/* Data */
const props = defineProps({
Expand Down
2 changes: 0 additions & 2 deletions components/home/Toolset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
</template>

<script setup lang="ts">
import {Toolset} from '~/global';
/* Data */
const props = defineProps({
toolset: {
Expand Down
2 changes: 0 additions & 2 deletions components/home/UserStories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
</template>

<script setup lang="ts">
import {UserStory} from '~/global';
/* Data */
const props = defineProps({
userStories: {
Expand Down
1 change: 0 additions & 1 deletion components/nav/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<script setup lang="ts">
import {Popover, PopoverButton, PopoverPanel} from '@headlessui/vue';
import {ChevronDownIcon} from '@heroicons/vue/solid';
import {LinkObject} from '~/global';
/* Data */
const route = useRoute();
Expand Down
2 changes: 0 additions & 2 deletions components/nav/MobileLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
</template>

<script setup lang="ts">
import {LinkObject} from '~/global';
/* Data */
const props = defineProps({
items: {
Expand Down
2 changes: 0 additions & 2 deletions pages/apps/[page].vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
</template>

<script setup lang="ts">
import {ApplicationPageFeature} from '~/global';
/* Data */
const isLoaded = ref(false);
const route = useRoute();
Expand Down
1 change: 0 additions & 1 deletion pages/faq/[question].vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

<script setup lang="ts">
import {ref, onMounted, nextTick} from 'vue';
import {FAQ} from '~/global';
/* Data */
const isLoaded = ref(false);
Expand Down
1 change: 0 additions & 1 deletion pages/faq/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@

<script setup lang="ts">
import {ref, onMounted, nextTick} from 'vue';
import {FAQ} from '~/global';
/* Data */
const isLoaded = ref(false);
Expand Down
2 changes: 0 additions & 2 deletions pages/libs/guidance/[guidance].vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@
</template>

<script setup lang="ts">
import {Guidance} from '~/global';
/* Data */
const isLoaded = ref(false);
const guidance = ref<Guidance>();
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/harden.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import {test, expect} from '@playwright/test';

test('Hardening Library Page', async ({page}) => {
// Navigate to harden page
await page.goto('/');
await page.getByRole('button', {name: 'Libraries'}).click();
await page.getByRole('link', {name: 'Harden'}).nth(0).click();
await expect(page).toHaveURL('/libs/harden');
await page.goto('/libs/harden');
// await page.getByRole('button', {name: 'Libraries'}).click();
// await page.getByRole('link', {name: 'Harden'}).nth(0).click();
// await expect(page).toHaveURL('/libs/harden');

await expect(
page.getByRole('heading', {level: 1, name: 'Harden'})
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/validate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import {test, expect} from '@playwright/test';

test('Validation Library Page', async ({page}) => {
// Navigate to validate page
await page.goto('/');
await page.getByRole('button', {name: 'Libraries'}).click();
await page.getByRole('link', {name: 'Validate'}).nth(0).click();
await expect(page).toHaveURL('/libs/validate');
await page.goto('/libs/validate');
// await page.getByRole('button', {name: 'Libraries'}).click();
// await page.getByRole('link', {name: 'Validate'}).nth(0).click();
// await expect(page).toHaveURL('/libs/validate');

await expect(
page.getByRole('heading', {level: 1, name: 'Validate'})
Expand Down

0 comments on commit 7a18374

Please sign in to comment.