-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sunbinyao
committed
May 5, 2017
0 parents
commit b986120
Showing
8 changed files
with
404 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{md,rst,txt}] | ||
indent_size = 2 |
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,8 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Example user template template | ||
### Example user template | ||
|
||
# IntelliJ project files | ||
.idea/ | ||
*.iml | ||
build/ |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 <copyright holders> | ||
|
||
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. |
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,69 @@ | ||
# Keypirinha Plugin: youdao | ||
|
||
This is youdao, a plugin for the | ||
[Keypirinha](http://keypirinha.com) launcher. | ||
|
||
youdao translate | ||
|
||
|
||
## Download | ||
|
||
**TODO:** indicate where the latest `.keypirinha-package` file can be | ||
downloaded. For example a URL to the `releases` list like: | ||
https://github.com/kakotor/keypirinha-youdao/releases | ||
|
||
|
||
## Install | ||
|
||
Once the `youdao.keypirinha-package` file is installed, | ||
move it to the `InstalledPackage` folder located at: | ||
|
||
* `Keypirinha\portable\Profile\InstalledPackages` in **Portable mode** | ||
* **Or** `%APPDATA%\Keypirinha\InstalledPackages` in **Installed mode** (the | ||
final path would look like | ||
`C:\Users\%USERNAME%\AppData\Roaming\Keypirinha\InstalledPackages`) | ||
|
||
|
||
## Usage | ||
|
||
**TODO:** list the items, if any, inserted to the Catalog by the plugin(s) of | ||
this package. Some plugins only make suggestions, in which case a description of | ||
what kind of suggestions are to be expected by the user may help. | ||
|
||
|
||
## Change Log | ||
|
||
**TODO:** describe notable changes for each release. Below is a template for | ||
version 1.0. | ||
|
||
### v1.0 | ||
|
||
* Added foo item | ||
* Fixed bug that was doing bad things when item "bar" was selected | ||
|
||
|
||
## License | ||
|
||
**TODO:** recommended section. Below is an example that goes with the default | ||
LICENSE file (MIT license). Do not forget to add your name in the `LICENSE` | ||
file! | ||
|
||
This package is distributed under the terms of the MIT license. | ||
|
||
|
||
## Credits | ||
|
||
**TODO:** optional section. | ||
|
||
|
||
## Contribute | ||
|
||
**TODO:** optional section. Below is a template example, based on the one found | ||
in Keypirinha's Packages repository. | ||
|
||
1. Check for open issues or open a fresh issue to start a discussion around a | ||
feature idea or a bug. | ||
2. Fork this repository on GitHub to start making your changes to the **dev** | ||
branch. | ||
3. Send a pull request. | ||
4. Add yourself to the *Contributors* section below (or create it if needed)! |
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,57 @@ | ||
@echo off | ||
setlocal | ||
|
||
set PACKAGE_NAME=youdao | ||
set INSTALL_DIR=%APPDATA%\Keypirinha\InstalledPackages | ||
|
||
if "%1"=="" goto help | ||
if "%1"=="-h" goto help | ||
if "%1"=="--help" goto help | ||
if "%1"=="help" ( | ||
:help | ||
echo Usage: | ||
echo make help | ||
echo make clean | ||
echo make build | ||
echo make install | ||
echo make py [python_args] | ||
goto end | ||
) | ||
|
||
if "%BUILD_DIR%"=="" set BUILD_DIR=%~dp0build | ||
if "%KEYPIRINHA_SDK%"=="" ( | ||
echo ERROR: Keypirinha SDK environment not setup. | ||
echo Run SDK's "kpenv" script and try again. | ||
exit /b 1 | ||
) | ||
|
||
if "%1"=="clean" ( | ||
if exist "%BUILD_DIR%" rmdir /s /q "%BUILD_DIR%" | ||
goto end | ||
) | ||
|
||
if "%1"=="build" ( | ||
if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" | ||
pushd "%~dp0" | ||
call "%KEYPIRINHA_SDK%\cmd\kparch" ^ | ||
"%BUILD_DIR%\%PACKAGE_NAME%.keypirinha-package" ^ | ||
-r LICENSE* README* src | ||
popd | ||
goto end | ||
) | ||
|
||
if "%1"=="install" ( | ||
echo TODO: ensure the INSTALL_DIR variable declared at the top of this | ||
echo script complies to your configuration and remove this message | ||
exit /1 | ||
|
||
copy /Y "%BUILD_DIR%\*.keypirinha-package" "%INSTALL_DIR%\" | ||
goto end | ||
) | ||
|
||
if "%1"=="py" ( | ||
call "%KEYPIRINHA_SDK%\cmd\kpy" %2 %3 %4 %5 %6 %7 %8 %9 | ||
goto end | ||
) | ||
|
||
:end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,46 @@ | ||
# | ||
# youdao Package configuration file | ||
# More info at http://keypirinha.com | ||
# | ||
|
||
# NOTE TO PLUGIN DEVELOPER: | ||
# * This file may be removed from the package if no plugin requires | ||
# configuration | ||
# * The [main] section below is an example and not mandatory, however it is good | ||
# practice to keep the [var] and [env] sections, as well as their respective | ||
# comments | ||
# * This comment block may be removed! | ||
|
||
[main] | ||
# Plugin's main configuration section | ||
youdao_key = 1061185281 | ||
youdao_keyfrom = my-wox | ||
|
||
[var] | ||
# As in every Keypirinha's configuration file, you may optionally include a | ||
# [var] section to declare variables that you want to reuse anywhere else in | ||
# this file. | ||
# | ||
# Note that the [var] section is inherited, which means that any value defined | ||
# in the main configuration file of the application (i.e.: "Keypirinha.ini") has | ||
# already been made available to this file as well so you do not need to | ||
# duplicate it here unless you want to override it. | ||
# | ||
# REMINDER: For convenience, Keypirinha silently populates this section with | ||
# predefined values that may come handy. Here are some of them: APP_DIR, | ||
# APP_EXE, PROFILE_DIR, PROFILE_DIR_INSTALLED_PACKS, PROFILE_DIR_LIVE_PACKS, | ||
# PROFILE_DIR_USER and the KNOWNFOLDER_* and KNOWNFOLDERGUID_* values. | ||
# | ||
# See the "Configuration" chapter of the documentation for more information. | ||
|
||
|
||
[env] | ||
# For convenience, Keypirinha populates this [env] section in every loaded | ||
# configuration file so you can easily access to environment variables like | ||
# PATH for example from this file using syntax: ${env:PATH} | ||
# | ||
# If an environment variable happens to be changed while Keypirinha is running | ||
# and this modification impacts current configuration, application and packages | ||
# configuration will be reloaded if needed only. | ||
# | ||
# See the "Configuration" chapter of the documentation for more information. |
Oops, something went wrong.