AppComponent.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. AppComponent</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/app.component.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-root</code></td>
  116. </tr>
  117. <tr>
  118. <td class="col-md-3">styleUrls</td>
  119. <td class="col-md-9"><code>app.component.scss</code></td>
  120. </tr>
  121. <tr>
  122. <td class="col-md-3">templateUrl</td>
  123. <td class="col-md-9"><code>app.component.html</code></td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </section>
  128. <section data-compodoc="block-constructor">
  129. <h3 id="constructor">Constructor</h3>
  130. <table class="table table-sm table-bordered">
  131. <tbody>
  132. <tr>
  133. <td class="col-md-4">
  134. <code>constructor()</code>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="col-md-4">
  139. <div class="io-line">Defined in <a href="" data-line="8" class="link-to-prism">src/app/app.component.ts:8</a></div>
  140. </td>
  141. </tr>
  142. </tbody>
  143. </table>
  144. </section>
  145. </div>
  146. <div class="tab-pane fade tab-source-code" id="source">
  147. <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &#x27;@angular/core&#x27;;
  148. @Component({
  149. selector: &#x27;app-root&#x27;,
  150. templateUrl: &#x27;app.component.html&#x27;,
  151. styleUrls: [&#x27;app.component.scss&#x27;],
  152. })
  153. export class AppComponent {
  154. constructor() {}
  155. }
  156. </code></pre>
  157. </div>
  158. <div class="tab-pane fade " id="templateData">
  159. <pre class="line-numbers"><code class="language-html">&lt;ion-app&gt;
  160. &lt;ion-router-outlet&gt;&lt;/ion-router-outlet&gt;
  161. &lt;/ion-app&gt;
  162. </code></pre>
  163. </div>
  164. <div class="tab-pane fade " id="styleData">
  165. <p class="comment">
  166. <code>app.component.scss</code>
  167. </p>
  168. <pre class="line-numbers"><code class="language-scss"></code></pre>
  169. </div>
  170. <div class="tab-pane fade " id="tree">
  171. <div id="tree-container"></div>
  172. <div class="tree-legend">
  173. <div class="title">
  174. <b>Legend</b>
  175. </div>
  176. <div>
  177. <div class="color htmlelement"></div><span>Html element</span>
  178. </div>
  179. <div>
  180. <div class="color component"></div><span>Component</span>
  181. </div>
  182. <div>
  183. <div class="color directive"></div><span>Html element with directive</span>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <script src="../js/libs/vis.min.js"></script>
  189. <script src="../js/libs/htmlparser.js"></script>
  190. <script src="../js/libs/deep-iterator.js"></script>
  191. <script>
  192. var COMPONENT_TEMPLATE = '<div><ion-app> <ion-router-outlet></ion-router-outlet></ion-app></div>'
  193. 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'}];
  194. var DIRECTIVES = [];
  195. var ACTUAL_COMPONENT = {'name': 'AppComponent'};
  196. </script>
  197. <script src="../js/tree.js"></script>
  198. </div><div class="search-results">
  199. <div class="has-results">
  200. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  201. <ul class="search-results-list"></ul>
  202. </div>
  203. <div class="no-results">
  204. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  205. </div>
  206. </div>
  207. </div>
  208. <!-- END CONTENT -->
  209. </div>
  210. </div>
  211. <label class="dark-mode-switch">
  212. <input type="checkbox">
  213. <span class="slider">
  214. <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">
  215. <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
  216. </svg>
  217. </span>
  218. </label>
  219. <script>
  220. var COMPODOC_CURRENT_PAGE_DEPTH = 1;
  221. var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
  222. var COMPODOC_CURRENT_PAGE_URL = 'AppComponent.html';
  223. var MAX_SEARCH_RESULTS = 15;
  224. </script>
  225. <script>
  226. $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
  227. checkToggle(darkModeState);
  228. if ($darkModeToggleSwitchers.length > 0) {
  229. for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
  230. $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
  231. darkModeState = !darkModeState;
  232. toggleDarkMode(darkModeState);
  233. });
  234. }
  235. }
  236. </script>
  237. <script src="../js/libs/custom-elements.min.js"></script>
  238. <script src="../js/libs/lit-html.js"></script>
  239. <script src="../js/menu-wc.js" defer></script>
  240. <script nomodule src="../js/menu-wc_es5.js" defer></script>
  241. <script src="../js/libs/bootstrap-native.js"></script>
  242. <script src="../js/libs/es6-shim.min.js"></script>
  243. <script src="../js/libs/EventDispatcher.js"></script>
  244. <script src="../js/libs/promise.min.js"></script>
  245. <script src="../js/libs/zepto.min.js"></script>
  246. <script src="../js/compodoc.js"></script>
  247. <script src="../js/tabs.js"></script>
  248. <script src="../js/menu.js"></script>
  249. <script src="../js/libs/clipboard.min.js"></script>
  250. <script src="../js/libs/prism.js"></script>
  251. <script src="../js/sourceCode.js"></script>
  252. <script src="../js/search/search.js"></script>
  253. <script src="../js/search/lunr.min.js"></script>
  254. <script src="../js/search/search-lunr.js"></script>
  255. <script src="../js/search/search_index.js"></script>
  256. <script src="../js/lazy-load-graphs.js"></script>
  257. </body>
  258. </html>