Skip to content

Commit

Permalink
Use jsdelivr for zenuml/core.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Jun 26, 2024
1 parent e58032d commit 42d8dc5
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-tooltip": "^1.0.7",
"@zenuml/core": "3.22.1",
"@zenuml/core": "3.23.26",
"clsx": "^2.0.0",
"code-blast-codemirror": "chinchang/code-blast-codemirror#web-maker",
"codemirror": "^5.65.16",
Expand Down
7 changes: 1 addition & 6 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { trackEvent } from './analytics';
import { computeHtml, computeCss, computeJs } from './computes';
import { JsModes } from './codeModes';
import { deferred } from './deferred';
import Vue from '!!file-loader!vue/dist/vue.global';
import Vuex from '!!file-loader!vuex/dist/vuex.global';
import zenuml from '!!file-loader!@zenuml/core/dist/zenuml';
const esprima = require('esprima');

// window.Store = Store;
Expand Down Expand Up @@ -280,9 +277,7 @@ export function getCompleteHtml(html, css, js, item) {
html +
'\n';

contents += '<script src="' + getUrl(Vue) + '"></script>';
contents += '<script src="' + getUrl(Vuex) + '"></script>';
contents += '<script src="' + getUrl(zenuml) + '"></script>';
contents += '<script src="https://cdn.jsdelivr.net/npm/@zenuml/core@3.23.26/dist/zenuml.js"></script>';

if (item.jsMode === JsModes.ES6) {
contents +=
Expand Down
Loading

0 comments on commit 42d8dc5

Please sign in to comment.