Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 54 | Rev 63 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 54 Rev 61
Línea 144... Línea 144...
144
                        .listRowInsets(.init()).frame(width: geometry.size.width, height: 70, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
144
                        .listRowInsets(.init()).frame(width: geometry.size.width, height: 70, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
145
                }
145
                }
146
            }
146
            }
147
            .background(Color("color_card_view_background"))
147
            .background(Color("color_card_view_background"))
Línea 148... Línea 148...
148
                
148
                
149
                Spacer()
149
            Spacer()
150
                               
150
                
151
                               Button(action: {
151
                Button(action: {
152
                                   DispatchQueue.main.async() {
152
                    DispatchQueue.main.async() {
153
                                       appNavigation.subpageActive = AppMainSubPage.deletaccount
153
                        appNavigation.subpageActive = AppMainSubPage.deletaccount
154
                                   }
154
                    }
155
                               }, label: {
155
                }, label: {
156
                                   Text(Config.LANG_DELETE_ACCOUNT_TITLE)
156
                    Text(Config.LANG_DELETE_ACCOUNT_TITLE)
157
                                   .font(Font.custom(Config.FONT_NAME_REGULAR, size: 13))
157
                    .font(Font.custom(Config.FONT_NAME_REGULAR, size: 13))
158
                                   .frame(width: UIScreen.main.bounds.width - 32, height: 35)
158
                    .frame(width: UIScreen.main.bounds.width - 32, height: 35)
159
                                   .foregroundColor(Color("color_button_foreground"))
159
                    .foregroundColor(Color("color_button_foreground"))
160
                                   .background(Color("color_button_background"))
160
                    .background(Color("color_button_background"))
161
                                   .border(Color("color_button_border"), width: Config.BUTTON_BORDER_SIZE)
161
                    .border(Color("color_button_border"), width: Config.BUTTON_BORDER_SIZE)
162
                                   .cornerRadius(Config.BUTTON_BORDER_RADIUS)
162
                    .cornerRadius(Config.BUTTON_BORDER_RADIUS)
163
                               })
163
                })
164
                               .padding(.top, 16)
164
                .padding(.top, 16)
165
                               .padding(.leading, 16)
165
                .padding(.leading, 16)
166
                               .padding(.trailing, 16)
166
                .padding(.trailing, 16)
167
        }.onAppear {
167
        }.onAppear {
168
            userExtendedPointViewModel.loadAll()
168
            userExtendedPointViewModel.loadAll()
169
        }.alert(isPresented: $showGlobalAlert) {
169
        }.alert(isPresented: $showGlobalAlert) {
170
            Alert(
170
            Alert(
Línea 205... Línea 205...
205
                        var userLog = UserLogModel()
205
                        var userLog = UserLogModel()
206
                        userLog.activity = Constants.USER_LOG_ACTIVITY_SIGNOUT
206
                        userLog.activity = Constants.USER_LOG_ACTIVITY_SIGNOUT
207
                        userLog.userUuid = appData.userUuid
207
                        userLog.userUuid = appData.userUuid
208
                        userLog.addedOn = dateOn
208
                        userLog.addedOn = dateOn
Línea 209... Línea 209...
209
                       
209
                       
210
                        let userLogDao = UserLogDao.sharedInstance
210
                        let userLogDao = UserLogDao()
Línea 211... Línea 211...
211
                        userLogDao.insert(record: userLog)
211
                        userLogDao.insert(record: userLog)
212
                            
212
                            
Línea 218... Línea 218...
218
                        if let theJSONData = try?  JSONSerialization.data(withJSONObject: json, options: .prettyPrinted),
218
                        if let theJSONData = try?  JSONSerialization.data(withJSONObject: json, options: .prettyPrinted),
219
                           let data = String(data: theJSONData, encoding: String.Encoding.ascii) {
219
                           let data = String(data: theJSONData, encoding: String.Encoding.ascii) {
220
                                sync.data = data
220
                                sync.data = data
221
                            }
221
                            }
Línea 222... Línea 222...
222
                             
222
                             
223
                        let syncDao = SyncDao.sharedInstance
223
                        let syncDao = SyncDao()
Línea 224... Línea 224...
224
                        syncDao.insert(record : sync)
224
                        syncDao.insert(record : sync)
225
      
225
      
226
                        appData.userEmail = ""
226
                        appData.userEmail = ""