Skip to content

Commit

Permalink
chore: 执行prettier & stylus => less (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldshen authored and levy9527 committed Aug 9, 2019
1 parent 5261448 commit 6e59ddb
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 167 deletions.
44 changes: 22 additions & 22 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@ You can configure OSS information through environmental variables, customize dom

## Table of Contents

* [Feature](#feature)
* [Links](#links)
* [Install](#install)
* [Config](#config)
* [Dotenv](#dotenv)
* [Contributing](#contributing)
* [Contributors](#contributors)
* [License](#license)
- [Feature](#feature)
- [Links](#links)
- [Install](#install)
- [Config](#config)
- [Dotenv](#dotenv)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [License](#license)

## Feature

* Pure front-end implementation, no need for backend cooperation
* The upload function can be done with little oss configuration
* Automatically compress pictures before uploading, and loading prompts during uploading, support picture display and deletion
* With default styles and support customize
* Can limit the size or the number of files to upload
* Support paste screenshot to upload
* Can drag and drop to upload
* Can preivew img
- Pure front-end implementation, no need for backend cooperation
- The upload function can be done with little oss configuration
- Automatically compress pictures before uploading, and loading prompts during uploading, support picture display and deletion
- With default styles and support customize
- Can limit the size or the number of files to upload
- Support paste screenshot to upload
- Can drag and drop to upload
- Can preivew img

[⬆Back to Top](#table-of-contents)

## Links

* [docs](https://FEMessage.github.io/upload-to-ali/)
* [ali oss guide](docs/ali-oss-guide.md)
- [docs](https://FEMessage.github.io/upload-to-ali/)
- [ali oss guide](docs/ali-oss-guide.md)

[⬆ Back to Top](#table-of-contents)

Expand Down Expand Up @@ -89,10 +89,10 @@ OSS_CUSTOM_DOMAIN=cdn.xxx.com

For those who are interested in contributing to this project, such as:

* report a bug
* request new feature
* fix a bug
* implement a new feature
- report a bug
- request new feature
- fix a bug
- implement a new feature

Please refer to our [contributing guide](https://github.com/FEMessage/.github/blob/master/CONTRIBUTING.md).

Expand Down
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@

## Table of Contents

* [Feature](#feature)
* [Links](#links)
* [Install](#install)
* [Config](#config)
* [Dotenv](#dotenv)
* [Contributing](#contributing)
* [Contributors](#contributors)
* [License](#license)
- [Feature](#feature)
- [Links](#links)
- [Install](#install)
- [Config](#config)
- [Dotenv](#dotenv)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [License](#license)

## Feature

* 纯前端实现,不需要后台配合
* 只需配置 OSS 的基本信息,即可实现上传功能
* 上传前自动压缩图片,上传过程中有 loading 提示,支持图片显示及删除
* 可拓展自定义 loading 和默认上传样式
* 可限制上传文件大小和上传文件数量
* 可截图粘贴上传
* 可拖拽上传
* 可预览图片
- 纯前端实现,不需要后台配合
- 只需配置 OSS 的基本信息,即可实现上传功能
- 上传前自动压缩图片,上传过程中有 loading 提示,支持图片显示及删除
- 可拓展自定义 loading 和默认上传样式
- 可限制上传文件大小和上传文件数量
- 可截图粘贴上传
- 可拖拽上传
- 可预览图片

[⬆ Back to Top](#table-of-contents)

## Links

* [docs](https://FEMessage.github.io/upload-to-ali/)
* [ali oss guide](docs/ali-oss-guide.md)
- [docs](https://FEMessage.github.io/upload-to-ali/)
- [ali oss guide](docs/ali-oss-guide.md)

[⬆ Back to Top](#table-of-contents)

Expand Down Expand Up @@ -102,10 +102,10 @@ OSS_CUSTOM_DOMAIN=cdn.xxx.com

For those who are interested in contributing to this project, such as:

* report a bug
* request new feature
* fix a bug
* implement a new feature
- report a bug
- request new feature
- fix a bug
- implement a new feature

Please refer to our [contributing guide](https://github.com/FEMessage/.github/blob/master/CONTRIBUTING.md).

Expand Down
Empty file added less
Empty file.
27 changes: 17 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
"type": "git",
"url": "https://github.com/FEMessage/upload-to-ali.git"
},
"keywords": ["vue", "upload", "component"],
"files": ["src", "dist"],
"keywords": [
"vue",
"upload",
"component"
],
"files": [
"src",
"dist"
],
"main": "dist/upload-to-ali.umd.js",
"module": "dist/upload-to-ali.esm.js",
"unpkg": "dist/upload-to-ali.min.js",
Expand Down Expand Up @@ -38,10 +45,14 @@
"@babel/preset-env": "^7.4.3",
"babel-loader": "^8.0.5",
"dotenv": "^7.0.0",
"file-loader": "^3.0.1",
"github-release-notes": "^0.17.0",
"glob": "^7.1.3",
"husky": "1.3.1",
"jest": "^24.8.0",
"less": "^3.9.0",
"less-loader": "^5.0.0",
"lint-staged": "^8.1.0",
"minimist": "^1.2.0",
"prettier": "1.18.2",
"rollup": "^1.9.0",
Expand All @@ -50,17 +61,13 @@
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-vue": "^4.7.2",
"standard-version": "^6.0.1",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"stylelint": "^9.10.0",
"stylelint-config-standard": "^18.2.0",
"vue": "^2.6.10",
"vue-loader": "^15.7.1",
"vue-styleguidist": "^3.16.3",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.29.6",
"file-loader": "^3.0.1",
"lint-staged": "^8.1.0",
"stylelint": "^9.10.0",
"stylelint-config-standard": "^18.2.0"
"webpack": "^4.29.6"
},
"publishConfig": {
"access": "public"
Expand All @@ -77,7 +84,7 @@
}
},
"lint-staged": {
"*.(js|md)": [
"*.(js|md|json)": [
"prettier --write",
"git add"
],
Expand Down
19 changes: 11 additions & 8 deletions src/components/draggable-list.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<transition-group name="draggable-list" tag="div" class="draggable-list">
<slot/>
<slot />
</transition-group>
</template>
<script>
Expand Down Expand Up @@ -58,13 +58,16 @@ export default {
}
}
</script>
<style lang="stylus">
.draggable-list-move
transition transform 0.3s
<style lang="less">
.draggable-list-move {
transition: transform 0.3s;
}
.ghost
opacity 0.5
.ghost {
opacity: 0.5;
}
.draggable-list
display inline-flex
.draggable-list {
display: inline-flex;
}
</style>
Loading

0 comments on commit 6e59ddb

Please sign in to comment.