Skip to content

Commit

Permalink
add LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
ethendev committed Oct 28, 2019
1 parent 109bff5 commit 3f02277
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
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) 2017 ethendev

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.
13 changes: 12 additions & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# wopihost

[![GitHub stars](https://img.shields.io/github/stars/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/network)
[![GitHub issues](https://img.shields.io/github/issues/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/issues)
[![GitHub release](https://img.shields.io/github/release/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/releases)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/ethendev/wopihost/master/LICENSE)

### Introduction
WopiHost supports previewing and editing documents such as word, excel, and ppt (preview only) through Office Web Apps.

Expand Down Expand Up @@ -36,4 +44,7 @@ Note:[owas.domain] is the IP address of Office online 2016,[WopiHost.domain]
### Known issues
* Doc files can`t be previewed and edited, but docx is ok.
* PPT files can be previewed, but can`t be edited.
* I didn't check the access_token parameter. if you need it, implement it yourself.
* I didn't check the access_token parameter. if you need it, implement it yourself.

### License
[MIT License](https://github.com/ethendev/wopihost/blob/master/LICENSE.md)
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# wopihost

[![GitHub stars](https://img.shields.io/github/stars/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/network)
[![GitHub issues](https://img.shields.io/github/issues/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/issues)
[![GitHub release](https://img.shields.io/github/release/ethendev/wopihost.svg)](https://github.com/ethendev/wopihost/releases)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/ethendev/wopihost/master/LICENSE)

**[English](https://github.com/ethendev/wopihost/blob/master/README-EN.md)**

### 项目介绍
基于wopi协议开发的WopiHost, 支持word, excel,ppt(仅支持预览)等文档的预览和编辑。

Expand Down Expand Up @@ -40,3 +50,6 @@ http://[owas.domain]/p/PowerPointFrame.aspx?PowerPointView=EditView&WOPISrc=http
* 如果wopihost的接口都没有问题,但是不能预览或者编辑文档,可能wopi和Office Web Apps Server之间的网络不能互通,也可能Office Web Apps Server有问题,建议重新安装后重试。
* access_token没有做校验,需要的自己实现一下。
* 中文名字的文档不能预览、编辑,将中文名使用URLEncoder.encode进行两次编码。例如:哈哈哈.xlsx, 使用中文编码后的名字作为参数 .../wopi/files/%25e5%2593%2588%25e5%2593%2588%25e5%2593%2588.xlsx即可正常预览。

### License
[MIT License](https://github.com/ethendev/wopihost/blob/master/LICENSE.md)

0 comments on commit 3f02277

Please sign in to comment.