Browse Source

change page names

0225273 1 week ago
parent
commit
43eee48701

+ 3 - 3
MindOCApp/src/app/mood/tab1-routing.module.ts → MindOCApp/src/app/ai/ai-routing.module.ts

@@ -1,11 +1,11 @@
 import { NgModule } from '@angular/core';
 import { RouterModule, Routes } from '@angular/router';
-import { Tab1Page } from './tab1.page';
+import { AiPage } from './ai.page';
 
 const routes: Routes = [
   {
     path: '',
-    component: Tab1Page,
+    component: AiPage,
   }
 ];
 
@@ -13,4 +13,4 @@ const routes: Routes = [
   imports: [RouterModule.forChild(routes)],
   exports: [RouterModule]
 })
-export class Tab1PageRoutingModule {}
+export class AiPageRoutingModule {}

+ 5 - 5
MindOCApp/src/app/tab2/tab2.module.ts → MindOCApp/src/app/ai/ai.module.ts

@@ -2,10 +2,10 @@ import { IonicModule } from '@ionic/angular';
 import { NgModule } from '@angular/core';
 import { CommonModule } from '@angular/common';
 import { FormsModule } from '@angular/forms';
-import { Tab2Page } from './tab2.page';
+import { AiPage } from './ai.page';
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab2PageRoutingModule } from './tab2-routing.module';
+import { AiPageRoutingModule } from './ai-routing.module';
 
 @NgModule({
   imports: [
@@ -13,8 +13,8 @@ import { Tab2PageRoutingModule } from './tab2-routing.module';
     CommonModule,
     FormsModule,
     ExploreContainerComponentModule,
-    Tab2PageRoutingModule
+    AiPageRoutingModule
   ],
-  declarations: [Tab2Page]
+  declarations: [AiPage]
 })
-export class Tab2PageModule {}
+export class AiPageModule {}

+ 0 - 0
MindOCApp/src/app/tab3/tab3.page.html → MindOCApp/src/app/ai/ai.page.html


+ 0 - 0
MindOCApp/src/app/mood/tab1.page.scss → MindOCApp/src/app/ai/ai.page.scss


+ 6 - 6
MindOCApp/src/app/mood/tab1.page.spec.ts → MindOCApp/src/app/ai/ai.page.spec.ts

@@ -3,19 +3,19 @@ import { IonicModule } from '@ionic/angular';
 
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab1Page } from './tab1.page';
+import { AiPage } from './ai.page';
 
-describe('Tab1Page', () => {
-  let component: Tab1Page;
-  let fixture: ComponentFixture<Tab1Page>;
+describe('AiPage', () => {
+  let component: AiPage;
+  let fixture: ComponentFixture<AiPage>;
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      declarations: [Tab1Page],
+      declarations: [AiPage],
       imports: [IonicModule.forRoot(), ExploreContainerComponentModule]
     }).compileComponents();
 
-    fixture = TestBed.createComponent(Tab1Page);
+    fixture = TestBed.createComponent(AiPage);
     component = fixture.componentInstance;
     fixture.detectChanges();
   });

+ 13 - 0
MindOCApp/src/app/ai/ai.page.ts

@@ -0,0 +1,13 @@
+import { Component } from '@angular/core';
+
+@Component({
+  selector: 'app-ai',
+  templateUrl: 'ai.page.html',
+  styleUrls: ['ai.page.scss'],
+  standalone: false,
+})
+export class AiPage {
+
+  constructor() {}
+
+}

+ 3 - 3
MindOCApp/src/app/tab3/tab3-routing.module.ts → MindOCApp/src/app/game/game-routing.module.ts

@@ -1,11 +1,11 @@
 import { NgModule } from '@angular/core';
 import { RouterModule, Routes } from '@angular/router';
-import { Tab3Page } from './tab3.page';
+import { GamePage } from './game.page';
 
 const routes: Routes = [
   {
     path: '',
-    component: Tab3Page,
+    component: GamePage,
   }
 ];
 
@@ -13,4 +13,4 @@ const routes: Routes = [
   imports: [RouterModule.forChild(routes)],
   exports: [RouterModule]
 })
-export class Tab3PageRoutingModule {}
+export class GamePageRoutingModule {}

+ 5 - 5
MindOCApp/src/app/mood/tab1.module.ts → MindOCApp/src/app/game/game.module.ts

@@ -2,10 +2,10 @@ import { IonicModule } from '@ionic/angular';
 import { NgModule } from '@angular/core';
 import { CommonModule } from '@angular/common';
 import { FormsModule } from '@angular/forms';
-import { Tab1Page } from './tab1.page';
+import { GamePage } from './game.page';
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab1PageRoutingModule } from './tab1-routing.module';
+import { GamePageRoutingModule } from './game-routing.module';
 
 @NgModule({
   imports: [
@@ -13,8 +13,8 @@ import { Tab1PageRoutingModule } from './tab1-routing.module';
     CommonModule,
     FormsModule,
     ExploreContainerComponentModule,
-    Tab1PageRoutingModule
+    GamePageRoutingModule
   ],
-  declarations: [Tab1Page]
+  declarations: [GamePage]
 })
-export class Tab1PageModule {}
+export class GamePageModule {}

+ 0 - 0
MindOCApp/src/app/tab2/tab2.page.html → MindOCApp/src/app/game/game.page.html


+ 0 - 0
MindOCApp/src/app/tab2/tab2.page.scss → MindOCApp/src/app/game/game.page.scss


+ 6 - 6
MindOCApp/src/app/tab3/tab3.page.spec.ts → MindOCApp/src/app/game/game.page.spec.ts

@@ -3,19 +3,19 @@ import { IonicModule } from '@ionic/angular';
 
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab3Page } from './tab3.page';
+import { GamePage } from './game.page';
 
-describe('Tab3Page', () => {
-  let component: Tab3Page;
-  let fixture: ComponentFixture<Tab3Page>;
+describe('GamePage', () => {
+  let component: GamePage;
+  let fixture: ComponentFixture<GamePage>;
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      declarations: [Tab3Page],
+      declarations: [GamePage],
       imports: [IonicModule.forRoot(), ExploreContainerComponentModule]
     }).compileComponents();
 
-    fixture = TestBed.createComponent(Tab3Page);
+    fixture = TestBed.createComponent(GamePage);
     component = fixture.componentInstance;
     fixture.detectChanges();
   });

+ 13 - 0
MindOCApp/src/app/game/game.page.ts

@@ -0,0 +1,13 @@
+import { Component } from '@angular/core';
+
+@Component({
+  selector: 'app-game',
+  templateUrl: 'game.page.html',
+  styleUrls: ['game.page.scss'],
+  standalone: false,
+})
+export class GamePage {
+
+  constructor() {}
+
+}

+ 3 - 3
MindOCApp/src/app/tab2/tab2-routing.module.ts → MindOCApp/src/app/mood/mood-routing.module.ts

@@ -1,11 +1,11 @@
 import { NgModule } from '@angular/core';
 import { RouterModule, Routes } from '@angular/router';
-import { Tab2Page } from './tab2.page';
+import { MoodPage } from './mood.page';
 
 const routes: Routes = [
   {
     path: '',
-    component: Tab2Page,
+    component: MoodPage,
   }
 ];
 
@@ -13,4 +13,4 @@ const routes: Routes = [
   imports: [RouterModule.forChild(routes)],
   exports: [RouterModule]
 })
-export class Tab2PageRoutingModule {}
+export class MoodPageRoutingModule {}

+ 5 - 5
MindOCApp/src/app/tab3/tab3.module.ts → MindOCApp/src/app/mood/mood.module.ts

@@ -2,10 +2,10 @@ import { IonicModule } from '@ionic/angular';
 import { NgModule } from '@angular/core';
 import { CommonModule } from '@angular/common';
 import { FormsModule } from '@angular/forms';
-import { Tab3Page } from './tab3.page';
+import { MoodPage } from './mood.page';
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab3PageRoutingModule } from './tab3-routing.module';
+import { MoodPageRoutingModule } from './mood-routing.module';
 
 @NgModule({
   imports: [
@@ -13,8 +13,8 @@ import { Tab3PageRoutingModule } from './tab3-routing.module';
     CommonModule,
     FormsModule,
     ExploreContainerComponentModule,
-    Tab3PageRoutingModule
+    MoodPageRoutingModule
   ],
-  declarations: [Tab3Page]
+  declarations: [MoodPage]
 })
-export class Tab3PageModule {}
+export class MoodPageModule {}

+ 0 - 0
MindOCApp/src/app/mood/tab1.page.html → MindOCApp/src/app/mood/mood.page.html


+ 0 - 0
MindOCApp/src/app/tab3/tab3.page.scss → MindOCApp/src/app/mood/mood.page.scss


