Readme.html 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
  1. <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style>body {
  2. max-width: 980px;
  3. border: 1px solid #ddd;
  4. outline: 1300px solid #fff;
  5. margin: 16px auto;
  6. }
  7. body .markdown-body
  8. {
  9. padding: 45px;
  10. }
  11. @font-face {
  12. font-family: fontawesome-mini;
  13. src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAABE0AA8AAAAAHWwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAAQwAAAFY3d1HZY21hcAAAAdgAAACqAAACOvWLi0FjdnQgAAAChAAAABMAAAAgBtX/BGZwZ20AAAKYAAAFkAAAC3CKkZBZZ2FzcAAACCgAAAAIAAAACAAAABBnbHlmAAAIMAAABdQAAAjkYT9TNWhlYWQAAA4EAAAAMwAAADYQ6WvNaGhlYQAADjgAAAAfAAAAJAc6A1pobXR4AAAOWAAAACAAAAA0Kmz/7mxvY2EAAA54AAAAHAAAABwQPBJubWF4cAAADpQAAAAgAAAAIAEHC/NuYW1lAAAOtAAAAYQAAALxhQT4h3Bvc3QAABA4AAAAfgAAAMS3SYh9cHJlcAAAELgAAAB6AAAAhuVBK7x4nGNgZGBg4GIwYLBjYHJx8wlh4MtJLMljkGJgYYAAkDwymzEnMz2RgQPGA8qxgGkOIGaDiAIAJjsFSAB4nGNgZHZmnMDAysDAVMW0h4GBoQdCMz5gMGRkAooysDIzYAUBaa4pDA4Pwz+yMwf9z2KIYg5imAYUZgTJAQDcoQvQAHic7ZHNDYJAFIR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KCAfO2EnQAAAAAANoBXgGcAgICVALaA1IDvAPkBAYEPARyAAEAAAANAF0ABAAAAAAAAgAUACQAcwAAAG4LcAAAAAB4nHWRzWrCQBSFT+pPqUIXLXTTzayKUohGKIibCoLuhbrrYtTRxCYZmYyKyz5Fd32HvlDfoO/QkziIFJtw9bvnnpl7ZwLgBt/wcHieGAf2UGd24Atcou+4RH3kuEweO66QXx1XyaHjGh6ROa7jFp/cwStfMVvhy7GHO+/e8QWuvcBxifqz4zL5xXGF/Oa4Sn53XMPE+3Bcx4P3M9DrvYmWoRWNQVN02kFXTPdCU4pSGQu5saE2meiLhU6timPtz3SSs9ypTCdqrJabWJoT5QQnymSRTkXgt0/UkUqVkVbN807ZdtmxdiEWRidi6HqItdErNbN+aO2612qd9sYAGmvsYRBhyUu0EGhQbfK/gzYCdElTOgSdB1eEFBIxFYkNV4RFJWPeZyyYpVQVHTHZx4y/yVGX2LGWFZri51TccUOn5B7nPefVCSPvGhVVwUl9znveO2KkhV8Wk82PZ8qwZf8OVcu1+fSmWCMw/HMOwXvKaysqM+p+cVuWag8tvv+c+xdd+4+teJxtjUEOwiAURJla24KliQfhUA2g/Sl+CKXx+loNrpzVezOLEY34Ron/0WhwQoszOvQYIKFwwQiNSbSBeO2SZ0tBP4j3zVjKNng32ZmtD1VVXCuOiw/pJ8S3WOU6l+K5UOTaDC4+2TjKMtN9KQf1ezLx/Sg/00FCvABHhjDjAAB4nGPw3sFwIihiIyNjX+QGxp0cDBwMyQUbGVidNjEwMmiBGJu5mBg5ICw+BjCLzWkX0wGgNCeQze60i8EBwmZmcNmowtgRGLHBoSNiI3OKy0Y1EG8XRwMDI4tDR3JIBEhJJBBs5mFi5NHawfi/dQNL70YmBhcADHYj9AAA) format('woff');
  14. }
  15. .markdown-body {
  16. font-family: sans-serif;
  17. -ms-text-size-adjust: 100%;
  18. -webkit-text-size-adjust: 100%;
  19. color: #333333;
  20. overflow: hidden;
  21. font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
  22. font-size: 16px;
  23. line-height: 1.6;
  24. word-wrap: break-word;
  25. }
  26. .markdown-body a {
  27. background: transparent;
  28. }
  29. .markdown-body a:active,
  30. .markdown-body a:hover {
  31. outline: 0;
  32. }
  33. .markdown-body b,
  34. .markdown-body strong {
  35. font-weight: bold;
  36. }
  37. .markdown-body mark {
  38. background: #ff0;
  39. color: #000;
  40. font-style: italic;
  41. font-weight: bold;
  42. }
  43. .markdown-body sub,
  44. .markdown-body sup {
  45. font-size: 75%;
  46. line-height: 0;
  47. position: relative;
  48. vertical-align: baseline;
  49. }
  50. .markdown-body sup {
  51. top: -0.5em;
  52. }
  53. .markdown-body sub {
  54. bottom: -0.25em;
  55. }
  56. .markdown-body h1 {
  57. font-size: 2em;
  58. margin: 0.67em 0;
  59. }
  60. .markdown-body img {
  61. border: 0;
  62. }
  63. .markdown-body hr {
  64. -moz-box-sizing: content-box;
  65. box-sizing: content-box;
  66. height: 0;
  67. }
  68. .markdown-body pre {
  69. overflow: auto;
  70. }
  71. .markdown-body code,
  72. .markdown-body kbd,
  73. .markdown-body pre,
  74. .markdown-body samp {
  75. font-family: monospace, monospace;
  76. font-size: 1em;
  77. }
  78. .markdown-body input {
  79. color: inherit;
  80. font: inherit;
  81. margin: 0;
  82. }
  83. .markdown-body html input[disabled] {
  84. cursor: default;
  85. }
  86. .markdown-body input {
  87. line-height: normal;
  88. }
  89. .markdown-body input[type="checkbox"] {
  90. box-sizing: border-box;
  91. padding: 0;
  92. }
  93. .markdown-body table {
  94. border-collapse: collapse;
  95. border-spacing: 0;
  96. }
  97. .markdown-body td,
  98. .markdown-body th {
  99. padding: 0;
  100. }
  101. .markdown-body .codehilitetable {
  102. border: 0;
  103. border-spacing: 0;
  104. }
  105. .markdown-body .codehilitetable tr {
  106. border: 0;
  107. }
  108. .markdown-body .codehilitetable pre,
  109. .markdown-body .codehilitetable div.codehilite {
  110. margin: 0;
  111. }
  112. .markdown-body .linenos,
  113. .markdown-body .code,
  114. .markdown-body .codehilitetable td {
  115. border: 0;
  116. padding: 0;
  117. }
  118. .markdown-body td:not(.linenos) .linenodiv {
  119. padding: 0 !important;
  120. }
  121. .markdown-body .code {
  122. width: 100%;
  123. }
  124. .markdown-body .linenos div pre,
  125. .markdown-body .linenodiv pre,
  126. .markdown-body .linenodiv {
  127. border: 0;
  128. -webkit-border-radius: 0;
  129. -moz-border-radius: 0;
  130. border-radius: 0;
  131. -webkit-border-top-left-radius: 3px;
  132. -webkit-border-bottom-left-radius: 3px;
  133. -moz-border-radius-topleft: 3px;
  134. -moz-border-radius-bottomleft: 3px;
  135. border-top-left-radius: 3px;
  136. border-bottom-left-radius: 3px;
  137. }
  138. .markdown-body .code div pre,
  139. .markdown-body .code div {
  140. border: 0;
  141. -webkit-border-radius: 0;
  142. -moz-border-radius: 0;
  143. border-radius: 0;
  144. -webkit-border-top-right-radius: 3px;
  145. -webkit-border-bottom-right-radius: 3px;
  146. -moz-border-radius-topright: 3px;
  147. -moz-border-radius-bottomright: 3px;
  148. border-top-right-radius: 3px;
  149. border-bottom-right-radius: 3px;
  150. }
  151. .markdown-body * {
  152. -moz-box-sizing: border-box;
  153. box-sizing: border-box;
  154. }
  155. .markdown-body input {
  156. font: 13px Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  157. line-height: 1.4;
  158. }
  159. .markdown-body a {
  160. color: #4183c4;
  161. text-decoration: none;
  162. }
  163. .markdown-body a:hover,
  164. .markdown-body a:focus,
  165. .markdown-body a:active {
  166. text-decoration: underline;
  167. }
  168. .markdown-body hr {
  169. height: 0;
  170. margin: 15px 0;
  171. overflow: hidden;
  172. background: transparent;
  173. border: 0;
  174. border-bottom: 1px solid #ddd;
  175. }
  176. .markdown-body hr:before,
  177. .markdown-body hr:after {
  178. display: table;
  179. content: " ";
  180. }
  181. .markdown-body hr:after {
  182. clear: both;
  183. }
  184. .markdown-body h1,
  185. .markdown-body h2,
  186. .markdown-body h3,
  187. .markdown-body h4,
  188. .markdown-body h5,
  189. .markdown-body h6 {
  190. margin-top: 15px;
  191. margin-bottom: 15px;
  192. line-height: 1.1;
  193. }
  194. .markdown-body h1 {
  195. font-size: 30px;
  196. }
  197. .markdown-body h2 {
  198. font-size: 21px;
  199. }
  200. .markdown-body h3 {
  201. font-size: 16px;
  202. }
  203. .markdown-body h4 {
  204. font-size: 14px;
  205. }
  206. .markdown-body h5 {
  207. font-size: 12px;
  208. }
  209. .markdown-body h6 {
  210. font-size: 11px;
  211. }
  212. .markdown-body blockquote {
  213. margin: 0;
  214. }
  215. .markdown-body ul,
  216. .markdown-body ol {
  217. padding: 0;
  218. margin-top: 0;
  219. margin-bottom: 0;
  220. }
  221. .markdown-body ol ol,
  222. .markdown-body ul ol {
  223. list-style-type: lower-roman;
  224. }
  225. .markdown-body ul ul ol,
  226. .markdown-body ul ol ol,
  227. .markdown-body ol ul ol,
  228. .markdown-body ol ol ol {
  229. list-style-type: lower-alpha;
  230. }
  231. .markdown-body dd {
  232. margin-left: 0;
  233. }
  234. .markdown-body code,
  235. .markdown-body pre,
  236. .markdown-body samp {
  237. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  238. font-size: 12px;
  239. }
  240. .markdown-body pre {
  241. margin-top: 0;
  242. margin-bottom: 0;
  243. }
  244. .markdown-body kbd {
  245. background-color: #e7e7e7;
  246. background-image: -moz-linear-gradient(#fefefe, #e7e7e7);
  247. background-image: -webkit-linear-gradient(#fefefe, #e7e7e7);
  248. background-image: linear-gradient(#fefefe, #e7e7e7);
  249. background-repeat: repeat-x;
  250. border-radius: 2px;
  251. border: 1px solid #cfcfcf;
  252. color: #000;
  253. padding: 3px 5px;
  254. line-height: 10px;
  255. font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  256. display: inline-block;
  257. }
  258. .markdown-body>*:first-child {
  259. margin-top: 0 !important;
  260. }
  261. .markdown-body>*:last-child {
  262. margin-bottom: 0 !important;
  263. }
  264. .markdown-body .headerlink {
  265. font: normal 400 16px fontawesome-mini;
  266. vertical-align: middle;
  267. margin-left: -16px;
  268. float: left;
  269. display: inline-block;
  270. text-decoration: none;
  271. opacity: 0;
  272. color: #333;
  273. }
  274. .markdown-body .headerlink:focus {
  275. outline: none;
  276. }
  277. .markdown-body h1 .headerlink {
  278. margin-top: 0.8rem;
  279. }
  280. .markdown-body h2 .headerlink,
  281. .markdown-body h3 .headerlink {
  282. margin-top: 0.6rem;
  283. }
  284. .markdown-body h4 .headerlink {
  285. margin-top: 0.2rem;
  286. }
  287. .markdown-body h5 .headerlink,
  288. .markdown-body h6 .headerlink {
  289. margin-top: 0;
  290. }
  291. .markdown-body .headerlink:hover,
  292. .markdown-body h1:hover .headerlink,
  293. .markdown-body h2:hover .headerlink,
  294. .markdown-body h3:hover .headerlink,
  295. .markdown-body h4:hover .headerlink,
  296. .markdown-body h5:hover .headerlink,
  297. .markdown-body h6:hover .headerlink {
  298. opacity: 1;
  299. text-decoration: none;
  300. }
  301. .markdown-body h1 {
  302. padding-bottom: 0.3em;
  303. font-size: 2.25em;
  304. line-height: 1.2;
  305. border-bottom: 1px solid #eee;
  306. }
  307. .markdown-body h2 {
  308. padding-bottom: 0.3em;
  309. font-size: 1.75em;
  310. line-height: 1.225;
  311. border-bottom: 1px solid #eee;
  312. }
  313. .markdown-body h3 {
  314. font-size: 1.5em;
  315. line-height: 1.43;
  316. }
  317. .markdown-body h4 {
  318. font-size: 1.25em;
  319. }
  320. .markdown-body h5 {
  321. font-size: 1em;
  322. }
  323. .markdown-body h6 {
  324. font-size: 1em;
  325. color: #777;
  326. }
  327. .markdown-body p,
  328. .markdown-body blockquote,
  329. .markdown-body ul,
  330. .markdown-body ol,
  331. .markdown-body dl,
  332. .markdown-body table,
  333. .markdown-body pre,
  334. .markdown-body .admonition {
  335. margin-top: 0;
  336. margin-bottom: 16px;
  337. }
  338. .markdown-body hr {
  339. height: 4px;
  340. padding: 0;
  341. margin: 16px 0;
  342. background-color: #e7e7e7;
  343. border: 0 none;
  344. }
  345. .markdown-body ul,
  346. .markdown-body ol {
  347. padding-left: 2em;
  348. }
  349. .markdown-body ul ul,
  350. .markdown-body ul ol,
  351. .markdown-body ol ol,
  352. .markdown-body ol ul {
  353. margin-top: 0;
  354. margin-bottom: 0;
  355. }
  356. .markdown-body li>p {
  357. margin-top: 16px;
  358. }
  359. .markdown-body dl {
  360. padding: 0;
  361. }
  362. .markdown-body dl dt {
  363. padding: 0;
  364. margin-top: 16px;
  365. font-size: 1em;
  366. font-style: italic;
  367. font-weight: bold;
  368. }
  369. .markdown-body dl dd {
  370. padding: 0 16px;
  371. margin-bottom: 16px;
  372. }
  373. .markdown-body blockquote {
  374. padding: 0 15px;
  375. color: #777;
  376. border-left: 4px solid #ddd;
  377. }
  378. .markdown-body blockquote>:first-child {
  379. margin-top: 0;
  380. }
  381. .markdown-body blockquote>:last-child {
  382. margin-bottom: 0;
  383. }
  384. .markdown-body table {
  385. display: block;
  386. width: 100%;
  387. overflow: auto;
  388. word-break: normal;
  389. word-break: keep-all;
  390. }
  391. .markdown-body table th {
  392. font-weight: bold;
  393. }
  394. .markdown-body table th,
  395. .markdown-body table td {
  396. padding: 6px 13px;
  397. border: 1px solid #ddd;
  398. }
  399. .markdown-body table tr {
  400. background-color: #fff;
  401. border-top: 1px solid #ccc;
  402. }
  403. .markdown-body table tr:nth-child(2n) {
  404. background-color: #f8f8f8;
  405. }
  406. .markdown-body img {
  407. max-width: 100%;
  408. -moz-box-sizing: border-box;
  409. box-sizing: border-box;
  410. }
  411. .markdown-body code,
  412. .markdown-body samp {
  413. padding: 0;
  414. padding-top: 0.2em;
  415. padding-bottom: 0.2em;
  416. margin: 0;
  417. font-size: 85%;
  418. background-color: rgba(0,0,0,0.04);
  419. border-radius: 3px;
  420. }
  421. .markdown-body code:before,
  422. .markdown-body code:after {
  423. letter-spacing: -0.2em;
  424. content: "\00a0";
  425. }
  426. .markdown-body pre>code {
  427. padding: 0;
  428. margin: 0;
  429. font-size: 100%;
  430. word-break: normal;
  431. white-space: pre;
  432. background: transparent;
  433. border: 0;
  434. }
  435. .markdown-body .codehilite {
  436. margin-bottom: 16px;
  437. }
  438. .markdown-body .codehilite pre,
  439. .markdown-body pre {
  440. padding: 16px;
  441. overflow: auto;
  442. font-size: 85%;
  443. line-height: 1.45;
  444. background-color: #f7f7f7;
  445. border-radius: 3px;
  446. }
  447. .markdown-body .codehilite pre {
  448. margin-bottom: 0;
  449. word-break: normal;
  450. }
  451. .markdown-body pre {
  452. word-wrap: normal;
  453. }
  454. .markdown-body pre code {
  455. display: inline;
  456. max-width: initial;
  457. padding: 0;
  458. margin: 0;
  459. overflow: initial;
  460. line-height: inherit;
  461. word-wrap: normal;
  462. background-color: transparent;
  463. border: 0;
  464. }
  465. .markdown-body pre code:before,
  466. .markdown-body pre code:after {
  467. content: normal;
  468. }
  469. /* Admonition */
  470. .markdown-body .admonition {
  471. -webkit-border-radius: 3px;
  472. -moz-border-radius: 3px;
  473. position: relative;
  474. border-radius: 3px;
  475. border: 1px solid #e0e0e0;
  476. border-left: 6px solid #333;
  477. padding: 10px 10px 10px 30px;
  478. }
  479. .markdown-body .admonition table {
  480. color: #333;
  481. }
  482. .markdown-body .admonition p {
  483. padding: 0;
  484. }
  485. .markdown-body .admonition-title {
  486. font-weight: bold;
  487. margin: 0;
  488. }
  489. .markdown-body .admonition>.admonition-title {
  490. color: #333;
  491. }
  492. .markdown-body .attention>.admonition-title {
  493. color: #a6d796;
  494. }
  495. .markdown-body .caution>.admonition-title {
  496. color: #d7a796;
  497. }
  498. .markdown-body .hint>.admonition-title {
  499. color: #96c6d7;
  500. }
  501. .markdown-body .danger>.admonition-title {
  502. color: #c25f77;
  503. }
  504. .markdown-body .question>.admonition-title {
  505. color: #96a6d7;
  506. }
  507. .markdown-body .note>.admonition-title {
  508. color: #d7c896;
  509. }
  510. .markdown-body .admonition:before,
  511. .markdown-body .attention:before,
  512. .markdown-body .caution:before,
  513. .markdown-body .hint:before,
  514. .markdown-body .danger:before,
  515. .markdown-body .question:before,
  516. .markdown-body .note:before {
  517. font: normal normal 16px fontawesome-mini;
  518. -moz-osx-font-smoothing: grayscale;
  519. -webkit-user-select: none;
  520. -moz-user-select: none;
  521. -ms-user-select: none;
  522. user-select: none;
  523. line-height: 1.5;
  524. color: #333;
  525. position: absolute;
  526. left: 0;
  527. top: 0;
  528. padding-top: 10px;
  529. padding-left: 10px;
  530. }
  531. .markdown-body .admonition:before {
  532. content: "\f056\00a0";
  533. color: 333;
  534. }
  535. .markdown-body .attention:before {
  536. content: "\f058\00a0";
  537. color: #a6d796;
  538. }
  539. .markdown-body .caution:before {
  540. content: "\f06a\00a0";
  541. color: #d7a796;
  542. }
  543. .markdown-body .hint:before {
  544. content: "\f05a\00a0";
  545. color: #96c6d7;
  546. }
  547. .markdown-body .danger:before {
  548. content: "\f057\00a0";
  549. color: #c25f77;
  550. }
  551. .markdown-body .question:before {
  552. content: "\f059\00a0";
  553. color: #96a6d7;
  554. }
  555. .markdown-body .note:before {
  556. content: "\f040\00a0";
  557. color: #d7c896;
  558. }
  559. .markdown-body .admonition::after {
  560. content: normal;
  561. }
  562. .markdown-body .attention {
  563. border-left: 6px solid #a6d796;
  564. }
  565. .markdown-body .caution {
  566. border-left: 6px solid #d7a796;
  567. }
  568. .markdown-body .hint {
  569. border-left: 6px solid #96c6d7;
  570. }
  571. .markdown-body .danger {
  572. border-left: 6px solid #c25f77;
  573. }
  574. .markdown-body .question {
  575. border-left: 6px solid #96a6d7;
  576. }
  577. .markdown-body .note {
  578. border-left: 6px solid #d7c896;
  579. }
  580. .markdown-body .admonition>*:first-child {
  581. margin-top: 0 !important;
  582. }
  583. .markdown-body .admonition>*:last-child {
  584. margin-bottom: 0 !important;
  585. }
  586. /* progress bar*/
  587. .markdown-body .progress {
  588. display: block;
  589. width: 300px;
  590. margin: 10px 0;
  591. height: 24px;
  592. -webkit-border-radius: 3px;
  593. -moz-border-radius: 3px;
  594. border-radius: 3px;
  595. background-color: #ededed;
  596. position: relative;
  597. box-shadow: inset -1px 1px 3px rgba(0, 0, 0, .1);
  598. }
  599. .markdown-body .progress-label {
  600. position: absolute;
  601. text-align: center;
  602. font-weight: bold;
  603. width: 100%; margin: 0;
  604. line-height: 24px;
  605. color: #333;
  606. text-shadow: 1px 1px 0 #fefefe, -1px -1px 0 #fefefe, -1px 1px 0 #fefefe, 1px -1px 0 #fefefe, 0 1px 0 #fefefe, 0 -1px 0 #fefefe, 1px 0 0 #fefefe, -1px 0 0 #fefefe, 1px 1px 2px #000;
  607. -webkit-font-smoothing: antialiased !important;
  608. white-space: nowrap;
  609. overflow: hidden;
  610. }
  611. .markdown-body .progress-bar {
  612. height: 24px;
  613. float: left;
  614. -webkit-border-radius: 3px;
  615. -moz-border-radius: 3px;
  616. border-radius: 3px;
  617. background-color: #96c6d7;
  618. box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .1);
  619. background-size: 30px 30px;
  620. background-image: -webkit-linear-gradient(
  621. 135deg, rgba(255, 255, 255, .4) 27%,
  622. transparent 27%,
  623. transparent 52%, rgba(255, 255, 255, .4) 52%,
  624. rgba(255, 255, 255, .4) 77%,
  625. transparent 77%, transparent
  626. );
  627. background-image: -moz-linear-gradient(
  628. 135deg,
  629. rgba(255, 255, 255, .4) 27%, transparent 27%,
  630. transparent 52%, rgba(255, 255, 255, .4) 52%,
  631. rgba(255, 255, 255, .4) 77%, transparent 77%,
  632. transparent
  633. );
  634. background-image: -ms-linear-gradient(
  635. 135deg,
  636. rgba(255, 255, 255, .4) 27%, transparent 27%,
  637. transparent 52%, rgba(255, 255, 255, .4) 52%,
  638. rgba(255, 255, 255, .4) 77%, transparent 77%,
  639. transparent
  640. );
  641. background-image: -o-linear-gradient(
  642. 135deg,
  643. rgba(255, 255, 255, .4) 27%, transparent 27%,
  644. transparent 52%, rgba(255, 255, 255, .4) 52%,
  645. rgba(255, 255, 255, .4) 77%, transparent 77%,
  646. transparent
  647. );
  648. background-image: linear-gradient(
  649. 135deg,
  650. rgba(255, 255, 255, .4) 27%, transparent 27%,
  651. transparent 52%, rgba(255, 255, 255, .4) 52%,
  652. rgba(255, 255, 255, .4) 77%, transparent 77%,
  653. transparent
  654. );
  655. }
  656. .markdown-body .progress-100plus .progress-bar {
  657. background-color: #a6d796;
  658. }
  659. .markdown-body .progress-80plus .progress-bar {
  660. background-color: #c6d796;
  661. }
  662. .markdown-body .progress-60plus .progress-bar {
  663. background-color: #d7c896;
  664. }
  665. .markdown-body .progress-40plus .progress-bar {
  666. background-color: #d7a796;
  667. }
  668. .markdown-body .progress-20plus .progress-bar {
  669. background-color: #d796a6;
  670. }
  671. .markdown-body .progress-0plus .progress-bar {
  672. background-color: #c25f77;
  673. }
  674. .markdown-body .candystripe-animate .progress-bar{
  675. -webkit-animation: animate-stripes 3s linear infinite;
  676. -moz-animation: animate-stripes 3s linear infinite;
  677. animation: animate-stripes 3s linear infinite;
  678. }
  679. @-webkit-keyframes animate-stripes {
  680. 0% {
  681. background-position: 0 0;
  682. }
  683. 100% {
  684. background-position: 60px 0;
  685. }
  686. }
  687. @-moz-keyframes animate-stripes {
  688. 0% {
  689. background-position: 0 0;
  690. }
  691. 100% {
  692. background-position: 60px 0;
  693. }
  694. }
  695. @keyframes animate-stripes {
  696. 0% {
  697. background-position: 0 0;
  698. }
  699. 100% {
  700. background-position: 60px 0;
  701. }
  702. }
  703. .markdown-body .gloss .progress-bar {
  704. box-shadow:
  705. inset 0 4px 12px rgba(255, 255, 255, .7),
  706. inset 0 -12px 0 rgba(0, 0, 0, .05);
  707. }
  708. /* MultiMarkdown Critic Blocks */
  709. .markdown-body .critic_mark {
  710. background: #ff0;
  711. }
  712. .markdown-body .critic_delete {
  713. color: #c82829;
  714. text-decoration: line-through;
  715. }
  716. .markdown-body .critic_insert {
  717. color: #718c00 ;
  718. text-decoration: underline;
  719. }
  720. .markdown-body .critic_comment {
  721. color: #8e908c;
  722. font-style: italic;
  723. }
  724. .markdown-body .headeranchor {
  725. font: normal normal 16px fontawesome-mini;
  726. line-height: 1;
  727. display: inline-block;
  728. text-decoration: none;
  729. -webkit-font-smoothing: antialiased;
  730. -moz-osx-font-smoothing: grayscale;
  731. -webkit-user-select: none;
  732. -moz-user-select: none;
  733. -ms-user-select: none;
  734. user-select: none;
  735. }
  736. .headeranchor:before {
  737. content: '\e157';
  738. }
  739. .markdown-body .task-list-item {
  740. list-style-type: none;
  741. }
  742. .markdown-body .task-list-item+.task-list-item {
  743. margin-top: 3px;
  744. }
  745. .markdown-body .task-list-item input {
  746. margin: 0 4px 0.25em -20px;
  747. vertical-align: middle;
  748. }
  749. /* Media */
  750. @media only screen and (min-width: 480px) {
  751. .markdown-body {
  752. font-size:14px;
  753. }
  754. }
  755. @media only screen and (min-width: 768px) {
  756. .markdown-body {
  757. font-size:16px;
  758. }
  759. }
  760. @media print {
  761. .markdown-body * {
  762. background: transparent !important;
  763. color: black !important;
  764. filter:none !important;
  765. -ms-filter: none !important;
  766. }
  767. .markdown-body {
  768. font-size:12pt;
  769. max-width:100%;
  770. outline:none;
  771. border: 0;
  772. }
  773. .markdown-body a,
  774. .markdown-body a:visited {
  775. text-decoration: underline;
  776. }
  777. .markdown-body .headeranchor-link {
  778. display: none;
  779. }
  780. .markdown-body a[href]:after {
  781. content: " (" attr(href) ")";
  782. }
  783. .markdown-body abbr[title]:after {
  784. content: " (" attr(title) ")";
  785. }
  786. .markdown-body .ir a:after,
  787. .markdown-body a[href^="javascript:"]:after,
  788. .markdown-body a[href^="#"]:after {
  789. content: "";
  790. }
  791. .markdown-body pre {
  792. white-space: pre;
  793. white-space: pre-wrap;
  794. word-wrap: break-word;
  795. }
  796. .markdown-body pre,
  797. .markdown-body blockquote {
  798. border: 1px solid #999;
  799. padding-right: 1em;
  800. page-break-inside: avoid;
  801. }
  802. .markdown-body .progress,
  803. .markdown-body .progress-bar {
  804. -moz-box-shadow: none;
  805. -webkit-box-shadow: none;
  806. box-shadow: none;
  807. }
  808. .markdown-body .progress {
  809. border: 1px solid #ddd;
  810. }
  811. .markdown-body .progress-bar {
  812. height: 22px;
  813. border-right: 1px solid #ddd;
  814. }
  815. .markdown-body tr,
  816. .markdown-body img {
  817. page-break-inside: avoid;
  818. }
  819. .markdown-body img {
  820. max-width: 100% !important;
  821. }
  822. .markdown-body p,
  823. .markdown-body h2,
  824. .markdown-body h3 {
  825. orphans: 3;
  826. widows: 3;
  827. }
  828. .markdown-body h2,
  829. .markdown-body h3 {
  830. page-break-after: avoid;
  831. }
  832. }
  833. </style><style>/*GitHub*/
  834. .codehilite {background-color:#fff;color:#333333;}
  835. .codehilite .hll {background-color:#ffffcc;}
  836. .codehilite .c{color:#999988;font-style:italic}
  837. .codehilite .err{color:#a61717;background-color:#e3d2d2}
  838. .codehilite .k{font-weight:bold}
  839. .codehilite .o{font-weight:bold}
  840. .codehilite .cm{color:#999988;font-style:italic}
  841. .codehilite .cp{color:#999999;font-weight:bold}
  842. .codehilite .c1{color:#999988;font-style:italic}
  843. .codehilite .cs{color:#999999;font-weight:bold;font-style:italic}
  844. .codehilite .gd{color:#000000;background-color:#ffdddd}
  845. .codehilite .ge{font-style:italic}
  846. .codehilite .gr{color:#aa0000}
  847. .codehilite .gh{color:#999999}
  848. .codehilite .gi{color:#000000;background-color:#ddffdd}
  849. .codehilite .go{color:#888888}
  850. .codehilite .gp{color:#555555}
  851. .codehilite .gs{font-weight:bold}
  852. .codehilite .gu{color:#800080;font-weight:bold}
  853. .codehilite .gt{color:#aa0000}
  854. .codehilite .kc{font-weight:bold}
  855. .codehilite .kd{font-weight:bold}
  856. .codehilite .kn{font-weight:bold}
  857. .codehilite .kp{font-weight:bold}
  858. .codehilite .kr{font-weight:bold}
  859. .codehilite .kt{color:#445588;font-weight:bold}
  860. .codehilite .m{color:#009999}
  861. .codehilite .s{color:#dd1144}
  862. .codehilite .n{color:#333333}
  863. .codehilite .na{color:teal}
  864. .codehilite .nb{color:#0086b3}
  865. .codehilite .nc{color:#445588;font-weight:bold}
  866. .codehilite .no{color:teal}
  867. .codehilite .ni{color:purple}
  868. .codehilite .ne{color:#990000;font-weight:bold}
  869. .codehilite .nf{color:#990000;font-weight:bold}
  870. .codehilite .nn{color:#555555}
  871. .codehilite .nt{color:navy}
  872. .codehilite .nv{color:teal}
  873. .codehilite .ow{font-weight:bold}
  874. .codehilite .w{color:#bbbbbb}
  875. .codehilite .mf{color:#009999}
  876. .codehilite .mh{color:#009999}
  877. .codehilite .mi{color:#009999}
  878. .codehilite .mo{color:#009999}
  879. .codehilite .sb{color:#dd1144}
  880. .codehilite .sc{color:#dd1144}
  881. .codehilite .sd{color:#dd1144}
  882. .codehilite .s2{color:#dd1144}
  883. .codehilite .se{color:#dd1144}
  884. .codehilite .sh{color:#dd1144}
  885. .codehilite .si{color:#dd1144}
  886. .codehilite .sx{color:#dd1144}
  887. .codehilite .sr{color:#009926}
  888. .codehilite .s1{color:#dd1144}
  889. .codehilite .ss{color:#990073}
  890. .codehilite .bp{color:#999999}
  891. .codehilite .vc{color:teal}
  892. .codehilite .vg{color:teal}
  893. .codehilite .vi{color:teal}
  894. .codehilite .il{color:#009999}
  895. .codehilite .gc{color:#999;background-color:#EAF2F5}
  896. </style><title>Readme</title></head><body><article class="markdown-body"><div class="toc">
  897. <ul>
  898. <li><a href="#20-app">基于移动应用平台2.0 APP的单点登录插件</a><ul>
  899. <li><a href="#_1">一.文件结构一览</a></li>
  900. <li><a href="#_2">二.集成方式概述</a></li>
  901. <li><a href="#_3">三.集成方式</a><ul>
  902. <li><a href="#31-cordova">3.1 Cordova集成方式</a></li>
  903. <li><a href="#32-yarn">3.2 Yarn集成方式</a></li>
  904. </ul>
  905. </li>
  906. <li><a href="#_4">四.使用</a></li>
  907. <li><a href="#_5">更新历史</a><ul>
  908. <li><a href="#1011-20190522">1.0.11 2019.05.22</a></li>
  909. </ul>
  910. </li>
  911. </ul>
  912. </li>
  913. </ul>
  914. </div>
  915. <h1 id="20-app">基于移动应用平台2.0 APP的单点登录插件<a class="headerlink" href="#20-app" title="Permanent link"></a></h1>
  916. <ul>
  917. <li>前提:<font color=#DC143C>已安装新版本的<code>移动应用门户</code></font>,单点登录依赖 移动应用平台2.0 App. </li>
  918. <li>平台与系统:<code>iOS 9 ~ 12</code>; Android:<code>4.4 ~ 9</code>,支持Ionic、Vue、React构建的App. </li>
  919. <li>功能与作用:提供第三方应用与门户App已登录用户的信息交换,门户App以json方式提供username、password、token给第三方应用,第三方应用与门户App是否采用同一账号体系(4A账号体系),则取决于第三方应用。</li>
  920. <li>启动方式:手机桌面启动(下称:桌面启动&rsquo;)、门户工作台启动(下称:工作台启动). </li>
  921. </ul>
  922. <h3 id="_1">一.文件结构一览<a class="headerlink" href="#_1" title="Permanent link"></a></h3>
  923. <p><escape>
  924. <table>
  925. <tr><th>文件名</th><th>其它</th></tr> ##表头
  926. <tr><td>Readme.md</td><td>插件集成和部分使用文档说明</td></tr>
  927. <tr><td rowspan="3">详细配置文档</td><td><a href="#">使用前先阅读Readme.txt</a></td></tr>
  928. <tr><td><a href="/Users/xingleizhen/Documents/%E6%B6%A6%E5%92%8C/%E9%A1%B9%E7%9B%AE/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8%E7%A0%94%E5%8F%91%E5%B9%B3%E5%8F%B0/Fedp/yi-dong-ying-yong-copy/%E9%85%8D%E7%BD%AE%E6%96%87%E6%A1%A3/android%E9%85%8D%E7%BD%AE%E6%96%87%E6%A1%A3.md">android配置文档</a></td></tr>
  929. <tr><td><a href="/Users/xingleizhen/Documents/%E6%B6%A6%E5%92%8C/%E9%A1%B9%E7%9B%AE/%E7%A7%BB%E5%8A%A8%E5%BA%94%E7%94%A8%E7%A0%94%E5%8F%91%E5%B9%B3%E5%8F%B0/Fedp/yi-dong-ying-yong-copy/%E9%85%8D%E7%BD%AE%E6%96%87%E6%A1%A3/iOS%E9%85%8D%E7%BD%AE%E6%96%87%E6%A1%A3.md">iOS配置文档</a></td></tr>
  930. <tr><td>package.json</td><td>包文件,可查看基本信息</td></tr>
  931. <tr><td>plugin.xml</td><td>插件配置文件</td></tr>
  932. <tr><td>src</td><td>Android和iOS原生代码文件</td></tr>
  933. <tr><td>www</td><td>插件js文件,web可直接调用</td></tr>
  934. </table><br />
  935. </escape> </p>
  936. <h3 id="_2">二.集成方式概述<a class="headerlink" href="#_2" title="Permanent link"></a></h3>
  937. <hr />
  938. <p><font color=#DC143C>以下操作请在项目根目录下进行.</font> </p>
  939. <ol>
  940. <li>下载插件ZIP文件,解压</li>
  941. <li>修改插件文件的plugin.xml文件</li>
  942. <li>项目根目录下新建<code>myplugins</code>文件夹,将修改后的插件文件夹放在此处. </li>
  943. </ol>
  944. <ul>
  945. <li><a href="#31-cordova集成方式">cordova命令引入</a> <br />
  946. 使用方式比较简单.需要<a href="https://cordova.apache.org/#getstarted">安装cordova</a>包. </li>
  947. <li><a href="#32-yarn集成方式">yarn命令引入</a> <br />
  948. 使用方式比较麻烦.需要<a href="https://yarnpkg.com/zh-Hans/">安装yarn</a>. </li>
  949. </ul>
  950. <h3 id="_3">三.集成方式<a class="headerlink" href="#_3" title="Permanent link"></a></h3>
  951. <hr />
  952. <!-- <span id="cordova">
  953. <font color=#DC143C> -->
  954. <h5 id="31-cordova">3.1 Cordova集成方式<a class="headerlink" href="#31-cordova" title="Permanent link"></a></h5>
  955. <p><!-- </font>
  956. </span> -->
  957. 1. 修改插件plugin.xml文件 <br />
  958. 在myplugins文件夹下的yi-dong-ying-yong-copy文件夹下,找到plugin.xml文件,将
  959. <div class="codehilite"><pre> &lt;preference name=&quot;URL_SCHEME&quot; default=&quot;weixin.wuxiyi.com&quot;/&gt;
  960. </pre></div>
  961. 替换为: <br />
  962. <font color=FF0000>
  963. <div class="codehilite"><pre> &lt;preference name=&quot;URL_SCHEME&quot; default=&quot;安卓为平台app包名,iOS为本应用ID&quot;/&gt;
  964. </pre></div>
  965. </font>
  966. 2. 添加插件到项目中 <br />
  967. 使用Visual Studio Code打开项目,左下角切换到终端,并输入: <br />
  968. <div class="codehilite"><pre> cordova plugin add ./myplugins/yi-dong-ying-yong-copy
  969. </pre></div></p>
  970. <h5 id="32-yarn">3.2 Yarn集成方式<a class="headerlink" href="#32-yarn" title="Permanent link"></a></h5>
  971. <ol>
  972. <li>修改插件plugin.xml文件
  973. 在myplugins文件夹下的yi-dong-ying-yong-copy文件夹下,找到plugin.xml文件,将 <br />
  974. <div class="codehilite"><pre> &lt;preference name=&quot;URL_SCHEME&quot; default=&quot;weixin.wuxiyi.com&quot;/&gt;
  975. </pre></div>
  976. 替换为: <br />
  977. <font color=FF0000>
  978. <div class="codehilite"><pre> &lt;preference name=&quot;URL_SCHEME&quot; default=&quot;安卓为平台app包名,iOS为本应用ID&quot;/&gt;
  979. </pre></div>
  980. </font></li>
  981. <li>修改项目根目录下的package.json文件 <br />
  982. 在<code>dependencies</code> 一项中,添加单点登录插件的本地依赖,如下: <br />
  983. <div class="codehilite"><pre> &quot;cordova-plugin-dingxin-sso&quot;: &quot;file:./myplugins/yi-dong-ying-yong-copy&quot;
  984. </pre></div></li>
  985. <li>安装项目依赖 <br />
  986. Visual Studio Code打开项目,左下角切换到终端,并输入: <br />
  987. <div class="codehilite"><pre> yarn install 特别提醒,不要使用npm install
  988. </pre></div></li>
  989. <li>修改项目config.xml文件 <br />
  990. 项目根目录下的config.xml,添加到其它<plugin />标签之前,如下: <br />
  991. <div class="codehilite"><pre> &lt;plugin name=&quot;cordova-plugin-dingxin-sso&quot; spec=&quot;./node_modules/cordova-plugin-dingxin-sso&quot;&gt;
  992. &lt;variable name=&quot;URL_SCHEME&quot; value=&quot;安卓为平台app包名,iOS为本应用ID&quot; /&gt;
  993. &lt;/plugin&gt;
  994. </pre></div></li>
  995. </ol>
  996. <h3 id="_4">四.使用<a class="headerlink" href="#_4" title="Permanent link"></a></h3>
  997. <hr />
  998. <p>在需要登录的地方,如LoginComponent.ts中添加示例代码,如下:
  999. <div class="codehilite"><pre> declare let cordova: any; // 声明一个cordova对象
  1000. /**
  1001. * 登录操作
  1002. */
  1003. onLoginClick() {
  1004. cordova.dingxin.sso.login((ssoRes) =&gt; {
  1005. // dingxin.sso 成功回调
  1006. let data = JSON.parse(ssoRes);
  1007. // TODO ...
  1008. }, () =&gt; {
  1009. // dingxin.sso 登录失败回调
  1010. // TODO ...
  1011. }, &quot;安卓为平台app包名,iOS为本应用ID(见下注释)&quot;);
  1012. 安卓为移动应用平台app的 package id,
  1013. iOS则要修改为本应用的ID。
  1014. }
  1015. </pre></div></p>
  1016. <h3 id="_5">更新历史<a class="headerlink" href="#_5" title="Permanent link"></a></h3>
  1017. <h5 id="1011-20190522">1.0.11 2019.05.22<a class="headerlink" href="#1011-20190522" title="Permanent link"></a></h5>
  1018. <ol>
  1019. <li>更新了集成文档,调理更清晰</li>
  1020. <li>拆分了配置文档,集成时更有针对性</li>
  1021. <li>修改了SSOLoginPlugin.js文件,精简了参数,去除了type参数</li>
  1022. <li>完善了安卓checkPermission()使用场景,解决了缺少权限的问题.</li>
  1023. </ol>
  1024. <!-- 3s刷新一次预览 -->
  1025. <!-- <meta http-equiv="refresh" content="3"> --></article></body></html>