Skip to content

Commit

Permalink
release: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed May 3, 2023
1 parent 5f68c90 commit 25368a1
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 239 deletions.
1 change: 1 addition & 0 deletions icons/iconfont.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions index.js

This file was deleted.

7 changes: 3 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import MindElixir, { E } from 'mind-elixir'
import example from 'mind-elixir/dist/example1'

import pluginName from './nodeMenu'
// import pluginName from '@mind-elixir/plugin-name'
import nodeMenu from './nodeMenu'
// import nodeMenu from '@mind-elixir/plugin-name'

const app = document.querySelector('#app')
app.style.marginTop = '50px'
Expand Down Expand Up @@ -31,7 +31,6 @@ const options = {
],
},
toolBar: true,
nodeMenu: true,
keypress: true,
allowUndo: false,
before: {
Expand All @@ -54,7 +53,7 @@ const options = {
}

const mind = new MindElixir(options)
mind.install(pluginName)
mind.install(nodeMenu)
const data = MindElixir.new('new topic')
mind.init(example) // or try `example`
function sleep() {
Expand Down
2 changes: 2 additions & 0 deletions nodeMenu.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './nodeMenu.less'
import './icons/iconfont.js'
import i18n from './i18n.js'

const createDiv = (id, innerHTML) => {
Expand Down Expand Up @@ -30,6 +31,7 @@ const colorList = [
]

export default function (mind) {
console.log('install node menu')
function clearSelect(klass, remove) {
const elems = mind.container.querySelectorAll(klass)
;[].forEach.call(elems, function (el) {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"preview": "vite preview"
},
"devDependencies": {
"mind-elixir": "^1.2.0",
"less": "^4.1.3",
"mind-elixir": "^2.0.1",
"vite": "^3.0.0"
},
"dependencies": {
"less": "^4.1.3"
"peerDependencies": {
"mind-elixir": "^2.0.1"
}
}
Loading

0 comments on commit 25368a1

Please sign in to comment.