Skip to content

Commit

Permalink
feat: add image parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
xueelf committed Nov 8, 2023
1 parent fff013a commit 5dbd0ba
Show file tree
Hide file tree
Showing 10 changed files with 712 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lib/
test/
node_modules/
package-lock.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 yuki
Copyright (c) 2022

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Read this in other languages: English | [简体中文](./README.zh.md)
{ nickname: 'yuki', avatar: '' },
{ nickname: 'kokkoro', avatar: '' },
],
}
},
};
```

Expand Down Expand Up @@ -106,7 +106,7 @@ Options are set within the [`window.$docsify`](https://docsify.js.org/#/configur
animation: 50,
// Panel navigation bar style, supporting "mac" and "windows"
os: 'mac',
}
},
};
</script>
```
Expand All @@ -126,8 +126,8 @@ You can also set the title for each chat panel individually in `<!-- title:xxx -
window.$docsify = {
// ...
chat: {
title: 'chat history'
}
title: 'chat history',
},
};
```

Expand Down Expand Up @@ -157,8 +157,8 @@ window.$docsify = {
users: [
{ nickname: 'yuki', avatar: 'images/yuki.png' },
{ nickname: 'kokkoro', avatar: 'images/kokkoro.png' },
]
}
],
},
};
```

Expand All @@ -175,8 +175,8 @@ Set your own global nickname, the dialog will be displayed on the right side of
window.$docsify = {
// ...
chat: {
myself: 'yuki'
}
myself: 'yuki',
},
};
```

Expand All @@ -193,8 +193,8 @@ Adjust the duration of the chat panel fade-in and fade-out animation.
window.$docsify = {
// ...
chat: {
animation: 50
}
animation: 50,
},
};
```

Expand All @@ -205,7 +205,7 @@ window.$docsify = {

Define the system style of the titlebar, support "mac" and "windows".

If it is not set, it will be based on the current browser ` navigator Platform ` Automatic rendering.
If it is not set, it will be based on the current browser `navigator Platform` Automatic rendering.

**Configuration**

Expand All @@ -214,7 +214,7 @@ window.$docsify = {
// ...
chat: {
os: 'mac',
}
},
};
```

Expand Down
22 changes: 11 additions & 11 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{ nickname: 'yuki', avatar: '' },
{ nickname: 'kokkoro', avatar: '' },
],
}
},
};
```

Expand Down Expand Up @@ -106,7 +106,7 @@
animation: 50,
// 面板导航栏风格,支持 "mac" 与 "windows"
os: 'mac',
}
},
};
</script>
```
Expand All @@ -126,8 +126,8 @@
window.$docsify = {
// ...
chat: {
title: '聊天记录'
}
title: '聊天记录',
},
};
```

Expand Down Expand Up @@ -157,8 +157,8 @@ window.$docsify = {
users: [
{ nickname: 'yuki', avatar: 'images/yuki.png' },
{ nickname: 'kokkoro', avatar: 'images/kokkoro.png' },
]
}
],
},
};
```

Expand All @@ -175,8 +175,8 @@ window.$docsify = {
window.$docsify = {
// ...
chat: {
myself: 'yuki'
}
myself: 'yuki',
},
};
```

Expand All @@ -193,8 +193,8 @@ window.$docsify = {
window.$docsify = {
// ...
chat: {
animation: 50
}
animation: 50,
},
};
```

Expand All @@ -214,7 +214,7 @@ window.$docsify = {
// ...
chat: {
os: 'mac',
}
},
};
```

Expand Down
8 changes: 4 additions & 4 deletions demo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "docsify-chat",
"version": "0.2.1",
"version": "0.3.0",
"description": "A docsify plugin for generate chat panel from markdown",
"type": "module",
"main": "lib/docsify-chat.js",
"scripts": {
"build": "rollup -c"
Expand All @@ -22,17 +23,18 @@
"plugin",
"chat"
],
"author": "yuki <[email protected]>",
"author": "Xue Elf <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/dcyuki/docsify-chat/issues"
},
"homepage": "https://github.com/dcyuki/docsify-chat#readme",
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"rollup-plugin-sass": "^1.12.16",
"rollup": "^4.3.0",
"rollup-plugin-sass": "^1.12.21",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.56.1"
"sass": "^1.69.5"
},
"files": [
"lib"
Expand Down
Loading

0 comments on commit 5dbd0ba

Please sign in to comment.