1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033 |
- <!doctype html>
- <html class="no-js" lang="">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>time1 documentation</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
- <link rel="stylesheet" href="../styles/style.css">
- <link rel="stylesheet" href="../styles/dark.css">
- </head>
- <body>
- <script>
- // Blocking script to avoid flickering dark mode
- // Dark mode toggle button
- var useDark = window.matchMedia('(prefers-color-scheme: dark)');
- var darkModeState = useDark.matches;
- var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
- var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
- var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
- function checkToggle(check) {
- for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
- $darkModeToggleSwitchers[i].checked = check;
- }
- }
- function toggleDarkMode(state) {
- if (window.localStorage) {
- localStorage.setItem('compodoc_darkmode-state', state);
- }
- checkToggle(state);
- const hasClass = document.body.classList.contains('dark');
- if (state) {
- for (var i = 0; i < $darkModeToggles.length; i++) {
- $darkModeToggles[i].classList.add('dark');
- }
- if (!hasClass) {
- document.body.classList.add('dark');
- }
- } else {
- for (var i = 0; i < $darkModeToggles.length; i++) {
- $darkModeToggles[i].classList.remove('dark');
- }
- if (hasClass) {
- document.body.classList.remove('dark');
- }
- }
- }
- useDark.addEventListener('change', function (evt) {
- toggleDarkMode(evt.matches);
- });
- if (darkModeStateLocal) {
- darkModeState = darkModeStateLocal === 'true';
- }
- toggleDarkMode(darkModeState);
- </script>
- <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
- <div class="d-flex">
- <a href="../" class="navbar-brand">time1 documentation</a>
- <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
- </div>
- </div>
- <div class="xs-menu menu" id="mobile-menu">
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
- </div>
- <div class="container-fluid main">
- <div class="row main">
- <div class="d-none d-md-block menu">
- <compodoc-menu mode="normal"></compodoc-menu>
- </div>
- <!-- START CONTENT -->
- <div class="content component">
- <div class="content-data">
- <ol class="breadcrumb">
- <li class="breadcrumb-item">Components</li>
- <li class="breadcrumb-item"
- >
- ProfilePage</li>
- </ol>
- <ul class="nav nav-tabs" role="tablist">
- <li class="nav-item">
- <a href="#info" class="nav-link active"
- role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
- </li>
- <li class="nav-item">
- <a href="#source" class="nav-link"
- role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a>
- </li>
- <li class="nav-item">
- <a href="#templateData" class="nav-link"
- role="tab" id="templateData-tab" data-bs-toggle="tab" data-link="template">Template</a>
- </li>
- <li class="nav-item">
- <a href="#styleData" class="nav-link"
- role="tab" id="styleData-tab" data-bs-toggle="tab" data-link="style">Styles</a>
- </li>
- <li class="nav-item">
- <a href="#tree" class="nav-link"
- role="tab" id="tree-tab" data-bs-toggle="tab" data-link="dom-tree">DOM Tree</a>
- </li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane fade active in" id="info"><p class="comment">
- <h3>File</h3>
- </p>
- <p class="comment">
- <code>src/app/profile/profile.page.ts</code>
- </p>
- <section data-compodoc="block-metadata">
- <h3>Metadata</h3>
- <table class="table table-sm table-hover metadata">
- <tbody>
- <tr>
- <td class="col-md-3">selector</td>
- <td class="col-md-9"><code>app-profile</code></td>
- </tr>
- <tr>
- <td class="col-md-3">styleUrls</td>
- <td class="col-md-9"><code>./profile.page.scss</code></td>
- </tr>
- <tr>
- <td class="col-md-3">templateUrl</td>
- <td class="col-md-9"><code>./profile.page.html</code></td>
- </tr>
- </tbody>
- </table>
- </section>
- <section data-compodoc="block-index">
- <h3 id="index">Index</h3>
- <table class="table table-sm table-bordered index-table">
- <tbody>
- <tr>
- <td class="col-md-4">
- <h6><b>Properties</b></h6>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <ul class="index-list">
- <li>
- <a href="#days" >days</a>
- </li>
- <li>
- <a href="#nickname" >nickname</a>
- </li>
- </ul>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <h6><b>Methods</b></h6>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <ul class="index-list">
- <li>
- <a href="#backup" >backup</a>
- </li>
- <li>
- <a href="#changeLanguage" >changeLanguage</a>
- </li>
- <li>
- <a href="#clearCache" >clearCache</a>
- </li>
- <li>
- <a href="#clearStats" >clearStats</a>
- </li>
- <li>
- <a href="#goToHelpPage" >goToHelpPage</a>
- </li>
- <li>
- <a href="#goToProfileInfo" >goToProfileInfo</a>
- </li>
- <li>
- <a href="#goToStatsReport" >goToStatsReport</a>
- </li>
- <li>
- <a href="#restore" >restore</a>
- </li>
- <li>
- <a href="#share" >share</a>
- </li>
- <li>
- <a href="#sync" >sync</a>
- </li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </section>
- <section data-compodoc="block-constructor">
- <h3 id="constructor">Constructor</h3>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <code>constructor(navCtrl: NavController)</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/profile/profile.page.ts:11</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div>
- <b>Parameters :</b>
- <table class="params">
- <thead>
- <tr>
- <td>Name</td>
- <td>Type</td>
- <td>Optional</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>navCtrl</td>
-
- <td>
- <code>NavController</code>
- </td>
-
- <td>
- No
- </td>
-
- </tr>
- </tbody>
- </table>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </section>
- <section data-compodoc="block-methods">
-
- <h3 id="methods">
- Methods
- </h3>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="backup"></a>
- <span class="name">
- <span ><b>backup</b></span>
- <a href="#backup"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>backup()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="31"
- class="link-to-prism">src/app/profile/profile.page.ts:31</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="changeLanguage"></a>
- <span class="name">
- <span ><b>changeLanguage</b></span>
- <a href="#changeLanguage"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>changeLanguage()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="51"
- class="link-to-prism">src/app/profile/profile.page.ts:51</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="clearCache"></a>
- <span class="name">
- <span ><b>clearCache</b></span>
- <a href="#clearCache"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>clearCache()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="43"
- class="link-to-prism">src/app/profile/profile.page.ts:43</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="clearStats"></a>
- <span class="name">
- <span ><b>clearStats</b></span>
- <a href="#clearStats"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>clearStats()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="47"
- class="link-to-prism">src/app/profile/profile.page.ts:47</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="goToHelpPage"></a>
- <span class="name">
- <span ><b>goToHelpPage</b></span>
- <a href="#goToHelpPage"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>goToHelpPage()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="15"
- class="link-to-prism">src/app/profile/profile.page.ts:15</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="goToProfileInfo"></a>
- <span class="name">
- <span ><b>goToProfileInfo</b></span>
- <a href="#goToProfileInfo"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>goToProfileInfo()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="19"
- class="link-to-prism">src/app/profile/profile.page.ts:19</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="goToStatsReport"></a>
- <span class="name">
- <span ><b>goToStatsReport</b></span>
- <a href="#goToStatsReport"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>goToStatsReport()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="23"
- class="link-to-prism">src/app/profile/profile.page.ts:23</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="restore"></a>
- <span class="name">
- <span ><b>restore</b></span>
- <a href="#restore"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>restore()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="35"
- class="link-to-prism">src/app/profile/profile.page.ts:35</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="share"></a>
- <span class="name">
- <span ><b>share</b></span>
- <a href="#share"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>share()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="27"
- class="link-to-prism">src/app/profile/profile.page.ts:27</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="sync"></a>
- <span class="name">
- <span ><b>sync</b></span>
- <a href="#sync"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>sync()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="39"
- class="link-to-prism">src/app/profile/profile.page.ts:39</a></div>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-description">
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </section>
- <section data-compodoc="block-properties">
-
- <h3 id="inputs">
- Properties
- </h3>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="days"></a>
- <span class="name">
- <span ><b>days</b></span>
- <a href="#days"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Default value : </i><code>123</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/profile/profile.page.ts:11</a></div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="nickname"></a>
- <span class="name">
- <span ><b>nickname</b></span>
- <a href="#nickname"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Default value : </i><code>'用户昵称'</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/app/profile/profile.page.ts:10</a></div>
- </td>
- </tr>
- </tbody>
- </table>
- </section>
- </div>
- <div class="tab-pane fade tab-source-code" id="source">
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from '@angular/core';
- import { NavController } from '@ionic/angular';
- @Component({
- selector: 'app-profile',
- templateUrl: './profile.page.html',
- styleUrls: ['./profile.page.scss'],
- })
- export class ProfilePage {
- nickname: string = '用户昵称';
- days: number = 123; // 模拟数据,可根据实际情况修改
- constructor(private navCtrl: NavController) {}
- goToHelpPage() {
- this.navCtrl.navigateForward('/help');
- }
- goToProfileInfo() {
- this.navCtrl.navigateForward('/profile-info');
- }
- goToStatsReport() {
- this.navCtrl.navigateForward('/stats-report');
- }
- share() {
- // 分享功能实现
- }
- backup() {
- // 备份功能实现
- }
- restore() {
- // 恢复功能实现
- }
- sync() {
- // 云同步功能实现
- }
- clearCache() {
- // 清除缓存功能实现
- }
- clearStats() {
- // 清除统计数据功能实现
- }
- changeLanguage() {
- // 语言设置功能实现
- }
- }
- </code></pre>
- </div>
- <div class="tab-pane fade " id="templateData">
- <pre class="line-numbers"><code class="language-html"><ion-header>
- <ion-toolbar>
- <ion-title>我的</ion-title>
- <ion-buttons slot="end">
- <ion-button (click)="goToHelpPage()">
- <ion-icon name="help-circle-outline"></ion-icon>
- </ion-button>
- </ion-buttons>
- </ion-toolbar>
- </ion-header>
- <ion-content>
- <ion-list>
- <ion-item (click)="goToProfileInfo()">
- <ion-avatar slot="start">
- <img src="assets/img/avatar.png" alt="头像">
- </ion-avatar>
- <ion-label>
- <h2>{{nickname}}</h2>
- <p>已坚持打卡{{days}}天</p>
- </ion-label>
- </ion-item>
-
- <ion-item (click)="goToStatsReport()">
- <ion-label>统计报告</ion-label>
- <ion-icon slot="end" name="bar-chart-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="share()">
- <ion-label>分享</ion-label>
- <ion-icon slot="end" name="share-social-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="backup()">
- <ion-label>备份</ion-label>
- <ion-icon slot="end" name="cloud-upload-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="restore()">
- <ion-label>恢复</ion-label>
- <ion-icon slot="end" name="cloud-download-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="sync()">
- <ion-label>云同步</ion-label>
- <ion-icon slot="end" name="sync-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="clearCache()">
- <ion-label>清除缓存</ion-label>
- <ion-icon slot="end" name="trash-bin-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="clearStats()">
- <ion-label>清除统计数据</ion-label>
- <ion-icon slot="end" name="stats-chart-outline"></ion-icon>
- </ion-item>
- <ion-item (click)="changeLanguage()">
- <ion-label>语言设置</ion-label>
- <ion-icon slot="end" name="language-outline"></ion-icon>
- </ion-item>
- </ion-list>
- <ion-content>
- </code></pre>
- </div>
- <div class="tab-pane fade " id="styleData">
- <p class="comment">
- <code>./profile.page.scss</code>
- </p>
- <pre class="line-numbers"><code class="language-scss">ion-item {
- --background: #ffffff;
- --color: #000000;
- --border-color: #f4f4f4;
- --border-width: 1px;
- --min-height: 50px;
- --padding-start: 10px;
- --padding-end: 10px;
- --inner-padding-start: 10px;
- --inner-padding-end: 10px;
- --inner-padding-top: 5px;
- --inner-padding-bottom: 5px;
- }
-
- ion-avatar img {
- width: 100%;
- height: auto;
- border-radius: 50%;
- }
-
- ion-label {
- h2 {
- font-size: 1.2em;
- margin: 0;
- padding: 0;
- }
- p {
- font-size: 0.9em;
- color: gray;
- }
- }
- </code></pre>
- </div>
- <div class="tab-pane fade " id="tree">
- <div id="tree-container"></div>
- <div class="tree-legend">
- <div class="title">
- <b>Legend</b>
- </div>
- <div>
- <div class="color htmlelement"></div><span>Html element</span>
- </div>
- <div>
- <div class="color component"></div><span>Component</span>
- </div>
- <div>
- <div class="color directive"></div><span>Html element with directive</span>
- </div>
- </div>
- </div>
-
- </div>
- <script src="../js/libs/vis.min.js"></script>
- <script src="../js/libs/htmlparser.js"></script>
- <script src="../js/libs/deep-iterator.js"></script>
- <script>
- var COMPONENT_TEMPLATE = '<div><ion-header> <ion-toolbar> <ion-title>我的</ion-title> <ion-buttons slot="end"> <ion-button (click)="goToHelpPage()"> <ion-icon name="help-circle-outline"></ion-icon> </ion-button> </ion-buttons> </ion-toolbar></ion-header><ion-content> <ion-list> <ion-item (click)="goToProfileInfo()"> <ion-avatar slot="start"> <img src="assets/img/avatar.png" alt="头像"> </ion-avatar> <ion-label> <h2>{{nickname}}</h2> <p>已坚持打卡{{days}}天</p> </ion-label> </ion-item> <ion-item (click)="goToStatsReport()"> <ion-label>统计报告</ion-label> <ion-icon slot="end" name="bar-chart-outline"></ion-icon> </ion-item> <ion-item (click)="share()"> <ion-label>分享</ion-label> <ion-icon slot="end" name="share-social-outline"></ion-icon> </ion-item> <ion-item (click)="backup()"> <ion-label>备份</ion-label> <ion-icon slot="end" name="cloud-upload-outline"></ion-icon> </ion-item> <ion-item (click)="restore()"> <ion-label>恢复</ion-label> <ion-icon slot="end" name="cloud-download-outline"></ion-icon> </ion-item> <ion-item (click)="sync()"> <ion-label>云同步</ion-label> <ion-icon slot="end" name="sync-outline"></ion-icon> </ion-item> <ion-item (click)="clearCache()"> <ion-label>清除缓存</ion-label> <ion-icon slot="end" name="trash-bin-outline"></ion-icon> </ion-item> <ion-item (click)="clearStats()"> <ion-label>清除统计数据</ion-label> <ion-icon slot="end" name="stats-chart-outline"></ion-icon> </ion-item> <ion-item (click)="changeLanguage()"> <ion-label>语言设置</ion-label> <ion-icon slot="end" name="language-outline"></ion-icon> </ion-item> </ion-list><ion-content></div>'
- 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'}];
- var DIRECTIVES = [];
- var ACTUAL_COMPONENT = {'name': 'ProfilePage'};
- </script>
- <script src="../js/tree.js"></script>
- </div><div class="search-results">
- <div class="has-results">
- <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
- <ul class="search-results-list"></ul>
- </div>
- <div class="no-results">
- <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
- </div>
- </div>
- </div>
- <!-- END CONTENT -->
- </div>
- </div>
- <label class="dark-mode-switch">
- <input type="checkbox">
- <span class="slider">
- <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">
- <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
- </svg>
- </span>
- </label>
- <script>
- var COMPODOC_CURRENT_PAGE_DEPTH = 1;
- var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
- var COMPODOC_CURRENT_PAGE_URL = 'ProfilePage.html';
- var MAX_SEARCH_RESULTS = 15;
- </script>
- <script>
- $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
- checkToggle(darkModeState);
- if ($darkModeToggleSwitchers.length > 0) {
- for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
- $darkModeToggleSwitchers[i].addEventListener('change', function (event) {
- darkModeState = !darkModeState;
- toggleDarkMode(darkModeState);
- });
- }
- }
- </script>
- <script src="../js/libs/custom-elements.min.js"></script>
- <script src="../js/libs/lit-html.js"></script>
- <script src="../js/menu-wc.js" defer></script>
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
- <script src="../js/libs/bootstrap-native.js"></script>
- <script src="../js/libs/es6-shim.min.js"></script>
- <script src="../js/libs/EventDispatcher.js"></script>
- <script src="../js/libs/promise.min.js"></script>
- <script src="../js/libs/zepto.min.js"></script>
- <script src="../js/compodoc.js"></script>
- <script src="../js/tabs.js"></script>
- <script src="../js/menu.js"></script>
- <script src="../js/libs/clipboard.min.js"></script>
- <script src="../js/libs/prism.js"></script>
- <script src="../js/sourceCode.js"></script>
- <script src="../js/search/search.js"></script>
- <script src="../js/search/lunr.min.js"></script>
- <script src="../js/search/search-lunr.js"></script>
- <script src="../js/search/search_index.js"></script>
- <script src="../js/lazy-load-graphs.js"></script>
- </body>
- </html>
|