Use script instead of npm package.

This commit is contained in:
Sidharth Vinod 2023-06-10 01:37:39 +05:30
parent 9b6f2ecf42
commit 88bda42e74
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
4 changed files with 15 additions and 20 deletions

View File

@ -16,7 +16,18 @@ export default defineConfig({
description: 'Create diagrams and visualizations using text and code.',
base: '/',
markdown: allMarkdownTransformers,
head: [['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]],
head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
[
'script',
{
defer: 'true',
'data-domain': 'mermaid.js.org',
// All tracked stats are public and available at https://p.mermaid.live/mermaid.js.org
src: 'https://p.mermaid.live/js/script.js',
},
],
],
themeConfig: {
nav: nav(),
editLink: {

View File

@ -9,12 +9,6 @@ import HomePage from '../components/HomePage.vue';
import { getRedirect } from './redirect.js';
import { h } from 'vue';
import Plausible from 'plausible-tracker';
// All tracked stats are public and available at https://p.mermaid.live/mermaid.js.org
const { enableAutoPageviews } = Plausible({
apiHost: 'https://p.mermaid.live',
});
enableAutoPageviews();
import Theme from 'vitepress/theme';
import '../style/main.css';

View File

@ -16,7 +16,6 @@
"dependencies": {
"@vueuse/core": "^10.1.0",
"jiti": "^1.18.2",
"plausible-tracker": "^0.3.8",
"vue": "^3.2.47"
},
"devDependencies": {

View File

@ -391,9 +391,6 @@ importers:
jiti:
specifier: ^1.18.2
version: 1.18.2
plausible-tracker:
specifier: ^0.3.8
version: 0.3.8
vue:
specifier: ^3.2.47
version: 3.2.47
@ -446,12 +443,12 @@ importers:
jiti:
specifier: ^1.18.2
version: 1.18.2
plausible-tracker:
specifier: ^0.3.8
version: 0.3.8
vue:
specifier: ^3.2.47
version: 3.2.47
vue-plausible:
specifier: ^1.3.2
version: 1.3.2
devDependencies:
'@iconify-json/carbon':
specifier: ^1.1.16
@ -14851,12 +14848,6 @@ packages:
vue: 3.3.4
dev: true
/vue-plausible@1.3.2:
resolution: {integrity: sha512-7hdLrDjw0+qjdM9hxowOirQSHPCljWwd8scW0tRFHyXAQSE/yBWrJ3EPuEiZlJUoth9ac0KLbHM+wSSkWHttiA==}
dependencies:
plausible-tracker: 0.3.8
dev: false
/vue@3.2.47:
resolution: {integrity: sha512-60188y/9Dc9WVrAZeUVSDxRQOZ+z+y5nO2ts9jWXSTkMvayiWxCWOWtBQoYjLeccfXkiiPZWAHcV+WTPhkqJHQ==}
dependencies: