浏览代码

修复bug

100Years 3 周之前
父节点
当前提交
88ab14a4a8
共有 27 个文件被更改,包括 70 次插入21 次删除
  1. 二进制
      AIEmoji/Assets.xcassets/AIList/aiList_oldPeople.imageset/aiList_oldPeople@2x.png
  2. 二进制
      AIEmoji/Assets.xcassets/AIList/aiList_oldPeople.imageset/aiList_oldPeople@3x.png
  3. 二进制
      AIEmoji/Assets.xcassets/AIList/ailist_child.imageset/ailist_child@2x.png
  4. 二进制
      AIEmoji/Assets.xcassets/AIList/ailist_child.imageset/ailist_child@3x.png
  5. 22 0
      AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/Contents.json
  6. 二进制
      AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/ttp_style_hot@2x.png
  7. 二进制
      AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/ttp_style_hot@3x.png
  8. 1 1
      AIEmoji/Business/AIChat/TSAIChatHistoryVC/TSAIChatHistoryVC.swift
  9. 1 1
      AIEmoji/Business/AIChat/TSChatViewController/TSChatViewController/TSChatViewController+NaviBar.swift
  10. 5 5
      AIEmoji/Business/TSAILIstVC/TSAILIstVC/TSAILIstCell.swift
  11. 1 1
      AIEmoji/Business/TSAILIstVC/TSAIListHistoryBaseVC/TSAIListHistoryBaseVC.swift
  12. 1 1
      AIEmoji/Business/TSGenmojiVC/TSGenmojiVC/TSGenmojiVC.swift
  13. 7 7
      AIEmoji/Business/TSPTPGeneratorVC/TSGennertatorSelectStyleVC/TSGennertatorSelectStyleVC.swift
  14. 1 1
      AIEmoji/Business/TSPTPGeneratorVC/TSPTPHistoryVC/TSPTPHistoryVC.swift
  15. 1 1
      AIEmoji/Business/TSPTPGeneratorVC/TSPTPInputVC/TSPTPInputVC.swift
  16. 1 1
      AIEmoji/Business/TSPTPGeneratorVC/TSPhotoToPhotoVC/TSPhotoToPhotoVC.swift
  17. 1 1
      AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/TSTTPInputVC+Col.swift
  18. 1 1
      AIEmoji/Business/TSTextGeneralPictureVC/TSTextGeneralPictureVC/TSTextGeneralPictureVC.swift
  19. 3 0
      AIEmoji/de.lproj/Localizable.strings
  20. 3 0
      AIEmoji/en.lproj/Localizable.strings
  21. 3 0
      AIEmoji/es.lproj/Localizable.strings
  22. 3 0
      AIEmoji/ja.lproj/Localizable.strings
  23. 3 0
      AIEmoji/ko.lproj/Localizable.strings
  24. 3 0
      AIEmoji/pt-BR.lproj/Localizable.strings
  25. 3 0
      AIEmoji/pt-PT.lproj/Localizable.strings
  26. 3 0
      AIEmoji/zh-Hans.lproj/Localizable.strings
  27. 3 0
      AIEmoji/zh-Hant.lproj/Localizable.strings

二进制
AIEmoji/Assets.xcassets/AIList/aiList_oldPeople.imageset/aiList_oldPeople@2x.png


二进制
AIEmoji/Assets.xcassets/AIList/aiList_oldPeople.imageset/aiList_oldPeople@3x.png


二进制
AIEmoji/Assets.xcassets/AIList/ailist_child.imageset/ailist_child@2x.png


二进制
AIEmoji/Assets.xcassets/AIList/ailist_child.imageset/ailist_child@3x.png


+ 22 - 0
AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "ttp_style_hot@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "ttp_style_hot@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

二进制
AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/ttp_style_hot@2x.png


二进制
AIEmoji/Assets.xcassets/Genmoji/ttp_style/ttp_style_hot.imageset/ttp_style_hot@3x.png


+ 1 - 1
AIEmoji/Business/AIChat/TSAIChatHistoryVC/TSAIChatHistoryVC.swift

