ServicesPage.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <!doctype html>
  2. <html class="no-js" lang="">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="x-ua-compatible" content="ie=edge">
  6. <title>time1 documentation</title>
  7. <meta name="description" content="">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
  10. <link rel="stylesheet" href="../styles/style.css">
  11. <link rel="stylesheet" href="../styles/dark.css">
  12. </head>
  13. <body>
  14. <script>
  15. // Blocking script to avoid flickering dark mode
  16. // Dark mode toggle button
  17. var useDark = window.matchMedia('(prefers-color-scheme: dark)');
  18. var darkModeState = useDark.matches;
  19. var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
  20. var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
  21. var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
  22. function checkToggle(check) {
  23. for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
  24. $darkModeToggleSwitchers[i].checked = check;
  25. }
  26. }
  27. function toggleDarkMode(state) {
  28. if (window.localStorage) {
  29. localStorage.setItem('compodoc_darkmode-state', state);
  30. }
  31. checkToggle(state);
  32. const hasClass = document.body.classList.contains('dark');
  33. if (state) {
  34. for (var i = 0; i < $darkModeToggles.length; i++) {
  35. $darkModeToggles[i].classList.add('dark');
  36. }
  37. if (!hasClass) {
  38. document.body.classList.add('dark');
  39. }
  40. } else {
  41. for (var i = 0; i < $darkModeToggles.length; i++) {
  42. $darkModeToggles[i].classList.remove('dark');
  43. }
  44. if (hasClass) {
  45. document.body.classList.remove('dark');
  46. }
  47. }
  48. }
  49. useDark.addEventListener('change', function (evt) {
  50. toggleDarkMode(evt.matches);
  51. });
  52. if (darkModeStateLocal) {
  53. darkModeState = darkModeStateLocal === 'true';
  54. }
  55. toggleDarkMode(darkModeState);
  56. </script>
  57. <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
  58. <div class="d-flex">
  59. <a href="../" class="navbar-brand">time1 documentation</a>
  60. <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
  61. </div>
  62. </div>
  63. <div class="xs-menu menu" id="mobile-menu">
  64. <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
  65. </div>
  66. <div class="container-fluid main">
  67. <div class="row main">
  68. <div class="d-none d-md-block menu">
  69. <compodoc-menu mode="normal"></compodoc-menu>
  70. </div>
  71. <!-- START CONTENT -->
  72. <div class="content component">
  73. <div class="content-data">
  74. <ol class="breadcrumb">
  75. <li class="breadcrumb-item">Components</li>
  76. <li class="breadcrumb-item"
  77. >
  78. ServicesPage</li>
  79. </ol>
  80. <ul class="nav nav-tabs" role="tablist">
  81. <li class="nav-item">
  82. <a href="#info" class="nav-link active"
  83. role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
  84. </li>
  85. <li class="nav-item">
  86. <a href="#source" class="nav-link"
  87. role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
  88. </li>
  89. <li class="nav-item">
  90. <a href="#templateData" class="nav-link"
  91. role="tab" id="templateData-tab" data-bs-toggle="tab" data-link="template">Template</a>
  92. </li>
  93. <li class="nav-item">
  94. <a href="#styleData" class="nav-link"
  95. role="tab" id="styleData-tab" data-bs-toggle="tab" data-link="style">Styles</a>
  96. </li>
  97. <li class="nav-item">
  98. <a href="#tree" class="nav-link"
  99. role="tab" id="tree-tab" data-bs-toggle="tab" data-link="dom-tree">DOM Tree</a>
  100. </li>
  101. </ul>
  102. <div class="tab-content">
  103. <div class="tab-pane fade active in" id="info"><p class="comment">
  104. <h3>File</h3>
  105. </p>
  106. <p class="comment">
  107. <code>src/app/services/services.page.ts</code>
  108. </p>
  109. <section data-compodoc="block-metadata">
  110. <h3>Metadata</h3>
  111. <table class="table table-sm table-hover metadata">
  112. <tbody>
  113. <tr>
  114. <td class="col-md-3">selector</td>
  115. <td class="col-md-9"><code>app-services</code></td>
  116. </tr>
  117. <tr>
  118. <td class="col-md-3">styleUrls</td>
  119. <td class="col-md-9"><code>./services.page.scss</code></td>
  120. </tr>
  121. <tr>
  122. <td class="col-md-3">templateUrl</td>
  123. <td class="col-md-9"><code>./services.page.html</code></td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </section>
  128. <section data-compodoc="block-index">
  129. <h3 id="index">Index</h3>
  130. <table class="table table-sm table-bordered index-table">
  131. <tbody>
  132. <tr>
  133. <td class="col-md-4">
  134. <h6><b>Properties</b></h6>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="col-md-4">
  139. <ul class="index-list">
  140. <li>
  141. <a href="#hasSelfDisciplineScore" >hasSelfDisciplineScore</a>
  142. </li>
  143. <li>
  144. <a href="#hasTimeOptimizationSuggestion" >hasTimeOptimizationSuggestion</a>
  145. </li>
  146. <li>
  147. <a href="#selfDisciplineEvaluation" >selfDisciplineEvaluation</a>
  148. </li>
  149. <li>
  150. <a href="#selfDisciplineScore" >selfDisciplineScore</a>
  151. </li>
  152. <li>
  153. <a href="#timeOptimizationSuggestion" >timeOptimizationSuggestion</a>
  154. </li>
  155. </ul>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td class="col-md-4">
  160. <h6><b>Methods</b></h6>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td class="col-md-4">
  165. <ul class="index-list">
  166. <li>
  167. <a href="#generateAISchedule" >generateAISchedule</a>
  168. </li>
  169. <li>
  170. <a href="#generateSelfDisciplineScore" >generateSelfDisciplineScore</a>
  171. </li>
  172. <li>
  173. <a href="#generateTimeOptimizationSuggestion" >generateTimeOptimizationSuggestion</a>
  174. </li>
  175. </ul>
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </section>
  181. <section data-compodoc="block-constructor">
  182. <h3 id="constructor">Constructor</h3>
  183. <table class="table table-sm table-bordered">
  184. <tbody>
  185. <tr>
  186. <td class="col-md-4">
  187. <code>constructor()</code>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td class="col-md-4">
  192. <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/services/services.page.ts:14</a></div>
  193. </td>
  194. </tr>
  195. </tbody>
  196. </table>
  197. </section>
  198. <section data-compodoc="block-methods">
  199. <h3 id="methods">
  200. Methods
  201. </h3>
  202. <table class="table table-sm table-bordered">
  203. <tbody>
  204. <tr>
  205. <td class="col-md-4">
  206. <a name="generateAISchedule"></a>
  207. <span class="name">
  208. <span ><b>generateAISchedule</b></span>
  209. <a href="#generateAISchedule"><span class="icon ion-ios-link"></span></a>
  210. </span>
  211. </td>
  212. </tr>
  213. <tr>
  214. <td class="col-md-4">
  215. <code>generateAISchedule()</code>
  216. </td>
  217. </tr>
  218. <tr>
  219. <td class="col-md-4">
  220. <div class="io-line">Defined in <a href="" data-line="18"
  221. class="link-to-prism">src/app/services/services.page.ts:18</a></div>
  222. </td>
  223. </tr>
  224. <tr>
  225. <td class="col-md-4">
  226. <div class="io-description">
  227. <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
  228. </div>
  229. </td>
  230. </tr>
  231. </tbody>
  232. </table>
  233. <table class="table table-sm table-bordered">
  234. <tbody>
  235. <tr>
  236. <td class="col-md-4">
  237. <a name="generateSelfDisciplineScore"></a>
  238. <span class="name">
  239. <span ><b>generateSelfDisciplineScore</b></span>
  240. <a href="#generateSelfDisciplineScore"><span class="icon ion-ios-link"></span></a>
  241. </span>
  242. </td>
  243. </tr>
  244. <tr>
  245. <td class="col-md-4">
  246. <code>generateSelfDisciplineScore()</code>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td class="col-md-4">
  251. <div class="io-line">Defined in <a href="" data-line="23"
  252. class="link-to-prism">src/app/services/services.page.ts:23</a></div>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td class="col-md-4">
  257. <div class="io-description">
  258. <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
  259. </div>
  260. </td>
  261. </tr>
  262. </tbody>
  263. </table>
  264. <table class="table table-sm table-bordered">
  265. <tbody>
  266. <tr>
  267. <td class="col-md-4">
  268. <a name="generateTimeOptimizationSuggestion"></a>
  269. <span class="name">
  270. <span ><b>generateTimeOptimizationSuggestion</b></span>
  271. <a href="#generateTimeOptimizationSuggestion"><span class="icon ion-ios-link"></span></a>
  272. </span>
  273. </td>
  274. </tr>
  275. <tr>
  276. <td class="col-md-4">
  277. <code>generateTimeOptimizationSuggestion()</code>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td class="col-md-4">
  282. <div class="io-line">Defined in <a href="" data-line="30"
  283. class="link-to-prism">src/app/services/services.page.ts:30</a></div>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="col-md-4">
  288. <div class="io-description">
  289. <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
  290. </div>
  291. </td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. </section>
  296. <section data-compodoc="block-properties">
  297. <h3 id="inputs">
  298. Properties
  299. </h3>
  300. <table class="table table-sm table-bordered">
  301. <tbody>
  302. <tr>
  303. <td class="col-md-4">
  304. <a name="hasSelfDisciplineScore"></a>
  305. <span class="name">
  306. <span ><b>hasSelfDisciplineScore</b></span>
  307. <a href="#hasSelfDisciplineScore"><span class="icon ion-ios-link"></span></a>
  308. </span>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td class="col-md-4">
  313. <i>Default value : </i><code>false</code>
  314. </td>
  315. </tr>
  316. <tr>
  317. <td class="col-md-4">
  318. <div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">src/app/services/services.page.ts:9</a></div>
  319. </td>
  320. </tr>
  321. </tbody>
  322. </table>
  323. <table class="table table-sm table-bordered">
  324. <tbody>
  325. <tr>
  326. <td class="col-md-4">
  327. <a name="hasTimeOptimizationSuggestion"></a>
  328. <span class="name">
  329. <span ><b>hasTimeOptimizationSuggestion</b></span>
  330. <a href="#hasTimeOptimizationSuggestion"><span class="icon ion-ios-link"></span></a>
  331. </span>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td class="col-md-4">
  336. <i>Default value : </i><code>false</code>
  337. </td>
  338. </tr>
  339. <tr>
  340. <td class="col-md-4">
  341. <div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/services/services.page.ts:13</a></div>
  342. </td>
  343. </tr>
  344. </tbody>
  345. </table>
  346. <table class="table table-sm table-bordered">
  347. <tbody>
  348. <tr>
  349. <td class="col-md-4">
  350. <a name="selfDisciplineEvaluation"></a>
  351. <span class="name">
  352. <span ><b>selfDisciplineEvaluation</b></span>
  353. <a href="#selfDisciplineEvaluation"><span class="icon ion-ios-link"></span></a>
  354. </span>
  355. </td>
  356. </tr>
  357. <tr>
  358. <td class="col-md-4">
  359. <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
  360. </td>
  361. </tr>
  362. <tr>
  363. <td class="col-md-4">
  364. <i>Default value : </i><code>&#x27;&#x27;</code>
  365. </td>
  366. </tr>
  367. <tr>
  368. <td class="col-md-4">
  369. <div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/services/services.page.ts:11</a></div>
  370. </td>
  371. </tr>
  372. </tbody>
  373. </table>
  374. <table class="table table-sm table-bordered">
  375. <tbody>
  376. <tr>
  377. <td class="col-md-4">
  378. <a name="selfDisciplineScore"></a>
  379. <span class="name">
  380. <span ><b>selfDisciplineScore</b></span>
  381. <a href="#selfDisciplineScore"><span class="icon ion-ios-link"></span></a>
  382. </span>
  383. </td>
  384. </tr>
  385. <tr>
  386. <td class="col-md-4">
  387. <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
  388. </td>
  389. </tr>
  390. <tr>
  391. <td class="col-md-4">
  392. <i>Default value : </i><code>&#x27;&#x27;</code>
  393. </td>
  394. </tr>
  395. <tr>
  396. <td class="col-md-4">
  397. <div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/app/services/services.page.ts:10</a></div>
  398. </td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. <table class="table table-sm table-bordered">
  403. <tbody>
  404. <tr>
  405. <td class="col-md-4">
  406. <a name="timeOptimizationSuggestion"></a>
  407. <span class="name">
  408. <span ><b>timeOptimizationSuggestion</b></span>
  409. <a href="#timeOptimizationSuggestion"><span class="icon ion-ios-link"></span></a>
  410. </span>
  411. </td>
  412. </tr>
  413. <tr>
  414. <td class="col-md-4">
  415. <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
  416. </td>
  417. </tr>
  418. <tr>
  419. <td class="col-md-4">
  420. <i>Default value : </i><code>&#x27;&#x27;</code>
  421. </td>
  422. </tr>
  423. <tr>
  424. <td class="col-md-4">
  425. <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/services/services.page.ts:14</a></div>
  426. </td>
  427. </tr>
  428. </tbody>
  429. </table>
  430. </section>
  431. </div>
  432. <div class="tab-pane fade tab-source-code" id="source">
  433. <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &#x27;@angular/core&#x27;;
  434. @Component({
  435. selector: &#x27;app-services&#x27;,
  436. templateUrl: &#x27;./services.page.html&#x27;,
  437. styleUrls: [&#x27;./services.page.scss&#x27;],
  438. })
  439. export class ServicesPage {
  440. hasSelfDisciplineScore &#x3D; false;
  441. selfDisciplineScore: string &#x3D; &#x27;&#x27;;
  442. selfDisciplineEvaluation: string &#x3D; &#x27;&#x27;;
  443. hasTimeOptimizationSuggestion &#x3D; false;
  444. timeOptimizationSuggestion: string &#x3D; &#x27;&#x27;;
  445. constructor() { }
  446. generateAISchedule() {
  447. // 进入子页面生成AI时间表的逻辑
  448. console.log(&#x27;AI时间表生成按钮点击&#x27;);
  449. }
  450. generateSelfDisciplineScore() {
  451. this.hasSelfDisciplineScore &#x3D; true;
  452. this.selfDisciplineScore &#x3D; &#x27;自律评分:85&#x27;;
  453. this.selfDisciplineEvaluation &#x3D; &#x27;昨天的表现很好,继续保持!&#x27;;
  454. console.log(&#x27;自律评分生成&#x27;);
  455. }
  456. generateTimeOptimizationSuggestion() {
  457. this.hasTimeOptimizationSuggestion &#x3D; true;
  458. this.timeOptimizationSuggestion &#x3D; &#x27;建议每天早起一小时,提高效率。&#x27;;
  459. console.log(&#x27;时间优化建议生成&#x27;);
  460. }
  461. }
  462. </code></pre>
  463. </div>
  464. <div class="tab-pane fade " id="templateData">
  465. <pre class="line-numbers"><code class="language-html">&lt;ion-header&gt;
  466. &lt;ion-toolbar&gt;
  467. &lt;ion-title&gt;服务页面&lt;/ion-title&gt;
  468. &lt;/ion-toolbar&gt;
  469. &lt;/ion-header&gt;
  470. &lt;ion-content&gt;
  471. &lt;ion-button expand&#x3D;&quot;block&quot; color&#x3D;&quot;primary&quot; (click)&#x3D;&quot;generateAISchedule()&quot; class&#x3D;&quot;ai-schedule-button&quot;&gt;
  472. &lt;ion-icon slot&#x3D;&quot;start&quot; name&#x3D;&quot;calendar&quot;&gt;&lt;/ion-icon&gt;
  473. AI时间表生成
  474. &lt;/ion-button&gt;
  475. &lt;h2 class&#x3D;&quot;center-title&quot;&gt;自律评分&lt;/h2&gt;
  476. &lt;ion-card class&#x3D;&quot;custom-card&quot;&gt;
  477. &lt;ion-card-content&gt;
  478. &lt;div *ngIf&#x3D;&quot;!hasSelfDisciplineScore&quot;&gt;
  479. &lt;ion-button expand&#x3D;&quot;block&quot; color&#x3D;&quot;secondary&quot; (click)&#x3D;&quot;generateSelfDisciplineScore()&quot;&gt;
  480. 生成
  481. &lt;/ion-button&gt;
  482. &lt;/div&gt;
  483. &lt;div *ngIf&#x3D;&quot;hasSelfDisciplineScore&quot;&gt;
  484. &lt;p&gt;{{ selfDisciplineScore }}&lt;/p&gt;
  485. &lt;p&gt;{{ selfDisciplineEvaluation }}&lt;/p&gt;
  486. &lt;/div&gt;
  487. &lt;/ion-card-content&gt;
  488. &lt;/ion-card&gt;
  489. &lt;h2 class&#x3D;&quot;center-title&quot;&gt;时间优化建议&lt;/h2&gt;
  490. &lt;ion-card class&#x3D;&quot;custom-card&quot;&gt;
  491. &lt;ion-card-content&gt;
  492. &lt;div *ngIf&#x3D;&quot;!hasTimeOptimizationSuggestion&quot;&gt;
  493. &lt;ion-button expand&#x3D;&quot;block&quot; color&#x3D;&quot;tertiary&quot; (click)&#x3D;&quot;generateTimeOptimizationSuggestion()&quot;&gt;
  494. 生成
  495. &lt;/ion-button&gt;
  496. &lt;/div&gt;
  497. &lt;div *ngIf&#x3D;&quot;hasTimeOptimizationSuggestion&quot;&gt;
  498. &lt;p&gt;{{ timeOptimizationSuggestion }}&lt;/p&gt;
  499. &lt;/div&gt;
  500. &lt;/ion-card-content&gt;
  501. &lt;/ion-card&gt;
  502. &lt;/ion-content&gt;
  503. </code></pre>
  504. </div>
  505. <div class="tab-pane fade " id="styleData">
  506. <p class="comment">
  507. <code>./services.page.scss</code>
  508. </p>
  509. <pre class="line-numbers"><code class="language-scss">ion-header {
  510. --background: #f8f9fa;
  511. --color: #000;
  512. }
  513. ion-content {
  514. --padding-start: 16px;
  515. --padding-end: 16px;
  516. }
  517. .ai-schedule-button {
  518. margin-top: 20px;
  519. height: 50px;
  520. }
  521. .center-title {
  522. text-align: center;
  523. font-size: 1.2em;
  524. font-weight: bold;
  525. margin-top: 20px;
  526. margin-bottom: 10px;
  527. }
  528. .custom-card {
  529. margin: 20px 0;
  530. padding: 20px;
  531. }
  532. </code></pre>
  533. </div>
  534. <div class="tab-pane fade " id="tree">
  535. <div id="tree-container"></div>
  536. <div class="tree-legend">
  537. <div class="title">
  538. <b>Legend</b>
  539. </div>
  540. <div>
  541. <div class="color htmlelement"></div><span>Html element</span>
  542. </div>
  543. <div>
  544. <div class="color component"></div><span>Component</span>
  545. </div>
  546. <div>
  547. <div class="color directive"></div><span>Html element with directive</span>
  548. </div>
  549. </div>
  550. </div>
  551. </div>
  552. <script src="../js/libs/vis.min.js"></script>
  553. <script src="../js/libs/htmlparser.js"></script>
  554. <script src="../js/libs/deep-iterator.js"></script>
  555. <script>
  556. var COMPONENT_TEMPLATE = '<div><ion-header> <ion-toolbar> <ion-title>服务页面</ion-title> </ion-toolbar></ion-header><ion-content> <ion-button expand="block" color="primary" (click)="generateAISchedule()" class="ai-schedule-button"> <ion-icon slot="start" name="calendar"></ion-icon> AI时间表生成 </ion-button> <h2 class="center-title">自律评分</h2> <ion-card class="custom-card"> <ion-card-content> <div *ngIf="!hasSelfDisciplineScore"> <ion-button expand="block" color="secondary" (click)="generateSelfDisciplineScore()"> 生成 </ion-button> </div> <div *ngIf="hasSelfDisciplineScore"> <p>{{ selfDisciplineScore }}</p> <p>{{ selfDisciplineEvaluation }}</p> </div> </ion-card-content> </ion-card> <h2 class="center-title">时间优化建议</h2> <ion-card class="custom-card"> <ion-card-content> <div *ngIf="!hasTimeOptimizationSuggestion"> <ion-button expand="block" color="tertiary" (click)="generateTimeOptimizationSuggestion()"> 生成 </ion-button> </div> <div *ngIf="hasTimeOptimizationSuggestion"> <p>{{ timeOptimizationSuggestion }}</p> </div> </ion-card-content> </ion-card></ion-content></div>'
  557. var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'ExploreContainerComponent', 'selector': 'app-explore-container'},{'name': 'HomePage', 'selector': 'app-home'},{'name': 'ProfilePage', 'selector': 'app-profile'},{'name': 'ServicesPage', 'selector': 'app-services'},{'name': 'TabsPage', 'selector': 'app-tabs'},{'name': 'TasksPage', 'selector': 'app-tasks'}];
  558. var DIRECTIVES = [];
  559. var ACTUAL_COMPONENT = {'name': 'ServicesPage'};
  560. </script>
  561. <script src="../js/tree.js"></script>
  562. </div><div class="search-results">
  563. <div class="has-results">
  564. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  565. <ul class="search-results-list"></ul>
  566. </div>
  567. <div class="no-results">
  568. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  569. </div>
  570. </div>
  571. </div>
  572. <!-- END CONTENT -->
  573. </div>
  574. </div>
  575. <label class="dark-mode-switch">
  576. <input type="checkbox">
  577. <span class="slider">
  578. <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
  579. <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
  580. </svg>
  581. </span>
  582. </label>
  583. <script>
  584. var COMPODOC_CURRENT_PAGE_DEPTH = 1;
  585. var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
  586. var COMPODOC_CURRENT_PAGE_URL = 'ServicesPage.html';
  587. var MAX_SEARCH_RESULTS = 15;
  588. </script>
  589. <script>
  590. $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
  591. checkToggle(darkModeState);
  592. if ($darkModeToggleSwitchers.length > 0) {
  593. for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
  594. $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
  595. darkModeState = !darkModeState;
  596. toggleDarkMode(darkModeState);
  597. });
  598. }
  599. }
  600. </script>
  601. <script src="../js/libs/custom-elements.min.js"></script>
  602. <script src="../js/libs/lit-html.js"></script>
  603. <script src="../js/menu-wc.js" defer></script>
  604. <script nomodule src="../js/menu-wc_es5.js" defer></script>
  605. <script src="../js/libs/bootstrap-native.js"></script>
  606. <script src="../js/libs/es6-shim.min.js"></script>
  607. <script src="../js/libs/EventDispatcher.js"></script>
  608. <script src="../js/libs/promise.min.js"></script>
  609. <script src="../js/libs/zepto.min.js"></script>
  610. <script src="../js/compodoc.js"></script>
  611. <script src="../js/tabs.js"></script>
  612. <script src="../js/menu.js"></script>
  613. <script src="../js/libs/clipboard.min.js"></script>
  614. <script src="../js/libs/prism.js"></script>
  615. <script src="../js/sourceCode.js"></script>
  616. <script src="../js/search/search.js"></script>
  617. <script src="../js/search/lunr.min.js"></script>
  618. <script src="../js/search/search-lunr.js"></script>
  619. <script src="../js/search/search_index.js"></script>
  620. <script src="../js/lazy-load-graphs.js"></script>
  621. </body>
  622. </html>