ソースを参照

added UAParser to DUOSHUO for further use

Signed-off-by: Gerald <gera2ld@163.com>
Gerald 10 年 前
コミット
a3a12fc2e8
5 ファイル変更11 行追加7 行削除
  1. 5 2
      bower.json
  2. 1 1
      dist/duoshuo-ua-with-css.min.js
  3. 1 1
      dist/duoshuo-ua.min.js
  4. 3 3
      package.json
  5. 1 0
      src/duoshuo-ua.js

+ 5 - 2
bower.json

@@ -1,11 +1,14 @@
 {
   "name": "duoshuo-ua",
-  "version": "1.0.0",
+  "version": "1.0.3",
   "authors": [
     "Gerald <gera2ld@163.com>"
   ],
   "description": "Plugin of duoshuo to show operating systems and browsers for duoshuo comments.",
-  "main": "dist/duoshuo-ua-with-css.min.js",
+  "main": [
+	  "dist/duoshuo-ua.min.js",
+	  "dist/duoshuo-ua.min.css"
+  ],
   "keywords": [
     "duoshuo",
     "useragent"

ファイルの差分が大きいため隠しています
+ 1 - 1
dist/duoshuo-ua-with-css.min.js


ファイルの差分が大きいため隠しています
+ 1 - 1
dist/duoshuo-ua.min.js


+ 3 - 3
package.json

@@ -1,15 +1,15 @@
 {
   "name": "duoshuo-ua",
-  "version": "1.0.0",
+  "version": "1.0.3",
   "title": "Duoshuo UA Plugin",
   "description": "Plugin of duoshuo to show operating systems and browsers for duoshuo comments.",
   "author": "Gerald <gera2ld@163.com>",
   "repository": {
     "type": "git",
-    "url": "git@git.oschina.net:gerald/duoshuo-ua.git"
+    "url": "git@github.com:gera2ld/duoshuo-ua.git"
   },
   "bugs": {
-    "url": "http://git.oschina.net/gerald/duoshuo-ua/issues"
+    "url": "https://github.com/gera2ld/duoshuo-ua/issues"
   },
   "devDependencies": {
     "gulp": "^3.8.11",

+ 1 - 0
src/duoshuo-ua.js

@@ -40,6 +40,7 @@ function init() {
 		callAfter.call(this, local, args);
 		return local.result;
 	}
+	DUOSHUO.UAParser = UAParser;
 }
 
 function observeProperty(item, key, callback) {