generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use lit element to refactor widget component
Signed-off-by: Ryan Wang <[email protected]>
- Loading branch information
Showing
83 changed files
with
5,177 additions
and
14,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"env": { | ||
"browser": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"arrowParens": "always" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,41 @@ | ||
{ | ||
"name": "@halo-dev/comment-widget", | ||
"version": "1.3.0", | ||
"private": false, | ||
"files": [ | ||
"dist" | ||
"author": { | ||
"name": "Halo", | ||
"url": "https://github.com/halo-dev" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Ryan Wang", | ||
"url": "https://github.com/ruibaby" | ||
} | ||
], | ||
"type": "module", | ||
"main": "./dist/halo-comment-widget.es.js", | ||
"module": "./dist/halo-comment-widget.es.js", | ||
"unpkg": "./dist/halo-comment-widget.umd.js", | ||
"jsdelivr": "./dist/halo-comment-widget.umd.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"dev": "vite build --watch --mode development", | ||
"build": "run-p type-check build-only", | ||
"preview": "vite preview --port 4173", | ||
"test:unit": "vitest --environment jsdom", | ||
"build-only": "vite build", | ||
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false", | ||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", | ||
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'", | ||
"gen-types": "tsc -d --emitDeclarationOnly && vue-typegen gen -s src -o dist", | ||
"release": "release-it" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/halo-comment-widget.es.js" | ||
}, | ||
"./dist/style.css": "./dist/style.css" | ||
"import": "./dist/index.js" | ||
} | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"dev": "tsc -w", | ||
"build": "tsc", | ||
"lint": "lit-analyzer && eslint 'src/**/*.ts'", | ||
"prettier": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.gitignore --write" | ||
}, | ||
"dependencies": { | ||
"@halo-dev/api-client": "^2.9.0", | ||
"@halo-dev/components": "^1.5.0", | ||
"autosize": "^6.0.1", | ||
"@halo-dev/api-client": "^2.12.0", | ||
"@lit/context": "^1.1.0", | ||
"dayjs": "^1.11.10", | ||
"emoji-mart-vue-fast": "^12.0.5", | ||
"emoji-mart": "^5.5.2", | ||
"javascript-time-ago": "^2.5.9", | ||
"lodash.clonedeep": "^4.5.0" | ||
"lit": "^3.1.2" | ||
}, | ||
"devDependencies": { | ||
"@iconify-json/mdi": "^1.1.52", | ||
"@tailwindcss/forms": "^0.5.6", | ||
"@types/autosize": "^4.0.1", | ||
"@types/lodash.clonedeep": "^4.5.7", | ||
"@types/qs": "^6.9.7", | ||
"@types/uuid": "^8.3.4", | ||
"autoprefixer": "^10.4.14", | ||
"postcss": "^8.4.24", | ||
"prettier-plugin-tailwindcss": "^0.1.13", | ||
"release-it": "^15.11.0", | ||
"sass": "^1.62.1", | ||
"tailwindcss": "^3.3.3", | ||
"tailwindcss-themer": "^2.0.3", | ||
"unplugin-icons": "^0.14.15", | ||
"vue-typegen": "^0.2.0" | ||
"lit-analyzer": "^1.2.1" | ||
} | ||
} |
Oops, something went wrong.