diff --git a/backend/controller/authController.js b/backend/controller/authController.js index edf7f3a..8c6cdf3 100644 --- a/backend/controller/authController.js +++ b/backend/controller/authController.js @@ -18,7 +18,7 @@ const generateToken = (user) => { // Menambahkan user baru dengan hashing Argon2 exports.register = async (req, res) => { try { - const { name, email, password, alamat, nomorTelepon, role } = req.body; + const { name, email, password, alamat, role } = req.body; // Cek apakah email sudah terdaftar const existingUser = await User.findOne({ where: { email } }); @@ -32,7 +32,6 @@ exports.register = async (req, res) => { email, password: hashedPassword, alamat, - nomorTelepon, role: 'user' }); diff --git a/backend/routes/authRoutes.js b/backend/routes/authRoutes.js index f824f52..f4eac48 100644 --- a/backend/routes/authRoutes.js +++ b/backend/routes/authRoutes.js @@ -25,7 +25,7 @@ const authController = require('../controller/authController'); * - name * - email * - password - * - nomorTelepon + * * properties: * name: * type: string @@ -36,9 +36,6 @@ const authController = require('../controller/authController'); * password: * type: string * example: mypassword - * nomorTelepon: - * type: string - * example: "08123456789" * alamat: * type: string * example: "london inggris" diff --git a/frontend/android/app/src/main/AndroidManifest.xml b/frontend/android/app/src/main/AndroidManifest.xml index 0fd500e..952499c 100644 --- a/frontend/android/app/src/main/AndroidManifest.xml +++ b/frontend/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:icon="@mipmap/launcher_icon"> { if (nameController.text.isEmpty || emailController.text.isEmpty || passwordController.text.isEmpty || - alamatController.text.isEmpty || - nomorHpController.text.isEmpty) { + alamatController.text.isEmpty) { _showErrorDialog('Semua field harus diisi'); return; } diff --git a/frontend/lib/user/riwayat_diagnosa_page.dart b/frontend/lib/user/riwayat_diagnosa_page.dart index b16a154..69b13de 100644 --- a/frontend/lib/user/riwayat_diagnosa_page.dart +++ b/frontend/lib/user/riwayat_diagnosa_page.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:frontend/api_services/api_services.dart'; +import 'package:SIBAYAM/api_services/api_services.dart'; import 'detail_riwayat_page.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; diff --git a/frontend/pubspec.lock b/frontend/pubspec.lock index 9ac2d57..05ee7ca 100644 --- a/frontend/pubspec.lock +++ b/frontend/pubspec.lock @@ -1,6 +1,22 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + archive: + dependency: transitive + description: + name: archive + sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd" + url: "https://pub.dev" + source: hosted + version: "4.0.7" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" async: dependency: transitive description: @@ -25,6 +41,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.4.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff + url: "https://pub.dev" + source: hosted + version: "2.0.3" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" clock: dependency: transitive description: @@ -49,6 +81,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.3.4+2" + crypto: + dependency: transitive + description: + name: crypto + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" + url: "https://pub.dev" + source: hosted + version: "3.0.6" cupertino_icons: dependency: "direct main" description: @@ -118,14 +158,14 @@ packages: description: flutter source: sdk version: "0.0.0" - flutter_lints: - dependency: "direct dev" + flutter_launcher_icons: + dependency: "direct main" description: - name: flutter_lints - sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" + name: flutter_launcher_icons + sha256: bfa04787c85d80ecb3f8777bde5fc10c3de809240c48fa061a2c2bf15ea5211c url: "https://pub.dev" source: hosted - version: "5.0.0" + version: "0.14.3" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -160,6 +200,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.2" + image: + dependency: transitive + description: + name: image + sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928" + url: "https://pub.dev" + source: hosted + version: "4.5.4" image_picker: dependency: "direct main" description: @@ -232,6 +280,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.18.1" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" leak_tracker: dependency: transitive description: @@ -256,14 +312,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 - url: "https://pub.dev" - source: hosted - version: "5.1.1" matcher: dependency: transitive description: @@ -328,6 +376,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "07c8f0b1913bcde1ff0d26e57ace2f3012ccbf2b204e070290dad3bb22797646" + url: "https://pub.dev" + source: hosted + version: "6.1.0" platform: dependency: transitive description: @@ -344,6 +400,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" + posix: + dependency: transitive + description: + name: posix + sha256: f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62 + url: "https://pub.dev" + source: hosted + version: "6.0.2" shared_preferences: dependency: "direct main" description: @@ -493,6 +557,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" + yaml: + dependency: transitive + description: + name: yaml + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce + url: "https://pub.dev" + source: hosted + version: "3.1.3" sdks: dart: ">=3.7.2 <4.0.0" flutter: ">=3.27.0" diff --git a/frontend/pubspec.yaml b/frontend/pubspec.yaml index 3bd3d7d..3fe5a7a 100644 --- a/frontend/pubspec.yaml +++ b/frontend/pubspec.yaml @@ -1,4 +1,4 @@ -name: frontend +name: SIBAYAM description: "A new Flutter project." # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. @@ -30,8 +30,9 @@ environment: dependencies: flutter: sdk: flutter - + flutter_launcher_icons: ^0.14.0 + # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.8 @@ -44,6 +45,12 @@ dev_dependencies: flutter_test: sdk: flutter +flutter_launcher_icons: + android: "launcher_icon" + ios: true + image_path: "assets/images/icon_sibayam.png" + min_sdk_android: 21 + # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is # activated in the `analysis_options.yaml` file located at the root of your