aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-08-12 17:21:07 +0800
committerGitHub <[email protected]>2022-08-12 11:21:07 +0200
commit462ee5aa1ebc5fa2f9e397cdf8ddcfc46af9997b (patch)
treef1191755562033c6e1d007aafc61b6c2ac6b5037 /docs
parent5e9c35019a1c7d0343b88d017e694ac0848a39aa (diff)
downloadfaker-462ee5aa1ebc5fa2f9e397cdf8ddcfc46af9997b.tar.xz
faker-462ee5aa1ebc5fa2f9e397cdf8ddcfc46af9997b.zip
docs: remove unused playground (#1261)
Diffstat (limited to 'docs')
-rw-r--r--docs/.vitepress/config.ts1
-rw-r--r--docs/.vitepress/theme/components/Badge.vue43
-rw-r--r--docs/.vitepress/theme/components/Playground.vue11
-rw-r--r--docs/.vitepress/theme/components/index.ts7
-rw-r--r--docs/.vitepress/theme/components/vue.d.ts4
-rw-r--r--docs/.vitepress/theme/index.ts10
-rw-r--r--docs/playground/index.md5
7 files changed, 1 insertions, 80 deletions
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index bb1a4417..bc5117b5 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -84,7 +84,6 @@ export default defineConfig({
nav: [
{ text: 'Guide', link: '/guide/' },
- // { text: 'Playground', link: '/playground/' },
{
text: 'Ecosystem',
items: [{ text: 'StackBlitz ', link: 'https://fakerjs.dev/new' }],
diff --git a/docs/.vitepress/theme/components/Badge.vue b/docs/.vitepress/theme/components/Badge.vue
deleted file mode 100644
index 5ec0673c..00000000
--- a/docs/.vitepress/theme/components/Badge.vue
+++ /dev/null
@@ -1,43 +0,0 @@
-<script setup>
-defineProps({
- text: String,
- type: String,
- vertical: String,
-});
-</script>
-
-<template>
- <span class="badge" :class="type" :style="{ verticalAlign: vertical }">
- {{ text }}
- </span>
-</template>
-
-<style scoped>
-.badge.tip {
- background-color: #40af7c;
-}
-
-.badge.danger {
- background-color: #cb0300;
-}
-
-.badge.warning {
- background-color: #e7c000;
-}
-
-.badge.info {
- background-color: #476482;
-}
-
-.badge {
- display: inline-block;
- font-size: 14px;
- height: 18px;
- line-height: 18px;
- border-radius: 3px;
- padding: 0 6px;
- color: var(--c-bg);
- vertical-align: top;
- transition: color var(--t-color), background-color var(--t-color);
-}
-</style>
diff --git a/docs/.vitepress/theme/components/Playground.vue b/docs/.vitepress/theme/components/Playground.vue
deleted file mode 100644
index df73e357..00000000
--- a/docs/.vitepress/theme/components/Playground.vue
+++ /dev/null
@@ -1,11 +0,0 @@
-<script setup>
-import { faker } from '../../../../dist/esm';
-
-window.faker = faker;
-</script>
-
-<template>
- <h2>🚧 Playground under construction 🚧</h2>
- <h3>window.faker</h3>
- <pre>{{ Object.keys(faker) }}</pre>
-</template>
diff --git a/docs/.vitepress/theme/components/index.ts b/docs/.vitepress/theme/components/index.ts
deleted file mode 100644
index 4b77998a..00000000
--- a/docs/.vitepress/theme/components/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import Badge from './Badge.vue';
-import Playground from './Playground.vue';
-
-export default {
- Playground,
- Badge,
-};
diff --git a/docs/.vitepress/theme/components/vue.d.ts b/docs/.vitepress/theme/components/vue.d.ts
deleted file mode 100644
index 939fef48..00000000
--- a/docs/.vitepress/theme/components/vue.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module '*.vue' {
- const component: any;
- export default component;
-}
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index e4f3534f..cb27ada0 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,12 +1,4 @@
import DefaultTheme from 'vitepress/theme';
-import GlobalComponents from './components';
import './index.css';
-export default {
- ...DefaultTheme,
- enhanceApp({ app }) {
- for (const [name, component] of Object.entries(GlobalComponents)) {
- app.component(name, component);
- }
- },
-};
+export default { ...DefaultTheme };
diff --git a/docs/playground/index.md b/docs/playground/index.md
deleted file mode 100644
index db887d42..00000000
--- a/docs/playground/index.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-sidebar: false
----
-
-<ClientOnly><Playground /></ClientOnly>