Skip to content

Commit 5db21da

Browse files
committed
feat: avatar component
1 parent 57230d2 commit 5db21da

16 files changed

Lines changed: 555 additions & 8 deletions

File tree

packages/build/vite-config/src/vite-plugins/devAliasPlugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const getDevAlias = (useSourceAlias) => {
6666
'@opentiny/tiny-engine-layout': path.resolve(basePath, 'packages/layout/index.ts'),
6767
'@opentiny/tiny-engine-configurator': path.resolve(basePath, 'packages/configurator/src/index.ts'),
6868
'@opentiny/tiny-engine-block-compiler': path.resolve(basePath, 'packages/block-compiler/src/index.ts'),
69-
'@opentiny/tiny-engine-collab-ui-cursor': path.resolve(basePath, 'packages/collab-ui/cursor/index.ts')
69+
'@opentiny/tiny-engine-collab-ui-cursor': path.resolve(basePath, 'packages/collab-ui/cursor/index.ts'),
70+
'@opentiny/tiny-engine-collab-ui-avatar': path.resolve(basePath, 'packages/collab-ui/avatar/index.ts')
7071
}
7172
}
7273

packages/collab-ui/avatar/assets/test.png

Loading

packages/collab-ui/avatar/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2023 - present TinyEngine Authors.
3+
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
4+
*
5+
* Use of this source code is governed by an MIT-style license.
6+
*
7+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10+
*
11+
*/
12+
13+
import entry from './src/Main.vue'
14+
import metaData from './meta'
15+
16+
export default {
17+
...metaData,
18+
entry
19+
}

packages/collab-ui/avatar/meta.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
id: 'engine.collabUI.avatar',
3+
type: 'collabUI',
4+
title: '用户头像展示'
5+
}

packages/collab-ui/avatar/mock/test.ts

Whitespace-only changes.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "@opentiny/tiny-engine-collab-ui-avatar",
3+
"version": "2.7.0",
4+
"publishConfig": {
5+
"access": "public"
6+
},
7+
"scripts": {
8+
"build": "vite build"
9+
},
10+
"type": "module",
11+
"main": "dist/index.js",
12+
"module": "dist/index.js",
13+
"files": [
14+
"dist"
15+
],
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/opentiny/tiny-engine",
19+
"directory": "packages/collab-ui/avatar"
20+
},
21+
"bugs": {
22+
"url": "https://github.com/opentiny/tiny-engine/issues"
23+
},
24+
"author": "OpenTiny Team",
25+
"license": "MIT",
26+
"homepage": "https://opentiny.design/tiny-engine",
27+
"dependencies": {
28+
"@opentiny/tiny-engine-common": "workspace:*",
29+
"@opentiny/tiny-engine-meta-register": "workspace:*",
30+
"@opentiny/tiny-engine-utils": "workspace:*",
31+
"@opentiny/tiny-engine-canvas": "workspace:*",
32+
"@opentiny/tiny-engine-multi-person-collaboration": "workspace:*"
33+
},
34+
"devDependencies": {
35+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "workspace:*",
36+
"@vitejs/plugin-vue": "^5.1.2",
37+
"@vitejs/plugin-vue-jsx": "^4.0.1",
38+
"vite": "^5.4.2"
39+
},
40+
"peerDependencies": {
41+
"@opentiny/vue": "^3.20.0",
42+
"@opentiny/vue-icon": "^3.20.0",
43+
"@opentiny/vue-renderless": "^3.20.0",
44+
"vue": "^3.4.15"
45+
}
46+
}

0 commit comments

Comments
 (0)