Browse Source

update ioncModules

warrior 2 months ago
parent
commit
957ea76be1
24 changed files with 183 additions and 109 deletions
  1. 3 2
      projects/live-app/src/modules/account/bankcard/bankcard.component.ts
  2. 2 3
      projects/live-app/src/modules/account/recharge/recharge.component.ts
  3. 2 2
      projects/live-app/src/modules/account/wattle/wattle.component.ts
  4. 3 2
      projects/live-app/src/modules/goods/vip/vip.component.ts
  5. 71 0
      projects/live-app/src/modules/ionic-standalone.modules.ts
  6. 2 2
      projects/live-app/src/modules/live/chat/chat.component.ts
  7. 2 2
      projects/live-app/src/modules/live/link-page/link-page.component.ts
  8. 2 2
      projects/live-app/src/modules/live/room-manage/room-manage.component.ts
  9. 52 57
      projects/live-app/src/modules/live/search/search.component.ts
  10. 2 2
      projects/live-app/src/modules/login/login.component.html
  11. 1 1
      projects/live-app/src/modules/login/login.component.scss
  12. 5 3
      projects/live-app/src/modules/tabs/home/home.component.ts
  13. 4 2
      projects/live-app/src/modules/tabs/my/my.component.ts
  14. 2 2
      projects/live-app/src/modules/tabs/notice/notice.component.ts
  15. 10 10
      projects/live-app/src/modules/tabs/tabs/tabs.component.ts
  16. 2 2
      projects/live-app/src/modules/user/album/album.component.ts
  17. 2 2
      projects/live-app/src/modules/user/anchor/anchor.component.ts
  18. 3 2
      projects/live-app/src/modules/user/browse/browse.component.ts
  19. 2 2
      projects/live-app/src/modules/user/certification/certification.component.ts
  20. 3 2
      projects/live-app/src/modules/user/feedback/feedback.component.ts
  21. 1 1
      projects/live-app/src/modules/user/profile/profile.component.html
  22. 2 2
      projects/live-app/src/modules/user/profile/profile.component.ts
  23. 2 2
      projects/live-app/src/modules/user/setting/setting.component.ts
  24. 3 2
      projects/live-app/src/modules/user/share/share.component.ts

+ 3 - 2
projects/live-app/src/modules/account/bankcard/bankcard.component.ts

@@ -3,13 +3,14 @@ import { NavComponent } from '../../../app/components/nav/nav.component';
 
 import * as Parse from 'parse';
 import { HttpClient } from '@angular/common/http';
-import { IonicModule, ToastController } from '@ionic/angular';
+import { ToastController } from '@ionic/angular';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-bankcard',
   templateUrl: './bankcard.component.html',
   styleUrls: ['./bankcard.component.scss'],
 	standalone: true,
