Skip to content

Commit

Permalink
Merge pull request #7 from solobat/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
tomasy authored Sep 26, 2017
2 parents 4f48981 + 0b5b762 commit 04371da
Show file tree
Hide file tree
Showing 39 changed files with 10,814 additions and 152 deletions.
Binary file added .DS_Store
Binary file not shown.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<h1 align="center">Steward</h1>
<p align="center">Chrome里的Alfred,命令式管理扩展/应用/书签/历史记录/标签...</p>
<p align="center">
<a href="https://github.com/solobat/Steward/releases"><img src="https://img.shields.io/badge/lastest_version-2.4.7-blue.svg"></a>
<a href="https://github.com/solobat/Steward/releases"><img src="https://img.shields.io/badge/lastest_version-2.5.0-blue.svg"></a>
<a target="_blank" href="https://chrome.google.com/webstore/detail/dnkhdiodfglfckibnfcjbgddcgjgkacd"><img src="https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg"></a>
<a href="http://owsjc7iz3.bkt.clouddn.com/Steward.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a>
<a href="http://owsjc7iz3.bkt.clouddn.com/Steward-2.5.0.crx"><img src="https://img.shields.io/badge/download-_crx-brightgreen.svg"></a>
</p>

***

#### 安装:
- [Chrome 应用商店](https://chrome.google.com/webstore/detail/dnkhdiodfglfckibnfcjbgddcgjgkacd)
- [离线下载](http://owsjc7iz3.bkt.clouddn.com/Steward.crx)
- [离线下载](http://owsjc7iz3.bkt.clouddn.com/Steward-2.5.0.crx)

---
#### 功能:
Expand All @@ -30,6 +30,7 @@
+ `note` 创建笔记
+ `#` 查看笔记及标签
+ `jk` 查看jenkins jobs并打开
+ 选项页可以修改各插件的keyword
+ ...

---
Expand All @@ -42,11 +43,11 @@
[![license-badge]][license-link]

<!-- Link -->
[version-badge]: https://img.shields.io/badge/lastest_version-2.4.7-blue.svg
[version-badge]: https://img.shields.io/badge/lastest_version-2.5.0-blue.svg
[version-link]: https://github.com/solobat/Steward
[chrome-badge]: https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg
[chrome-link]: https://chrome.google.com/webstore/detail/dnkhdiodfglfckibnfcjbgddcgjgkacd
[offline-badge]: https://img.shields.io/badge/download-_crx-brightgreen.svg
[offline-link]: http://owsjc7iz3.bkt.clouddn.com/Steward.crx
[offline-link]: http://owsjc7iz3.bkt.clouddn.com/Steward-2.5.0.crx
[license-badge]: https://img.shields.io/github/license/mashape/apistatus.svg
[license-link]: https://opensource.org/licenses/MIT
46 changes: 38 additions & 8 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,47 @@
"history_subtitle": {
"message": "find history and open it"
},
"jenkins_title": {
"message": "find jenkins jobs"
"jenkins_jk_title": {
"message": "Find and open"
},
"jenkins_subtitle": {
"message": "find and open jenkins jobs"
"jenkins_jk_subtitle": {
"message": "Find and open jenkins jobs"
},
"note_title": {
"message": "note add one note, # show tags"
"jenkins_jkb_title": {
"message": "Find and build"
},
"note_subtitle": {
"message": "tag begin with '#', should be end with space/,/; etc."
"jenkins_jkb_subtitle": {
"message": "Find and build jenkins jobs"
},
"jenkins_jkc_title": {
"message": "Find and configure"
},
"jenkins_jkc_subtitle": {
"message": "Find and configure jenkins jobs"
},
"jenkins_jkw_title": {
"message": "Find and open the workspace"
},
"jenkins_jkw_subtitle": {
"message": "Find jenkins jobs and open the workspace"
},
"jenkins_jkset_title": {
"message": "Set jenkins url"
},
"jenkins_jkset_subtitle": {
"message": "Set jenkins url"
},
"note_note_title": {
"message": "Add notes"
},
"note_note_subtitle": {
"message": "The label starts with '#', the label text only supports both English and Chinese characters, and the other characters are automatically marked as the end of the label"
},
"note_notetag_title": {
"message": "Find note by the tag"
},
"note_notetag_subtitle": {
"message": "Find note by the tag"
},
"offExtension_title": {
"message": "disable extension / app"
Expand Down
42 changes: 36 additions & 6 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,48 @@
"history_subtitle": {
"message": "查找历史记录并打开"
},
"jenkins_title": {
"message": "查找jenkins jobs"
"jenkins_jk_title": {
"message": "查找并打开"
},
"jenkins_subtitle": {
"jenkins_jk_subtitle": {
"message": "查找并打开jenkins jobs"
},
"note_title": {
"message": "note 添加笔记, # 查看标签"
"jenkins_jkb_title": {
"message": "查找并编译"
},
"note_subtitle": {
"jenkins_jkb_subtitle": {
"message": "查找并编译jenkins jobs"
},
"jenkins_jkc_title": {
"message": "查找并配置"
},
"jenkins_jkc_subtitle": {
"message": "查找并配置jenkins jobs"
},
"jenkins_jkw_title": {
"message": "查找打开工作空间"
},
"jenkins_jkw_subtitle": {
"message": "查找jenkins jobs打开工作空间"
},
"jenkins_jkset_title": {
"message": "设置jenkins url"
},
"jenkins_jkset_subtitle": {
"message": "设置jenkins url"
},
"note_note_title": {
"message": "添加笔记"
},
"note_note_subtitle": {
"message": "标签以'#'开始, 标签文本只支持英文及中文字符, 其它字符自动作为标签结尾标志"
},
"note_notetag_title": {
"message": "查找标签"
},
"note_notetag_subtitle": {
"message": "根据标签查找note"
},
"offExtension_title": {
"message": "禁用扩展/App"
},
Expand Down
Binary file added css/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions css/element-ui.css

Large diffs are not rendered by default.

Binary file added css/fonts/element-icons.ttf
Binary file not shown.
Binary file added css/fonts/element-icons.woff
Binary file not shown.
93 changes: 93 additions & 0 deletions css/options.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@

[v-cloak] {
display: none;
}

body,
p,
div,
ul,
li {
margin: 0;
padding: 0;
}

img {
vertical-align: top;
}

a {
text-decoration: none;
}

.steward {
width: 1200px;
margin: 40px auto 0;
}

.steward .el-tabs__header {
margin-bottom: 0;
}

.plugin-searchbar {
padding: 10px;
}

.plugin-list,
.plugin-editor {
height: 600px;
overflow: scroll;
}

.bg-black {
background: #303030;
}

.plugin-item {
cursor: pointer;
padding: 3px 8px;
height: 40px;
position: relative;
}

.plugin-icon {
width: 20px;
height: 20px;
float: left;
}

.plugin-name {
margin-left: 5px;
font-size: 14px;
line-height: 1.4;
font-weight: 100;
}

/* editor */
.plugin-editor-header {
display: flex;
background: #212121;
height: 40px;
padding: 12px;
}

.plugin-editor-icon {
width: 40px;
height: 40px;
}

.plugin-editor-text {
flex: 1;
margin-left: 10px;
}

.plugin-editor-name {
font-size: 14px;
line-height: 1.6;
color: #fff;
}

.plugin-editor-title {
font-size: 12px;
color: #999;
}
9 changes: 6 additions & 3 deletions js/common/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ define(function (require, exports, module) {
};

var sync = {
set: function (data, cb) {},
set: function (data, cb) {
baseSet('sync', data, cb);
},

get: function (key, cb) {}
get: function (key, cb) {
baseGet('sync', key, cb);
}

};

module.exports = {
h5: h5,
local: local,
sync: sync

};
});
17 changes: 16 additions & 1 deletion js/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,24 @@ define(function (require, exports, module) {
s4() + '-' + s4() + s4() + s4();
}

function genCommands(name, icon, items) {
return items.map(item => {
let {key, editable, keyname} = item;

return {
key: item.key,
title: chrome.i18n.getMessage(name + '_' + (keyname || key) + '_title'),
subtitle: chrome.i18n.getMessage(name + '_' + (keyname || key) + '_subtitle'),
icon,
editable: editable === false ? false : true
};
});
}

module.exports = {
matchText: matchText,
isMac: isMac,
guid: guid
guid: guid,
genCommands
};
});
13 changes: 13 additions & 0 deletions js/lib/element-ui.js

Large diffs are not rendered by default.

Loading

0 comments on commit 04371da

Please sign in to comment.