remove demo components since it's now a separate website on glitch
This commit is contained in:
@@ -5,16 +5,6 @@ export default defineConfig({
|
||||
title: "Cap",
|
||||
description: "A modern, lightning-quick PoW captcha",
|
||||
lastUpdated: true,
|
||||
head: [
|
||||
["script", { src: "https://cdn.jsdelivr.net/npm/capdotjs", async: true }],
|
||||
[
|
||||
"script",
|
||||
{
|
||||
src: "https://cdn.jsdelivr.net/npm/capdotjs/lib/cap-floating.min.js",
|
||||
async: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
vue: {
|
||||
template: {
|
||||
compilerOptions: {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<cap-widget onsolve="alert(`Verification token: ${event.detail.token}`)"></cap-widget>
|
||||
</template>
|
||||
@@ -1,19 +0,0 @@
|
||||
<style>
|
||||
.demo-button {
|
||||
background-color: var(--vp-c-brand-1);
|
||||
color: var(--vp-c-bg);
|
||||
padding: 5px 13px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: .85rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.demo-button:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<cap-widget id="floating" onsolve="alert(`Verification token: ${event.detail.token}`)"></cap-widget>
|
||||
|
||||
<button data-cap-floating="#floating" data-cap-floating-offset="8" data-cap-floating-position="bottom" class="demo-button">Trigger Floating</button>
|
||||
</template>
|
||||
@@ -1,8 +1,6 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import Demo from './Demo.vue'
|
||||
import DemoFloating from './DemoFloating.vue'
|
||||
import './style.css'
|
||||
|
||||
import vitepressNprogress from 'vitepress-plugin-nprogress'
|
||||
@@ -17,8 +15,6 @@ export default {
|
||||
})
|
||||
},
|
||||
enhanceApp: (ctx) => {
|
||||
ctx.app.component('Demo', Demo)
|
||||
ctx.app.component('DemoFloating', DemoFloating)
|
||||
vitepressNprogress(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user