From a1aa8f83134bc2e667c12f985feb18de13069963 Mon Sep 17 00:00:00 2001 From: kiosion Date: Mon, 2 Oct 2023 22:57:57 -0300 Subject: [PATCH] chore: Misc cleanup --- .../cypress/support/component-index.html | 12 ------ svelte-app/cypress/support/component.ts | 39 ------------------- svelte-app/src/components/code-block.svelte | 13 +------ .../serializers/custom-heading.svelte | 2 +- 4 files changed, 3 insertions(+), 63 deletions(-) delete mode 100644 svelte-app/cypress/support/component-index.html delete mode 100644 svelte-app/cypress/support/component.ts diff --git a/svelte-app/cypress/support/component-index.html b/svelte-app/cypress/support/component-index.html deleted file mode 100644 index ac6e79fd8..000000000 --- a/svelte-app/cypress/support/component-index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Components App - - -
- - \ No newline at end of file diff --git a/svelte-app/cypress/support/component.ts b/svelte-app/cypress/support/component.ts deleted file mode 100644 index 56ec9a304..000000000 --- a/svelte-app/cypress/support/component.ts +++ /dev/null @@ -1,39 +0,0 @@ -// *********************************************************** -// This example support/component.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands'; - -// Alternatively you can use CommonJS syntax: -// require('./commands') - -import { mount } from 'cypress/svelte'; - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - namespace Cypress { - interface Chainable { - mount: typeof mount; - } - } -} - -Cypress.Commands.add('mount', mount); - -// Example use: -// cy.mount(MyComponent) diff --git a/svelte-app/src/components/code-block.svelte b/svelte-app/src/components/code-block.svelte index 8e8c259b8..b14e29824 100644 --- a/svelte-app/src/components/code-block.svelte +++ b/svelte-app/src/components/code-block.svelte @@ -118,24 +118,15 @@
(hovered = true)} - on:mouseleave={() => (hovered = false)} - on:focusin={() => (hovered = true)} - on:focusout={() => (hovered = false)} - on:blur={() => (hovered = false)} > {#if filename}
{filename} diff --git a/svelte-app/src/components/portable-text/serializers/custom-heading.svelte b/svelte-app/src/components/portable-text/serializers/custom-heading.svelte index 9d1f69be0..385d355d1 100644 --- a/svelte-app/src/components/portable-text/serializers/custom-heading.svelte +++ b/svelte-app/src/components/portable-text/serializers/custom-heading.svelte @@ -34,7 +34,7 @@