feat: yanmao.cc -> aomao.com
This commit is contained in:
parent
a0f8119038
commit
dddc6f28a1
|
@ -239,8 +239,8 @@ function getMenus(opts: { lang?: string; base: '/docs' | '/plugin' | '/api' }) {
|
|||
|
||||
export default defineConfig({
|
||||
title: 'AoMao Editor',
|
||||
favicon: 'https://cdn-object.yanmao.cc/icon/shortcut.png',
|
||||
logo: 'https://cdn-object.yanmao.cc/icon/icon.svg',
|
||||
favicon: 'https://cdn-object.aomao.com/icon/shortcut.png',
|
||||
logo: 'https://cdn-object.aomao.com/icon/icon.svg',
|
||||
outputPath: 'docs-dist',
|
||||
hash: true,
|
||||
mode: 'site',
|
||||
|
@ -280,7 +280,7 @@ export default defineConfig({
|
|||
},
|
||||
{
|
||||
title: 'AoMao',
|
||||
path: 'https://www.yanmao.cc',
|
||||
path: 'https://www.aomao.com',
|
||||
},
|
||||
{
|
||||
title: 'Github',
|
||||
|
@ -314,7 +314,7 @@ export default defineConfig({
|
|||
},
|
||||
{
|
||||
title: 'AoMao',
|
||||
path: 'https://www.yanmao.cc',
|
||||
path: 'https://www.aomao.com',
|
||||
},
|
||||
{
|
||||
title: 'Github',
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2021-present AoMao (me@yanmao.cc)
|
||||
Copyright (c) 2021-present AoMao (me@aomao.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
10
README.md
10
README.md
|
@ -6,8 +6,8 @@
|
|||
|
||||
<p align="center">
|
||||
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.zh-CN.md"><strong>中文</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc/docs"><strong>Documentation</strong></a> ·
|
||||
<a href="https://editor.aomao.com"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.aomao.com/docs"><strong>Documentation</strong></a> ·
|
||||
<a href="#plugins"><strong>Plugins</strong></a> ·
|
||||
<a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ-Group 907664876</strong></a> ·
|
||||
</p>
|
||||
|
@ -241,7 +241,7 @@ return (
|
|||
)
|
||||
```
|
||||
|
||||
For more complex toolbar configuration, please check the document [https://editor.yanmao.cc/config/toolbar](https://editor.yanmao.cc/config/toolbar)
|
||||
For more complex toolbar configuration, please check the document [https://editor.aomao.com/config/toolbar](https://editor.aomao.com/config/toolbar)
|
||||
|
||||
### Collaborative editing
|
||||
|
||||
|
@ -325,11 +325,11 @@ Thanks [pleasedmi](https://github.com/pleasedmi)、[Elena211314](https://github.
|
|||
|
||||
### Alipay
|
||||
|
||||
![alipay](https://cdn-object.yanmao.cc/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
![alipay](https://cdn-object.aomao.com/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### WeChat Pay
|
||||
|
||||
![wechat](https://cdn-object.yanmao.cc/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
![wechat](https://cdn-object.aomao.com/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### PayPal
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
<p align="center">
|
||||
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.md"><strong>English</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc/docs"><strong>文档</strong></a> ·
|
||||
<a href="https://editor.aomao.com"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.aomao.com/docs"><strong>文档</strong></a> ·
|
||||
<a href="#plugins"><strong>插件</strong></a> ·
|
||||
<a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ群 907664876</strong></a> ·
|
||||
</p>
|
||||
|
@ -243,7 +243,7 @@ return (
|
|||
)
|
||||
```
|
||||
|
||||
更复杂的工具栏配置请查看文档 [https://editor.yanmao.cc/zh-CN/config/toolbar](https://editor.yanmao.cc/zh-CN/config/toolbar)
|
||||
更复杂的工具栏配置请查看文档 [https://editor.aomao.com/zh-CN/config/toolbar](https://editor.aomao.com/zh-CN/config/toolbar)
|
||||
|
||||
### 协同编辑
|
||||
|
||||
|
@ -329,11 +329,11 @@ yarn serve
|
|||
|
||||
### 支付宝
|
||||
|
||||
![alipay](https://cdn-object.yanmao.cc/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
![alipay](https://cdn-object.aomao.com/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### 微信支付
|
||||
|
||||
![wechat](https://cdn-object.yanmao.cc/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
![wechat](https://cdn-object.aomao.com/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### PayPal
|
||||
|
||||
|
|
|
@ -110,9 +110,9 @@ Some plugins require the configuration of additional properties:
|
|||
[VideoUploader.pluginName]: {
|
||||
action: `${DOMAIN}/upload/video`,
|
||||
},
|
||||
// Mathematical formula generation address, the project is at: https://drawing.yanmao.cc
|
||||
// Mathematical formula generation address, the project is at: https://drawing.aomao.com
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if (res.success) return {result: true, data: res.svg };
|
||||
return {result: false };
|
||||
|
|
|
@ -110,9 +110,9 @@ console.log(view.language.get<string>('test'));
|
|||
[VideoUploader.pluginName]: {
|
||||
action: `${DOMAIN}/upload/video`,
|
||||
},
|
||||
// 数学公式生成地址,项目在:https://drawing.yanmao.cc
|
||||
// 数学公式生成地址,项目在:https://drawing.aomao.com
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if (res.success) return { result: true, data: res.svg };
|
||||
return { result: false };
|
||||
|
|
|
@ -48,7 +48,7 @@ Inline nodes have all the characteristics of style nodes, but inline nodes canno
|
|||
|
||||
```html
|
||||
<p>
|
||||
This is <a href="https://www.yanmao.cc">a <strong>link</strong></a>
|
||||
This is <a href="https://www.aomao.com">a <strong>link</strong></a>
|
||||
</p>
|
||||
```
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ DOM 节点在编辑器中是最重要的对象,编辑器数据结构就是一
|
|||
|
||||
```html
|
||||
<p>
|
||||
This is <a href="https://www.yanmao.cc">a <strong>link</strong></a>
|
||||
This is <a href="https://www.aomao.com">a <strong>link</strong></a>
|
||||
</p>
|
||||
```
|
||||
|
||||
|
|
|
@ -66,11 +66,11 @@ am-editor uses [dumi](https://d.umijs.org/) as a document site tool,
|
|||
|
||||
### Alipay
|
||||
|
||||
![alipay](https://cdn-object.yanmao.cc/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
![alipay](https://cdn-object.aomao.com/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### WeChat Pay
|
||||
|
||||
![wechat](https://cdn-object.yanmao.cc/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
![wechat](https://cdn-object.aomao.com/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### PayPal
|
||||
|
||||
|
|
|
@ -66,11 +66,11 @@ am-editor 使用 [dumi](https://d.umijs.org/) 作为文档站点工具,
|
|||
|
||||
### 支付宝
|
||||
|
||||
![alipay](https://cdn-object.yanmao.cc/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
![alipay](https://cdn-object.aomao.com/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### 微信支付
|
||||
|
||||
![wechat](https://cdn-object.yanmao.cc/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
![wechat](https://cdn-object.aomao.com/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### PayPal
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ Parameter 5: Whether the size can be changed, the default is true
|
|||
```ts
|
||||
engine.command.execute(
|
||||
Math.pluginName,
|
||||
'https://editor.yanmao.cc', // optional
|
||||
'https://editor.aomao.com', // optional
|
||||
'ico icon',
|
||||
'Display title',
|
||||
false,
|
||||
|
|
|
@ -60,7 +60,7 @@ renderBefore?:(url: string) => {url?: string
|
|||
```ts
|
||||
engine.command.execute(
|
||||
Math.pluginName,
|
||||
'https://editor.yanmao.cc', // 可选
|
||||
'https://editor.aomao.com', // 可选
|
||||
'ico 图标',
|
||||
'展示的标题',
|
||||
false,
|
||||
|
|
|
@ -46,7 +46,7 @@ new Engine(...,{
|
|||
//Modify shortcut keys
|
||||
hotkey:{
|
||||
key:"mod+k",
|
||||
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"]
|
||||
args:["_balnk_","https://www.aomao.com","ITELLYOU"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ Three parameters can be passed in [target?:string,href?:string,text?:string] Ope
|
|||
|
||||
```ts
|
||||
//target:'_blank','_parent','_top','_self', href: link, text: text
|
||||
engine.command.execute('link', '_blank', 'https://www.yanmao.cc', 'ITELLYOU');
|
||||
engine.command.execute('link', '_blank', 'https://www.aomao.com', 'ITELLYOU');
|
||||
//Use command to execute query current status, return boolean | undefined
|
||||
engine.command.queryState('link');
|
||||
```
|
||||
|
|
|
@ -46,7 +46,7 @@ new Engine(...,{
|
|||
//修改快捷键
|
||||
hotkey:{
|
||||
key:"mod+k",
|
||||
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"]
|
||||
args:["_balnk_","https://www.aomao.com","ITELLYOU"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ onConfirm?: (
|
|||
|
||||
```ts
|
||||
//target:'_blank', '_parent', '_top', '_self',href:链接,text:文字
|
||||
engine.command.execute('link', '_blank', 'https://www.yanmao.cc', 'ITELLYOU');
|
||||
engine.command.execute('link', '_blank', 'https://www.aomao.com', 'ITELLYOU');
|
||||
//使用 command 执行查询当前状态,返回 boolean | undefined
|
||||
engine.command.queryState('link');
|
||||
```
|
||||
|
|
|
@ -83,15 +83,15 @@ parse?: (
|
|||
|
||||
### Drawing interface
|
||||
|
||||
You can use the `https://g.yanmao.cc/latex` address to generate the `SVG` code corresponding to the formula. This project uses [mathjax](https://www.mathjax.org/) to generate `SVG` code
|
||||
You can use the `https://g.aomao.com/latex` address to generate the `SVG` code corresponding to the formula. This project uses [mathjax](https://www.mathjax.org/) to generate `SVG` code
|
||||
|
||||
Demo site: [https://drawing.yanmao.cc/](https://drawing.yanmao.cc/)
|
||||
Demo site: [https://drawing.aomao.com/](https://drawing.aomao.com/)
|
||||
|
||||
Configuration:
|
||||
|
||||
```ts
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if(res.success) return {result: true, data: res.svg}
|
||||
return {result: false}
|
||||
|
|
|
@ -83,15 +83,15 @@ parse?: (
|
|||
|
||||
### 画图接口
|
||||
|
||||
可以使用 `https://g.yanmao.cc/latex` 地址生成公式对应的 `SVG` 代码。该项目使用[mathjax](https://www.mathjax.org/) 生成 `SVG` 代码
|
||||
可以使用 `https://g.aomao.com/latex` 地址生成公式对应的 `SVG` 代码。该项目使用[mathjax](https://www.mathjax.org/) 生成 `SVG` 代码
|
||||
|
||||
演示站点:[https://drawing.yanmao.cc/](https://drawing.yanmao.cc/)
|
||||
演示站点:[https://drawing.aomao.com/](https://drawing.aomao.com/)
|
||||
|
||||
配置:
|
||||
|
||||
```ts
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if(res.success) return { result: true, data: res.svg}
|
||||
return { result: false}
|
||||
|
|
|
@ -157,7 +157,7 @@ export const pluginConfig: { [key: string]: PluginOptions } = {
|
|||
},
|
||||
},
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if (res.success) return { result: true, data: res.svg };
|
||||
return { result: false };
|
||||
|
|
|
@ -5,7 +5,7 @@ export const DOMAIN = IS_DEV
|
|||
? `http://${
|
||||
typeof window !== 'undefined' ? 'localhost:7001' : 'localhost:7001'
|
||||
}`
|
||||
: 'https://editor.yanmao.cc';
|
||||
: 'https://editor.aomao.com';
|
||||
|
||||
export const lang = (
|
||||
!isServer ? window.location.href.indexOf('zh-CN') > 0 : false
|
||||
|
|
|
@ -22,7 +22,7 @@ const getMember = () => {
|
|||
const wsUrl =
|
||||
IS_DEV && !isServer
|
||||
? `ws://${window.location.hostname}:8080`
|
||||
: 'wss://collab.yanmao.cc';
|
||||
: 'wss://collab.aomao.com';
|
||||
const member = getMember();
|
||||
|
||||
const getReadonlyValue =
|
||||
|
|
|
@ -52,7 +52,7 @@ import { createApp } from 'vue';
|
|||
import Loading from './loading.vue';
|
||||
import MentionPopover from './mention.vue';
|
||||
|
||||
const DOMAIN = 'https://editor.yanmao.cc/api';
|
||||
const DOMAIN = 'https://editor.aomao.com/api';
|
||||
|
||||
export const plugins: Array<PluginEntry> = [
|
||||
Redo,
|
||||
|
@ -144,7 +144,7 @@ export const pluginConfig: { [key: string]: PluginOptions } = {
|
|||
},
|
||||
},
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if (res.success) return { result: true, data: res.svg };
|
||||
return { result: false };
|
||||
|
|
|
@ -25,6 +25,6 @@
|
|||
"type": "git",
|
||||
"url": ""
|
||||
},
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"main": "dist/index.js",
|
||||
"module": "dist/index.esm.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
<p align="center">
|
||||
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.md"><strong>English</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.yanmao.cc/docs"><strong>文档</strong></a> ·
|
||||
<a href="https://editor.aomao.com"><strong>Demo</strong></a> ·
|
||||
<a href="https://editor.aomao.com/docs"><strong>文档</strong></a> ·
|
||||
<a href="#plugins"><strong>插件</strong></a> ·
|
||||
<a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ群 907664876</strong></a> ·
|
||||
</p>
|
||||
|
@ -235,7 +235,7 @@ return (
|
|||
)
|
||||
```
|
||||
|
||||
更复杂的工具栏配置请查看文档 [https://editor.yanmao.cc/zh-CN/config/toolbar](https://editor.yanmao.cc/zh-CN/config/toolbar)
|
||||
更复杂的工具栏配置请查看文档 [https://editor.aomao.com/zh-CN/config/toolbar](https://editor.aomao.com/zh-CN/config/toolbar)
|
||||
|
||||
### 协同编辑
|
||||
|
||||
|
@ -321,11 +321,11 @@ yarn serve
|
|||
|
||||
### 支付宝
|
||||
|
||||
![alipay](https://cdn-object.yanmao.cc/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
![alipay](https://cdn-object.aomao.com/contribution/alipay.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### 微信支付
|
||||
|
||||
![wechat](https://cdn-object.yanmao.cc/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
![wechat](https://cdn-object.aomao.com/contribution/weichat.png?x-oss-process=image/resize,w_200)
|
||||
|
||||
### PayPal
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -60,7 +60,7 @@ renderBefore?:(url: string) => {url?: string
|
|||
```ts
|
||||
engine.command.execute(
|
||||
Math.pluginName,
|
||||
'https://editor.yanmao.cc', // 可选
|
||||
'https://editor.aomao.com', // 可选
|
||||
'ico 图标',
|
||||
'展示的标题',
|
||||
false,
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -34,7 +34,7 @@ new Engine(...,{
|
|||
//修改快捷键
|
||||
hotkey:{
|
||||
key:"mod+k",
|
||||
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"]
|
||||
args:["_balnk_","https://www.aomao.com","ITELLYOU"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ new Engine(...,{
|
|||
|
||||
```ts
|
||||
//target:'_blank', '_parent', '_top', '_self',href:链接,text:文字
|
||||
engine.command.execute('link', '_blank', 'https://www.yanmao.cc', 'ITELLYOU');
|
||||
engine.command.execute('link', '_blank', 'https://www.aomao.com', 'ITELLYOU');
|
||||
//使用 command 执行查询当前状态,返回 boolean | undefined
|
||||
engine.command.queryState('link');
|
||||
```
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -40,7 +40,7 @@ new Engine(...,{
|
|||
//修改快捷键
|
||||
hotkey:{
|
||||
key:"mod+k",
|
||||
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"]
|
||||
args:["_balnk_","https://www.aomao.com","ITELLYOU"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ new Engine(...,{
|
|||
|
||||
```ts
|
||||
//target:'_blank', '_parent', '_top', '_self',href:链接,text:文字
|
||||
engine.command.execute('link', '_blank', 'https://www.yanmao.cc', 'ITELLYOU');
|
||||
engine.command.execute('link', '_blank', 'https://www.aomao.com', 'ITELLYOU');
|
||||
//使用 command 执行查询当前状态,返回 boolean | undefined
|
||||
engine.command.queryState('link');
|
||||
```
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -83,15 +83,15 @@ parse?: (
|
|||
|
||||
### 画图接口
|
||||
|
||||
可以使用 `https://g.yanmao.cc/latex` 地址生成公式对应的 `SVG` 代码。该项目使用[mathjax](https://www.mathjax.org/) 生成 `SVG` 代码
|
||||
可以使用 `https://g.aomao.com/latex` 地址生成公式对应的 `SVG` 代码。该项目使用[mathjax](https://www.mathjax.org/) 生成 `SVG` 代码
|
||||
|
||||
演示站点:[https://drawing.yanmao.cc/](https://drawing.yanmao.cc/)
|
||||
演示站点:[https://drawing.aomao.com/](https://drawing.aomao.com/)
|
||||
|
||||
配置:
|
||||
|
||||
```ts
|
||||
[Math.pluginName]: {
|
||||
action: `https://g.yanmao.cc/latex`,
|
||||
action: `https://g.aomao.com/latex`,
|
||||
parse: (res: any) => {
|
||||
if(res.success) return { result: true, data: res.svg}
|
||||
return { result: false}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"keywords": [
|
||||
"Math"
|
||||
],
|
||||
"author": "ITELLYOU <me@yanmao.cc>",
|
||||
"author": "ITELLYOU <me@aomao.com>",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor/tree/main/plugins/plugin-math#readme",
|
||||
"main": "dist/index.ts",
|
||||
"module": "dist/index.esm.js",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"Mind",
|
||||
"脑图"
|
||||
],
|
||||
"author": "ITELLYOU <me@yanmao.cc>",
|
||||
"author": "ITELLYOU <me@aomao.com>",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor/tree/main/plugins/plugin-mind#readme",
|
||||
"main": "dist/index.ts",
|
||||
"module": "dist/index.esm.js",
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "@aomao/plugin-table",
|
||||
"version": "2.6.15",
|
||||
"description": "table plugin",
|
||||
"author": "AoMao <me@yanmao.cc>",
|
||||
"author": "AoMao <me@aomao.com>",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor/tree/master/plugins/plugin-table#readme",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.ts",
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"lib",
|
||||
"src"
|
||||
],
|
||||
"author": "me@yanmao.cc",
|
||||
"author": "me@aomao.com",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/yanmao-cc/am-editor#readme",
|
||||
"repository": {
|
||||
|
|
|
@ -6,7 +6,7 @@ module.exports = (appInfo, appConfig = {}) => {
|
|||
|
||||
// use for cookie sign key, should change to your own and keep security
|
||||
config.keys = appInfo.name + '_1513765449219_5858';
|
||||
config.domain = 'https://editor.yanmao.cc';
|
||||
config.domain = 'https://editor.aomao.com';
|
||||
config.umiServerPath = '../public/umi.server';
|
||||
// add your config here
|
||||
config.middleware = [];
|
||||
|
|
Loading…
Reference in New Issue