@@ -73,7 +73,7 @@ class TSAIChatHistoryVC: TSBaseVC {
     }
     
     @objc func deleteAll(){
-        showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  { [weak self]  in
+        showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  { [weak self]  in
             guard let self = self else { return }
             viewModel.deleteAll()
             self.viewModel.historyModelChatList.removeAll()

+ 1 - 1
AIEmoji/Business/AIChat/TSChatViewController/TSChatViewController/TSChatViewController+NaviBar.swift

@@ -158,7 +158,7 @@ extension TSChatViewController {
     }
     
     @objc func clickDelete(){
-        showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  { [weak self]  in
+        showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  { [weak self]  in
             guard let self = self else { return }
             viewModel.dbAIChatList.delete()
         

+ 5 - 5
AIEmoji/Business/TSAILIstVC/TSAILIstVC/TSAILIstCell.swift

@@ -85,12 +85,12 @@ class TSAILIstCell: TSBaseCollectionCell {
 //    }()
     
     lazy var titleLab: UILabel = {
-        let titleLab = UILabel.createLabel(font: .font(size: 16,weight: .medium),textColor: .fromHex("FFFFFF"),numberOfLines: 0)
+        let titleLab = UILabel.createLabel(font: .font(size: 18,weight: .medium),textColor: .fromHex("FFFFFF"),numberOfLines: 0)
         return titleLab
     }()
     
     lazy var infoLab: UILabel = {
-        let infoLab = UILabel.createLabel(font: .font(size: 12,weight: .regular),textColor: .white.withAlphaComponent(0.8),numberOfLines: 0)
+        let infoLab = UILabel.createLabel(font: .font(size: 14,weight: .regular),textColor: .white.withAlphaComponent(0.8),numberOfLines: 0)
         return infoLab
     }()
     
@@ -119,15 +119,15 @@ class TSAILIstCell: TSBaseCollectionCell {
             make.trailing.equalTo(-110)
             make.leading.equalTo(leading)
             make.bottom.equalTo(-16)
-            make.height.equalTo(16)
+            make.height.greaterThanOrEqualTo(16)
         }
 
         bgContentView.addSubview(titleLab)
         titleLab.snp.makeConstraints { make in
             make.trailing.equalTo(-110)
             make.leading.equalTo(leading)
-            make.bottom.equalTo(infoLab.snp.top).offset(-12)
-            make.height.equalTo(18)
+            make.bottom.equalTo(infoLab.snp.top).offset(-8)
+            make.height.greaterThanOrEqualTo(18)
         }
         
         bgContentView.addSubview(catPawAnimatedImageView)

+ 1 - 1
AIEmoji/Business/TSAILIstVC/TSAIListHistoryBaseVC/TSAIListHistoryBaseVC.swift

@@ -90,7 +90,7 @@ class TSAIListHistoryBaseVC: TSBaseVC {
     }
     
     @objc func clickNavRight() {
-        showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+        showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized ,deleteHandler:  {
             self.removeAllHistoryList()
             self.updateDataView()
         })

+ 1 - 1
AIEmoji/Business/TSGenmojiVC/TSGenmojiVC/TSGenmojiVC.swift

@@ -31,7 +31,7 @@ class TSGenmojiVC: TSBaseVC {
         cp.sectionActionHandler = { [weak self] cellCp, indexPath in
             guard let self = self else { return }
             if let cmd = cellCp as? String, cmd == "delete"  {
-                showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+                showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  {
                     self.viewModel.removeAllHistoryList()
                     self.updateListDataView()
                 })

+ 7 - 7
AIEmoji/Business/TSPTPGeneratorVC/TSGennertatorSelectStyleVC/TSGennertatorSelectStyleVC.swift

@@ -259,13 +259,6 @@ class TSGennertatorSelectStyleCell: TSBaseCollectionCell {
     override func creatUI() {
 //        let w = contentView.width
         let w = 78
-
-        bgContentView.addSubview(imageView)
-        imageView.snp.makeConstraints { make in
-            make.top.equalTo(4)
-            make.centerX.equalToSuperview()
-            make.width.height.equalTo(w-8)
-        }
         
         bgContentView.addSubview(boardImageView)
         boardImageView.snp.makeConstraints { make in
@@ -273,6 +266,13 @@ class TSGennertatorSelectStyleCell: TSBaseCollectionCell {
             make.width.height.equalTo(w)
         }
         
+        bgContentView.addSubview(imageView)
+        imageView.snp.makeConstraints { make in
+            make.top.equalTo(4)
+            make.centerX.equalToSuperview()
+            make.width.height.equalTo(w-8)
+        }
+        
         imageView.addSubview(hotImageView)
         hotImageView.snp.makeConstraints { make in
             make.leading.equalTo(0)

+ 1 - 1
AIEmoji/Business/TSPTPGeneratorVC/TSPTPHistoryVC/TSPTPHistoryVC.swift

@@ -104,7 +104,7 @@ class TSPTPHistoryVC: TSBaseVC {
     }
     
     @objc func clickNavRight() {
-        showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+        showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  {
             self.removeAllHistoryList()
             self.updateDataView()
             self.dataChangedNotification()

+ 1 - 1
AIEmoji/Business/TSPTPGeneratorVC/TSPTPInputVC/TSPTPInputVC.swift

@@ -192,7 +192,7 @@ class TSPTPInputVC: TSBaseVC {
             guard let self = self else { return }
             if let cmd = cellCp as? String {
                 if cmd == "delete" {
-                    showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler: {
+                    showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler: {
                         self.viewModel.removeAllHistoryList()
                         self.updataCollectionView()
                     })

+ 1 - 1
AIEmoji/Business/TSPTPGeneratorVC/TSPhotoToPhotoVC/TSPhotoToPhotoVC.swift

@@ -179,7 +179,7 @@ class TSPhotoToPhotoVC: TSBaseVC {
         cp.sectionActionHandler = { [weak self] cellCp, indexPath in
             guard let self = self else { return }
             if let cmd = cellCp as? String, cmd == "delete"  {
-                showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+                showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  {
                     self.viewModel.removeAllHistoryList()
                     self.collectionComponent.clear()
                     self.collectionComponent.reloadView(with: self.viewModel.colDataArray)

+ 1 - 1
AIEmoji/Business/TSTextGeneralPictureVC/TSTTPInputVC/TSTTPInputVC+Col.swift

@@ -15,7 +15,7 @@ extension TSTTPInputVC {
             guard let self = self else { return }
             if let cmd = cellCp as? String  {
                 if cmd == "delete" {
-                    showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+                    showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  {
                         self.viewModel.removeAllHistoryList()
                         self.updateListDataView()
                     })

+ 1 - 1
AIEmoji/Business/TSTextGeneralPictureVC/TSTextGeneralPictureVC/TSTextGeneralPictureVC.swift

@@ -46,7 +46,7 @@ class TSTextGeneralPictureVC: TSBaseVC {
         cp.sectionActionHandler = { [weak self] cellCp, indexPath in
             guard let self = self else { return }
             if let cmd = cellCp as? String, cmd == "delete"  {
-                showCustomAlert(message: "Are you sure to delete all histories?".localized, deleteHandler:  {
+                showCustomAlert(message: "Are you sure to delete all histories?".localized, rightActionString: "Delete All".localized , deleteHandler:  {
                     self.viewModel.removeAllHistoryList()
                     self.updateListDataView()
                 })

+ 3 - 0
AIEmoji/de.lproj/Localizable.strings

@@ -349,3 +349,6 @@
 "Select pet photos with clear faces" = "Wählen Sie Haustierfotos mit klaren Gesichtern";
 "No clear faces or group shots" = "Keine klaren Gesichter oder Gruppenfotos";
 "Text" = "Text";
+"AI Store" = "AI-Speicher";
+"Are you sure to delete all histories?" = "Sind Sie sicher, alle Historien zu löschen?";
+"Delete All" = "Alle löschen";

+ 3 - 0
AIEmoji/en.lproj/Localizable.strings

@@ -346,3 +346,6 @@
 "Select pet photos with clear faces" = "Select pet photos with clear faces";
 "No clear faces or group shots" = "No clear faces or group shots";
 "Text" = "Text";
+"AI Store" = "AI Store";
+"Are you sure to delete all histories?" = "Are you sure to delete all histories?";
+"Delete All" = "Delete All";

+ 3 - 0
AIEmoji/es.lproj/Localizable.strings

@@ -346,3 +346,6 @@
 "Select pet photos with clear faces" = "Selecciona fotos de mascotas con caras claras";
 "No clear faces or group shots" = "Sin caras claras o fotos de grupo";
 "Text" = "Texto";
+"AI Store" = "Tienda AI";
+"Are you sure to delete all histories?" = "¿Estás seguro de borrar todos los historiales?";
+"Delete All" = "Eliminar todo";

+ 3 - 0
AIEmoji/ja.lproj/Localizable.strings

@@ -345,3 +345,6 @@
 "Select pet photos with clear faces" = "顔がはっきりしたペットの写真を選ぶ";
 "No clear faces or group shots" = "はっきりとした顔や集合写真はありません";
 "Text" = "テキスト";
+"AI Store" = "AIストア";
+"Are you sure to delete all histories?" = "すべての履歴を削除してもよろしいですか?";
+"Delete All" = "すべて削除";

+ 3 - 0
AIEmoji/ko.lproj/Localizable.strings

@@ -351,3 +351,6 @@
 "Select pet photos with clear faces" = "얼굴이 선명한 반려동물 사진 선택";
 "No clear faces or group shots" = "얼굴이 선명하지 않거나 단체 사진";
 "Text" = "텍스트";
+"AI Store" = "AI 스토어";
+"Are you sure to delete all histories?" = "모든 기록을 삭제하시겠습니까?";
+"Delete All" = "모두 삭제";

+ 3 - 0
AIEmoji/pt-BR.lproj/Localizable.strings

@@ -345,3 +345,6 @@
 "Select pet photos with clear faces" = "Selecione fotos de animais de estimação com rostos nítidos";
 "No clear faces or group shots" = "Sem rostos nítidos ou fotos de grupo";
 "Text" = "Texto";
+"AI Store" = "Loja de IA";
+"Are you sure to delete all histories?" = "Tem certeza de que deseja excluir todos os históricos?";
+"Delete All" = "Excluir tudo";

+ 3 - 0
AIEmoji/pt-PT.lproj/Localizable.strings

@@ -345,3 +345,6 @@
 "Select pet photos with clear faces" = "Selecione fotos de animais de estimação com rostos nítidos";
 "No clear faces or group shots" = "Sem rostos nítidos ou fotos de grupo";
 "Text" = "Texto";
+"AI Store" = "Loja de IA";
+"Are you sure to delete all histories?" = "Tem certeza de que deseja excluir todos os históricos?";
+"Delete All" = "Excluir tudo";

+ 3 - 0
AIEmoji/zh-Hans.lproj/Localizable.strings

@@ -347,3 +347,6 @@
 "Select pet photos with clear faces" = "选择有清晰面部的宠物照片";
 "No clear faces or group shots" = "没有清晰的面部或集体照";
 "Text" = "文生图";
+"AI Store" = "AI 商店";
+"Are you sure to delete all histories?" = "确定要删除所有历史记录吗?";
+"Delete All" = "全部删除";

+ 3 - 0
AIEmoji/zh-Hant.lproj/Localizable.strings

@@ -337,3 +337,6 @@
 "Select pet photos with clear faces" = "選擇有清晰面部的寵物照片";
 "No clear faces or group shots" = "沒有清晰的面部或集體照";
 "Text" = "文生圖";
+"AI Store" = "AI 商店";
+"Are you sure to delete all histories?" = "確定要刪除所有歷史記錄嗎?";
+"Delete All" = "全部刪除";