forked from ververcpp/ChaZD
-
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
Showing
39 changed files
with
1,148 additions
and
613 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 |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
.DS_Store | ||
*/.DS_Store | ||
style/.sass-cache/ | ||
.sass-cache | ||
.sass-cache | ||
node_modules/ | ||
release.sh | ||
*.zip |
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 @@ | ||
{ | ||
"camelcase": true, | ||
"curly": true, | ||
"globalstrict": false, | ||
"quotmark": "double", | ||
"undef": false, | ||
"unused": false | ||
} |
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,33 @@ | ||
|
||
###ver 0.8.6 | ||
+ 修正代码,剥离了jQuery库,核心代码精简压缩,程序总量减小为之前的一半 | ||
+ 源码整合Grunt,实践自动化开发 | ||
|
||
###ver 0.8.5 | ||
+ 增加关闭划词功能按钮 | ||
|
||
###ver 0.8.4 | ||
+ 优化了长文本的显示 | ||
+ 查词窗口更简洁 | ||
+ 同步了划词与弹出窗口的查询结果,想看更详细的翻译结果,划词后直接打开查词窗口就可以啦,还可以配合快捷键使用哦~ | ||
+ 使用shift键辅助,对之前无法划词的链接进行划词 | ||
|
||
###ver 0.8.3 | ||
+ 修改若干个BUG | ||
+ 新的划词显示窗口 | ||
+ 划词支持发音功能 | ||
|
||
###ver 0.8.0 | ||
+ 全新划词窗口显示 | ||
+ 划词结果新增音标显示 | ||
+ 针对没有词典翻译,但有网络释义的词汇在划词中显示结果 | ||
+ 划词窗口代码结合jQuery | ||
+ 修改划词结果显示字体、行距等bug | ||
|
||
###ver 0.7.0 | ||
+ 增加组合键+划词功能,可选择按键包括(Ctrl/Command || Alt || Shift) | ||
+ 优化了词组、短句的翻译结果 | ||
+ 取消划词结果显示时间的设置,改为鼠标点击取消显示,更符合用户的使用习惯 | ||
+ 浏览器按钮界面初步结合jQuery,优化显示效果 | ||
+ 增加安装与更新的通知功能 | ||
+ 修复一些小BUG |
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,89 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON("package.json"), | ||
sass: { | ||
dist: { | ||
options: { | ||
style: "expanded" | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: "src/sass", | ||
src: ["*.scss"], | ||
dest: "src", | ||
ext: ".css" | ||
}] | ||
} | ||
}, | ||
|
||
cssmin: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: "src", | ||
src: ["*.css", "!*.min.css"], | ||
dest: "public/css", | ||
ext: ".min.css" | ||
}] | ||
} | ||
}, | ||
|
||
jshint: { | ||
all: { | ||
src: ["src/**/*.js", "Gruntfile.js"], | ||
|
||
options: { | ||
jshintrc: true | ||
} | ||
} | ||
}, | ||
|
||
uglify: { | ||
options: { | ||
sourceMap: true | ||
}, | ||
|
||
all: { | ||
files: [{ | ||
expand: true, | ||
cwd: "src/javascript", | ||
src: ["*.js", "!*.min.js"], | ||
dest: "public/js", | ||
ext: ".min.js" | ||
}] | ||
} | ||
}, | ||
|
||
copy: { | ||
main: { | ||
files: [{ | ||
expand: true, | ||
cwd: "src/assets/", | ||
src: ["**"], | ||
dest: "public/css" | ||
}] | ||
} | ||
}, | ||
|
||
watch: { | ||
scripts: { | ||
files: "src/**/*.js", | ||
tasks: "uglify", | ||
}, | ||
sass: { | ||
files: "src/**/*.scss", | ||
tasks: "sass", | ||
}, | ||
css: { | ||
files: "src/*.css", | ||
tasks: "cssmin" | ||
} | ||
} | ||
}); | ||
|
||
require("load-grunt-tasks")(grunt); | ||
|
||
grunt.registerTask("default", ["sass", "cssmin", "jshint", "uglify", "copy"]); | ||
grunt.registerTask("check", ["jshint"]); | ||
grunt.registerTask("debug", ["default", "watch"]); | ||
}; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "ChaZD", | ||
"version": "0.8.5", | ||
"description": "A Chinese-English translator extension for Chrome", | ||
"main": null, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ververcpp/ChaZD.git" | ||
}, | ||
"keywords": [ | ||
"chrome", | ||
"extension", | ||
"ChaZD" | ||
], | ||
"author": "ververcpp", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/ververcpp/ChaZD/issues" | ||
}, | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"homepage": "https://github.com/ververcpp/ChaZD", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-copy": "^0.7.0", | ||
"grunt-contrib-cssmin": "^0.10.0", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-contrib-sass": "^0.8.1", | ||
"grunt-contrib-uglify": "^0.6.0", | ||
"grunt-contrib-watch": "^0.6.1", | ||
"load-grunt-tasks": "^1.0.0" | ||
}, | ||
"dependencies": {} | ||
} |
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
Oops, something went wrong.