feat: yanmao.cc -> aomao.com

This commit is contained in:
yanmao 2021-12-05 00:37:05 +08:00
parent a0f8119038
commit dddc6f28a1
71 changed files with 101 additions and 101 deletions

View File

@ -239,8 +239,8 @@ function getMenus(opts: { lang?: string; base: '/docs' | '/plugin' | '/api' }) {
export default defineConfig({ export default defineConfig({
title: 'AoMao Editor', title: 'AoMao Editor',
favicon: 'https://cdn-object.yanmao.cc/icon/shortcut.png', favicon: 'https://cdn-object.aomao.com/icon/shortcut.png',
logo: 'https://cdn-object.yanmao.cc/icon/icon.svg', logo: 'https://cdn-object.aomao.com/icon/icon.svg',
outputPath: 'docs-dist', outputPath: 'docs-dist',
hash: true, hash: true,
mode: 'site', mode: 'site',
@ -280,7 +280,7 @@ export default defineConfig({
}, },
{ {
title: 'AoMao', title: 'AoMao',
path: 'https://www.yanmao.cc', path: 'https://www.aomao.com',
}, },
{ {
title: 'Github', title: 'Github',
@ -314,7 +314,7 @@ export default defineConfig({
}, },
{ {
title: 'AoMao', title: 'AoMao',
path: 'https://www.yanmao.cc', path: 'https://www.aomao.com',
}, },
{ {
title: 'Github', title: 'Github',

View File

@ -1,6 +1,6 @@
The MIT License (MIT) 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -6,8 +6,8 @@
<p align="center"> <p align="center">
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.zh-CN.md"><strong>中文</strong></a> · <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.aomao.com"><strong>Demo</strong></a> ·
<a href="https://editor.yanmao.cc/docs"><strong>Documentation</strong></a> · <a href="https://editor.aomao.com/docs"><strong>Documentation</strong></a> ·
<a href="#plugins"><strong>Plugins</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> · <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ-Group 907664876</strong></a> ·
</p> </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 ### Collaborative editing
@ -325,11 +325,11 @@ Thanks [pleasedmi](https://github.com/pleasedmi)、[Elena211314](https://github.
### Alipay ### 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 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 ### PayPal

View File

@ -6,8 +6,8 @@
<p align="center"> <p align="center">
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.md"><strong>English</strong></a> · <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.aomao.com"><strong>Demo</strong></a> ·
<a href="https://editor.yanmao.cc/docs"><strong>文档</strong></a> · <a href="https://editor.aomao.com/docs"><strong>文档</strong></a> ·
<a href="#plugins"><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> · <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ群 907664876</strong></a> ·
</p> </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 ### PayPal

View File

@ -110,9 +110,9 @@ Some plugins require the configuration of additional properties:
[VideoUploader.pluginName]: { [VideoUploader.pluginName]: {
action: `${DOMAIN}/upload/video`, 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]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if (res.success) return {result: true, data: res.svg }; if (res.success) return {result: true, data: res.svg };
return {result: false }; return {result: false };

View File

@ -110,9 +110,9 @@ console.log(view.language.get<string>('test'));
[VideoUploader.pluginName]: { [VideoUploader.pluginName]: {
action: `${DOMAIN}/upload/video`, action: `${DOMAIN}/upload/video`,
}, },
// 数学公式生成地址项目在https://drawing.yanmao.cc // 数学公式生成地址项目在https://drawing.aomao.com
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if (res.success) return { result: true, data: res.svg }; if (res.success) return { result: true, data: res.svg };
return { result: false }; return { result: false };

View File

@ -48,7 +48,7 @@ Inline nodes have all the characteristics of style nodes, but inline nodes canno
```html ```html
<p> <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> </p>
``` ```

View File

@ -48,7 +48,7 @@ DOM 节点在编辑器中是最重要的对象,编辑器数据结构就是一
```html ```html
<p> <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> </p>
``` ```

View File

@ -66,11 +66,11 @@ am-editor uses [dumi](https://d.umijs.org/) as a document site tool,
### Alipay ### 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 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 ### PayPal

View File

@ -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 ### PayPal

View File

@ -60,7 +60,7 @@ Parameter 5: Whether the size can be changed, the default is true
```ts ```ts
engine.command.execute( engine.command.execute(
Math.pluginName, Math.pluginName,
'https://editor.yanmao.cc', // optional 'https://editor.aomao.com', // optional
'ico icon', 'ico icon',
'Display title', 'Display title',
false, false,

View File

@ -60,7 +60,7 @@ renderBefore?:(url: string) => {url?: string
```ts ```ts
engine.command.execute( engine.command.execute(
Math.pluginName, Math.pluginName,
'https://editor.yanmao.cc', // 可选 'https://editor.aomao.com', // 可选
'ico 图标', 'ico 图标',
'展示的标题', '展示的标题',
false, false,

View File

@ -46,7 +46,7 @@ new Engine(...,{
//Modify shortcut keys //Modify shortcut keys
hotkey:{ hotkey:{
key:"mod+k", 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 ```ts
//target:'_blank','_parent','_top','_self', href: link, text: text //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 //Use command to execute query current status, return boolean | undefined
engine.command.queryState('link'); engine.command.queryState('link');
``` ```

View File

@ -46,7 +46,7 @@ new Engine(...,{
//修改快捷键 //修改快捷键
hotkey:{ hotkey:{
key:"mod+k", key:"mod+k",
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"] args:["_balnk_","https://www.aomao.com","ITELLYOU"]
} }
} }
} }
@ -91,7 +91,7 @@ onConfirm?: (
```ts ```ts
//target:'_blank', '_parent', '_top', '_self'href:链接text:文字 //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 //使用 command 执行查询当前状态,返回 boolean | undefined
engine.command.queryState('link'); engine.command.queryState('link');
``` ```

View File

@ -83,15 +83,15 @@ parse?: (
### Drawing interface ### 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: Configuration:
```ts ```ts
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if(res.success) return {result: true, data: res.svg} if(res.success) return {result: true, data: res.svg}
return {result: false} return {result: false}

View File

@ -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 ```ts
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if(res.success) return { result: true, data: res.svg} if(res.success) return { result: true, data: res.svg}
return { result: false} return { result: false}

View File

@ -157,7 +157,7 @@ export const pluginConfig: { [key: string]: PluginOptions } = {
}, },
}, },
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if (res.success) return { result: true, data: res.svg }; if (res.success) return { result: true, data: res.svg };
return { result: false }; return { result: false };

View File

@ -5,7 +5,7 @@ export const DOMAIN = IS_DEV
? `http://${ ? `http://${
typeof window !== 'undefined' ? 'localhost:7001' : 'localhost:7001' typeof window !== 'undefined' ? 'localhost:7001' : 'localhost:7001'
}` }`
: 'https://editor.yanmao.cc'; : 'https://editor.aomao.com';
export const lang = ( export const lang = (
!isServer ? window.location.href.indexOf('zh-CN') > 0 : false !isServer ? window.location.href.indexOf('zh-CN') > 0 : false

View File

@ -22,7 +22,7 @@ const getMember = () => {
const wsUrl = const wsUrl =
IS_DEV && !isServer IS_DEV && !isServer
? `ws://${window.location.hostname}:8080` ? `ws://${window.location.hostname}:8080`
: 'wss://collab.yanmao.cc'; : 'wss://collab.aomao.com';
const member = getMember(); const member = getMember();
const getReadonlyValue = const getReadonlyValue =

View File

@ -52,7 +52,7 @@ import { createApp } from 'vue';
import Loading from './loading.vue'; import Loading from './loading.vue';
import MentionPopover from './mention.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> = [ export const plugins: Array<PluginEntry> = [
Redo, Redo,
@ -144,7 +144,7 @@ export const pluginConfig: { [key: string]: PluginOptions } = {
}, },
}, },
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if (res.success) return { result: true, data: res.svg }; if (res.success) return { result: true, data: res.svg };
return { result: false }; return { result: false };

View File

@ -25,6 +25,6 @@
"type": "git", "type": "git",
"url": "" "url": ""
}, },
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT" "license": "MIT"
} }

View File

@ -21,7 +21,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.esm.js", "module": "dist/index.esm.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"author": "me@yanmao.cc", "author": "me@aomao.com",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -6,8 +6,8 @@
<p align="center"> <p align="center">
<a href="https://github.com/yanmao-cc/am-editor/blob/master/README.md"><strong>English</strong></a> · <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.aomao.com"><strong>Demo</strong></a> ·
<a href="https://editor.yanmao.cc/docs"><strong>文档</strong></a> · <a href="https://editor.aomao.com/docs"><strong>文档</strong></a> ·
<a href="#plugins"><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> · <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Gva5NtZ2USlHSLbFOeMroysk8Uwo7fCS&jump_from=webapi"><strong>QQ群 907664876</strong></a> ·
</p> </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 ### PayPal

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -14,7 +14,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -14,7 +14,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -60,7 +60,7 @@ renderBefore?:(url: string) => {url?: string
```ts ```ts
engine.command.execute( engine.command.execute(
Math.pluginName, Math.pluginName,
'https://editor.yanmao.cc', // 可选 'https://editor.aomao.com', // 可选
'ico 图标', 'ico 图标',
'展示的标题', '展示的标题',
false, false,

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -10,7 +10,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -34,7 +34,7 @@ new Engine(...,{
//修改快捷键 //修改快捷键
hotkey:{ hotkey:{
key:"mod+k", key:"mod+k",
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"] args:["_balnk_","https://www.aomao.com","ITELLYOU"]
} }
} }
} }
@ -66,7 +66,7 @@ new Engine(...,{
```ts ```ts
//target:'_blank', '_parent', '_top', '_self'href:链接text:文字 //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 //使用 command 执行查询当前状态,返回 boolean | undefined
engine.command.queryState('link'); engine.command.queryState('link');
``` ```

View File

@ -10,7 +10,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -40,7 +40,7 @@ new Engine(...,{
//修改快捷键 //修改快捷键
hotkey:{ hotkey:{
key:"mod+k", key:"mod+k",
args:["_balnk_","https://www.yanmao.cc","ITELLYOU"] args:["_balnk_","https://www.aomao.com","ITELLYOU"]
} }
} }
} }
@ -72,7 +72,7 @@ new Engine(...,{
```ts ```ts
//target:'_blank', '_parent', '_top', '_self'href:链接text:文字 //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 //使用 command 执行查询当前状态,返回 boolean | undefined
engine.command.queryState('link'); engine.command.queryState('link');
``` ```

View File

@ -10,7 +10,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -13,7 +13,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -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 ```ts
[Math.pluginName]: { [Math.pluginName]: {
action: `https://g.yanmao.cc/latex`, action: `https://g.aomao.com/latex`,
parse: (res: any) => { parse: (res: any) => {
if(res.success) return { result: true, data: res.svg} if(res.success) return { result: true, data: res.svg}
return { result: false} return { result: false}

View File

@ -5,7 +5,7 @@
"keywords": [ "keywords": [
"Math" "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", "homepage": "https://github.com/yanmao-cc/am-editor/tree/main/plugins/plugin-math#readme",
"main": "dist/index.ts", "main": "dist/index.ts",
"module": "dist/index.esm.js", "module": "dist/index.esm.js",

View File

@ -13,7 +13,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -6,7 +6,7 @@
"Mind", "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", "homepage": "https://github.com/yanmao-cc/am-editor/tree/main/plugins/plugin-mind#readme",
"main": "dist/index.ts", "main": "dist/index.ts",
"module": "dist/index.esm.js", "module": "dist/index.esm.js",

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -2,7 +2,7 @@
"name": "@aomao/plugin-table", "name": "@aomao/plugin-table",
"version": "2.6.15", "version": "2.6.15",
"description": "table plugin", "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", "homepage": "https://github.com/yanmao-cc/am-editor/tree/master/plugins/plugin-table#readme",
"license": "MIT", "license": "MIT",
"main": "dist/index.ts", "main": "dist/index.ts",

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -9,7 +9,7 @@
"lib", "lib",
"src" "src"
], ],
"author": "me@yanmao.cc", "author": "me@aomao.com",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/yanmao-cc/am-editor#readme", "homepage": "https://github.com/yanmao-cc/am-editor#readme",
"repository": { "repository": {

View File

@ -6,7 +6,7 @@ module.exports = (appInfo, appConfig = {}) => {
// use for cookie sign key, should change to your own and keep security // use for cookie sign key, should change to your own and keep security
config.keys = appInfo.name + '_1513765449219_5858'; config.keys = appInfo.name + '_1513765449219_5858';
config.domain = 'https://editor.yanmao.cc'; config.domain = 'https://editor.aomao.com';
config.umiServerPath = '../public/umi.server'; config.umiServerPath = '../public/umi.server';
// add your config here // add your config here
config.middleware = []; config.middleware = [];