This commit is contained in:
sidharthv96
2022-03-14 12:23:56 +00:00
parent 5b9c7ea997
commit 7a79863bf1
19 changed files with 1493 additions and 52 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
let a="",e="";function t(s){a=s.base,e=s.assets||a}export{e as a,a as b,t as s};
+1
View File
@@ -0,0 +1 @@
let t;function n(i){t=i.client}export{t as c,n as i};
+18
View File
@@ -0,0 +1,18 @@
var b=Object.defineProperty,k=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var m=(e,t,s)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,a=(e,t)=>{for(var s in t||(t={}))L.call(t,s)&&m(e,s,t[s]);if(u)for(var s of u(t))_.call(t,s)&&m(e,s,t[s]);return e},o=(e,t)=>k(e,v(t));import{D as h,L as C,M as T,N as O,O as D,P as N,Q as w,R as A,T as E,U as z,V as d}from"./vendor-5dd41a27.js";import{_ as f}from"./preload-helper-1db36302.js";const J={loading:!1},p=h(J),H=async(e,t)=>{p.set({loading:!0,message:e});const s=await t;return p.set({loading:!1}),s};let l;const M=async()=>{if(!l)try{const{Analytics:e}=await f(()=>import("./analytics.browser.es-6fbc7285.js"),[]),t=await f(()=>import("./analytics-plugin-ga.browser.es-1cdb0512.js"),[]);l=e({app:"mermaid-live-editor",plugins:[t.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}},R=e=>e.replace(/^\s*%%.*\n/g,`
`).trimStart().split(" ")[0];let g;const P=e=>{l&&(clearTimeout(g),g=setTimeout(function(){const t=R(e);console.debug("ga:","send","event","render",t),l.track("render",{graphType:t})},5e3))},U={serialize:e=>N(e,!0),deserialize:e=>w(e)},I={serialize:e=>{const t=new TextEncoder().encode(e),s=T(t,{level:9});return C(s,!0)},deserialize:e=>{const t=O(e);return D(t,{to:"string"})}},c={base64:U,pako:I},B=e=>{const t=JSON.stringify(e),s="pako",n=c[s].serialize(t);return`${s}:${n}`},G=e=>{let t,s;if(e.includes(":")){let r;if([r,s]=e.split(":"),r in c)t=r;else throw new Error(`Unknown serde type: ${r}`)}else t="base64",s=e;const n=c[t].deserialize(s);return JSON.parse(n)},$={code:`graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
`,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},j=`graph TD
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
B --> C{Is the JSON correct?}
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
C -->|No| E{Did someone <br/>send you this link?}
E -->|Yes| F[Ask them to send <br/>you the complete link]
E -->|No| G{Did you copy <br/> the complete URL?}
G --> |Yes| D
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,i=A(h($),E(),"codeStore"),x=z([i],([e],t)=>{t(B(e))}),Q=e=>{let t;console.log("Loading",e);try{t=G(e);const s=typeof t.mermaid=="string"?JSON.parse(t.mermaid):t.mermaid;s.securityLevel&&s.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${s.securityLevel}" from the config for safety.
Click Cancel if you trust the source of this Diagram.`)&&delete s.securityLevel,t.mermaid=JSON.stringify(s,null,2)}catch(s){t=d(i),e&&(console.error("Init error",s),t.code=j)}S(o(a({},t),{updateEditor:!0}))},S=e=>{i.update(t=>a(a({},t),e))};let y=!1;const W=(e,t,s=!1)=>{if(P(e),(e.match(/\n/g)||"").length+1>50&&!y&&d(i).autoSync){const r=confirm("Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.");y=!0,r&&S({autoSync:!1})}i.update(r=>o(a({},r),{code:e,updateEditor:t,updateDiagram:s}))},q=(e,t)=>{i.update(s=>o(a({},s),{mermaid:e,updateEditor:t}))},K=e=>{i.update(t=>{const s=JSON.parse(t.mermaid);return(!s.theme||["dark","default"].includes(s.theme))&&(s.theme=e?"dark":"default"),o(a({},t),{mermaid:JSON.stringify(s,null,2),updateEditor:!0})})},X=()=>{x.subscribe(e=>{history.replaceState(void 0,void 0,`#${e}`)})},Z=()=>JSON.stringify(d(i));export{l as a,q as b,i as c,$ as d,S as e,X as f,Z as g,M as h,H as i,Q as j,p as l,I as p,x as s,K as t,W as u};
+1
View File
@@ -0,0 +1 @@
import{R as t,T as e,D as o}from"./vendor-5dd41a27.js";const r=t(o({isDark:!1}),e(),"themeStore"),l=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],c=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=l.includes(s);console.log("Setting theme",s),r.set({theme:s,isDark:a})};export{c as s,r as t};
+1
View File
@@ -0,0 +1 @@
var K=Object.defineProperty,W=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(t,e,a)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,_=(t,e)=>{for(var a in e||(e={}))Y.call(e,a)&&O(t,a,e[a]);if(L)for(var a of L(e))Z.call(e,a)&&O(t,a,e[a]);return t},w=(t,e)=>W(t,X(e));import{D as f,S as x,i as B,s as Q,e as T,c as U,a as G,d as S,b as p,a4 as g,g as $,G as tt,W as j,K as et,v as at,ah as ot,ai as F,Z as R,R as I,T as E,U as st,aj as rt,V as b}from"./vendor-5dd41a27.js";import{c as v,d as D,e as C,i as it,f as nt,h as ct,a as lt,j as ut}from"./state-b8864def.js";const dt=f(void 0);function ft(t){let e,a;return{c(){e=T("div"),a=T("div"),this.h()},l(s){e=U(s,"DIV",{id:!0,class:!0});var o=G(e);a=U(o,"DIV",{id:!0,class:!0}),G(a).forEach(S),o.forEach(S),this.h()},h(){p(a,"id","container"),p(a,"class","flex-1 overflow-auto"),p(e,"id","view"),p(e,"class","p-2 svelte-5ndy2s"),g(e,"error",t[2]),g(e,"outOfSync",t[3])},m(s,o){$(s,e,o),tt(e,a),t[4](a),t[5](e)},p(s,[o]){o&4&&g(e,"error",s[2]),o&8&&g(e,"outOfSync",s[3])},i:j,o:j,d(s){s&&S(e),t[4](null),t[5](null)}}}function pt(t,e,a){let s;et(t,v,i=>a(9,s=i));let o="",u="",r,c,n=!1,l=!1,d=!0;at(()=>{v.subscribe(i=>{try{if(r&&i&&(i.updateDiagram||i.autoSync)){if(i.autoSync||ot(v,s.updateDiagram=!1,s),a(3,l=!1),d=!0,o===i.code&&u===i.mermaid)return;o=i.code,u=i.mermaid;const y=c.parentElement.scrollTop;delete r.dataset.processed,F.initialize(Object.assign({},JSON.parse(i.mermaid))),F.render("graph-div",o,z=>{a(0,r.innerHTML=z,r)}),a(1,c.parentElement.scrollTop=y,c),a(2,n=!1)}else d?d=!1:a(3,l=!0)}catch(y){console.log("view fail",y),a(2,n=!0)}}),dt.subscribe(i=>{typeof i=="undefined"?a(2,n=!1):(a(2,n=!0),console.log("Error: ",i))})});function J(i){R[i?"unshift":"push"](()=>{r=i,a(0,r)})}function q(i){R[i?"unshift":"push"](()=>{c=i,a(1,c)})}return[r,c,n,l,J,q]}class It extends x{constructor(e){super();B(this,e,pt,ft,Q,{})}}const gt=30,H=I(f("manual"),E(),"autoHistoryMode"),m=I(f([]),E(),"autoHistoryStore"),h=I(f([]),E(),"manualHistoryStore"),M=f([]),Et=st([H,m,h,M],([t,e,a,s],o)=>{o(t==="auto"?e:t==="manual"?a:t==="loader"?s:e)}),mt=t=>{if(t.type==="loader"){M.update(e=>[t,...e]);return}if(t.name=rt(2),t.type!=="auto"){h.update(e=>[t,...e]);return}m.update(e=>(e.length===gt&&e.pop(),[t,...e]))},Lt=t=>{(b(H)==="auto"?m:h).update(e=>(b(H)!=="loader"&&(e=e.filter(a=>t&&a.time!=t)),e))},Ot=t=>{const e=b(t?m:h);return e.length>0?JSON.stringify(e[0].state):""},P="code.mmd",V="config.json",ht=t=>P in t,N=async t=>t.truncated?await(await fetch(t.raw_url)).text():t.content,yt=async t=>{const[e,a,s,o]=t.split("github.com").pop().split("/"),{html_url:u,files:r,history:c}=await(await fetch(`https://api.github.com/gists/${s}${o?"/"+o:""}`)).json();if(ht(r)){const n=await N(r[P]);let l;V in r&&(l=await N(r[V]));const d=c[0];return{url:`${u}/${d.version}`,code:n,config:l,author:d.user.login,time:new Date(d.committed_at).getTime(),version:d.version.slice(-7)}}else throw"Invalid gist provided"},k=(t,e=t.url)=>{const a=w(_({},D),{code:t.code,loader:{type:"gist",config:{url:e}}});return t.config&&(a.mermaid=t.config),a},_t=async t=>{try{const[e,a,s,o]=t.split("github.com").pop().split("/"),{history:u}=await(await fetch(`https://api.github.com/gists/${s}${o?"/"+o:""}`)).json(),r=[];for(const n of u){const l=await yt(n.url).catch(()=>{});l&&r.push(l)}if(r.length===0)throw"Invalid gist provided";r.reverse();const c=k(r.slice(-1).pop(),t);for(const n of r)mt({state:k(n),time:n.time,type:"loader",url:n.url,name:`${n.author} v${n.version}`});return c}catch(e){console.error(e)}},A={gist:_t},wt=async()=>{const t=new URLSearchParams(window.location.search);let e=D,a,s,o=!1;const u=t.get("code"),r=t.get("config");if(u&&(a=await(await fetch(u)).text(),o=!0),r?s=await(await fetch(r)).text():s=D.mermaid,a)e={code:a,mermaid:s,loader:{type:"files",config:{codeURL:u,configURL:r}}};else for(const[c,n]of t.entries())if(c in A)try{e=await A[c](n),o=!0;break}catch(l){console.error(l)}o&&C(w(_({},e),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},St=()=>{ut(window.location.hash.slice(1))},vt=()=>{C({updateDiagram:!0})},Tt=async()=>{var t;St(),await it("Loading Gist...",wt().catch(console.error)),vt(),nt(),await ct(),(t=lt)==null||t.page()};export{It as V,Et as a,mt as b,Lt as c,dt as e,Ot as g,H as h,Tt as i,M as l,vt as s};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{S as h,i as w,s as y,e as E,t as v,c as d,a as b,h as P,d as o,g as u,G as R,j as N,k as S,l as C,m as j,W as G}from"./chunks/vendor-5dd41a27.js";function H(r){let l,t=r[1].frame+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&N(a,t)},d(f){f&&o(l)}}}function W(r){let l,t=r[1].stack+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&N(a,t)},d(f){f&&o(l)}}}function z(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&H(r),_=r[1].stack&&W(r);return{c(){l=E("h1"),t=v(r[0]),a=S(),f=E("pre"),c=v(s),k=S(),i&&i.c(),n=S(),_&&_.c(),p=C()},l(e){l=d(e,"H1",{});var m=b(l);t=P(m,r[0]),m.forEach(o),a=j(e),f=d(e,"PRE",{});var q=b(f);c=P(q,s),q.forEach(o),k=j(e),i&&i.l(e),n=j(e),_&&_.l(e),p=C()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&N(t,e[0]),m&2&&s!==(s=e[1].message+"")&&N(c,s),e[1].frame?i?i.p(e,m):(i=H(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=W(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:G,o:G,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function D({error:r,status:l}){return{props:{error:r,status:l}}}function A(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class F extends h{constructor(l){super();w(this,l,A,z,y,{status:0,error:1})}}export{F as default,D as load};
+42 -42
View File
@@ -1,13 +1,13 @@
{
".svelte-kit/runtime/client/start.js": {
"file": "start-2a05533d.js",
"file": "start-ad6a419b.js",
"src": ".svelte-kit/runtime/client/start.js",
"isEntry": true,
"imports": [
"_vendor-4f17f806.js",
"_vendor-5dd41a27.js",
"_paths-396f020f.js",
"_preload-helper-1db36302.js",
"_paths-4b3c6e7e.js",
"_singletons-a6a7384f.js"
"_singletons-d1fb5791.js"
],
"dynamicImports": [
"src/routes/__layout.svelte",
@@ -18,52 +18,52 @@
]
},
"src/routes/__layout.svelte": {
"file": "pages/__layout.svelte-650d62e9.js",
"file": "pages/__layout.svelte-5393d9c5.js",
"src": "src/routes/__layout.svelte",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_vendor-4f17f806.js",
"_paths-4b3c6e7e.js",
"_state-53e060b1.js",
"_theme-cdf18b87.js",
"_vendor-5dd41a27.js",
"_paths-396f020f.js",
"_state-b8864def.js",
"_theme-45e33caa.js",
"_preload-helper-1db36302.js"
],
"css": [
"assets/pages/__layout.svelte-f4075311.css"
"assets/pages/__layout.svelte-856da6fc.css"
]
},
".svelte-kit/runtime/components/error.svelte": {
"file": "error.svelte-9eb9f3fa.js",
"file": "error.svelte-884780f2.js",
"src": ".svelte-kit/runtime/components/error.svelte",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_vendor-4f17f806.js"
"_vendor-5dd41a27.js"
]
},
"src/routes/index.svelte": {
"file": "pages/index.svelte-6fbb3431.js",
"file": "pages/index.svelte-d4ccbcf1.js",
"src": "src/routes/index.svelte",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_vendor-4f17f806.js",
"_singletons-a6a7384f.js",
"_paths-4b3c6e7e.js"
"_vendor-5dd41a27.js",
"_singletons-d1fb5791.js",
"_paths-396f020f.js"
]
},
"src/routes/edit.svelte": {
"file": "pages/edit.svelte-64d5b55a.js",
"file": "pages/edit.svelte-99517c7d.js",
"src": "src/routes/edit.svelte",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_vendor-4f17f806.js",
"_state-53e060b1.js",
"_theme-cdf18b87.js",
"_util-2f018f36.js",
"_paths-4b3c6e7e.js",
"_vendor-5dd41a27.js",
"_state-b8864def.js",
"_theme-45e33caa.js",
"_util-ab218996.js",
"_paths-396f020f.js",
"_preload-helper-1db36302.js"
],
"css": [
@@ -71,33 +71,33 @@
]
},
"src/routes/view.svelte": {
"file": "pages/view.svelte-53a1d5b0.js",
"file": "pages/view.svelte-39c4f041.js",
"src": "src/routes/view.svelte",
"isEntry": true,
"isDynamicEntry": true,
"imports": [
"_vendor-4f17f806.js",
"_util-2f018f36.js",
"_state-53e060b1.js",
"_vendor-5dd41a27.js",
"_util-ab218996.js",
"_state-b8864def.js",
"_preload-helper-1db36302.js"
]
},
"_vendor-4f17f806.js": {
"file": "chunks/vendor-4f17f806.js"
"_vendor-5dd41a27.js": {
"file": "chunks/vendor-5dd41a27.js"
},
"_paths-4b3c6e7e.js": {
"file": "chunks/paths-4b3c6e7e.js"
"_paths-396f020f.js": {
"file": "chunks/paths-396f020f.js"
},
"_singletons-a6a7384f.js": {
"file": "chunks/singletons-a6a7384f.js"
"_singletons-d1fb5791.js": {
"file": "chunks/singletons-d1fb5791.js"
},
"_preload-helper-1db36302.js": {
"file": "chunks/preload-helper-1db36302.js"
},
"_state-53e060b1.js": {
"file": "chunks/state-53e060b1.js",
"_state-b8864def.js": {
"file": "chunks/state-b8864def.js",
"imports": [
"_vendor-4f17f806.js",
"_vendor-5dd41a27.js",
"_preload-helper-1db36302.js"
],
"dynamicImports": [
@@ -105,17 +105,17 @@
"node_modules/@analytics/google-analytics/lib/analytics-plugin-ga.browser.es.js"
]
},
"_theme-cdf18b87.js": {
"file": "chunks/theme-cdf18b87.js",
"_theme-45e33caa.js": {
"file": "chunks/theme-45e33caa.js",
"imports": [
"_vendor-4f17f806.js"
"_vendor-5dd41a27.js"
]
},
"_util-2f018f36.js": {
"file": "chunks/util-2f018f36.js",
"_util-ab218996.js": {
"file": "chunks/util-ab218996.js",
"imports": [
"_vendor-4f17f806.js",
"_state-53e060b1.js"
"_vendor-5dd41a27.js",
"_state-b8864def.js"
],
"css": [
"assets/util-c948b67a.css"
+1
View File
@@ -0,0 +1 @@
import{S as w,i as M,s as V,F as $,e as u,k as E,t as j,c as d,a as _,d as f,m as I,h as N,b as h,g as v,G as m,j as T,l as b,H as q,I as A,J as W,q as z,o as B,K as k,v as C}from"../chunks/vendor-5dd41a27.js";import{b as y}from"../chunks/paths-396f020f.js";import{t as F,l as G}from"../chunks/state-b8864def.js";import{s as H,t as S}from"../chunks/theme-45e33caa.js";import"../chunks/preload-helper-1db36302.js";function D(n){let o,i,l,r,c,s=n[0].message+"",t;return{c(){o=u("div"),i=u("div"),l=u("div"),r=E(),c=u("div"),t=j(s),this.h()},l(e){o=d(e,"DIV",{class:!0});var a=_(o);i=d(a,"DIV",{class:!0});var p=_(i);l=d(p,"DIV",{class:!0}),_(l).forEach(f),r=I(p),c=d(p,"DIV",{});var g=_(c);t=N(g,s),g.forEach(f),p.forEach(f),a.forEach(f),this.h()},h(){h(l,"class","loader mx-auto svelte-1ub1m40"),h(i,"class","text-indigo-100 text-4xl font-bold my-auto"),h(o,"class","w-screen h-screen z-50 absolute left-0 top-0 bg-gray-600 opacity-50 flex align-middle justify-center")},m(e,a){v(e,o,a),m(o,i),m(i,l),m(i,r),m(i,c),m(c,t)},p(e,a){a&1&&s!==(s=e[0].message+"")&&T(t,s)},d(e){e&&f(o)}}}function J(n){let o,i,l,r;const c=n[2].default,s=$(c,n,n[1],null);let t=n[0].loading&&D(n);return{c(){o=u("main"),s&&s.c(),i=E(),t&&t.c(),l=b(),this.h()},l(e){o=d(e,"MAIN",{class:!0});var a=_(o);s&&s.l(a),a.forEach(f),i=I(e),t&&t.l(e),l=b(),this.h()},h(){h(o,"class","h-screen text-primary-content")},m(e,a){v(e,o,a),s&&s.m(o,null),v(e,i,a),t&&t.m(e,a),v(e,l,a),r=!0},p(e,[a]){s&&s.p&&(!r||a&2)&&q(s,c,e,e[1],r?W(c,e[1],a,null):A(e[1]),null),e[0].loading?t?t.p(e,a):(t=D(e),t.c(),t.m(l.parentNode,l)):t&&(t.d(1),t=null)},i(e){r||(z(s,e),r=!0)},o(e){B(s,e),r=!1},d(e){e&&f(o),s&&s.d(e),e&&f(i),t&&t.d(e),e&&f(l)}}}function K(n,o,i){let l,r;k(n,S,t=>i(3,l=t)),k(n,G,t=>i(0,r=t));let{$$slots:c={},$$scope:s}=o;return C(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(`${y}/service-worker.js`,{scope:`${y}/`}).then(function(e){console.log("Registration successful, scope is:",e.scope)}).catch(function(e){console.log("Service worker registration failed, error:",e)});const t=window.matchMedia("(prefers-color-scheme: dark)").matches;l.theme===void 0&&H(t?"dark":"light"),S.subscribe(({theme:e,isDark:a})=>{e&&(document.getElementsByTagName("html")[0].setAttribute("data-theme",e),F(a))})}),n.$$set=t=>{"$$scope"in t&&i(1,s=t.$$scope)},[r,s,c]}class Q extends w{constructor(o){super();M(this,o,K,J,V,{})}}export{Q as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{S as s,i as n,s as i,v as r}from"../chunks/vendor-5dd41a27.js";import{c as t}from"../chunks/singletons-d1fb5791.js";import{b as l}from"../chunks/paths-396f020f.js";t.disable_scroll_handling;const c=t.goto;t.invalidate;t.prefetch;t.prefetch_routes;t.before_navigate;t.after_navigate;function f(o){return r(async()=>{const e=window.location.hash.split("/");let a="edit";e.length>2&&(a=`${e[1]}#${e[2]}`),await c(`${l}/${a}`,{replaceState:!0})}),[]}class d extends s{constructor(e){super();n(this,e,f,null,i,{})}}export{d as default};
+1
View File
@@ -0,0 +1 @@
import{S as r,i as s,s as i,w as m,x as c,y as u,W as f,q as p,o as l,B as _,v as $}from"../chunks/vendor-5dd41a27.js";import{V as d,i as g}from"../chunks/util-ab218996.js";import"../chunks/state-b8864def.js";import"../chunks/preload-helper-1db36302.js";function w(o){let t,e;return t=new d({}),{c(){m(t.$$.fragment)},l(n){c(t.$$.fragment,n)},m(n,a){u(t,n,a),e=!0},p:f,i(n){e||(p(t.$$.fragment,n),e=!0)},o(n){l(t.$$.fragment,n),e=!1},d(n){_(t,n)}}}function x(o){return $(g),[]}class S extends r{constructor(t){super();s(this,t,x,w,i,{})}}export{S as default};
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"version":"1647255013903"}
{"version":"1647260613621"}
+64
View File
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Online FlowChart &amp; Diagrams Editor - Mermaid Live Editor</title>
<meta
name="og:image"
content="https://github.com/mermaid-js/mermaid/raw/develop/img/header.png" />
<link rel="canonical" href="https://mermaid.live" />
<meta
name="description"
content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript." />
<link rel="icon" type="image/png" href="/mermaid-live-editor/favicon.png" />
<link rel="manifest" href="/mermaid-live-editor/manifest.json" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<script>
var require = {
paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs' }
};
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/loader.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.nls.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<meta http-equiv="content-security-policy" content="">
<link rel="modulepreload" href="/mermaid-live-editor/_app/start-ad6a419b.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/vendor-5dd41a27.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/paths-396f020f.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/preload-helper-1db36302.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/singletons-d1fb5791.js">
</head>
<body>
<div id="svelte">
<script type="module" data-hydrate="45h">
import { start } from "/mermaid-live-editor/_app/start-ad6a419b.js";
start({
target: document.querySelector('[data-hydrate="45h"]').parentNode,
paths: {"base":"/mermaid-live-editor","assets":"/mermaid-live-editor"},
session: {},
route: true,
spa: true,
trailing_slash: "ignore",
hydrate: null
});
</script></div>
</body>
</html>
+7 -7
View File
@@ -11,8 +11,8 @@
<meta
name="description"
content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript." />
<link rel="icon" type="image/png" href="//mermaid-live-editor/favicon.png" />
<link rel="manifest" href="//mermaid-live-editor/manifest.json" />
<link rel="icon" type="image/png" href="/mermaid-live-editor/favicon.png" />
<link rel="manifest" href="/mermaid-live-editor/manifest.json" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" />
@@ -40,16 +40,16 @@
referrerpolicy="no-referrer"></script>
<meta http-equiv="content-security-policy" content="">
<link rel="modulepreload" href="/mermaid-live-editor/_app/start-2a05533d.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/vendor-4f17f806.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/start-ad6a419b.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/vendor-5dd41a27.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/paths-396f020f.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/preload-helper-1db36302.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/paths-4b3c6e7e.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/singletons-a6a7384f.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/singletons-d1fb5791.js">
</head>
<body>
<div id="svelte">
<script type="module" data-hydrate="45h">
import { start } from "/mermaid-live-editor/_app/start-2a05533d.js";
import { start } from "/mermaid-live-editor/_app/start-ad6a419b.js";
start({
target: document.querySelector('[data-hydrate="45h"]').parentNode,
paths: {"base":"/mermaid-live-editor","assets":"/mermaid-live-editor"},
+64
View File
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Online FlowChart &amp; Diagrams Editor - Mermaid Live Editor</title>
<meta
name="og:image"
content="https://github.com/mermaid-js/mermaid/raw/develop/img/header.png" />
<link rel="canonical" href="https://mermaid.live" />
<meta
name="description"
content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript." />
<link rel="icon" type="image/png" href="/mermaid-live-editor/favicon.png" />
<link rel="manifest" href="/mermaid-live-editor/manifest.json" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<script>
var require = {
paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs' }
};
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/loader.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.nls.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.32.1/min/vs/editor/editor.main.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<meta http-equiv="content-security-policy" content="">
<link rel="modulepreload" href="/mermaid-live-editor/_app/start-ad6a419b.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/vendor-5dd41a27.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/paths-396f020f.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/preload-helper-1db36302.js">
<link rel="modulepreload" href="/mermaid-live-editor/_app/chunks/singletons-d1fb5791.js">
</head>
<body>
<div id="svelte">
<script type="module" data-hydrate="45h">
import { start } from "/mermaid-live-editor/_app/start-ad6a419b.js";
start({
target: document.querySelector('[data-hydrate="45h"]').parentNode,
paths: {"base":"/mermaid-live-editor","assets":"/mermaid-live-editor"},
session: {},
route: true,
spa: true,
trailing_slash: "ignore",
hydrate: null
});
</script></div>
</body>
</html>