-  imports: [IonicModule,NavComponent],
+  imports: [...ionicStandaloneModules,NavComponent],
 })
 export class BankcardComponent implements OnInit {
   constructor(

+ 2 - 3
projects/live-app/src/modules/account/recharge/recharge.component.ts

@@ -6,18 +6,17 @@ import { Router } from '@angular/router';
 import {
   LoadingController,
   ToastController,
-  Platform,
-  IonicModule,
 } from '@ionic/angular';
 import { Wechat } from '@ionic-native/wechat/ngx';
 import { NavComponent } from '../../../app/components/nav/nav.component';
 import { PayCompComponent } from '../../../app/components/pay-comp/pay-comp.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-recharge',
   templateUrl: './recharge.component.html',
   styleUrls: ['./recharge.component.scss'],
   standalone: true,
-  imports: [IonicModule, NavComponent, FormsModule, PayCompComponent],
+  imports: [...ionicStandaloneModules, NavComponent, FormsModule, PayCompComponent],
 })
 export class RechargeComponent implements OnInit {
   @ViewChild('paycomp') paycomp!: PayCompComponent;

+ 2 - 2
projects/live-app/src/modules/account/wattle/wattle.component.ts

@@ -1,15 +1,15 @@
 import { Component, OnInit } from '@angular/core';
-import { IonicModule } from '@ionic/angular';
 import * as Parse from 'parse';
 import { Router, ActivatedRoute } from '@angular/router';
 import { NavComponent } from '../../../app/components/nav/nav.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-wattle',
   templateUrl: './wattle.component.html',
   styleUrls: ['./wattle.component.scss'],
   standalone: true,
-  imports: [IonicModule,NavComponent],
+  imports: [...ionicStandaloneModules,NavComponent],
 })
 export class WattleComponent implements OnInit {
   company: any = localStorage.getItem('company');

+ 3 - 2
projects/live-app/src/modules/goods/vip/vip.component.ts

@@ -1,5 +1,5 @@
 import { Component, OnInit, ViewChild } from '@angular/core';
-import { IonicModule, ModalController, ToastController } from '@ionic/angular';
+import { ModalController, ToastController } from '@ionic/angular';
 import { NavComponent } from '../../../app/components/nav/nav.component';
 import { FormsModule } from '@angular/forms';
 import * as Parse from 'parse';
@@ -8,6 +8,7 @@ import { DatePipe, CommonModule } from '@angular/common';
 import { AgreementComponent } from '../../login/agreement/agreement.component';
 import { PayCompComponent } from '../../../app/components/pay-comp/pay-comp.component';
 import { AccountService } from '../../../services/account.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-vip',
@@ -15,7 +16,7 @@ import { AccountService } from '../../../services/account.service';
   styleUrls: ['./vip.component.scss'],
   standalone: true,
   imports: [
-    IonicModule,
+    ...ionicStandaloneModules,
     NavComponent,
     CommonModule,
     FormsModule,

+ 71 - 0
projects/live-app/src/modules/ionic-standalone.modules.ts

@@ -0,0 +1,71 @@
+import {
+  IonModal,
+  IonItem,
+  IonTitle,
+  IonFooter,
+  IonHeader,
+  IonToolbar,
+  IonSegment,
+  IonInput,
+  IonCheckbox,
+  IonContent,
+  IonButtons,
+  IonButton,
+  IonIcon,
+  IonSegmentButton,
+  IonLabel,
+  IonSelect,
+  IonSelectOption,
+  IonPicker,
+  IonPickerColumn,
+  IonPickerColumnOption,
+  IonToggle,
+  IonSearchbar,
+  IonPopover,
+  IonList,
+  IonSegmentView,
+  IonSegmentContent,
+  IonAvatar,
+  IonAlert,
+  IonTextarea,
+
+  AlertController,
+  ToastController,
+} from '@ionic/angular/standalone';
+
+export const ionicStandaloneModules = [
+  IonModal,
+  IonItem,
+  IonHeader,
+  IonToolbar,
+  IonTitle,
+  IonFooter,
+  IonSegment,
+  IonInput,
+  IonCheckbox,
+  IonContent,
+  IonButton,
+  IonButtons,
+  IonIcon,
+  IonSegmentButton,
+  IonLabel,
+  IonSelect,
+  IonSelectOption,
+  IonPicker,
+  IonPickerColumn,
+  IonPickerColumnOption,
+  IonToggle,
+  IonSearchbar,
+  IonPopover,
+  IonList,
+  IonSegmentView,
+  IonSegmentContent,
+  IonTextarea,
+  IonAvatar,
+  IonAlert,
+];
+
+export const ionicStandaloneController = [
+  AlertController,
+  ToastController,
+]

+ 2 - 2
projects/live-app/src/modules/live/chat/chat.component.ts

@@ -6,7 +6,6 @@ import { ActivatedRoute, Router } from '@angular/router';
 import { SharedModule } from '../../shared.module';
 
 import {
-  IonicModule,
   LoadingController,
   ScrollDetail,
   ToastController,
@@ -17,13 +16,14 @@ import {
 import * as Parse from 'parse';
 import { GiftModalComponent } from '../../../app/components/gift-modal/gift-modal.component';
 import { MessageService } from '../../../services/message.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-chat',
   templateUrl: './chat.component.html',
   styleUrls: ['./chat.component.scss'],
   standalone: true,
   imports: [
-    IonicModule,
+    ...ionicStandaloneModules,
     FormsModule,
     // DatePipe,
     GiftModalComponent,

+ 2 - 2
projects/live-app/src/modules/live/link-page/link-page.component.ts

@@ -4,7 +4,6 @@ import { FormsModule } from '@angular/forms';
 import * as Parse from 'parse';
 import {
   AlertController,
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -14,13 +13,14 @@ import { LiveService } from '../../../services/live.service';
 import { SharedModule } from '../../shared.module';
 import { AiChatService } from '../../../services/aichart.service';
 import { GiftModalComponent } from '../../../app/components/gift-modal/gift-modal.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-link-page',
   templateUrl: './link-page.component.html',
   styleUrls: ['./link-page.component.scss'],
   standalone: true,
   imports: [
-    IonicModule,
+    ...ionicStandaloneModules,
     FormsModule,
     LiveComponent,
     CommonModule,

+ 2 - 2
projects/live-app/src/modules/live/room-manage/room-manage.component.ts

@@ -1,7 +1,6 @@
 import { Component, OnInit, ViewChild } from '@angular/core';
 import {
   AlertController,
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -11,13 +10,14 @@ import { UploadComponent } from '../../../app/components/upload/upload.component
 import * as Parse from 'parse';
 import { AuthService } from '../../../services/auth.service';
 import { FormsModule } from '@angular/forms';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-room-manage',
   templateUrl: './room-manage.component.html',
   styleUrls: ['./room-manage.component.scss'],
   standalone: true,
-  imports: [IonicModule, NavComponent, UploadComponent,FormsModule],
+  imports: [...ionicStandaloneModules, NavComponent, UploadComponent,FormsModule],
 })
 export class RoomManageComponent implements OnInit {
   @ViewChild('upload') upload!: UploadComponent;

+ 52 - 57
projects/live-app/src/modules/live/search/search.component.ts

@@ -2,55 +2,52 @@ import { DatePipe } from '@angular/common';
 import { Component, OnInit } from '@angular/core';
 import { FormsModule } from '@angular/forms';
 import { Router } from '@angular/router';
-import {
-  IonicModule,
-  LoadingController,
-  ToastController,
-} from '@ionic/angular';
+import { LoadingController, ToastController } from '@ionic/angular';
 import * as Parse from 'parse';
 import { NavComponent } from '../../../app/components/nav/nav.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-search',
   templateUrl: './search.component.html',
   styleUrls: ['./search.component.scss'],
   standalone: true,
-  imports: [IonicModule, FormsModule, DatePipe,NavComponent],
+  imports: [FormsModule, DatePipe, NavComponent, ...ionicStandaloneModules],
   providers: [DatePipe],
 })
 export class SearchComponent implements OnInit {
-  roomList:any = []
-  company:string = Parse.User.current()?.get('company')
-  value:String|undefined
-  Search:any = []
-  hots:Array<Parse.Object> = []
+  roomList: any = [];
+  company: string = Parse.User.current()?.get('company');
+  value: String | undefined;
+  Search: any = [];
+  hots: Array<Parse.Object> = [];
 
   constructor(
     private router: Router,
-    public toastController: ToastController,
-  ) { }
+    public toastController: ToastController
+  ) {}
 
-  async presentToast(message:string) {
+  async presentToast(message: string) {
     const toast = await this.toastController.create({
       message: message,
-      duration: 2000
+      duration: 2000,
     });
     toast.present();
   }
 
   ngOnInit() {
-    this.getLocalStorage()
-    this.getRoom()
+    this.getLocalStorage();
+    this.getRoom();
   }
 
   // 热门搜索
   async getRoom() {
-    let query = new Parse.Query("Room")
-    query.equalTo('company',this.company)
-    query.limit(5)
+    let query = new Parse.Query('Room');
+    query.equalTo('company', this.company);
+    query.limit(5);
     // query.descending("score")
-    let res = await query.find()
-    this.hots = res
+    let res = await query.find();
+    this.hots = res;
     // console.log(res);
     // if (res && res.length > 0) {
     //   res.forEach(item => {
@@ -60,50 +57,48 @@ export class SearchComponent implements OnInit {
     // }
   }
 
-  getLocalStorage(){
-    let storage = localStorage.getItem("Search");
-    this.Search = storage && JSON.parse(storage)
+  getLocalStorage() {
+    let storage = localStorage.getItem('Search');
+    this.Search = storage && JSON.parse(storage);
     console.log(this.Search);
   }
 
-  SearchHot(value: String){
-    this.value = value
-    this.toSearch()
+  SearchHot(value: String) {
+    this.value = value;
+    this.toSearch();
   }
   //搜索
-  toSearch(){
-    this.roomList = []
-    if(!this.value || this.value?.trim() === ''){
-      this.presentToast('请输入搜索内容')
-      return
+  toSearch() {
+    this.roomList = [];
+    if (!this.value || this.value?.trim() === '') {
+      this.presentToast('请输入搜索内容');
+      return;
     }
-    this.getSearch()
-    let storage = localStorage.getItem("Search");
-    if(!storage){
-      let searchs = [
-        this.value,
-      ]
-      localStorage.setItem("Search",JSON.stringify(searchs));
-      return
+    this.getSearch();
+    let storage = localStorage.getItem('Search');
+    if (!storage) {
+      let searchs = [this.value];
+      localStorage.setItem('Search', JSON.stringify(searchs));
+      return;
     }
     console.log(storage);
-    let list = JSON.parse(storage)
-    list.splice(0,0,this.value)
-    let arr:any = new Set(list)
-    list = Array.from(arr)
-    if(list.length > 10){
-      list.splice(-1,1)
+    let list = JSON.parse(storage);
+    list.splice(0, 0, this.value);
+    let arr: any = new Set(list);
+    list = Array.from(arr);
+    if (list.length > 10) {
+      list.splice(-1, 1);
     }
-    localStorage.setItem("Search",JSON.stringify(list));
-    this.Search = list
+    localStorage.setItem('Search', JSON.stringify(list));
+    this.Search = list;
   }
-  async getSearch(){
-    let query = new Parse.Query("Room")
-    query.equalTo('company',this.company)
-    query.equalTo('title',this.value)
-    query.notEqualTo('isDeleted',true)
-    let r = await query.find()
-    this.roomList = r
-    if(this.roomList.length == 0)this.presentToast('暂无搜索结果')
+  async getSearch() {
+    let query = new Parse.Query('Room');
+    query.equalTo('company', this.company);
+    query.equalTo('title', this.value);
+    query.notEqualTo('isDeleted', true);
+    let r = await query.find();
+    this.roomList = r;
+    if (this.roomList.length == 0) this.presentToast('暂无搜索结果');
   }
 }

+ 2 - 2
projects/live-app/src/modules/login/login.component.html

@@ -117,7 +117,7 @@
       <div class="watch" (click)="togglePassword()">
         <img
           src="{{
-            inputType == 'password' ? '/img/hide.png' : '/img/show.png'
+            inputType == 'password' ? 'img/hide.png' : 'img/show.png'
           }}"
           alt=""
         />
@@ -189,7 +189,7 @@
       <div class="watch" (click)="togglePassword()">
         <img
           src="{{
-            inputType == 'password' ? '/img/show.png' : '/img/hide.png'
+            inputType == 'password' ? 'img/show.png' : 'img/hide.png'
           }}"
           alt=""
         />

+ 1 - 1
projects/live-app/src/modules/login/login.component.scss

@@ -39,7 +39,7 @@ ion-content {
     flex-direction: column;
     align-items: center;
     // justify-content: center;
-    // background-image: url('../../../../assets/img/miner-filecoin/login_meta.png');
+    // background-image: url('../../../../assetsimg/miner-filecoin/login_meta.png');
     background-size: 100% 100%;
     background-repeat: no-repeat;
     // background-size: cover;

+ 5 - 3
projects/live-app/src/modules/tabs/home/home.component.ts

@@ -2,20 +2,22 @@ import { Component, OnInit } from '@angular/core';
 import * as Parse from 'parse';
 import {
   AlertController,
-  IonicModule,
+  // IonicModule,
   LoadingController,
 } from '@ionic/angular';
 import { ActivatedRoute, Router } from '@angular/router';
 import { Swiper } from 'swiper';
 import { AiChatService } from '../../../services/aichart.service';
 import { ConnectTaskService } from '../../../services/connectTask.service';
-
+import {ionicStandaloneModules} from '../../ionic-standalone.modules'
 @Component({
   selector: 'app-home',
   templateUrl: './home.component.html',
   styleUrls: ['./home.component.scss'],
   standalone: true,
-  imports: [IonicModule],
+  imports: [
+    ...ionicStandaloneModules
+  ],
   // schemas: [CUSTOM_ELEMENTS_SCHEMA],
 })
 export class HomeComponent implements OnInit {

+ 4 - 2
projects/live-app/src/modules/tabs/my/my.component.ts

@@ -1,6 +1,5 @@
 import { Component, OnInit } from '@angular/core';
 import {
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -12,12 +11,15 @@ import { ActivatedRoute, Router } from '@angular/router';
 import { AuthService } from '../../../services/auth.service';
 import { AiChatService } from '../../../services/aichart.service';
 import { AccountService } from '../../../services/account.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-my',
   templateUrl: './my.component.html',
   styleUrls: ['./my.component.scss'],
   standalone: true,
-  imports: [IonicModule],
+  imports: [
+    ...ionicStandaloneModules
+  ],
 })
 export class MyComponent implements OnInit {
   profile?: Parse.Object; //身份信息

+ 2 - 2
projects/live-app/src/modules/tabs/notice/notice.component.ts

@@ -1,17 +1,17 @@
 import { Component, OnInit } from '@angular/core';
-import { IonicModule } from '@ionic/angular';
 import * as Parse from 'parse';
 import { InfiniteScrollCustomEvent } from '@ionic/angular';
 import { Router } from '@angular/router';
 import { AiChatService } from '../../../services/aichart.service';
 import { SharedModule } from '../../shared.module';
 import { MessageService } from '../../../services/message.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 @Component({
   selector: 'app-notice',
   templateUrl: './notice.component.html',
   styleUrls: ['./notice.component.scss'],
   standalone: true,
-  imports: [IonicModule, SharedModule],
+  imports: [SharedModule,...ionicStandaloneModules],
 })
 export class NoticeComponent implements OnInit {
   active: string = 'notice';

+ 10 - 10
projects/live-app/src/modules/tabs/tabs/tabs.component.ts

@@ -35,32 +35,32 @@ export class TabsComponent implements OnInit {
 
   option: any = [
     {
-      src: '/img/首页.png',
-      active: '/img/首页_active.png',
+      src: 'img/首页.png',
+      active: 'img/首页_active.png',
       url: 'tabs/home',
       name: '首页',
     },
     {
-      src: '/img/消息.png',
-      active: '/img/消息_active.png',
+      src: 'img/消息.png',
+      active: 'img/消息_active.png',
       url: 'tabs/notice',
       name: '消息',
     },
     {
-      src: '/img/live.png',
-      active: '/img/live.png',
+      src: 'img/live.png',
+      active: 'img/live.png',
       url: 'tabs/live-review',
       name: '直播',
     },
     {
-      src: '/img/排名.png',
-      active: '/img/排名_active.png',
+      src: 'img/排名.png',
+      active: 'img/排名_active.png',
       url: 'tabs/ranking',
       name: '排名',
     },
     {
-      src: '/img/我的.png',
-      active: '/img/我的_active.png',
+      src: 'img/我的.png',
+      active: 'img/我的_active.png',
       url: 'tabs/my',
       name: '我的',
     },

+ 2 - 2
projects/live-app/src/modules/user/album/album.component.ts

@@ -1,6 +1,5 @@
 import { Component, OnInit } from '@angular/core';
 import {
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -8,13 +7,14 @@ import * as Parse from 'parse';
 import { NavComponent } from '../../../app/components/nav/nav.component';
 import { UploadComponent } from '../../../app/components/upload/upload.component';
 import { AuthService } from '../../../services/auth.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-album',
   templateUrl: './album.component.html',
   styleUrls: ['./album.component.scss'],
   standalone: true,
-  imports: [IonicModule, UploadComponent, NavComponent],
+  imports: [...ionicStandaloneModules, UploadComponent, NavComponent],
 })
 export class AlbumComponent implements OnInit {
   files: any = [];

+ 2 - 2
projects/live-app/src/modules/user/anchor/anchor.component.ts

@@ -2,7 +2,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
 import { FormsModule } from '@angular/forms';
 import {
   AlertController,
-  IonicModule,
   LoadingController,
   ModalController,
   ToastController,
@@ -14,6 +13,7 @@ import * as Parse from 'parse';
 import { UploadComponent } from '../../../app/components/upload/upload.component';
 import { Router } from '@angular/router';
 import { AuthService } from '../../../services/auth.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 interface FormGroup {
   mobile: string;
   name: string;
@@ -29,7 +29,7 @@ interface FormGroup {
   templateUrl: './anchor.component.html',
   styleUrls: ['./anchor.component.scss'],
   standalone: true,
-  imports: [IonicModule, FormsModule, NavComponent, UploadComponent],
+  imports: [...ionicStandaloneModules, FormsModule, NavComponent, UploadComponent],
 })
 export class AnchorComponent implements OnInit {
   @ViewChild('upload') upload!: UploadComponent;

+ 3 - 2
projects/live-app/src/modules/user/browse/browse.component.ts

@@ -1,14 +1,15 @@
 import { Component, OnInit } from '@angular/core';
 import { NavComponent } from '../../../app/components/nav/nav.component';
-import { IonicModule, ToastController } from '@ionic/angular';
+import { ToastController } from '@ionic/angular';
 import * as Parse from 'parse';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-browse',
   templateUrl: './browse.component.html',
   styleUrls: ['./browse.component.scss'],
   standalone: true,
-  imports: [IonicModule, NavComponent],
+  imports: [...ionicStandaloneModules, NavComponent],
 })
 export class BrowseComponent implements OnInit {
   active: number = 0;

+ 2 - 2
projects/live-app/src/modules/user/certification/certification.component.ts

@@ -1,7 +1,6 @@
 import { Component, OnInit } from '@angular/core';
 import { FormsModule } from '@angular/forms';
 import {
-  IonicModule,
   LoadingController,
   ModalController,
   ToastController,
@@ -11,13 +10,14 @@ import * as utils from '../../../services/utils';
 import { AgreementComponent } from '../../login/agreement/agreement.component';
 import * as Parse from 'parse';
 import { NavComponent } from '../../../app/components/nav/nav.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-certification',
   templateUrl: './certification.component.html',
   styleUrls: ['./certification.component.scss'],
   standalone: true,
-  imports: [IonicModule, FormsModule, NavComponent],
+  imports: [...ionicStandaloneModules, FormsModule, NavComponent],
 })
 export class CertificationComponent implements OnInit {
   name: string = '';

+ 3 - 2
projects/live-app/src/modules/user/feedback/feedback.component.ts

@@ -1,17 +1,18 @@
 import { Component, OnInit } from '@angular/core';
 import * as Parse from 'parse';
-import { IonicModule, ToastController } from '@ionic/angular';
+import { ToastController } from '@ionic/angular';
 import { FormsModule } from '@angular/forms';
 import { NavComponent } from '../../../app/components/nav/nav.component';
 import { AuthService } from '../../../services/auth.service';
 import { UploadComponent } from '../../../app/components/upload/upload.component';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-feedback',
   templateUrl: './feedback.component.html',
   styleUrls: ['./feedback.component.scss'],
   standalone: true,
-  imports: [IonicModule, FormsModule, UploadComponent,NavComponent],
+  imports: [...ionicStandaloneModules, FormsModule, UploadComponent,NavComponent],
 })
 export class FeedbackComponent implements OnInit {
   fileList: any = [];

+ 1 - 1
projects/live-app/src/modules/user/profile/profile.component.html

@@ -1,7 +1,7 @@
 <nav title="主页信息"></nav>
 <ion-content [fullscreen]="true" class="content">
   <div class="bg">
-    <img [src]="profile?.get('image') || '/img/bg_duf.jpg'" alt="" />
+    <img [src]="profile?.get('image') || 'img/bg_duf.jpg'" alt="" />
     <div class="mask" (click)="onShow()"></div>
   </div>
   <div class="header">

+ 2 - 2
projects/live-app/src/modules/user/profile/profile.component.ts

@@ -5,7 +5,6 @@ import { NavComponent } from '../../../app/components/nav/nav.component';
 import { ActivatedRoute, Router } from '@angular/router';
 import {
   AlertController,
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -16,6 +15,7 @@ import { UploadComponent } from '../../../app/components/upload/upload.component
 import { GiftModalComponent } from '../../../app/components/gift-modal/gift-modal.component';
 import { MessageService } from '../../../services/message.service';
 import { ConnectTaskService } from '../../../services/connectTask.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-profile',
@@ -23,7 +23,7 @@ import { ConnectTaskService } from '../../../services/connectTask.service';
   styleUrls: ['./profile.component.scss'],
   standalone: true,
   imports: [
-    IonicModule,
+    ...ionicStandaloneModules,
     FormsModule,
     // DatePipe,
     NavComponent,

+ 2 - 2
projects/live-app/src/modules/user/setting/setting.component.ts

@@ -1,7 +1,6 @@
 import { Component, Input, OnInit, ViewChild } from '@angular/core';
 import {
   AlertController,
-  IonicModule,
   LoadingController,
   ToastController,
 } from '@ionic/angular';
@@ -10,13 +9,14 @@ import * as Parse from 'parse';
 import { Router } from '@angular/router';
 import { UploadComponent } from '../../../app/components/upload/upload.component';
 import { AuthService } from '../../../services/auth.service';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-setting',
   templateUrl: './setting.component.html',
   styleUrls: ['./setting.component.scss'],
   standalone: true,
-  imports: [IonicModule, NavComponent, UploadComponent],
+  imports: [...ionicStandaloneModules, NavComponent, UploadComponent],
 })
 export class SettingComponent implements OnInit {
   @ViewChild('upload') upload!: UploadComponent;

+ 3 - 2
projects/live-app/src/modules/user/share/share.component.ts

@@ -1,15 +1,16 @@
 import { HttpClient } from '@angular/common/http';
 import { Component, Input, OnInit } from '@angular/core';
-import { IonicModule, ToastController } from '@ionic/angular';
+import { ToastController } from '@ionic/angular';
 import { NavComponent } from '../../../app/components/nav/nav.component';
 import * as Parse from 'parse';
+import { ionicStandaloneModules } from '../../ionic-standalone.modules';
 
 @Component({
   selector: 'app-share',
   templateUrl: './share.component.html',
   styleUrls: ['./share.component.scss'],
   standalone: true,
-  imports: [IonicModule, NavComponent],
+  imports: [...ionicStandaloneModules, NavComponent],
 })
 export class ShareComponent implements OnInit {
   @Input() path: string = '/chat/home';