Skip to content

Commit

Permalink
feat: basic comments component
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jan 29, 2023
0 parents commit 77eac8e
Show file tree
Hide file tree
Showing 15 changed files with 1,190 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Jwc.js

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# @mogland/mog-comments-wc

<pre align="center">
🧪 Working in Progress
</pre>

## Description

This is a web component that allows users to comment on a page. powered by [mog](https://mog.js.org/) and [jwcjs](https://jwc.js.org/)

## Installation

```bash
npm i @mogland/mog-comments-wc
yarn add @mogland/mog-comments-wc
pnpm add @mogland/mog-comments-wc
```

## Usage

```html
<mog-comments-wc></mog-comments-wc>
```

## Author

@mogland/mog-comments-wc © Wibus, Released under AGPLv3. Created on Jan 29, 2023

> [Personal Website](http://iucky.cn/) · [Blog](https://blog.iucky.cn/) · GitHub [@wibus-wee](https://github.com/wibus-wee/) · Telegram [@wibus](https://t.me/wibus_wee)
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite + Jwc.js App</title>
<link rel="stylesheet" href="./src/index.css">
<script type="module" src="./src/index.ts"></script>
</head>
<body>
<app-element
api="http://192.168.3.4:2330/"
pid="63bed80541aaa292059ec7f1"
></app-element>
</body>
</html>
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "mog-comments-wc",
"version": "1.0.0",
"description": "A web component for mog comments",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"jwcjs": "0.1.0-alpha.0",
"vite": "^4.0.1"
},
"dependencies": {
"emoji-mart": "^5.5.2",
"md5": "^2.3.0"
}
}
Loading

0 comments on commit 77eac8e

Please sign in to comment.