Skip to content

Commit

Permalink
feat: update blink-mind to v0.0.20-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
awehook committed Jan 7, 2020
1 parent 986ca5f commit 99bda32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "MIT",
"homepage": "https://awehook.github.io/react-mindmap/",
"dependencies": {
"@blink-mind/core": "0.0.20-beta.5",
"@blink-mind/icons": "0.0.20-beta.5",
"@blink-mind/plugin-json-serializer": "0.0.20-beta.5",
"@blink-mind/plugin-rich-text-editor": "0.0.20-beta.5",
"@blink-mind/plugin-theme-selector": "0.0.20-beta.5",
"@blink-mind/plugin-topology-diagram": "0.0.20-beta.5",
"@blink-mind/plugins": "0.0.20-beta.5",
"@blink-mind/renderer-react": "0.0.20-beta.5",
"@blink-mind/core": "0.0.20-beta.6",
"@blink-mind/icons": "0.0.20-beta.6",
"@blink-mind/plugin-json-serializer": "0.0.20-beta.6",
"@blink-mind/plugin-rich-text-editor": "0.0.20-beta.6",
"@blink-mind/plugin-theme-selector": "0.0.20-beta.6",
"@blink-mind/plugin-topology-diagram": "0.0.20-beta.6",
"@blink-mind/plugins": "0.0.20-beta.6",
"@blink-mind/renderer-react": "0.0.20-beta.6",
"@blueprintjs/core": "^3.17.2",
"classnames": "^2.2.6",
"cross-env": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/component/toolbar/toolbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import cx from "classnames";
import "./Toolbar.css";
import { iconClassName, Icon } from "@blink-mind/renderer-react";
import { iconClassName } from "@blink-mind/renderer-react";
import { ToolbarItemOpen } from "./toolbar-item-open";
import { ToolbarItemLayout } from "./toolbar-item-layout";
import { ToolbarItemTheme } from "./toolbar-item-theme";
Expand Down
13 changes: 2 additions & 11 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { Model } from "@blink-mind/core";

export function createKey() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
const r = (Math.random() * 16) | 0,
v = c == 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
import { Model, createKey } from "@blink-mind/core";

export const downloadFile = (url, filename) => {
const link = document.createElement("a");
Expand All @@ -16,15 +8,14 @@ export const downloadFile = (url, filename) => {
};

export function generateSimpleModel() {

const rootKey = createKey();

return Model.create({
rootTopicKey: rootKey,
topics: [
{
key: rootKey,
blocks: [{ type: "CONTENT", data: "MainTopic" }],
blocks: [{ type: "CONTENT", data: "MainTopic" }]
}
]
});
Expand Down

0 comments on commit 99bda32

Please sign in to comment.