Skip to content

Commit

Permalink
clean up blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh committed Dec 4, 2023
1 parent 8c8a45a commit 6557281
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 90 deletions.
2 changes: 0 additions & 2 deletions blocks/email-settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
1 change: 0 additions & 1 deletion blocks/footer/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"description": "Outputs the company logo, social links, address, and footer links.",
"textdomain": "wp-newsletter-builder",
"editorScript": "file:index.ts",
"editorStyle": "file:index.css",
"style": [
"file:style-index.css"
],
Expand Down
8 changes: 0 additions & 8 deletions blocks/footer/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ import { Spinner } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { useEffect, useState } from '@wordpress/element';

/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* Those files can contain any CSS code that gets applied to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './index.scss';

interface EditProps {
attributes: {
narrow_separator: boolean,
Expand Down
12 changes: 0 additions & 12 deletions blocks/footer/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions blocks/footer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
2 changes: 0 additions & 2 deletions blocks/header/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
1 change: 0 additions & 1 deletion blocks/post-byline/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"description": "Displays a post byline",
"textdomain": "wp-newsletter-builder",
"editorScript": "file:index.ts",
"editorStyle": "file:index.css",
"style": [
"file:style-index.css"
],
Expand Down
2 changes: 0 additions & 2 deletions blocks/post-byline/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { __ } from '@wordpress/i18n';
import { RichText, useBlockProps } from '@wordpress/block-editor';
import { WP_REST_API_Post } from 'wp-types';

import './index.scss';

interface EditProps {
attributes: {
overrideByline?: string;
Expand Down
9 changes: 0 additions & 9 deletions blocks/post-byline/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions blocks/post-byline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
2 changes: 0 additions & 2 deletions blocks/post-excerpt/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { __ } from '@wordpress/i18n';
import { RichText, useBlockProps } from '@wordpress/block-editor';
import { WP_REST_API_Post } from 'wp-types';

import './index.scss';

interface EditProps {
attributes: {
overrideExcerpt?: string;
Expand Down
9 changes: 0 additions & 9 deletions blocks/post-excerpt/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions blocks/post-excerpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
1 change: 0 additions & 1 deletion blocks/post-featured-image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"description": "Displays a post featured image",
"textdomain": "wp-newsletter-builder",
"editorScript": "file:index.ts",
"editorStyle": "file:index.css",
"style": [
"file:style-index.css"
],
Expand Down
2 changes: 0 additions & 2 deletions blocks/post-featured-image/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { __ } from '@wordpress/i18n';
import { InspectorControls, useBlockProps } from '@wordpress/block-editor';
import { WP_REST_API_Post, WP_REST_API_Attachment } from 'wp-types';

import './index.scss';

interface EditProps {
attributes: {
overrideImage?: number;
Expand Down
9 changes: 0 additions & 9 deletions blocks/post-featured-image/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions blocks/post-featured-image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
1 change: 0 additions & 1 deletion blocks/post-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"description": "Displays a post title",
"textdomain": "wp-newsletter-builder",
"editorScript": "file:index.ts",
"editorStyle": "file:index.css",
"style": [
"file:style-index.css"
],
Expand Down
2 changes: 0 additions & 2 deletions blocks/post-title/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { __ } from '@wordpress/i18n';
import { RichText, useBlockProps } from '@wordpress/block-editor';
import { WP_REST_API_Post } from 'wp-types';

import './index.scss';

interface EditProps {
attributes: {
overrideTitle?: string;
Expand Down
9 changes: 0 additions & 9 deletions blocks/post-title/index.scss

This file was deleted.

2 changes: 0 additions & 2 deletions blocks/post-title/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
2 changes: 0 additions & 2 deletions blocks/post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
save: () => {
const blockProps = useBlockProps.save();
Expand All @@ -41,6 +40,5 @@ registerBlockType(
</div>
);
},
title: metadata.title,
},
);
2 changes: 0 additions & 2 deletions blocks/section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
save: () => {
const blockProps = useBlockProps.save();
return (
Expand Down
2 changes: 0 additions & 2 deletions blocks/signup-form-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
},
);
2 changes: 0 additions & 2 deletions blocks/signup-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ registerBlockType(
/* @ts-expect-error Provided types are inaccurate to the actual plugin API. */
metadata,
{
apiVersion: 2,
edit,
title: metadata.title,
save: () => {
const blockProps = useBlockProps.save();
return (
Expand Down

0 comments on commit 6557281

Please sign in to comment.