Permalink
Browse files

Adds Mingdao plugin

  • Loading branch information...
1 parent 0d05c82 commit 652a99189827c1648b9a3d7b3ee6de0bfe073d69 @ipy ipy committed Sep 21, 2016
Showing with 124 additions and 0 deletions.
  1. BIN mingdao/icon.png
  2. +93 −0 mingdao/icon.svg
  3. +1 −0 mingdao/index.js
  4. +23 −0 mingdao/package.json
  5. +7 −0 mingdao/webview.js
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="165.879px" height="112.121px" viewBox="0 0 165.879 112.121" enable-background="new 0 0 165.879 112.121"
+ xml:space="preserve">
+<g>
+ <g>
+ <g>
+ <path fill="#2196F3" d="M36.034,8.728c-2.661,0-4.746,0.624-6.124,1.921H15.955c-1.264-1.247-3.218-1.922-5.927-1.922
+ c-1.755,0-1.882,0.001-1.882,0.001s0,42.978,0,47.54c0,7.733,3.826,12.252,13.35,12.252l2.674-0.001
+ c8.955,0,13.638-3.141,13.638-12.676c0-9.667,0-47.114,0-47.114S37.12,8.728,36.034,8.728z M17.722,19.817h10.304
+ c0,3.528,0,8.91,0,14.434H17.722C17.722,28.739,17.722,23.368,17.722,19.817z M23.752,59.343c-1.905,0-0.286,0-1.796,0
+ c-2.938,0-4.233-1.278-4.233-4.046c0-1.199,0-6.004,0-11.878h10.304c0,5.926,0,10.751,0,11.836
+ C28.026,58.318,26.592,59.343,23.752,59.343z"/>
+ <path fill="#2196F3" d="M66.177,7.475c-6.701,0-3.597,0-10.635,0c-9.387,0-13.229,3.312-13.229,12.166c0,15.468,0,38.422,0,39.91
+ c0,5.142-1.976,9.254-7.504,10.664c0,0.253,0,7.228,0,8.297c10.164,0,17.553-5.716,17.553-17.443c0-0.964,0-1.98,0-3.034h16.968
+ c0,3.513,0,6.102,0,7.092c0,3.876-1.587,4.934-5.213,4.934c-2.135,0-2.865,0-2.865,0v8.494c0,0,0.121-0.007,5.74-0.007
+ c7.6,0,12.386-3.571,12.386-11.49c0-5.538,0-32.031,0-47.346C79.378,11.563,75.281,7.475,66.177,7.475z M57.415,16.565
+ c3.203,0,3.986,0,6.852,0c3.653,0,5.063,1.601,5.063,4.762c0,1.979,0,4.285,0,6.783H52.361c0-3.301,0-5.795,0-6.909
+ C52.361,17.745,53.869,16.565,57.415,16.565z M52.361,48.867c0-3.883,0-7.874,0-11.59h16.968c0,3.902,0,7.887,0,11.59H52.361z"/>
+ </g>
+ <g>
+ <rect x="87.714" y="7.475" fill="#2196F3" width="15.515" height="8.987"/>
+ <path fill="#2196F3" d="M158.787,69.493H113.81c-5.884-0.231-10.391-3.898-10.587-11.078c0,0-0.031-20.545-0.031-26.338
+ c0-6.307-3.032-9.072-10.236-9.072c-3.332,0-5.241-0.005-5.241-0.005v8.717c0,0,1.089,0,2.575,0c1.971,0,2.655,0.92,2.655,2.631
+ c0,1.589,0.005,27.726,0.005,27.726c0,4.501-1.902,6.009-5.235,7.167v9.029c5.437-0.394,10.133-2.217,12.461-5.115
+ c1.967,3.54,5.941,5.094,12.195,5.094h46.417V69.493z"/>
+ <path fill="#2196F3" d="M138.415,19.92h20.335v-7.567h-6.666l1.139-4.878c0,0-4.225,0-7.163,0
+ c-3.295-0.014-4.578,0.885-5.172,2.936c-0.296,1.126-0.442,1.679-0.512,1.942h-15.238c-0.069-0.263-0.213-0.816-0.505-1.942
+ c-0.586-2.051-1.853-2.95-5.106-2.936c-2.901,0-7.073,0-7.073,0l1.124,4.878h-6.62v7.567h20.573v5.013H115.81
+ c-1.296-1.204-3.258-1.85-5.899-1.85c-1.142,0-2.141,0-2.141,0s0,26.133,0,30.827c0,7.69,3.057,11.625,12.21,11.625l25.711-0.001
+ c8.263,0,12.249-3.475,12.249-11.921c0-9.949,0-30.53,0-30.53s-1.289,0-2.132,0c-2.409,0-4.388,0.666-5.78,1.85h-12.586V19.92
+ H138.415z M117.711,42.961h30.075c0,1.585,0,2.889,0,3.972h-30.075C117.711,45.864,117.711,44.567,117.711,42.961z
+ M147.786,36.155h-30.075c0-1.187,0-2.471,0-3.86h30.075C147.786,33.681,147.786,34.964,147.786,36.155z M143.839,57.816
+ c-2.513,0-20.131,0-22.338,0c-2.36,0-3.79-0.734-3.79-3.51c0-0.202,0-0.389,0-0.566h30.075c0,0.176,0,0.363,0,0.566
+ C147.786,57.039,146.424,57.816,143.839,57.816z"/>
+ </g>
+ </g>
+ <g>
+ <g>
+ <rect x="30.021" y="90.216" fill="#2196F3" width="3.177" height="11.643"/>
+ <rect x="30.019" y="85.23" fill="#2196F3" width="3.155" height="3.107"/>
+ <path fill="#2196F3" d="M42.484,90.206c-0.956,0,0.993,0-2.577,0c-3.02,0-4.302,1.248-4.302,4.268c0,3.02,0,7.385,0,7.385h3.154
+ c0,0,0.003-5.547,0.003-6.878c0-1.331,0.576-1.865,1.779-1.865c1.203,0,1.389-0.001,1.393-0.001c1.331,0,1.766,0.641,1.766,1.929
+ c0,1.036,0,1.652,0,6.815h3.154c0,0,0-2.834,0-7.406C46.855,91.645,45.736,90.206,42.484,90.206z"/>
+ <path fill="#2196F3" d="M115.532,96.723v-1.636c0-1.316,0.695-2.006,2.284-2.006c0.242,0,5.247-0.004,5.247-0.004v-2.848
+ c0,0-5.378-0.001-5.598-0.001c-3.957,0-5.363,1.523-5.363,4.536c0,0,0,2.427,0,2.587c0,2.947,1.321,4.536,5.363,4.536
+ c0.22,0,5.598-0.001,5.598-0.001v-2.848c0,0-5.062-0.005-5.304-0.005C116.225,99.032,115.532,98.375,115.532,96.723z"/>
+ <path fill="#2196F3" d="M56.718,90.213c-2.731,0-2.914,0-2.914,0c-3.168,0-4.601,1.517-4.601,4.121c0,1.267,0.01,2.75,0.01,3.069
+ c0,2.9,1.381,4.448,4.535,4.448c0.066,0,3.981,0,3.981,0c0,1.709-0.63,2.189-2.288,2.189c-0.234,0-5.667,0-5.667,0l0.002,2.853
+ c0,0,5.88,0,6.092,0c3.522,0,5.191-1.269,5.191-4.667c0-2.036,0-5.227,0-7.809C61.059,91.835,59.738,90.213,56.718,90.213z
+ M52.521,97.122c0-0.387,0.001-0.855,0.001-2.196c0-1.296,0.536-1.847,1.873-1.847c0.005,0,0.783,0,1.464,0.001
+ c1.225,0,1.857,0.748,1.857,1.874c0,0.448,0,1.255,0,2.027c0,1.478-0.66,1.992-1.885,1.992c-1.042,0-1.295-0.001-1.295-0.001
+ C53.1,98.972,52.521,98.417,52.521,97.122z"/>
+ <path fill="#2196F3" d="M72.08,85.241v4.971h-4.098c-3.21,0-4.546,1.496-4.546,4.051c0,1.276-0.01,2.958-0.01,3.281
+ c0,2.647,1.402,4.31,4.633,4.31c0,0-1.148,0.001,2.541,0.001c3.098,0,4.671-1.203,4.671-4.361c0-3.157,0-0.36,0-0.368l0,0V85.241
+ H72.08z M71.933,94.982c0,1.183,0,0.676,0,2.006c0,1.415-0.727,1.983-1.91,1.983c-0.533,0-1.075,0-1.478,0
+ c-1.035,0-1.822-0.547-1.822-1.919c0-1.716,0.011-0.781,0.011-2.091c0-1.31,0.627-1.861,2.042-1.861c0.489,0,0.956,0,1.373,0
+ C71.375,93.1,71.933,93.799,71.933,94.982z"/>
+ <path fill="#2196F3" d="M97.689,90.203c-0.16,0-2.276,0-2.429,0.005c-2.999,0-4.56,1.5-4.56,4.266
+ c0,2.556-0.007-0.581-0.007,2.513c0,3.126,1.484,4.853,4.627,4.853c0.149,0.006,2.065,0.009,2.221,0.009
+ c2.851,0,4.694-1.313,4.694-4.418c0,0,0.01-2.76,0.01-2.985C102.246,91.962,100.899,90.203,97.689,90.203z M99.008,97.023
+ c0,1.295-0.834,1.902-1.995,1.902c-0.125,0-0.888,0.011-1.003,0.005c-1.243,0-2.063-0.668-2.063-2.048
+ c0-1.845,0.002-1.915,0.002-1.915c0-1.225,0.664-1.858,2.051-1.858c0.43-0.016,1.233,0.007,1.007,0.007
+ c1.443,0,2.002,0.698,2.002,2.077C99.008,96.798,99.008,96.784,99.008,97.023z"/>
+ <path fill="#2196F3" d="M23.498,90.219c-1.004,0-6.532,0.002-10.038,0.003c-2.549,0-3.887,1.275-3.887,3.598
+ c0,1.323,0,1.106-0.001,8.04h3.154c0,0,0.004-5.766,0.004-7.117c0-1.182,0.505-1.629,1.455-1.629
+ c0.352,0,0.753-0.001,1.182-0.001c1.225,0,1.624,0.489,1.624,1.658c0,2.661,0,7.089,0,7.089h3.154c0-6.725,0-6.886,0-7.103
+ c0-1.169,0.459-1.643,1.621-1.643c1.161,0,0.908,0,0.908,0c1.317,0,1.76,0.474,1.76,1.643c0,0.979,0,1.877,0,7.103h3.173
+ c0,0,0-3.425,0-7.997C27.608,91.708,26.666,90.219,23.498,90.219z"/>
+ <path fill="#2196F3" d="M88.317,98.431c-0.001-1.58-0.001-3.208-0.001-3.667c0-3.013-1.081-4.536-4.481-4.536
+ c-0.212,0-5.803,0.001-5.803,0.001l-0.005,2.662c0,0,5.352,0,5.406,0c1.003,0,1.478,0.449,1.478,1.436h-4.076
+ c-2.45,0-3.558,1.247-3.558,3.161c0,0.279,0,0.652,0,0.674c0,2.417,1.171,3.689,3.79,3.689c1.249,0,2.586,0,3.576,0
+ C87.038,101.849,88.317,100.585,88.317,98.431z M83.744,99.279c-0.761,0-1.664-0.005-1.859-0.005
+ c-0.845,0-1.218-0.372-1.218-1.156c0-0.898,0.396-1.22,1.204-1.22c0.182,0,1.091,0.005,1.869,0.005c0.842,0,1.2,0.401,1.2,1.193
+ C84.94,98.902,84.474,99.279,83.744,99.279z"/>
+ <rect x="105.192" y="97.927" fill="#2196F3" width="3.957" height="3.922"/>
+ <path fill="#2196F3" d="M132.388,90.203c-0.16,0-2.276,0-2.429,0.005c-2.999,0-4.56,1.5-4.56,4.266
+ c0,2.556-0.007-0.581-0.007,2.513c0,3.126,1.484,4.862,4.627,4.862c0.149,0.006,2.066,0,2.221,0c2.851,0,4.694-1.313,4.694-4.418
+ c0,0,0.01-2.76,0.01-2.985C136.944,91.962,135.598,90.203,132.388,90.203z M133.707,97.023c0,1.295-0.833,1.902-1.995,1.902
+ c-0.125,0-0.888,0.011-1.003,0.005c-1.243,0-2.063-0.668-2.063-2.048c0-1.845,0.001-1.915,0.001-1.915
+ c0-1.225,0.664-1.858,2.051-1.858c0.43-0.016,1.233,0.007,1.007,0.007c1.443,0,2.002,0.698,2.002,2.077
+ C133.707,96.798,133.707,96.784,133.707,97.023z"/>
+ <path fill="#2196F3" d="M153.251,90.163c-1.004,0-6.533,0.002-10.038,0.003c-2.549,0-3.887,1.275-3.887,3.598
+ c0,1.323,0,1.152-0.001,8.086h3.153c0,0,0.004-5.812,0.004-7.163c0-1.183,0.505-1.628,1.455-1.628
+ c0.352-0.001,0.753-0.001,1.183-0.001c1.225,0,1.624,0.489,1.624,1.658c0,2.661,0,7.135,0,7.135h3.154c0-6.724,0-6.932,0-7.149
+ c0-1.169,0.459-1.643,1.621-1.643c1.162,0,0.908,0,0.908,0c1.317,0,1.76,0.475,1.76,1.643c0,0.979,0,1.924,0,7.149h3.173
+ c0,0,0-3.472,0-8.043C157.36,91.652,156.418,90.163,153.251,90.163z"/>
+ </g>
+ </g>
+</g>
+</svg>
View
@@ -0,0 +1 @@
+module.exports = Franz => Franz;
View
@@ -0,0 +1,23 @@
+{
+ "name": "mingdao",
+ "version": "0.1.0",
+ "description": "mingdao",
+ "main": "index.js",
+ "author": "Sin <dev@zouxin.net>",
+ "license": "MIT",
+ "config": {
+ "serviceURL": "https://www.mingdao.com/login.htm",
+ "serviceName": "Mingdao",
+ "message": "自由连接一切协作者",
+ "popup": [],
+ "hasNotificationSound": false,
+ "hasIndirectMessages": false,
+ "hasTeamID": false,
+ "customURL": false,
+ "hostedOnly": false,
+ "webviewOptions": {
+ "disablewebsecurity": ""
+ },
+ "openDevTools": false
+ }
+}
View
@@ -0,0 +1,7 @@
+module.exports = (Franz, options) => {
+ function getMessageCount() {
+ const count = parseInt($('#topBarContainer .messageLittleRedDot').data('count'), 10);
+ Franz.setBadge(count);
+ }
+ Franz.loop(getMessageCount);
+}

0 comments on commit 652a991

Please sign in to comment.