chore: remove mermaid.js (#87)

This commit is contained in:
Rebecca Le 2023-02-01 15:56:41 +08:00 committed by GitHub
parent 7c5e14b45d
commit 95c1d7b486
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 1458 deletions

View file

@ -22,8 +22,6 @@ import "phoenix_html";
import { Socket } from "phoenix";
import { LiveSocket } from "phoenix_live_view";
import topbar from "../vendor/topbar";
import mermaid from "mermaid";
mermaid.init(".mermaid");
function cookiesAreAllowed() {
const consentStatus = document.cookie
@ -133,12 +131,6 @@ Hooks.ColorTheme = {
},
};
Hooks.Docs = {
mounted() {
mermaid.init(".mermaid");
},
};
let scrolled = false;
Hooks.RightNav = {

1444
assets/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,6 @@
"dependencies": {
"@tailwindcss/line-clamp": "^0.4.0",
"@tailwindcss/typography": "^0.5.2",
"mermaid": "^8.14.0",
"smooth-scroll-into-view-if-needed": "^1.1.33"
}
}

View file

@ -95,7 +95,6 @@ defmodule AshHqWeb.Pages.Docs do
<div
id="docs-window"
class="w-full shrink prose prose-td:pl-0 max-w-6xl bg-white dark:bg-base-dark-850 dark:prose-invert md:pr-8 md:mt-4 px-4 md:px-auto mx-auto overflow-x-auto overflow-y-hidden"
phx-hook="Docs"
>
<div
id="module-docs"

View file

@ -31,10 +31,6 @@
<% end %>
<%= @inner_content %>
<%= if @live_action == :docs do %>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.init(".mermaid")</script>
<% end %>
<%= if @live_action == :media do %>
<script src="https://platform.twitter.com/widgets.js" charset="utf-8" ></script>
<% end %>