Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add web-components #36

Merged
merged 14 commits into from
Dec 4, 2023
Merged

Add web-components #36

merged 14 commits into from
Dec 4, 2023

Conversation

zreren
Copy link
Contributor

@zreren zreren commented Nov 2, 2023

In order to #20 add web-components package in npm, first split the directory and place webcomponent separately in the webcomponents directory to publish to npm. More components ( For example, shortcut panel, level management ... ) will be added in the future.

@zreren zreren changed the title chore(structure): depart web-components Add web-components Nov 2, 2023
Copy link
Member

@a-wing a-wing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLA (Contributor License Agreement). Please

https://github.com/binbat/joyrtc/blob/main/.github/CLA.md#L46-L47


On the other hand, I don't build :-p

% npm run build

> webrtc-debuger@0.0.0 build
> tsc && vite build

../webcomponents/index.ts:2:31 - error TS2307: Cannot find module 'react' or its corresponding type declarations.

2 import { DOMAttributes } from "react"
                                ~~~~~~~

../webcomponents/model/joy-rtc.ts:1:22 - error TS2307: Cannot find module 'nipplejs' or its corresponding type declarations.

1 import nipplejs from "nipplejs";
                       ~~~~~~~~~~

../webcomponents/model/joy-rtc.ts:84:25 - error TS7006: Parameter '_' implicitly has an 'any' type.

84   instance1.on("move", (_, data) => {
                           ~

../webcomponents/model/joy-rtc.ts:84:28 - error TS7006: Parameter 'data' implicitly has an 'any' type.

84   instance1.on("move", (_, data) => {
                              ~~~~

../webcomponents/model/joy-rtc.ts:101:25 - error TS7006: Parameter '_' implicitly has an 'any' type.

101   instance2.on("move", (_, data) => {
                            ~

../webcomponents/model/joy-rtc.ts:101:28 - error TS7006: Parameter 'data' implicitly has an 'any' type.

101   instance2.on("move", (_, data) => {
                               ~~~~


Found 6 errors in 2 files.

Errors  Files
     1  ../webcomponents/index.ts:2
     5  ../webcomponents/model/joy-rtc.ts:1

webcomponents/index.ts Outdated Show resolved Hide resolved
@zreren zreren requested a review from a-wing November 17, 2023 04:34
@a-wing a-wing requested a review from rocka November 17, 2023 06:27
@a-wing a-wing added the enhancement New feature or request label Nov 17, 2023
webcomponents/index.html Outdated Show resolved Hide resolved
webcomponents/index.html Show resolved Hide resolved
webcomponents/index.ts Outdated Show resolved Hide resolved
webcomponents/vite.config.ts Show resolved Hide resolved
webcomponents/vite.config.ts Outdated Show resolved Hide resolved
@zreren zreren requested a review from rocka December 1, 2023 11:39
@a-wing a-wing merged commit 8120d67 into binbat:main Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants