123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767 |
- <!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"
- >
- ServicesPage</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/services/services.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-services</code></td>
- </tr>
- <tr>
- <td class="col-md-3">styleUrls</td>
- <td class="col-md-9"><code>./services.page.scss</code></td>
- </tr>
- <tr>
- <td class="col-md-3">templateUrl</td>
- <td class="col-md-9"><code>./services.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="#hasSelfDisciplineScore" >hasSelfDisciplineScore</a>
- </li>
- <li>
- <a href="#hasTimeOptimizationSuggestion" >hasTimeOptimizationSuggestion</a>
- </li>
- <li>
- <a href="#selfDisciplineEvaluation" >selfDisciplineEvaluation</a>
- </li>
- <li>
- <a href="#selfDisciplineScore" >selfDisciplineScore</a>
- </li>
- <li>
- <a href="#timeOptimizationSuggestion" >timeOptimizationSuggestion</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="#generateAISchedule" >generateAISchedule</a>
- </li>
- <li>
- <a href="#generateSelfDisciplineScore" >generateSelfDisciplineScore</a>
- </li>
- <li>
- <a href="#generateTimeOptimizationSuggestion" >generateTimeOptimizationSuggestion</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()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/services/services.page.ts:14</a></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="generateAISchedule"></a>
- <span class="name">
- <span ><b>generateAISchedule</b></span>
- <a href="#generateAISchedule"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>generateAISchedule()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="18"
- class="link-to-prism">src/app/services/services.page.ts:18</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="generateSelfDisciplineScore"></a>
- <span class="name">
- <span ><b>generateSelfDisciplineScore</b></span>
- <a href="#generateSelfDisciplineScore"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>generateSelfDisciplineScore()</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/services/services.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="generateTimeOptimizationSuggestion"></a>
- <span class="name">
- <span ><b>generateTimeOptimizationSuggestion</b></span>
- <a href="#generateTimeOptimizationSuggestion"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <code>generateTimeOptimizationSuggestion()</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="30"
- class="link-to-prism">src/app/services/services.page.ts:30</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="hasSelfDisciplineScore"></a>
- <span class="name">
- <span ><b>hasSelfDisciplineScore</b></span>
- <a href="#hasSelfDisciplineScore"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Default value : </i><code>false</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">src/app/services/services.page.ts:9</a></div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="hasTimeOptimizationSuggestion"></a>
- <span class="name">
- <span ><b>hasTimeOptimizationSuggestion</b></span>
- <a href="#hasTimeOptimizationSuggestion"><span class="icon ion-ios-link"></span></a>
- </span>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <i>Default value : </i><code>false</code>
- </td>
- </tr>
- <tr>
- <td class="col-md-4">
- <div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/services/services.page.ts:13</a></div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="selfDisciplineEvaluation"></a>
- <span class="name">
- <span ><b>selfDisciplineEvaluation</b></span>
- <a href="#selfDisciplineEvaluation"><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="11" class="link-to-prism">src/app/services/services.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="selfDisciplineScore"></a>
- <span class="name">
- <span ><b>selfDisciplineScore</b></span>
- <a href="#selfDisciplineScore"><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/services/services.page.ts:10</a></div>
- </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-sm table-bordered">
- <tbody>
- <tr>
- <td class="col-md-4">
- <a name="timeOptimizationSuggestion"></a>
- <span class="name">
- <span ><b>timeOptimizationSuggestion</b></span>
- <a href="#timeOptimizationSuggestion"><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="14" class="link-to-prism">src/app/services/services.page.ts:14</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';
- @Component({
- selector: 'app-services',
- templateUrl: './services.page.html',
- styleUrls: ['./services.page.scss'],
- })
- export class ServicesPage {
- hasSelfDisciplineScore = false;
- selfDisciplineScore: string = '';
- selfDisciplineEvaluation: string = '';
- hasTimeOptimizationSuggestion = false;
- timeOptimizationSuggestion: string = '';
- constructor() { }
- generateAISchedule() {
- // 进入子页面生成AI时间表的逻辑
- console.log('AI时间表生成按钮点击');
- }
- generateSelfDisciplineScore() {
- this.hasSelfDisciplineScore = true;
- this.selfDisciplineScore = '自律评分:85';
- this.selfDisciplineEvaluation = '昨天的表现很好,继续保持!';
- console.log('自律评分生成');
- }
- generateTimeOptimizationSuggestion() {
- this.hasTimeOptimizationSuggestion = true;
- this.timeOptimizationSuggestion = '建议每天早起一小时,提高效率。';
- console.log('时间优化建议生成');
- }
- }
- </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-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>
- </code></pre>
- </div>
- <div class="tab-pane fade " id="styleData">
- <p class="comment">
- <code>./services.page.scss</code>
- </p>
- <pre class="line-numbers"><code class="language-scss">ion-header {
- --background: #f8f9fa;
- --color: #000;
- }
-
- ion-content {
- --padding-start: 16px;
- --padding-end: 16px;
- }
-
- .ai-schedule-button {
- margin-top: 20px;
- height: 50px;
- }
-
- .center-title {
- text-align: center;
- font-size: 1.2em;
- font-weight: bold;
- margin-top: 20px;
- margin-bottom: 10px;
- }
-
- .custom-card {
- margin: 20px 0;
- padding: 20px;
- }
- </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-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>'
- 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': 'ServicesPage'};
- </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 = 'ServicesPage.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>
|