+ 6 - 6
MindOCApp/src/app/tab2/tab2.page.spec.ts → MindOCApp/src/app/mood/mood.page.spec.ts

@@ -3,19 +3,19 @@ import { IonicModule } from '@ionic/angular';
 
 import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
 
-import { Tab2Page } from './tab2.page';
+import { MoodPage } from './mood.page';
 
-describe('Tab2Page', () => {
-  let component: Tab2Page;
-  let fixture: ComponentFixture<Tab2Page>;
+describe('MoodPage', () => {
+  let component: MoodPage;
+  let fixture: ComponentFixture<MoodPage>;
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      declarations: [Tab2Page],
+      declarations: [MoodPage],
       imports: [IonicModule.forRoot(), ExploreContainerComponentModule]
     }).compileComponents();
 
-    fixture = TestBed.createComponent(Tab2Page);
+    fixture = TestBed.createComponent(MoodPage);
     component = fixture.componentInstance;
     fixture.detectChanges();
   });

+ 13 - 0
MindOCApp/src/app/mood/mood.page.ts

@@ -0,0 +1,13 @@
+import { Component } from '@angular/core';
+
+@Component({
+  selector: 'app-mood',
+  templateUrl: 'mood.page.html',
+  styleUrls: ['mood.page.scss'],
+  standalone: false,
+})
+export class MoodPage {
+
+  constructor() {}
+
+}

+ 0 - 13
MindOCApp/src/app/mood/tab1.page.ts

@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
-  selector: 'app-tab1',
-  templateUrl: 'tab1.page.html',
-  styleUrls: ['tab1.page.scss'],
-  standalone: false,
-})
-export class Tab1Page {
-
-  constructor() {}
-
-}

+ 0 - 13
MindOCApp/src/app/tab2/tab2.page.ts

@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
-  selector: 'app-tab2',
-  templateUrl: 'tab2.page.html',
-  styleUrls: ['tab2.page.scss'],
-  standalone: false,
-})
-export class Tab2Page {
-
-  constructor() {}
-
-}

+ 0 - 13
MindOCApp/src/app/tab3/tab3.page.ts

@@ -1,13 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
-  selector: 'app-tab3',
-  templateUrl: 'tab3.page.html',
-  styleUrls: ['tab3.page.scss'],
-  standalone: false,
-})
-export class Tab3Page {
-
-  constructor() {}
-
-}

+ 8 - 8
MindOCApp/src/app/tabs/tabs-routing.module.ts

@@ -8,27 +8,27 @@ const routes: Routes = [
     component: TabsPage,
     children: [
       {
-        path: 'tab1',
-        loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule)
+        path: 'mood',
+        loadChildren: () => import('../mood/mood.module').then(m => m.MoodPageModule)
       },
       {
-        path: 'tab2',
-        loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule)
+        path: 'game',
+        loadChildren: () => import('../game/game.module').then(m => m.GamePageModule)
       },
       {
-        path: 'tab3',
-        loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
+        path: 'ai',
+        loadChildren: () => import('../ai/ai.module').then(m => m.AiPageModule)
       },
       {
         path: '',
-        redirectTo: '/tabs/tab1',
+        redirectTo: '/tabs/mood',
         pathMatch: 'full'
       }
     ]
   },
   {
     path: '',
-    redirectTo: '/tabs/tab1',
+    redirectTo: '/tabs/mood',
     pathMatch: 'full'
   }
 ];

+ 3 - 3
MindOCApp/src/app/tabs/tabs.page.html

@@ -2,17 +2,17 @@
 
   <ion-tab-bar slot="bottom" class="mindoc-tab-bar">
     <!-- 情绪日记 -->
-    <ion-tab-button tab="tab1" href="/tabs/tab1">
+    <ion-tab-button tab="mood" href="/tabs/mood">
       <ion-icon aria-hidden="true" name="leaf"></ion-icon>
       <ion-label>情绪日记</ion-label>
     </ion-tab-button>
 
-    <ion-tab-button tab="tab2" href="/tabs/tab2">
+    <ion-tab-button tab="game" href="/tabs/game">
       <ion-icon aria-hidden="true" name="ellipse"></ion-icon>
       <ion-label>Tab 2</ion-label>
     </ion-tab-button>
 
-    <ion-tab-button tab="tab3" href="/tabs/tab3">
+    <ion-tab-button tab="ai" href="/tabs/ai">
       <ion-icon aria-hidden="true" name="square"></ion-icon>
       <ion-label>Tab 3</ion-label>
     </ion-tab-button>