From f2eb3465f45a6c0def10b07df80ac45f25be554a Mon Sep 17 00:00:00 2001 From: atanasster Date: Tue, 23 Feb 2021 20:57:31 -0500 Subject: [PATCH] fix: remove testing page --- examples/starter/.config/TestingPage.tsx | 34 ------------------------ examples/starter/.config/buildtime.js | 9 ------- examples/starter/.config/runtime.tsx | 7 +---- 3 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 examples/starter/.config/TestingPage.tsx diff --git a/examples/starter/.config/TestingPage.tsx b/examples/starter/.config/TestingPage.tsx deleted file mode 100644 index 8eca6b55d..000000000 --- a/examples/starter/.config/TestingPage.tsx +++ /dev/null @@ -1,34 +0,0 @@ -/* eslint-disable react/display-name */ -import React from 'react'; -import { - Playground, - PropsTable, - Story, - Description, -} from '@component-controls/blocks'; -import { getControlsCount } from '@component-controls/core'; -import { useCurrentStory } from '@component-controls/store'; -import { AllyBlock } from '@component-controls/axe-plugin'; -import { ViewportBlock } from '@component-controls/viewport-plugin'; - -export const TestingPage = () => { - const story = useCurrentStory(); - const controlsCount = getControlsCount(story?.controls); - return ( - <> - - {controlsCount > 0 && ( - <> - - - - - - - )} - - - - ); -} - diff --git a/examples/starter/.config/buildtime.js b/examples/starter/.config/buildtime.js index 3bcc18e48..aa9de4a30 100644 --- a/examples/starter/.config/buildtime.js +++ b/examples/starter/.config/buildtime.js @@ -1,7 +1,6 @@ const path = require('path'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') .BundleAnalyzerPlugin; -const { defaultBuildConfig } = require('@component-controls/core'); module.exports = { siteRoot: '/root/', @@ -15,14 +14,6 @@ module.exports = { ], }; }, - pages: { - story: { - tabs: { - page: '@component-controls/pages/ClassicPage', - test: '@component-controls/pages/TestingPage', - }, - }, - }, instrument: { components: { package: { diff --git a/examples/starter/.config/runtime.tsx b/examples/starter/.config/runtime.tsx index 66dac1f31..950d65bea 100644 --- a/examples/starter/.config/runtime.tsx +++ b/examples/starter/.config/runtime.tsx @@ -1,9 +1,4 @@ -import React from 'react'; -import { - RunOnlyConfiguration, - defaultRunConfig, -} from '@component-controls/core'; -import { TestingPage } from './TestingPage'; +import { RunOnlyConfiguration } from '@component-controls/core'; const config: RunOnlyConfiguration = { title: `awLib`,