├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── issue-numbering.yml ├── .gitignore.txt ├── .idea ├── .gitignore ├── Dev-Track-App.iml ├── libraries │ ├── Dart_Packages.xml │ └── Dart_SDK.xml ├── modules.xml └── vcs.xml ├── .vscode ├── launch.json └── settings.json ├── Procfile ├── README.md ├── backend └── myproject │ ├── announcements │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ ├── apps.cpython-312.pyc │ │ └── models.cpython-312.pyc │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 0001_initial.cpython-312.pyc │ │ │ └── __init__.cpython-312.pyc │ ├── models.py │ ├── services.py │ ├── tests.py │ └── views.py │ ├── db.sqlite3 │ ├── manage.py │ ├── media │ └── projects │ │ ├── conda-cheatsheet.pdf │ │ └── conda-cheatsheet_vVZEeLX.pdf │ ├── members │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ ├── admin.cpython-312.pyc │ │ ├── api.cpython-312.pyc │ │ ├── apps.cpython-312.pyc │ │ ├── models.cpython-312.pyc │ │ └── schemas.cpython-312.pyc │ ├── admin.py │ ├── api.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_alter_customuser_srn.py │ │ ├── 0003_remove_customuser_alt_email.py │ │ ├── 0004_filemodel_alter_customuser_email_and_more.py │ │ ├── 0005_filemodel_related_project_and_more.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 0001_initial.cpython-312.pyc │ │ │ ├── 0002_alter_customuser_srn.cpython-312.pyc │ │ │ ├── 0002_remove_customuser_alt_email_alter_customuser_branch_and_more.cpython-312.pyc │ │ │ ├── 0003_remove_customuser_alt_email.cpython-312.pyc │ │ │ ├── 0004_filemodel_alter_customuser_email_and_more.cpython-312.pyc │ │ │ ├── 0005_filemodel_related_project_and_more.cpython-312.pyc │ │ │ └── __init__.cpython-312.pyc │ ├── models.py │ ├── schemas.py │ ├── services.py │ ├── tests.py │ └── views.py │ ├── myproject │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ ├── settings.cpython-312.pyc │ │ ├── urls.cpython-312.pyc │ │ └── wsgi.cpython-312.pyc │ ├── asgi.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py │ ├── projects │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ ├── api.cpython-312.pyc │ │ ├── apps.cpython-312.pyc │ │ ├── models.cpython-312.pyc │ │ ├── schemas.cpython-312.pyc │ │ └── services.cpython-312.pyc │ ├── admin.py │ ├── api.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_alter_projectmodel_description_and_more.py │ │ ├── 0003_alter_projectmodel_description_and_more.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 0001_initial.cpython-312.pyc │ │ │ ├── 0002_alter_projectmodel_description_and_more.cpython-312.pyc │ │ │ ├── 0003_alter_projectmodel_description_and_more.cpython-312.pyc │ │ │ └── __init__.cpython-312.pyc │ ├── models.py │ ├── schemas.py │ ├── services.py │ ├── tests.py │ └── views.py │ ├── registrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ ├── apps.cpython-312.pyc │ │ └── models.cpython-312.pyc │ ├── admin.py │ ├── api.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ │ ├── 0001_initial.cpython-312.pyc │ │ │ └── __init__.cpython-312.pyc │ ├── models.py │ ├── services.py │ ├── tests.py │ └── views.py │ └── requirements.txt ├── frontend ├── .gitignore ├── .metadata ├── analysis_options.yaml ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── dev_track_app │ │ │ │ │ └── MainActivity.kt │ │ │ └── res │ │ │ │ ├── drawable-v21 │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-night │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ └── styles.xml │ │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── assets │ └── images │ │ ├── dtlogo.png │ │ ├── elmoo.jpg │ │ ├── game.png │ │ ├── hitler.png │ │ └── user.png ├── flutter_01.png ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ ├── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ └── README.md │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── Runner-Bridging-Header.h │ └── RunnerTests │ │ └── RunnerTests.swift ├── lib │ ├── components │ │ ├── bottomNav.dart │ │ └── topNav.dart │ ├── main.dart │ └── pages │ │ ├── confirm_page.dart │ │ ├── domain.dart │ │ ├── home.dart │ │ ├── home_page.dart │ │ ├── imageuploadpage.dart │ │ ├── login_page.dart │ │ ├── mgmt_previous_projects │ │ ├── mgmg_prev_projects.dart │ │ └── projects_card.dart │ │ ├── previous_projects.dart │ │ ├── register_page.dart │ │ ├── specific_project.dart │ │ ├── splashscreen.dart │ │ ├── std_class.dart │ │ ├── std_details.dart │ │ ├── studentview.dart │ │ ├── submission_page.dart │ │ ├── teamcard.dart │ │ └── tracker.dart ├── linux │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ ├── main.cc │ ├── my_application.cc │ └── my_application.h ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── app_icon_1024.png │ │ │ │ ├── app_icon_128.png │ │ │ │ ├── app_icon_16.png │ │ │ │ ├── app_icon_256.png │ │ │ │ ├── app_icon_32.png │ │ │ │ ├── app_icon_512.png │ │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ │ └── MainMenu.xib │ │ ├── Configs │ │ │ ├── AppInfo.xcconfig │ │ │ ├── Debug.xcconfig │ │ │ ├── Release.xcconfig │ │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements │ └── RunnerTests │ │ └── RunnerTests.swift ├── pubspec.lock ├── pubspec.yaml ├── test │ └── widget_test.dart ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── index.html │ └── manifest.json └── windows │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake │ └── runner │ ├── CMakeLists.txt │ ├── Runner.rc │ ├── flutter_window.cpp │ ├── flutter_window.h │ ├── main.cpp │ ├── resource.h │ ├── resources │ └── app_icon.ico │ ├── runner.exe.manifest │ ├── utils.cpp │ ├── utils.h │ ├── win32_window.cpp │ └── win32_window.h ├── node_modules ├── .package-lock.json └── .yarn-integrity ├── package-lock.json ├── requirements.txt ├── runtime.txt └── yarn.lock /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/issue-numbering.yml: -------------------------------------------------------------------------------- 1 | name: Auto-Issue Numbering 2 | 3 | on: 4 | issues: 5 | types: [opened] 6 | 7 | jobs: 8 | add-number: 9 | runs-on: ubuntu-latest 10 | 11 | steps: 12 | - name: Extract Issue Number 13 | id: issue 14 | run: echo "number=${{ github.event.issue.number }}" >> $GITHUB_ENV 15 | 16 | - name: Use Issue Number 17 | run: | 18 | echo "New issue created: #${{ env.number }}" 19 | # Example: You can automate actions here using the issue number, 20 | # such as adding comments, labels, or creating branches. 21 | -------------------------------------------------------------------------------- /.gitignore.txt: -------------------------------------------------------------------------------- 1 | # Python bytecode 2 | *.pyc 3 | *.pyo 4 | *.pyd 5 | __pycache__ 6 | 7 | # Django migrations 8 | */migrations/*.py 9 | */migrations/*.pyc 10 | 11 | # Database 12 | *.sqlite3 13 | 14 | # Django secret key 15 | *.env 16 | 17 | # Media files 18 | media/ 19 | 20 | # Static files 21 | static/ 22 | 23 | # Cache files 24 | *.cache 25 | 26 | # IDE-specific files 27 | .vscode/ 28 | .idea/ -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/Dev-Track-App.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /.idea/libraries/Dart_SDK.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | 8 | 9 | { 10 | "name": "Python Debugger: Django", 11 | "type": "debugpy", 12 | "request": "launch", 13 | "args": [ 14 | "runserver", 15 | "--noreload" 16 | ], 17 | "django": true, 18 | "autoStartBrowser": false, 19 | "program": "${workspaceFolder}\\manage.py" 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn myproject.wsgi:application --log-file - 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dev-Track-App 2 | 3 | 4 | # ProjectX Dashboard Application 5 | 6 | ## Table of Contents 7 | 8 | 1. [Project Overview](#project-overview) 9 | 2. [Features](#features) 10 | 3. [Tech Stack](#tech-stack) 11 | 4. [Requirements](#requirements) 12 | 5. [Installation](#installation) 13 | 6. [Running the Application](#running-the-application) 14 | 7. [Directory Structure](#directory-structure) 15 | 8. [API Documentation](#api-documentation) 16 | 9. [Contribution Guidelines](#contribution-guidelines) 17 | 10. [Contact Information](#contact-information) 18 | 11. [License](#license) 19 | 20 | ## Project Overview 21 | 22 | ProjectX Dashboard Application is designed to streamline the enrollment process for project cycles, manage deadlines, and provide features for both students and management of the Dev Track Club at Raywaun University. 23 | 24 | ## Features 25 | 26 | - User authentication (student and management views) 27 | - Announcements management 28 | - Project application and tracking 29 | - Weekly progress updates 30 | - Scrum meeting scheduling 31 | - Submissions tracking 32 | 33 | ## Tech Stack 34 | 35 | - **Backend:** Django, Django Ninja 36 | - **Frontend:** Flutter 37 | - **Database:** SQLite (development), PostgreSQL (production) 38 | 39 | ## Requirements 40 | 41 | - Python 3.8+ 42 | - Django 3.2+ 43 | - Flutter 2.0+ 44 | - Node.js (for frontend dependencies) 45 | 46 | ## Installation 47 | 48 | ### Backend 49 | 50 | 1. **Clone the Repository:** 51 | 52 | `git clone https://github.com/yourusername/projectx.git 53 | cd projectx` 54 | 55 | 2. **Create a Virtual Environment:** 56 | 57 | ``python -m venv venv 58 | source venv/bin/activate # On Windows use `venv\Scripts\activate` `` 59 | 60 | 3. **Install Dependencies:** 61 | 62 | `pip install -r requirements.txt` 63 | 64 | 4. **Set Up Environment Variables:** 65 | 66 | Create a `.env` file in the project root and add the following: 67 | 68 | env 69 | 70 | `DEBUG=True 71 | SECRET_KEY=your_secret_key 72 | DATABASE_URL=your_database_url` 73 | 74 | 5. **Apply Migrations:** 75 | 76 | `python manage.py migrate` 77 | 78 | 6. **Create a Superuser:** 79 | 80 | `python manage.py createsuperuser` 81 | 82 | 83 | ### Frontend 84 | 85 | 1. **Install Flutter:** 86 | 87 | Follow the official Flutter installation guide here. 88 | 89 | 2. **Navigate to the Flutter Directory:** 90 | 91 | `cd projectx_flutter` 92 | 93 | 3. **Install Dependencies:** 94 | 95 | `flutter pub get` 96 | 97 | 98 | ## Running the Application 99 | 100 | ### Backend 101 | 102 | 1. **Start the Development Server:** 103 | 104 | `python manage.py runserver` 105 | 106 | 2. **Access the Admin Panel:** 107 | 108 | Navigate to `http://127.0.0.1:8000/admin` and log in with the superuser credentials. 109 | 110 | 111 | ### Frontend 112 | 113 | 1. **Run the Flutter Application:** 114 | 115 | `flutter run` 116 | 117 | 2. **Specify the Target Device:** 118 | 119 | You can run the app on a connected device or emulator. 120 | 121 | 122 | ## Directory Structure 123 | 124 | .... 125 | 126 | ## API Documentation 127 | 128 | Detailed API documentation is generated using Django Ninja. Access the API docs at `http://127.0.0.1:8000/api/docs` after starting the development server. 129 | 130 | ## Contribution Guidelines 131 | 132 | We welcome contributions from the community. To contribute, please follow these steps: 133 | 134 | 1. **Fork the Repository:** 135 | 136 | Click on the "Fork" button at the top right corner of the repository page. 137 | 138 | 2. **Clone the Forked Repository:** 139 | 140 | `git clone https://github.com/yourusername/projectx.git 141 | cd projectx` 142 | 143 | 3. **Create a New Branch:** 144 | 145 | `git checkout -b feature/your-feature-name` 146 | 147 | 4. **Make Changes and Commit:** 148 | 149 | `git add . 150 | git commit -m "Add your commit message"` 151 | 152 | 5. **Push to Your Forked Repository:** 153 | 154 | `git push origin feature/your-feature-name` 155 | 156 | 6. **Create a Pull Request:** 157 | 158 | Open a pull request from your forked repository to the main repository. 159 | 160 | 161 | ## Contact Information 162 | 163 | For any queries or support, please contact: 164 | 165 | - **Project Maintainer:** Your Name 166 | - **Email:** your-email@example.com 167 | - **GitHub:** [yourusername](https://github.com/yourusername) 168 | 169 | ## License 170 | 171 | This project is licensed under the MIT License. See the LICENSE file for details. 172 | -------------------------------------------------------------------------------- /backend/myproject/announcements/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/__init__.py -------------------------------------------------------------------------------- /backend/myproject/announcements/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/announcements/__pycache__/apps.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/__pycache__/apps.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/announcements/__pycache__/models.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/__pycache__/models.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/announcements/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /backend/myproject/announcements/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AnnouncementsConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'announcements' 7 | -------------------------------------------------------------------------------- /backend/myproject/announcements/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 16:35 2 | 3 | import django.db.models.deletion 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | initial = True 11 | 12 | dependencies = [ 13 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 14 | ] 15 | 16 | operations = [ 17 | migrations.CreateModel( 18 | name='NotificationModel', 19 | fields=[ 20 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 21 | ('message', models.CharField(max_length=200)), 22 | ('created_at', models.DateTimeField(auto_now_add=True)), 23 | ('is_read', models.BooleanField(default=False)), 24 | ('notification_type', models.CharField(choices=[('EN', 'enrollment'), ('SC', 'scrum'), ('DE', 'deadline')], max_length=2)), 25 | ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 26 | ], 27 | ), 28 | ] 29 | -------------------------------------------------------------------------------- /backend/myproject/announcements/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/migrations/__init__.py -------------------------------------------------------------------------------- /backend/myproject/announcements/migrations/__pycache__/0001_initial.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/migrations/__pycache__/0001_initial.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/announcements/migrations/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/migrations/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/announcements/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | from members.models import CustomUser 4 | # Create your models here. 5 | 6 | 7 | 8 | class AnnouncementModel: 9 | title = models.CharField(max_length=100, blank=False, null=False) 10 | description = models.TextField(max_length=512, blank=True) 11 | created_at = models.DateTimeField(auto_now_add=True) 12 | created_by = models.ForeignKey(CustomUser, on_delete=models.CASCADE) 13 | 14 | 15 | class NotificationModel(models.Model): 16 | ENROLLMENT = 'EN' 17 | SCRUM = 'SC' 18 | DEADLINE = 'DE' 19 | 20 | NOTIF_TYPE = [ 21 | (ENROLLMENT, 'enrollment'), 22 | (SCRUM, 'scrum'), 23 | (DEADLINE, 'deadline'), 24 | ] 25 | 26 | message = models.CharField(max_length=200) 27 | created_at = models.DateTimeField(auto_now_add=True) 28 | is_read = models.BooleanField(default=False) 29 | notification_type = models.CharField(max_length=2, choices=NOTIF_TYPE) 30 | user = models.ForeignKey(CustomUser, on_delete=models.CASCADE) 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /backend/myproject/announcements/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/announcements/services.py -------------------------------------------------------------------------------- /backend/myproject/announcements/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /backend/myproject/announcements/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /backend/myproject/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/db.sqlite3 -------------------------------------------------------------------------------- /backend/myproject/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | # os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') 6 | 7 | def main(): 8 | """Run administrative tasks.""" 9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') 10 | try: 11 | from django.core.management import execute_from_command_line 12 | except ImportError as exc: 13 | raise ImportError( 14 | "Couldn't import Django. Are you sure it's installed and " 15 | "available on your PYTHONPATH environment variable? Did you " 16 | "forget to activate a virtual environment?" 17 | ) from exc 18 | execute_from_command_line(sys.argv) 19 | 20 | 21 | if __name__ == '__main__': 22 | main() 23 | -------------------------------------------------------------------------------- /backend/myproject/media/projects/conda-cheatsheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/media/projects/conda-cheatsheet.pdf -------------------------------------------------------------------------------- /backend/myproject/media/projects/conda-cheatsheet_vVZEeLX.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/media/projects/conda-cheatsheet_vVZEeLX.pdf -------------------------------------------------------------------------------- /backend/myproject/members/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__init__.py -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/admin.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/admin.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/api.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/api.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/apps.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/apps.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/models.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/models.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/__pycache__/schemas.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/__pycache__/schemas.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /backend/myproject/members/api.py: -------------------------------------------------------------------------------- 1 | from django.contrib.auth import authenticate, logout 2 | from .models import CustomUser as User 3 | from . import schemas 4 | from django.http import JsonResponse 5 | from django.shortcuts import get_object_or_404 6 | from ninja_jwt.controller import NinjaJWTDefaultController 7 | from ninja_jwt.authentication import JWTAuth 8 | from ninja_jwt.tokens import RefreshToken 9 | from ninja_extra import NinjaExtraAPI, ControllerBase, api_controller, route 10 | 11 | from projects.api import ProjectsAPI 12 | 13 | 14 | 15 | @api_controller("/user", tags="User Authentication", auth=JWTAuth()) 16 | class UserAuthAPI(ControllerBase): 17 | 18 | #API call for user to login by giving username and password. JWT based session will be created after this. 19 | @route.post("/login", url_name="User login", auth=None) 20 | def login_view(self, request, payload: schemas.SignInSchema): 21 | user = authenticate(request, username=payload.email, password=payload.password) 22 | if user is not None: 23 | refresh= RefreshToken.for_user(user) 24 | return { 25 | 'refresh': str(refresh), 26 | 'access': str(refresh.access_token) 27 | } 28 | return JsonResponse({"detail": "Invalid credentials"}, status=401) 29 | 30 | 31 | #API call made by a user to logout., auth=JWTAuth() 32 | @route.post("/logout", auth=None) 33 | def logout_view(self, request): 34 | logout(request) 35 | return {"message": "Logged out"} 36 | 37 | 38 | #API call made by user to view their profile. 39 | @route.get("/user", auth=JWTAuth()) 40 | def user(self, request): 41 | return { 42 | "username": request.user.username, 43 | "email": request.user.email, 44 | "github": request.user.github, 45 | "fname" : request.user.fname, 46 | } 47 | 48 | 49 | #API post request for a new user to create a new account. 50 | @route.post("/register", auth=None) 51 | def register(self, request, payload: schemas.RegisterSchema): 52 | try: 53 | user = User.objects.create_user( 54 | username=payload.email, 55 | email=payload.email, 56 | password=payload.password, 57 | first_name= payload.first_name, 58 | last_name= payload.last_name, 59 | ) 60 | refresh = RefreshToken.for_user(user) 61 | return { 62 | "refresh": str(refresh), 63 | "access": str(refresh.access_token), 64 | } 65 | except Exception as e: 66 | return JsonResponse({"error": str(e)}, status=400) 67 | 68 | 69 | 70 | @route.put("/edit", auth=JWTAuth() ,response=schemas.RegisterSchema) 71 | def edit_profile(self, request, payload : schemas.RegisterSchema): 72 | user= get_object_or_404(User, srn=request.user.srn) 73 | for attr, value in payload.dict().items(): 74 | setattr(user, attr, value) 75 | user.save() 76 | return user 77 | 78 | 79 | 80 | 81 | 82 | api = NinjaExtraAPI(csrf=False) 83 | api.register_controllers(NinjaJWTDefaultController) 84 | api.register_controllers(UserAuthAPI) 85 | api.register_controllers(ProjectsAPI) 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /backend/myproject/members/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MyappConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'members' 7 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-08-10 13:33 2 | 3 | import django.contrib.auth.models 4 | import django.contrib.auth.validators 5 | import django.utils.timezone 6 | from django.db import migrations, models 7 | 8 | 9 | class Migration(migrations.Migration): 10 | 11 | initial = True 12 | 13 | dependencies = [ 14 | ('auth', '0013_alter_user_email'), 15 | ] 16 | 17 | operations = [ 18 | migrations.CreateModel( 19 | name='CustomUser', 20 | fields=[ 21 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 22 | ('password', models.CharField(max_length=128, verbose_name='password')), 23 | ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), 24 | ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), 25 | ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), 26 | ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), 27 | ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), 28 | ('email', models.EmailField(blank=True, max_length=254, unique=True, verbose_name='email address')), 29 | ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), 30 | ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), 31 | ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), 32 | ('alt_email', models.EmailField(max_length=254, unique=True)), 33 | ('phone', models.CharField(max_length=10)), 34 | ('srn', models.CharField(max_length=8, unique=True)), 35 | ('branch', models.CharField(max_length=50)), 36 | ('semester', models.CharField(default='1', max_length=2)), 37 | ('github', models.URLField(default='')), 38 | ('linkedin', models.URLField(default='')), 39 | ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')), 40 | ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')), 41 | ], 42 | options={ 43 | 'verbose_name': 'user', 44 | 'verbose_name_plural': 'users', 45 | 'abstract': False, 46 | }, 47 | managers=[ 48 | ('objects', django.contrib.auth.models.UserManager()), 49 | ], 50 | ), 51 | ] 52 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/0002_alter_customuser_srn.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-08-12 05:54 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('members', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='customuser', 15 | name='srn', 16 | field=models.CharField(max_length=8), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/0003_remove_customuser_alt_email.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-08-12 06:09 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('members', '0002_alter_customuser_srn'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='customuser', 15 | name='alt_email', 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/0004_filemodel_alter_customuser_email_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 16:35 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('members', '0003_remove_customuser_alt_email'), 10 | ] 11 | 12 | operations = [ 13 | migrations.CreateModel( 14 | name='FileModel', 15 | fields=[ 16 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 17 | ('name', models.CharField(max_length=200, unique=True)), 18 | ('type', models.CharField(choices=[('PD', 'pdf'), ('IM', 'image'), ('LI', 'link')], max_length=2)), 19 | ('file', models.FileField(blank=True, null=True, upload_to='files/')), 20 | ('image', models.ImageField(blank=True, null=True, upload_to='images/')), 21 | ('url', models.URLField(blank=True, max_length=500, null=True)), 22 | ('uploaded_at', models.DateTimeField(auto_now_add=True, db_index=True)), 23 | ], 24 | ), 25 | migrations.AlterField( 26 | model_name='customuser', 27 | name='email', 28 | field=models.EmailField(max_length=254, unique=True), 29 | ), 30 | migrations.AlterField( 31 | model_name='customuser', 32 | name='github', 33 | field=models.URLField(blank=True, default=''), 34 | ), 35 | migrations.AlterField( 36 | model_name='customuser', 37 | name='linkedin', 38 | field=models.URLField(blank=True, default=''), 39 | ), 40 | ] 41 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/0005_filemodel_related_project_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 16:35 2 | 3 | import django.db.models.deletion 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | ('members', '0004_filemodel_alter_customuser_email_and_more'), 12 | ('projects', '0001_initial'), 13 | ] 14 | 15 | operations = [ 16 | migrations.AddField( 17 | model_name='filemodel', 18 | name='related_project', 19 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='projects.projectmodel'), 20 | ), 21 | migrations.AddField( 22 | model_name='filemodel', 23 | name='related_submission', 24 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='projects.submissionmodel'), 25 | ), 26 | migrations.AddField( 27 | model_name='filemodel', 28 | name='related_user', 29 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='related_files', to=settings.AUTH_USER_MODEL), 30 | ), 31 | migrations.AddField( 32 | model_name='filemodel', 33 | name='uploaded_by', 34 | field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='uploaded_files', to=settings.AUTH_USER_MODEL), 35 | ), 36 | ] 37 | -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__init__.py -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0001_initial.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0001_initial.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0002_alter_customuser_srn.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0002_alter_customuser_srn.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0002_remove_customuser_alt_email_alter_customuser_branch_and_more.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0002_remove_customuser_alt_email_alter_customuser_branch_and_more.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0003_remove_customuser_alt_email.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0003_remove_customuser_alt_email.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0004_filemodel_alter_customuser_email_and_more.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0004_filemodel_alter_customuser_email_and_more.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/0005_filemodel_related_project_and_more.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/0005_filemodel_related_project_and_more.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/migrations/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/migrations/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/members/models.py: -------------------------------------------------------------------------------- 1 | #Django imports 2 | from django.contrib.auth.models import AbstractUser 3 | from django.db import models 4 | from pydantic import ValidationError 5 | 6 | 7 | from django.core.exceptions import ValidationError 8 | 9 | 10 | 11 | 12 | # Todo list 13 | # - Manage passwords, search how to do that 14 | # - Reset password functionality 15 | 16 | 17 | 18 | #User details table with authentication. 19 | class CustomUser(AbstractUser): 20 | email = models.EmailField(unique=True) 21 | phone = models.CharField(max_length=10) 22 | srn = models.CharField(max_length=8) 23 | branch = models.CharField(max_length=50) 24 | semester = models.CharField(max_length=2, default='1') 25 | github = models.URLField(default='', blank=True) 26 | linkedin = models.URLField(default='', blank=True) 27 | 28 | USERNAME_FIELD = 'email' 29 | REQUIRED_FIELDS = ['username', 'first_name', 'last_name', 'phone', 'srn', 'branch', 'semester'] 30 | 31 | def __str__(self): 32 | return self.email 33 | 34 | 35 | class FileModel(models.Model): 36 | PDF = "PD" 37 | IMAGE = "IM" 38 | LINK = "LI" 39 | 40 | FILE_TYPE = [ 41 | (PDF, "pdf"), 42 | (IMAGE, "image"), 43 | (LINK, "link"), 44 | ] 45 | 46 | name = models.CharField(max_length=200, unique=True) 47 | type = models.CharField(max_length=2, choices=FILE_TYPE) 48 | file = models.FileField(upload_to='files/', null=True, blank=True) 49 | image = models.ImageField(upload_to='images/', null=True, blank=True) 50 | url = models.URLField(max_length=500, null=True, blank=True) 51 | uploaded_at = models.DateTimeField(auto_now_add=True, db_index=True) 52 | uploaded_by = models.ForeignKey(CustomUser, related_name="uploaded_files", on_delete=models.CASCADE, null=True, blank=True) 53 | related_project = models.ForeignKey('projects.ProjectModel', on_delete=models.CASCADE, null=True, blank=True) 54 | related_submission = models.ForeignKey('projects.SubmissionModel', on_delete=models.CASCADE, null=True, blank=True) 55 | related_user = models.ForeignKey(CustomUser, related_name="related_files", on_delete=models.CASCADE, null=True, blank=True) 56 | 57 | def clean(self): 58 | # Validate that the correct file type is provided 59 | if self.type == self.PDF and not (self.file and self.file.name.endswith('.pdf')): 60 | raise ValidationError('File must be a PDF.') 61 | elif self.type == self.IMAGE and not (self.image and self.image.name.endswith(('.jpg', '.jpeg', '.png', '.gif'))): 62 | raise ValidationError('Image must be a valid image file.') 63 | elif self.type == self.LINK and not self.url: 64 | raise ValidationError('URL must be provided for a link type.') 65 | super().clean() 66 | 67 | def __str__(self): 68 | return self.name 69 | -------------------------------------------------------------------------------- /backend/myproject/members/schemas.py: -------------------------------------------------------------------------------- 1 | from ninja import ModelSchema 2 | from .models import CustomUser 3 | from pydantic import BaseModel 4 | from ninja import Schema 5 | 6 | 7 | 8 | class SignInSchema(BaseModel): 9 | email: str 10 | password: str 11 | 12 | 13 | class RegisterSchema(ModelSchema): 14 | class Meta: 15 | model= CustomUser 16 | fields = [ 17 | 'email', 18 | 'first_name', 19 | 'last_name', 20 | 'password', 21 | 'srn', 22 | ] -------------------------------------------------------------------------------- /backend/myproject/members/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/members/services.py -------------------------------------------------------------------------------- /backend/myproject/members/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /backend/myproject/members/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /backend/myproject/myproject/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/myproject/__init__.py -------------------------------------------------------------------------------- /backend/myproject/myproject/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/myproject/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/myproject/__pycache__/settings.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/myproject/__pycache__/settings.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/myproject/__pycache__/urls.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/myproject/__pycache__/urls.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/myproject/__pycache__/wsgi.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/myproject/__pycache__/wsgi.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/myproject/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for myproject project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /backend/myproject/myproject/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path, include 3 | from members.api import api 4 | from django.conf import settings 5 | from django.conf.urls.static import static 6 | 7 | 8 | urlpatterns = [ 9 | # path('admin/', admin.site.urls), 10 | path("api/", api.urls), 11 | ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 12 | -------------------------------------------------------------------------------- /backend/myproject/myproject/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for myproject project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /backend/myproject/projects/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__init__.py -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/api.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/api.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/apps.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/apps.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/models.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/models.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/schemas.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/schemas.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/__pycache__/services.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/__pycache__/services.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /backend/myproject/projects/api.py: -------------------------------------------------------------------------------- 1 | from . import schemas 2 | from django.shortcuts import get_object_or_404 3 | from django.http import JsonResponse 4 | from ninja_jwt.authentication import JWTAuth 5 | from ninja_jwt.tokens import RefreshToken 6 | from ninja_extra import NinjaExtraAPI, ControllerBase, api_controller, route 7 | from ninja_jwt.controller import NinjaJWTDefaultController 8 | from ninja import File, Form, UploadedFile 9 | from ninja.errors import HttpError 10 | from datetime import datetime 11 | 12 | from .services import ProjectService, DomainService 13 | from .schemas import ListProjectSchema, CreateDomainSchema, ListDomainSchema 14 | from .models import ProjectModel, DomainModel 15 | 16 | 17 | @api_controller("/projects", tags="Projects") 18 | class ProjectsAPI(ControllerBase): 19 | 20 | def __init__(self) -> None: 21 | self.project_service = ProjectService() 22 | self.domain_service = DomainService() 23 | 24 | 25 | #API call to create domain. 26 | @route.post("/domain/create", url_name="Create domain") 27 | def create_domain(self, payload:schemas.CreateDomainSchema): 28 | response = self.domain_service.create_domain(payload) 29 | if 'error' in response: 30 | raise HttpError(400, response['error']) 31 | return response 32 | 33 | 34 | #API call to list the existing domains. 35 | @route.get("/domains/list", url_name="List domains", response=list[ListDomainSchema]) 36 | def list_domain(self, request): 37 | try: 38 | domains = DomainModel.objects.all() 39 | domain_list = [ListDomainSchema(id=domain.id, name=domain.name) for domain in domains] 40 | return domain_list 41 | except Exception as e: 42 | raise HttpError(400, str(e)) 43 | 44 | 45 | #API call to create a new project 46 | @route.post("/create", url_name="Create project") 47 | def create_project(self, payload:schemas.CreateProjectSchema, file: UploadedFile = File(...)): 48 | response = self.project_service.create_project(payload,file) 49 | if 'error' in response: 50 | raise HttpError(400, response['error']) 51 | return {"message": "Project created successfully", "project_id": response['project_id']} 52 | 53 | 54 | #Api to list all the names of the projects. 55 | @route.get("/list", url_name="List Projects", response=list[ListProjectSchema]) 56 | def list_projects(self,request): 57 | try: 58 | projects = ProjectModel.objects.all() 59 | project_list = [ 60 | ListProjectSchema( 61 | name=project.name, 62 | domain=project.domain.name, 63 | created_at=project.created_at.isoformat() 64 | ) 65 | for project in projects 66 | ] 67 | return project_list 68 | except Exception as e: 69 | raise HttpError(400, str(e)) 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /backend/myproject/projects/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class ProjectConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'projects' 7 | -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 16:35 2 | 3 | import django.db.models.deletion 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | initial = True 11 | 12 | dependencies = [ 13 | ('members', '0004_filemodel_alter_customuser_email_and_more'), 14 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 15 | ] 16 | 17 | operations = [ 18 | migrations.CreateModel( 19 | name='DomainModel', 20 | fields=[ 21 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 22 | ('name', models.CharField(max_length=100, unique=True)), 23 | ('description', models.TextField(max_length=256)), 24 | ], 25 | ), 26 | migrations.CreateModel( 27 | name='ProjectCycleModel', 28 | fields=[ 29 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 30 | ('cycle_name', models.CharField(max_length=256)), 31 | ('start_date', models.DateTimeField()), 32 | ('end_date', models.DateTimeField()), 33 | ('is_active', models.BooleanField()), 34 | ], 35 | ), 36 | migrations.CreateModel( 37 | name='ProjectModel', 38 | fields=[ 39 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 40 | ('name', models.CharField(max_length=64)), 41 | ('description', models.TextField(max_length=256)), 42 | ('github_link', models.URLField(blank=True, null=True)), 43 | ('youtube_link', models.URLField(blank=True, null=True)), 44 | ('status', models.CharField(choices=[('ON', 'ongoing'), ('PA', 'past')], max_length=100)), 45 | ('created_at', models.DateTimeField(auto_now_add=True)), 46 | ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.domainmodel')), 47 | ('pdf_report', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='members.filemodel')), 48 | ], 49 | ), 50 | migrations.CreateModel( 51 | name='ScrumModel', 52 | fields=[ 53 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 54 | ('meeting_link', models.URLField(max_length=500)), 55 | ('scheduled_time', models.DateField()), 56 | ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.domainmodel')), 57 | ], 58 | ), 59 | migrations.CreateModel( 60 | name='TeamModel', 61 | fields=[ 62 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 63 | ('name', models.CharField(max_length=50)), 64 | ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), 65 | ('team_lead', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='team_lead', to=settings.AUTH_USER_MODEL)), 66 | ], 67 | ), 68 | migrations.CreateModel( 69 | name='TeamMembership', 70 | fields=[ 71 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 72 | ('joined_at', models.DateTimeField(auto_now_add=True)), 73 | ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.projectmodel')), 74 | ('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.teammodel')), 75 | ], 76 | ), 77 | migrations.CreateModel( 78 | name='SubmissionModel', 79 | fields=[ 80 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 81 | ('github_link', models.URLField()), 82 | ('submitted_at', models.DateTimeField(auto_now_add=True)), 83 | ('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='projects.projectmodel')), 84 | ('report_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='members.filemodel')), 85 | ('submitted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 86 | ('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.teammodel')), 87 | ], 88 | ), 89 | ] 90 | -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/0002_alter_projectmodel_description_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 18:34 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('projects', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='projectmodel', 15 | name='description', 16 | field=models.TextField(blank=True, max_length=256), 17 | ), 18 | migrations.AlterField( 19 | model_name='projectmodel', 20 | name='status', 21 | field=models.CharField(choices=[('ON', 'ongoing'), ('PA', 'past')], default='PA', max_length=100), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/0003_alter_projectmodel_description_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-04 03:01 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('projects', '0002_alter_projectmodel_description_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='projectmodel', 15 | name='description', 16 | field=models.TextField(max_length=256), 17 | ), 18 | migrations.AlterField( 19 | model_name='projectmodel', 20 | name='status', 21 | field=models.CharField(choices=[('ON', 'ongoing'), ('PA', 'past')], max_length=100), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/migrations/__init__.py -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/__pycache__/0001_initial.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/migrations/__pycache__/0001_initial.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/__pycache__/0002_alter_projectmodel_description_and_more.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/migrations/__pycache__/0002_alter_projectmodel_description_and_more.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/__pycache__/0003_alter_projectmodel_description_and_more.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/migrations/__pycache__/0003_alter_projectmodel_description_and_more.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/migrations/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/projects/migrations/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/projects/models.py: -------------------------------------------------------------------------------- 1 | # Django imports 2 | from django.db import models 3 | 4 | # Model imports 5 | from members.models import CustomUser, FileModel 6 | 7 | 8 | class DomainModel(models.Model): 9 | name = models.CharField(max_length=100, unique=True) 10 | description = models.TextField(max_length=256) 11 | 12 | 13 | class ProjectModel(models.Model): 14 | ONGOING = 'ON' 15 | PAST = 'PA' 16 | 17 | STATUS_ROLES = [ 18 | (ONGOING, 'ongoing'), 19 | (PAST, 'past'), 20 | ] 21 | 22 | name = models.CharField(max_length=64) 23 | description = models.TextField(max_length=256) 24 | github_link = models.URLField(null=True, blank=True) 25 | youtube_link = models.URLField(null=True, blank=True) 26 | status = models.CharField(choices=STATUS_ROLES, max_length=100) 27 | created_at = models.DateTimeField(auto_now_add=True) 28 | pdf_report = models.ForeignKey(FileModel, on_delete=models.CASCADE, null=True) 29 | domain = models.ForeignKey(DomainModel, on_delete=models.CASCADE) 30 | 31 | 32 | class TeamModel(models.Model): 33 | name = models.CharField(max_length=50) 34 | members = models.ManyToManyField(CustomUser) 35 | team_lead = models.ForeignKey(CustomUser, related_name='team_lead', on_delete=models.SET_NULL, null=True) 36 | 37 | 38 | class TeamMembership(models.Model): 39 | project = models.ForeignKey(ProjectModel, on_delete=models.CASCADE) 40 | team = models.ForeignKey(TeamModel, on_delete=models.CASCADE) 41 | joined_at = models.DateTimeField(auto_now_add=True) 42 | 43 | 44 | class SubmissionModel(models.Model): 45 | project = models.ForeignKey(ProjectModel, on_delete=models.CASCADE, null=True, blank=True) 46 | team = models.ForeignKey(TeamModel, on_delete=models.CASCADE) 47 | submitted_by = models.ForeignKey(CustomUser, on_delete=models.CASCADE) 48 | github_link = models.URLField() 49 | report_file = models.ForeignKey(FileModel, on_delete=models.CASCADE) 50 | submitted_at = models.DateTimeField(auto_now_add=True) 51 | 52 | 53 | class ScrumModel(models.Model): 54 | meeting_link = models.URLField(max_length=500) 55 | domain = models.ForeignKey(DomainModel, on_delete=models.CASCADE) 56 | scheduled_time = models.DateField() 57 | 58 | 59 | class ProjectCycleModel(models.Model): 60 | cycle_name = models.CharField(max_length=256) 61 | start_date = models.DateTimeField() 62 | end_date = models.DateTimeField() 63 | is_active = models.BooleanField() 64 | 65 | 66 | -------------------------------------------------------------------------------- /backend/myproject/projects/schemas.py: -------------------------------------------------------------------------------- 1 | from ninja import ModelSchema 2 | from pydantic import BaseModel 3 | from ninja import Schema 4 | from projects.models import ProjectModel, DomainModel 5 | 6 | 7 | class CreateDomainSchema(Schema): 8 | name : str 9 | description : str 10 | 11 | 12 | class ListDomainSchema(Schema): 13 | id : int 14 | name : str 15 | 16 | 17 | class ListProjectSchema(Schema): 18 | name : str 19 | domain : str 20 | created_at : str 21 | 22 | 23 | class CreateProjectSchema(Schema): 24 | name : str 25 | domain_id : int 26 | github_link : str 27 | youtube_link : str 28 | 29 | 30 | -------------------------------------------------------------------------------- /backend/myproject/projects/services.py: -------------------------------------------------------------------------------- 1 | from django.core.files.storage import default_storage 2 | 3 | from .models import ProjectModel 4 | from .schemas import CreateProjectSchema, ListProjectSchema, CreateDomainSchema, ListDomainSchema 5 | from members.models import FileModel 6 | from projects.models import DomainModel 7 | 8 | 9 | class ProjectService: 10 | 11 | def create_project(self, details : CreateProjectSchema, pdf_file): 12 | try: 13 | try: 14 | domain = DomainModel.objects.get(id=details.domain_id) 15 | except DomainModel.DoesNotExist: 16 | return {"error": "Domain not found"} 17 | 18 | new_project = ProjectModel( 19 | name = details.name, 20 | github_link = details.github_link, 21 | youtube_link = details.youtube_link, 22 | domain = domain, 23 | ) 24 | new_project.save() 25 | 26 | if pdf_file: 27 | file_path = default_storage.save(f'projects/{pdf_file.name}', pdf_file) 28 | file_instance = FileModel.objects.create( 29 | name = pdf_file.name, 30 | type = FileModel.PDF, 31 | file = file_path, 32 | related_project = new_project 33 | ) 34 | new_project.pdf_report = file_instance 35 | new_project.save() 36 | 37 | return {"message": "Project created successfully", "data": {"project_id": new_project.id}} 38 | 39 | except Exception as e: 40 | return {"error": str(e)} 41 | 42 | 43 | class DomainService: 44 | 45 | #Service to create a new domain 46 | def create_domain(self,payload : CreateDomainSchema): 47 | try: 48 | response = DomainModel.objects.create( 49 | name = payload.name, 50 | description = payload.description 51 | ) 52 | return {"Success":"domain has been created"} 53 | except Exception as e: 54 | return {"error": str(e)} 55 | 56 | -------------------------------------------------------------------------------- /backend/myproject/projects/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /backend/myproject/projects/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /backend/myproject/registrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/__init__.py -------------------------------------------------------------------------------- /backend/myproject/registrations/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/registrations/__pycache__/apps.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/__pycache__/apps.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/registrations/__pycache__/models.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/__pycache__/models.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/registrations/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /backend/myproject/registrations/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/api.py -------------------------------------------------------------------------------- /backend/myproject/registrations/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class RegistrationsConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'registrations' 7 | -------------------------------------------------------------------------------- /backend/myproject/registrations/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.0.7 on 2024-09-03 16:35 2 | 3 | import django.db.models.deletion 4 | from django.conf import settings 5 | from django.db import migrations, models 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | initial = True 11 | 12 | dependencies = [ 13 | ('projects', '0001_initial'), 14 | migrations.swappable_dependency(settings.AUTH_USER_MODEL), 15 | ] 16 | 17 | operations = [ 18 | migrations.CreateModel( 19 | name='ProjectApplicationModel', 20 | fields=[ 21 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 22 | ('application_date', models.DateTimeField(auto_now_add=True)), 23 | ('is_selected', models.BooleanField()), 24 | ('cycle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.projectcyclemodel')), 25 | ('first_preference', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='first_pref', to='projects.domainmodel')), 26 | ('second_preference', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='second_pref', to='projects.domainmodel')), 27 | ('selected_team', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='projects.teammodel')), 28 | ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 29 | ], 30 | ), 31 | ] 32 | -------------------------------------------------------------------------------- /backend/myproject/registrations/migrations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/migrations/__init__.py -------------------------------------------------------------------------------- /backend/myproject/registrations/migrations/__pycache__/0001_initial.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/migrations/__pycache__/0001_initial.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/registrations/migrations/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/migrations/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /backend/myproject/registrations/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from members.models import CustomUser 3 | from projects.models import DomainModel, ProjectCycleModel, TeamModel 4 | # Create your models here. 5 | 6 | 7 | class ProjectApplicationModel(models.Model): 8 | 9 | user = models.ForeignKey(CustomUser, on_delete=models.CASCADE) 10 | cycle = models.ForeignKey(ProjectCycleModel, on_delete=models.CASCADE) 11 | first_preference = models.ForeignKey(DomainModel, related_name="first_pref", on_delete=models.CASCADE) 12 | second_preference = models.ForeignKey(DomainModel, related_name="second_pref", on_delete=models.CASCADE) 13 | application_date = models.DateTimeField(auto_now_add=True) 14 | is_selected = models.BooleanField() 15 | selected_team = models.ForeignKey(TeamModel, on_delete=models.SET_NULL, null=True, blank=True) 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /backend/myproject/registrations/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/backend/myproject/registrations/services.py -------------------------------------------------------------------------------- /backend/myproject/registrations/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /backend/myproject/registrations/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /backend/myproject/requirements.txt: -------------------------------------------------------------------------------- 1 | annotated-types==0.7.0 2 | asgiref==3.8.1 3 | asttokens==2.4.1 4 | cffi==1.16.0 5 | colorama==0.4.6 6 | comm==0.2.2 7 | contextlib2==21.6.0 8 | cryptography==43.0.0 9 | debugpy==1.8.1 10 | decorator==5.1.1 11 | dj-database-url==2.2.0 12 | Django==5.0.7 13 | django-cors-headers==4.4.0 14 | django-enumfields==2.1.1 15 | django-heroku==0.3.1 16 | django-ninja==1.2.2 17 | django-ninja-extra==0.21.2 18 | django-ninja-jwt==5.3.2 19 | django-phonenumber-field==8.0.0 20 | djangorestframework==3.15.2 21 | djangorestframework-simplejwt==5.3.1 22 | executing==2.0.1 23 | gunicorn==22.0.0 24 | injector==0.22.0 25 | ipykernel==6.29.4 26 | ipython==8.24.0 27 | jedi==0.19.1 28 | jupyter_client==8.6.1 29 | jupyter_core==5.7.2 30 | matplotlib-inline==0.1.7 31 | nest-asyncio==1.6.0 32 | packaging==24.0 33 | parso==0.8.4 34 | phonenumberslite==8.13.42 35 | platformdirs==4.2.2 36 | prompt-toolkit==3.0.43 37 | psutil==5.9.8 38 | psycopg2==2.9.9 39 | pure-eval==0.2.2 40 | pycparser==2.22 41 | pydantic==2.8.2 42 | pydantic_core==2.20.1 43 | Pygments==2.18.0 44 | PyJWT==2.9.0 45 | python-dateutil==2.9.0.post0 46 | pywin32==306 47 | pyzmq==26.0.3 48 | setuptools==69.5.1 49 | six==1.16.0 50 | sqlparse==0.5.1 51 | stack-data==0.6.3 52 | tornado==6.4 53 | traitlets==5.14.3 54 | typing_extensions==4.12.2 55 | tzdata==2024.1 56 | wcwidth==0.2.13 57 | wheel==0.43.0 58 | whitenoise==6.7.0 59 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Symbolication related 35 | app.*.symbols 36 | 37 | # Obfuscation related 38 | app.*.map.json 39 | 40 | # Android Studio will place build artifacts here 41 | /android/app/debug 42 | /android/app/profile 43 | /android/app/release 44 | -------------------------------------------------------------------------------- /frontend/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "300451adae589accbece3490f4396f10bdf15e6e" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 17 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 18 | - platform: android 19 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 20 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 21 | - platform: ios 22 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 23 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 24 | - platform: linux 25 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 26 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 27 | - platform: macos 28 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 29 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 30 | - platform: web 31 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 32 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 33 | - platform: windows 34 | create_revision: 300451adae589accbece3490f4396f10bdf15e6e 35 | base_revision: 300451adae589accbece3490f4396f10bdf15e6e 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /frontend/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /frontend/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /frontend/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.dev_track_app" 27 | compileSdk flutter.compileSdkVersion 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "com.example.dev_track_app" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion flutter.minSdkVersion 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /frontend/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 17 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 35 | 36 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/kotlin/com/example/dev_track_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.dev_track_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() 6 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /frontend/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /frontend/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /frontend/android/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | rootProject.buildDir = '../build' 9 | subprojects { 10 | project.buildDir = "${rootProject.buildDir}/${project.name}" 11 | } 12 | subprojects { 13 | project.evaluationDependsOn(':app') 14 | } 15 | 16 | tasks.register("clean", Delete) { 17 | delete rootProject.buildDir 18 | } 19 | -------------------------------------------------------------------------------- /frontend/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx4G 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /frontend/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip 6 | -------------------------------------------------------------------------------- /frontend/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | repositories { 14 | google() 15 | mavenCentral() 16 | gradlePluginPortal() 17 | } 18 | } 19 | 20 | plugins { 21 | id "dev.flutter.flutter-plugin-loader" version "1.0.0" 22 | id "com.android.application" version "7.3.0" apply false 23 | id "org.jetbrains.kotlin.android" version "1.7.10" apply false 24 | } 25 | 26 | include ":app" 27 | -------------------------------------------------------------------------------- /frontend/assets/images/dtlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/assets/images/dtlogo.png -------------------------------------------------------------------------------- /frontend/assets/images/elmoo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/assets/images/elmoo.jpg -------------------------------------------------------------------------------- /frontend/assets/images/game.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/assets/images/game.png -------------------------------------------------------------------------------- /frontend/assets/images/hitler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/assets/images/hitler.png -------------------------------------------------------------------------------- /frontend/assets/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/assets/images/user.png -------------------------------------------------------------------------------- /frontend/flutter_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/flutter_01.png -------------------------------------------------------------------------------- /frontend/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /frontend/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /frontend/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /frontend/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /frontend/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /frontend/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Dev Track App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | dev_track_app 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | NSPhotoLibraryUsageDescription 49 | Photo Library Usage 50 | NSCameraUsageDescription 51 | Camera Usage 52 | NSMicrophoneUsageDescription 53 | Microphone Usage 54 | 55 | 56 | -------------------------------------------------------------------------------- /frontend/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /frontend/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /frontend/lib/components/bottomNav.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:dev_track_app/pages/domain.dart'; 4 | import 'package:dev_track_app/pages/home.dart'; 5 | 6 | class BottomNav extends StatefulWidget { 7 | const BottomNav({super.key}); 8 | 9 | @override 10 | State createState() => _BottomNavState(); 11 | } 12 | 13 | class _BottomNavState extends State { 14 | int _currentIndex = 0; 15 | final List pages = [ 16 | const HomePag(), 17 | // const ScrumPage(), 18 | const DomainPage(), 19 | // const ProgressPage(), 20 | // const ProfilePage(), 21 | ]; 22 | @override 23 | Widget build(BuildContext context) { 24 | return MaterialApp( 25 | home: Scaffold( 26 | body: pages[_currentIndex], 27 | bottomNavigationBar: BottomNavigationBar( 28 | currentIndex: _currentIndex, 29 | type: BottomNavigationBarType.fixed, 30 | backgroundColor: Colors.black, 31 | selectedItemColor: 32 | Colors.green, // Set the selected icon color to green 33 | unselectedItemColor: Color.fromARGB(255, 2, 155, 73), 34 | iconSize: 35, // Set the unselected icon color to green 35 | items: const [ 36 | BottomNavigationBarItem( 37 | icon: Icon(Icons.home), 38 | label: 'Feed', 39 | ), 40 | BottomNavigationBarItem( 41 | icon: Icon(Icons.supervisor_account), 42 | label: 'Scrum', 43 | ), 44 | BottomNavigationBarItem( 45 | icon: Icon(Icons.apps), 46 | label: 'Domain', 47 | ), 48 | BottomNavigationBarItem( 49 | icon: Icon(Icons.access_time), 50 | label: 'Progress', 51 | ), 52 | BottomNavigationBarItem( 53 | icon: Icon(Icons.person_rounded), 54 | label: 'Profile', 55 | ), 56 | ], 57 | onTap: (index) { 58 | setState(() { 59 | _currentIndex = index; 60 | }); 61 | }, 62 | ), 63 | ), 64 | ); 65 | } 66 | } 67 | 68 | void main() { 69 | runApp(const BottomNav()); 70 | } 71 | -------------------------------------------------------------------------------- /frontend/lib/components/topNav.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class TopNav extends StatelessWidget { 5 | const TopNav({ 6 | super.key, 7 | }); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Container( 12 | decoration: BoxDecoration(color: Color(0xFF040D12)), 13 | padding: EdgeInsets.all(23), 14 | child: Row( 15 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 16 | children: [ 17 | Container( 18 | child: Row( 19 | children: [ 20 | Container( 21 | margin: EdgeInsets.only(right: 3), 22 | child: Image.asset('assets/images/hitler.png'), 23 | ), 24 | Column( 25 | mainAxisAlignment: MainAxisAlignment.center, 26 | mainAxisSize: MainAxisSize.min, 27 | crossAxisAlignment: CrossAxisAlignment.start, 28 | children: [ 29 | Text( 30 | "Welcome back,", 31 | style: GoogleFonts.inter( 32 | textStyle: TextStyle( 33 | color: Colors.white, fontSize: 18, height: 1.1), 34 | ), 35 | ), 36 | Text( 37 | "Atul Reny", 38 | style: GoogleFonts.inter( 39 | textStyle: TextStyle( 40 | color: Color(0xFF93B1A6), 41 | fontSize: 24, 42 | height: 1.1), 43 | ), 44 | ) 45 | ], 46 | ) 47 | ], 48 | ), 49 | ), 50 | Container( 51 | child: Icon( 52 | Icons.notifications_none, 53 | size: 30, 54 | color: Colors.white, 55 | 56 | ), 57 | ) 58 | ], 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /frontend/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:dev_track_app/pages/home.dart'; 4 | 5 | void main() { 6 | runApp(const MyApp()); 7 | } 8 | 9 | class MyApp extends StatelessWidget { 10 | const MyApp({super.key}); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return MaterialApp( 15 | title: 'Dev Track App', 16 | theme: ThemeData( 17 | primarySwatch: Colors.green, 18 | ), 19 | debugShowCheckedModeBanner: false, 20 | home: const HomePag(), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /frontend/lib/pages/confirm_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ConfirmPage extends StatelessWidget { 4 | const ConfirmPage({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Confirmation'), 11 | backgroundColor: const Color.fromARGB(255, 53, 156, 19), 12 | ), 13 | backgroundColor: Colors.black, 14 | body: Center( 15 | child: Container( 16 | padding: const EdgeInsets.all(20.0), 17 | decoration: BoxDecoration( 18 | color: Colors.grey[850], 19 | borderRadius: BorderRadius.circular(10.0), 20 | boxShadow: [ 21 | BoxShadow( 22 | color: Colors.black.withOpacity(0.5), 23 | spreadRadius: 2, 24 | blurRadius: 5, 25 | offset: const Offset(0, 3), 26 | ), 27 | ], 28 | ), 29 | child: const Text( 30 | 'That should do it.\n\nPlease wait patiently for a response.\nWe\'ll get back to you soon.', 31 | style: TextStyle( 32 | color: Colors.white, 33 | fontSize: 18, 34 | fontWeight: FontWeight.bold, 35 | ), 36 | textAlign: TextAlign.center, 37 | ), 38 | ), 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /frontend/lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'login_page.dart'; 3 | import 'register_page.dart'; 4 | 5 | class HomePage extends StatelessWidget { 6 | const HomePage({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Scaffold( 11 | backgroundColor: Colors.black, 12 | body: Padding( 13 | padding: const EdgeInsets.symmetric(horizontal: 32.0), 14 | child: Column( 15 | mainAxisAlignment: MainAxisAlignment.center, 16 | crossAxisAlignment: CrossAxisAlignment.center, 17 | children: [ 18 | Container( 19 | padding: const EdgeInsets.all(20.0), 20 | decoration: BoxDecoration( 21 | color: Colors.grey[850], 22 | borderRadius: BorderRadius.circular(10.0), 23 | boxShadow: [ 24 | BoxShadow( 25 | color: Colors.black.withOpacity(0.5), 26 | spreadRadius: 2, 27 | blurRadius: 5, 28 | offset: const Offset(0, 3), 29 | ), 30 | ], 31 | ), 32 | child: Column( 33 | mainAxisAlignment: MainAxisAlignment.center, 34 | crossAxisAlignment: CrossAxisAlignment.center, 35 | children: [ 36 | const Text( 37 | 'Are you an existing user?', 38 | style: TextStyle( 39 | color: Colors.white, 40 | fontSize: 24, 41 | ), 42 | ), 43 | const SizedBox(height: 20), 44 | Row( 45 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 46 | children: [ 47 | ElevatedButton( 48 | onPressed: () { 49 | Navigator.push( 50 | context, 51 | MaterialPageRoute( 52 | builder: (context) => const LoginPage()), 53 | ); 54 | }, 55 | style: ElevatedButton.styleFrom( 56 | backgroundColor: 57 | const Color.fromARGB(255, 53, 156, 19), 58 | fixedSize: const Size(120, 50), 59 | ), 60 | child: const Text( 61 | 'Login', 62 | style: TextStyle( 63 | color: Colors.white, 64 | fontWeight: FontWeight.bold, 65 | ), 66 | ), 67 | ), 68 | ElevatedButton( 69 | onPressed: () { 70 | Navigator.push( 71 | context, 72 | MaterialPageRoute( 73 | builder: (context) => const RegisterPage()), 74 | ); 75 | }, 76 | style: ElevatedButton.styleFrom( 77 | backgroundColor: 78 | const Color.fromARGB(255, 53, 156, 19), 79 | fixedSize: const Size(120, 50), 80 | ), 81 | child: const Text( 82 | 'Register', 83 | style: TextStyle( 84 | color: Colors.white, 85 | fontWeight: FontWeight.bold, 86 | ), 87 | ), 88 | ), 89 | ], 90 | ), 91 | ], 92 | ), 93 | ), 94 | ], 95 | ), 96 | ), 97 | bottomNavigationBar: BottomNavigationBar( 98 | backgroundColor: Colors.grey[850], 99 | selectedItemColor: Colors.white, 100 | unselectedItemColor: Colors.grey, 101 | items: const [ 102 | BottomNavigationBarItem( 103 | icon: Icon(Icons.home), 104 | label: 'Home', 105 | ), 106 | BottomNavigationBarItem( 107 | icon: Icon(Icons.person), 108 | label: 'Profile', 109 | ), 110 | BottomNavigationBarItem( 111 | icon: Icon(Icons.settings), 112 | label: 'Settings', 113 | ), 114 | ], 115 | ), 116 | ); 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /frontend/lib/pages/imageuploadpage.dart: -------------------------------------------------------------------------------- 1 | import 'package:image_picker/image_picker.dart'; 2 | 3 | pickImage(ImageSource source) async { 4 | final ImagePicker _imagePicker = ImagePicker(); 5 | XFile? _file = await _imagePicker.pickImage(source: source); 6 | if (_file != null) { 7 | return await _file.readAsBytes(); 8 | } 9 | print('no image selected'); 10 | } 11 | -------------------------------------------------------------------------------- /frontend/lib/pages/login_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoginPage extends StatelessWidget { 4 | const LoginPage({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | backgroundColor: Colors.black, 10 | body: Padding( 11 | padding: const EdgeInsets.symmetric(horizontal: 32.0), 12 | child: Center( 13 | child: Container( 14 | padding: const EdgeInsets.all(20.0), 15 | decoration: BoxDecoration( 16 | color: Colors.grey[850], 17 | borderRadius: BorderRadius.circular(10.0), 18 | boxShadow: [ 19 | BoxShadow( 20 | color: Colors.black.withOpacity(0.5), 21 | spreadRadius: 2, 22 | blurRadius: 5, 23 | offset: const Offset(0, 3), 24 | ), 25 | ], 26 | ), 27 | child: Column( 28 | mainAxisSize: MainAxisSize.min, 29 | children: [ 30 | const Text( 31 | 'Login with your details', 32 | style: TextStyle( 33 | color: Colors.white, 34 | fontSize: 24, 35 | fontWeight: FontWeight.bold, 36 | ), 37 | ), 38 | const SizedBox(height: 20), 39 | TextField( 40 | decoration: InputDecoration( 41 | filled: true, 42 | fillColor: Colors.grey[700], 43 | hintText: 'Username', 44 | hintStyle: const TextStyle(color: Colors.white54), 45 | border: OutlineInputBorder( 46 | borderRadius: BorderRadius.circular(10.0), 47 | borderSide: BorderSide.none, 48 | ), 49 | ), 50 | ), 51 | const SizedBox(height: 10), 52 | TextField( 53 | decoration: InputDecoration( 54 | filled: true, 55 | fillColor: Colors.grey[700], 56 | hintText: 'Registered Email', 57 | hintStyle: const TextStyle(color: Colors.white54), 58 | border: OutlineInputBorder( 59 | borderRadius: BorderRadius.circular(10.0), 60 | borderSide: BorderSide.none, 61 | ), 62 | ), 63 | ), 64 | const SizedBox(height: 20), 65 | ElevatedButton( 66 | onPressed: () { 67 | // Handle login action 68 | }, 69 | style: ElevatedButton.styleFrom( 70 | backgroundColor: const Color.fromARGB(255, 53, 156, 19), 71 | fixedSize: const Size(double.infinity, 50), 72 | ), 73 | child: const Text( 74 | 'Login', 75 | style: TextStyle( 76 | color: Colors.white, 77 | fontWeight: FontWeight.bold, 78 | ), 79 | ), 80 | ), 81 | ], 82 | ), 83 | ), 84 | ), 85 | ), 86 | bottomNavigationBar: BottomNavigationBar( 87 | backgroundColor: Colors.grey[850], 88 | selectedItemColor: Colors.white, 89 | unselectedItemColor: Colors.grey, 90 | items: const [ 91 | BottomNavigationBarItem( 92 | icon: Icon(Icons.home), 93 | label: 'Home', 94 | ), 95 | BottomNavigationBarItem( 96 | icon: Icon(Icons.person), 97 | label: 'Profile', 98 | ), 99 | BottomNavigationBarItem( 100 | icon: Icon(Icons.settings), 101 | label: 'Settings', 102 | ), 103 | ], 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /frontend/lib/pages/splashscreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:dev_track_app/pages/home.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class Splash extends StatefulWidget { 5 | const Splash({super.key}); 6 | 7 | @override 8 | State createState() => _SplashState(); 9 | } 10 | 11 | class _SplashState extends State with SingleTickerProviderStateMixin { 12 | late AnimationController _controller; 13 | late Animation _alignment; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | _controller = AnimationController( 19 | duration: const Duration(seconds: 2), 20 | vsync: this, 21 | )..repeat(reverse: true); 22 | 23 | _alignment = Tween( 24 | begin: Alignment.topLeft, 25 | end: Alignment.bottomRight, 26 | ).animate(_controller); 27 | 28 | _navigateToHome(); 29 | } 30 | 31 | Future _navigateToHome() async { 32 | await Future.delayed(Duration(milliseconds: 2000)); 33 | Navigator.pushReplacement( 34 | context, 35 | MaterialPageRoute(builder: (context) => HomePag()), 36 | ); 37 | } 38 | 39 | @override 40 | void dispose() { 41 | _controller.dispose(); 42 | super.dispose(); 43 | } 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | return Scaffold( 48 | body: AnimatedBuilder( 49 | animation: _controller, 50 | builder: (context, child) { 51 | return Container( 52 | decoration: BoxDecoration( 53 | gradient: LinearGradient( 54 | colors: [ 55 | Color.fromARGB(255, 73, 169, 77), 56 | Color.fromARGB(255, 5, 72, 8), 57 | Colors.black, 58 | ], 59 | begin: _alignment.value, 60 | end: Alignment.bottomRight, 61 | ), 62 | ), 63 | child: Center( 64 | child: SizedBox( 65 | width: 320, // Set the desired width 66 | height: 320, // Set the desired height 67 | child: Image.asset('assets/images/dtlogo.png'), 68 | ), 69 | ), 70 | ); 71 | }, 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /frontend/lib/pages/std_class.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class STD{ 4 | final String _id; 5 | 6 | final String _name; 7 | 8 | final String _profilepic; 9 | 10 | final String _linkedin; 11 | 12 | final String _position; 13 | 14 | 15 | 16 | 17 | STD(this._id, this._name, this._profilepic, this._linkedin, this._position); 18 | 19 | String get id => _id; 20 | 21 | String get name => _name; 22 | 23 | String get position => _position; 24 | 25 | String get linkedin => _linkedin; 26 | 27 | String get profilepic => _profilepic; 28 | 29 | 30 | } -------------------------------------------------------------------------------- /frontend/lib/pages/std_details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'std_class.dart'; 3 | 4 | class STD_details{ 5 | static List stdlist=[ 6 | STD("070","Vaishali","assets/images/elmoo.jpg","https://www.youtube.com/watch?v=dQw4w9WgXcQ","Lead"), 7 | STD("071","Areny","assets/images/elmoo.jpg","https://www.youtube.com/watch?v=dQw4w9WgXcQ","Front-End"), 8 | STD("072","Atul","assets/images/elmoo.jpg","https://www.youtube.com/watch?v=dQw4w9WgXcQ","Back-End"), 9 | STD("073","Vai","assets/images/elmoo.jpg","https://www.youtube.com/watch?v=dQw4w9WgXcQ","UI/UX"), 10 | 11 | ]; 12 | } -------------------------------------------------------------------------------- /frontend/lib/pages/teamcard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:url_launcher/url_launcher.dart'; 3 | import 'std_class.dart'; 4 | 5 | class TeamCard extends StatefulWidget { 6 | final STD std; 7 | const TeamCard({super.key, required this.std}); 8 | 9 | @override 10 | State createState() => _TeamCardState(); 11 | } 12 | 13 | class _TeamCardState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return SingleChildScrollView( 17 | scrollDirection: Axis.horizontal, 18 | child: Container( 19 | child: SizedBox( 20 | width:150, 21 | child: Card( 22 | clipBehavior: Clip.antiAlias, 23 | elevation: 0, 24 | 25 | // shape: RoundedRectangleBorder( 26 | // borderRadius: BorderRadius.circular(10) 27 | // ), 28 | child: Column( 29 | crossAxisAlignment: CrossAxisAlignment.start, 30 | children: [ 31 | Container( 32 | height: 150, 33 | decoration: BoxDecoration( 34 | border: Border.all(color: Colors.black26), 35 | borderRadius: BorderRadius.circular(10), // Adjust the radius as needed 36 | ), 37 | child: ClipRRect( 38 | borderRadius: BorderRadius.circular(10), // Ensure the image fits within the rounded corners 39 | child: Image.asset( 40 | widget.std.profilepic, 41 | width: double.infinity, 42 | fit: BoxFit.fill, // Use cover for better aspect ratio handling 43 | ), 44 | ), 45 | ), 46 | SizedBox( 47 | height: 5, 48 | ), 49 | Row( 50 | children: [ 51 | InkWell( 52 | onTap: () async { 53 | final url = widget.std.linkedin; 54 | if (await canLaunch(url)) { 55 | await launch(url); 56 | } else { 57 | throw 'Could not launch $url'; 58 | } 59 | }, 60 | child: Icon(Icons.person), 61 | ), 62 | Text(widget.std.name), 63 | ], 64 | ), 65 | ], 66 | ), 67 | ), 68 | ), 69 | ), 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /frontend/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /frontend/linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /frontend/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | 12 | void fl_register_plugins(FlPluginRegistry* registry) { 13 | g_autoptr(FlPluginRegistrar) file_selector_linux_registrar = 14 | fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); 15 | file_selector_plugin_register_with_registrar(file_selector_linux_registrar); 16 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 17 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 18 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 19 | } 20 | -------------------------------------------------------------------------------- /frontend/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /frontend/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | file_selector_linux 7 | url_launcher_linux 8 | ) 9 | 10 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 11 | ) 12 | 13 | set(PLUGIN_BUNDLED_LIBRARIES) 14 | 15 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 16 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 17 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 20 | endforeach(plugin) 21 | 22 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 23 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 24 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 25 | endforeach(ffi_plugin) 26 | -------------------------------------------------------------------------------- /frontend/linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /frontend/linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen* screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "dev_track_app"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "dev_track_app"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GApplication::startup. 85 | static void my_application_startup(GApplication* application) { 86 | //MyApplication* self = MY_APPLICATION(object); 87 | 88 | // Perform any actions required at application startup. 89 | 90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application); 91 | } 92 | 93 | // Implements GApplication::shutdown. 94 | static void my_application_shutdown(GApplication* application) { 95 | //MyApplication* self = MY_APPLICATION(object); 96 | 97 | // Perform any actions required at application shutdown. 98 | 99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); 100 | } 101 | 102 | // Implements GObject::dispose. 103 | static void my_application_dispose(GObject* object) { 104 | MyApplication* self = MY_APPLICATION(object); 105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 107 | } 108 | 109 | static void my_application_class_init(MyApplicationClass* klass) { 110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup; 113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; 114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 115 | } 116 | 117 | static void my_application_init(MyApplication* self) {} 118 | 119 | MyApplication* my_application_new() { 120 | return MY_APPLICATION(g_object_new(my_application_get_type(), 121 | "application-id", APPLICATION_ID, 122 | "flags", G_APPLICATION_NON_UNIQUE, 123 | nullptr)); 124 | } 125 | -------------------------------------------------------------------------------- /frontend/linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /frontend/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /frontend/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /frontend/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /frontend/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import file_selector_macos 9 | import path_provider_foundation 10 | import shared_preferences_foundation 11 | import url_launcher_macos 12 | 13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 14 | FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) 15 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 16 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 17 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 18 | } 19 | -------------------------------------------------------------------------------- /frontend/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /frontend/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /frontend/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /frontend/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = dev_track_app 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.devTrackApp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /frontend/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /frontend/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /frontend/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import FlutterMacOS 2 | import Cocoa 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /frontend/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: dev_track_app 2 | description: "A new Flutter project." 3 | # The following line prevents the package from being accidentally published to 4 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 6 | 7 | # The following defines the version and build number for your application. 8 | # A version number is three numbers separated by dots, like 1.2.43 9 | # followed by an optional build number separated by a +. 10 | # Both the version and the builder number may be overridden in flutter 11 | # build by specifying --build-name and --build-number, respectively. 12 | # In Android, build-name is used as versionName while build-number used as versionCode. 13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. 15 | # Read more about iOS versioning at 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 17 | # In Windows, build-name is used as the major, minor, and patch parts 18 | # of the product and file versions while build-number is used as the build suffix. 19 | version: 1.0.0+1 20 | 21 | environment: 22 | sdk: '>=3.3.3 <4.0.0' 23 | 24 | # Dependencies specify other packages that your package needs in order to work. 25 | # To automatically upgrade your package dependencies to the latest versions 26 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 27 | # dependencies can be manually updated by changing the version numbers below to 28 | # the latest version available on pub.dev. To see which dependencies have newer 29 | # versions available, run `flutter pub outdated`. 30 | dependencies: 31 | flutter: 32 | sdk: flutter 33 | 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^1.0.6 38 | google_fonts: ^6.2.1 39 | readmore: ^3.0.0 40 | url_launcher: ^6.3.0 41 | image_picker: ^1.1.2 42 | shared_preferences: ^2.0.13 43 | permission_handler: ^11.3.1 file_picker: ^8.1.2 44 | 45 | dev_dependencies: 46 | flutter_test: 47 | sdk: flutter 48 | 49 | # The "flutter_lints" package below contains a set of recommended lints to 50 | # encourage good coding practices. The lint set provided by the package is 51 | # activated in the `analysis_options.yaml` file located at the root of your 52 | # package. See that file for information about deactivating specific lint 53 | # rules and activating additional ones. 54 | flutter_lints: ^4.0.0 55 | 56 | # For information on the generic Dart part of this file, see the 57 | # following page: https://dart.dev/tools/pub/pubspec 58 | 59 | # The following section is specific to Flutter packages. 60 | flutter: 61 | 62 | # The following line ensures that the Material Icons font is 63 | # included with your application, so that you can use the icons in 64 | # the material Icons class. 65 | uses-material-design: true 66 | 67 | # To add assets to your application, add an assets section, like this: 68 | assets: 69 | - assets/images/ 70 | 71 | # An image asset can refer to one or more resolution-specific "variants", see 72 | # https://flutter.dev/assets-and-images/#resolution-aware 73 | 74 | # For details regarding adding assets from package dependencies, see 75 | # https://flutter.dev/assets-and-images/#from-packages 76 | 77 | # To add custom fonts to your application, add a fonts section here, 78 | # in this "flutter" section. Each entry in this list should have a 79 | # "family" key with the font family name, and a "fonts" key with a 80 | # list giving the asset and other descriptors for the font. For 81 | # example: 82 | # fonts: 83 | # - family: Schyler 84 | # fonts: 85 | # - asset: fonts/Schyler-Regular.ttf 86 | # - asset: fonts/Schyler-Italic.ttf 87 | # style: italic 88 | # - family: Trajan Pro 89 | # fonts: 90 | # - asset: fonts/TrajanPro.ttf 91 | # - asset: fonts/TrajanPro_Bold.ttf 92 | # weight: 700 93 | # 94 | # For details regarding fonts from package dependencies, 95 | # see https://flutter.dev/custom-fonts/#from-packages 96 | -------------------------------------------------------------------------------- /frontend/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:dev_track_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /frontend/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/web/favicon.png -------------------------------------------------------------------------------- /frontend/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/web/icons/Icon-192.png -------------------------------------------------------------------------------- /frontend/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/web/icons/Icon-512.png -------------------------------------------------------------------------------- /frontend/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /frontend/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /frontend/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | dev_track_app 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /frontend/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dev_track_app", 3 | "short_name": "dev_track_app", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /frontend/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /frontend/windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.14) 3 | project(dev_track_app LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "dev_track_app") 8 | 9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 10 | # versions of CMake. 11 | cmake_policy(VERSION 3.14...3.25) 12 | 13 | # Define build configuration option. 14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 15 | if(IS_MULTICONFIG) 16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 17 | CACHE STRING "" FORCE) 18 | else() 19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 20 | set(CMAKE_BUILD_TYPE "Debug" CACHE 21 | STRING "Flutter build mode" FORCE) 22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 23 | "Debug" "Profile" "Release") 24 | endif() 25 | endif() 26 | # Define settings for the Profile build mode. 27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 31 | 32 | # Use Unicode for all projects. 33 | add_definitions(-DUNICODE -D_UNICODE) 34 | 35 | # Compilation settings that should be applied to most targets. 36 | # 37 | # Be cautious about adding new options here, as plugins use this function by 38 | # default. In most cases, you should add new options to specific targets instead 39 | # of modifying this function. 40 | function(APPLY_STANDARD_SETTINGS TARGET) 41 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 43 | target_compile_options(${TARGET} PRIVATE /EHsc) 44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 46 | endfunction() 47 | 48 | # Flutter library and tool build rules. 49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 50 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 51 | 52 | # Application build; see runner/CMakeLists.txt. 53 | add_subdirectory("runner") 54 | 55 | 56 | # Generated plugin build rules, which manage building the plugins and adding 57 | # them to the application. 58 | include(flutter/generated_plugins.cmake) 59 | 60 | 61 | # === Installation === 62 | # Support files are copied into place next to the executable, so that it can 63 | # run in place. This is done instead of making a separate bundle (as on Linux) 64 | # so that building and running from within Visual Studio will work. 65 | set(BUILD_BUNDLE_DIR "$") 66 | # Make the "install" step default, as it's required to run. 67 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 68 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 69 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 70 | endif() 71 | 72 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 73 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 74 | 75 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 76 | COMPONENT Runtime) 77 | 78 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 79 | COMPONENT Runtime) 80 | 81 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 82 | COMPONENT Runtime) 83 | 84 | if(PLUGIN_BUNDLED_LIBRARIES) 85 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 86 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 87 | COMPONENT Runtime) 88 | endif() 89 | 90 | # Copy the native assets provided by the build.dart from all packages. 91 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") 92 | install(DIRECTORY "${NATIVE_ASSETS_DIR}" 93 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 94 | COMPONENT Runtime) 95 | 96 | # Fully re-copy the assets directory on each build to avoid having stale files 97 | # from a previous install. 98 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 99 | install(CODE " 100 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 101 | " COMPONENT Runtime) 102 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 103 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 104 | 105 | # Install the AOT library on non-Debug builds only. 106 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 107 | CONFIGURATIONS Profile;Release 108 | COMPONENT Runtime) 109 | -------------------------------------------------------------------------------- /frontend/windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # Set fallback configurations for older versions of the flutter tool. 14 | if (NOT DEFINED FLUTTER_TARGET_PLATFORM) 15 | set(FLUTTER_TARGET_PLATFORM "windows-x64") 16 | endif() 17 | 18 | # === Flutter Library === 19 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 20 | 21 | # Published to parent scope for install step. 22 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 23 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 24 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 25 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 26 | 27 | list(APPEND FLUTTER_LIBRARY_HEADERS 28 | "flutter_export.h" 29 | "flutter_windows.h" 30 | "flutter_messenger.h" 31 | "flutter_plugin_registrar.h" 32 | "flutter_texture_registrar.h" 33 | ) 34 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 35 | add_library(flutter INTERFACE) 36 | target_include_directories(flutter INTERFACE 37 | "${EPHEMERAL_DIR}" 38 | ) 39 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 40 | add_dependencies(flutter flutter_assemble) 41 | 42 | # === Wrapper === 43 | list(APPEND CPP_WRAPPER_SOURCES_CORE 44 | "core_implementations.cc" 45 | "standard_codec.cc" 46 | ) 47 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 48 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 49 | "plugin_registrar.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 52 | list(APPEND CPP_WRAPPER_SOURCES_APP 53 | "flutter_engine.cc" 54 | "flutter_view_controller.cc" 55 | ) 56 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 57 | 58 | # Wrapper sources needed for a plugin. 59 | add_library(flutter_wrapper_plugin STATIC 60 | ${CPP_WRAPPER_SOURCES_CORE} 61 | ${CPP_WRAPPER_SOURCES_PLUGIN} 62 | ) 63 | apply_standard_settings(flutter_wrapper_plugin) 64 | set_target_properties(flutter_wrapper_plugin PROPERTIES 65 | POSITION_INDEPENDENT_CODE ON) 66 | set_target_properties(flutter_wrapper_plugin PROPERTIES 67 | CXX_VISIBILITY_PRESET hidden) 68 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 69 | target_include_directories(flutter_wrapper_plugin PUBLIC 70 | "${WRAPPER_ROOT}/include" 71 | ) 72 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 73 | 74 | # Wrapper sources needed for the runner. 75 | add_library(flutter_wrapper_app STATIC 76 | ${CPP_WRAPPER_SOURCES_CORE} 77 | ${CPP_WRAPPER_SOURCES_APP} 78 | ) 79 | apply_standard_settings(flutter_wrapper_app) 80 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 81 | target_include_directories(flutter_wrapper_app PUBLIC 82 | "${WRAPPER_ROOT}/include" 83 | ) 84 | add_dependencies(flutter_wrapper_app flutter_assemble) 85 | 86 | # === Flutter tool backend === 87 | # _phony_ is a non-existent file to force this command to run every time, 88 | # since currently there's no way to get a full input/output list from the 89 | # flutter tool. 90 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 91 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 92 | add_custom_command( 93 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 94 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 95 | ${CPP_WRAPPER_SOURCES_APP} 96 | ${PHONY_OUTPUT} 97 | COMMAND ${CMAKE_COMMAND} -E env 98 | ${FLUTTER_TOOL_ENVIRONMENT} 99 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 100 | ${FLUTTER_TARGET_PLATFORM} $ 101 | VERBATIM 102 | ) 103 | add_custom_target(flutter_assemble DEPENDS 104 | "${FLUTTER_LIBRARY}" 105 | ${FLUTTER_LIBRARY_HEADERS} 106 | ${CPP_WRAPPER_SOURCES_CORE} 107 | ${CPP_WRAPPER_SOURCES_PLUGIN} 108 | ${CPP_WRAPPER_SOURCES_APP} 109 | ) 110 | -------------------------------------------------------------------------------- /frontend/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | void RegisterPlugins(flutter::PluginRegistry* registry) { 14 | FileSelectorWindowsRegisterWithRegistrar( 15 | registry->GetRegistrarForPlugin("FileSelectorWindows")); 16 | PermissionHandlerWindowsPluginRegisterWithRegistrar( 17 | registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); 18 | UrlLauncherWindowsRegisterWithRegistrar( 19 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 20 | } 21 | -------------------------------------------------------------------------------- /frontend/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /frontend/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | file_selector_windows 7 | permission_handler_windows 8 | url_launcher_windows 9 | ) 10 | 11 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 12 | ) 13 | 14 | set(PLUGIN_BUNDLED_LIBRARIES) 15 | 16 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 17 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 18 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 20 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 21 | endforeach(plugin) 22 | 23 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 24 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 25 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 26 | endforeach(ffi_plugin) 27 | -------------------------------------------------------------------------------- /frontend/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /frontend/windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "dev_track_app" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "dev_track_app" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "dev_track_app.exe" "\0" 98 | VALUE "ProductName", "dev_track_app" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /frontend/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | // Flutter can complete the first frame before the "show window" callback is 35 | // registered. The following call ensures a frame is pending to ensure the 36 | // window is shown. It is a no-op if the first frame hasn't completed yet. 37 | flutter_controller_->ForceRedraw(); 38 | 39 | return true; 40 | } 41 | 42 | void FlutterWindow::OnDestroy() { 43 | if (flutter_controller_) { 44 | flutter_controller_ = nullptr; 45 | } 46 | 47 | Win32Window::OnDestroy(); 48 | } 49 | 50 | LRESULT 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 52 | WPARAM const wparam, 53 | LPARAM const lparam) noexcept { 54 | // Give Flutter, including plugins, an opportunity to handle window messages. 55 | if (flutter_controller_) { 56 | std::optional result = 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 58 | lparam); 59 | if (result) { 60 | return *result; 61 | } 62 | } 63 | 64 | switch (message) { 65 | case WM_FONTCHANGE: 66 | flutter_controller_->engine()->ReloadSystemFonts(); 67 | break; 68 | } 69 | 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 71 | } 72 | -------------------------------------------------------------------------------- /frontend/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /frontend/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"dev_track_app", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /frontend/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /frontend/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/frontend/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /frontend/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /frontend/windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr) 51 | -1; // remove the trailing null character 52 | int input_length = (int)wcslen(utf16_string); 53 | std::string utf8_string; 54 | if (target_length <= 0 || target_length > utf8_string.max_size()) { 55 | return utf8_string; 56 | } 57 | utf8_string.resize(target_length); 58 | int converted_length = ::WideCharToMultiByte( 59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 60 | input_length, utf8_string.data(), target_length, nullptr, nullptr); 61 | if (converted_length == 0) { 62 | return std::string(); 63 | } 64 | return utf8_string; 65 | } 66 | -------------------------------------------------------------------------------- /frontend/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /frontend/windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates a win32 window with |title| that is positioned and sized using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size this function will scale the inputted width and height as 35 | // as appropriate for the default monitor. The window is invisible until 36 | // |Show| is called. Returns true if the window was created successfully. 37 | bool Create(const std::wstring& title, const Point& origin, const Size& size); 38 | 39 | // Show the current window. Returns true if the window was successfully shown. 40 | bool Show(); 41 | 42 | // Release OS resources associated with window. 43 | void Destroy(); 44 | 45 | // Inserts |content| into the window tree. 46 | void SetChildContent(HWND content); 47 | 48 | // Returns the backing Window handle to enable clients to set icon and other 49 | // window properties. Returns nullptr if the window has been destroyed. 50 | HWND GetHandle(); 51 | 52 | // If true, closing this window will quit the application. 53 | void SetQuitOnClose(bool quit_on_close); 54 | 55 | // Return a RECT representing the bounds of the current client area. 56 | RECT GetClientArea(); 57 | 58 | protected: 59 | // Processes and route salient window messages for mouse handling, 60 | // size change and DPI. Delegates handling of these to member overloads that 61 | // inheriting classes can handle. 62 | virtual LRESULT MessageHandler(HWND window, 63 | UINT const message, 64 | WPARAM const wparam, 65 | LPARAM const lparam) noexcept; 66 | 67 | // Called when CreateAndShow is called, allowing subclass window-related 68 | // setup. Subclasses should return false if setup fails. 69 | virtual bool OnCreate(); 70 | 71 | // Called when Destroy is called. 72 | virtual void OnDestroy(); 73 | 74 | private: 75 | friend class WindowClassRegistrar; 76 | 77 | // OS callback called by message pump. Handles the WM_NCCREATE message which 78 | // is passed when the non-client area is being created and enables automatic 79 | // non-client DPI scaling so that the non-client area automatically 80 | // responds to changes in DPI. All other messages are handled by 81 | // MessageHandler. 82 | static LRESULT CALLBACK WndProc(HWND const window, 83 | UINT const message, 84 | WPARAM const wparam, 85 | LPARAM const lparam) noexcept; 86 | 87 | // Retrieves a class instance pointer for |window| 88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 89 | 90 | // Update the window frame's theme to match the system theme. 91 | static void UpdateTheme(HWND const window); 92 | 93 | bool quit_on_close_ = false; 94 | 95 | // window handle for top level window. 96 | HWND window_handle_ = nullptr; 97 | 98 | // window handle for hosted content. 99 | HWND child_content_ = nullptr; 100 | }; 101 | 102 | #endif // RUNNER_WIN32_WINDOW_H_ 103 | -------------------------------------------------------------------------------- /node_modules/.package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dev-Track-App", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": {} 6 | } 7 | -------------------------------------------------------------------------------- /node_modules/.yarn-integrity: -------------------------------------------------------------------------------- 1 | { 2 | "systemParams": "win32-x64-115", 3 | "modulesFolders": [], 4 | "flags": [], 5 | "linkedModules": [], 6 | "topLevelPatterns": [], 7 | "lockfileEntries": {}, 8 | "files": [], 9 | "artifacts": {} 10 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dev-Track-App", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": {} 6 | } 7 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DevTrackClub/Dev-Track-App/5957a8e19e99f3f841d38f780a82ddf6a99d178e/requirements.txt -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-3.11.4 2 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | --------------------------------------------------------------------------------