Skip to content

Commit

Permalink
Final merge (#99)
Browse files Browse the repository at this point in the history
* Merge from kiet/dev to dev 2.0 (#87)

* added default filter to be accepted only

* feat: Modified the pagination footer to work with 2 search form

* feat: added loading screen for all possible links

* feat: added fix for request that has been accepted

* Merge to dev 2.0 (#88)

* added default filter to be accepted only

* feat: Modified the pagination footer to work with 2 search form

* feat: added loading screen for all possible links

* feat: added fix for request that has been accepted

* feat: added a seperate table for organization transaction allocation resource to project

* fix: fix the pagination of project resource:

* Add sweet alert (#89)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Change title

* Fix payment approved can confirm again

* update gitignore

* Fix button not working, make code shorter

* Make year to dynamic (auto get year)

* Remove js, use c# be

* Revert to defaul

* Fix user role not update

* add db entry

* Rename title

* space?

* remove duplicate code

* change github icon

* change admin logo

* updaate new icon

* remove try-catch

* update

* add loading

* Add sweetalert

* Remove unused function

* Add message for sweetalert

* add sweetalert cdn

* Add sweetalert script

* Fix end date not displayed (estimated)

* add sweetalert cdn

* Add sweetalert

* Auto login with google account now will not redirected to admin page (#90)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Change title

* Fix payment approved can confirm again

* update gitignore

* Fix button not working, make code shorter

* Make year to dynamic (auto get year)

* Remove js, use c# be

* Revert to defaul

* Fix user role not update

* add db entry

* Rename title

* space?

* remove duplicate code

* change github icon

* change admin logo

* updaate new icon

* remove try-catch

* update

* add loading

* Add sweetalert

* Remove unused function

* Add message for sweetalert

* add sweetalert cdn

* Add sweetalert script

* Fix end date not displayed (estimated)

* add sweetalert cdn

* Add sweetalert

* remove auto go to admin page when logged with google account

* Kiet/dev2.0 (#91)

* added default filter to be accepted only

* feat: Modified the pagination footer to work with 2 search form

* feat: added loading screen for all possible links

* feat: added fix for request that has been accepted

* feat: added a seperate table for organization transaction allocation resource to project

* fix: fix the pagination of project resource:

* fix: fix the loading in Huyen review project

* fix wallet bug

* fix download resource excel file loading screen bug

* fix transfer role

* fix joining a finished project

* rmv GPT key

* desNewdb (#93)

* Tuan merge 11/13 (#92)

* Delete .vs directory

* Prepare to deploy (#83)

* delete some leftovers

* update db

* feat: Combined both the index and homepage into one

* Added readme for guide

* create project

* fixed the stupoid carousel

* uodate db

* Update table and migrations

* before update db

* Add overview and user view (organization is pending on fix)

* update db ngay 1/10/24

* function base Organization

* feat: Added history screen for user

* Update migrations

* basic-manage-project

* feat: added history functions for user as well as cancel functions

* CRUD Request

* pre request detail page

* feat: added confirmation screen for request status

* Some image ?

* del readme

* updateModal

* Update db

* update models

* Remove unused

* oke complete

* editedProject

* smallchange

* complete Organization 5/10

* huhuh

* fix: Hot fix user not being able to update

* complete merge

* fix: Added text when the home page is empty

* Removed the pending badge from pending resources

* fix: Fix a critical bug that makes login redirect fail

* Complete search and pagination

* FixSomeFunction

* merge complete

* fixUpdateResourceAndAddCEOFunction

* Add admin web page and its controller

* feat: Added roles management in UserRepository

* complete merge 2nd

* hot fix: User not updated in user role

* code after merge dev

* update unit (#19)

* update unit (#20)

* somechangeinorganizationresource

* fix some minor visual in homepage

* feat: Global search for navbar hurray

* Detail request page and My Project pagination

* Fix request detail

* authorize review org donate

* update gitignore

* assets

* Update & remove migrations

* update snapshot (to convert from old to new db)

* Update VM and Models

* Update from dev -> my branch

* feat: added advance user address in change user profile

* Delete unused file

* Add authorization

* Update controller

* Add logout button

* Kiet/dev merge with Nhan into dev (#22)

* Merge (move) to my project to develop (#9)

* Added basic login /register screen, email confirm and forget password included.

* mat css r huhuuhuhuhu

* Fixed CSS hurray, and log out also

* update anh

* Added login with google

* fix secrets key

* Added back the secrets key (just for testing)

* update pwd

* pwd

* send email when register and fix register page

* change to readonly input in external register

* up cho nhân

* Add table (database)

* Add primary key and foreign key

* Update properties

* rename properties

* rename some properties

* id -> ID

* Update DB

* Fix properties from lowercase -> uppercase

* feat: Added basic login, authentication, edit user profile and stuff, along with a working navbar

* added more stuff

* Just update (don't touch)

* ver base

* remove unused file

* Merge kiet/dev -> dev (#7)

* Fix some more stuff related to google login

* feat: Added readme, fix some app session in when clicking on confirming email

* Update README.md

* Rename file and convert from int to Guid

* Fixed Guid to string

* missing guid update

* userID from Guid -> string

---------

Co-authored-by: Aimkey <phamminhkiet24@gmail.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>
Co-authored-by: Phạm Minh Kiệt <129891024+AimKey@users.noreply.github.com>

* Admin update

* Fix

* "Initial DB" added some stuff

* css

* int -> GUID

* int -> string, remove "Initial", Add design

* Update table and migrations

* Add overview and user view (organization is pending on fix)

* Update migrations

* Update db

* update models

* Remove unused

* Add admin web page and its controller

* hot fix: User not updated in user role

* fix some minor visual in homepage

* feat: Global search for navbar hurray

* update gitignore

* assets

* Update & remove migrations

* update snapshot (to convert from old to new db)

* Update VM and Models

* Update from dev -> my branch

* feat: added advance user address in change user profile

* Delete unused file

* Add authorization

* Update controller

* Add logout button

---------

Co-authored-by: Pham Khanh Nhan <78801337+kleqing@users.noreply.github.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>

* update js, css

* before merge

* fix: Fix area not working

* fix: added new role banned

* switch to using Service and split into multiple repos

* after merge with dev 10/10/2024

* complete merge with kiet/dev

* update unit (#23)

* nothing

* Implement testing for project

* Implement pagination for project

* add logger

* code after merge dev 11/10/2024

* fix: added new role banned, and a system to lock user out

* fix: added banned user for google auth

* Kiet/dev (#24)

* Merge (move) to my project to develop (#9)

* Added basic login /register screen, email confirm and forget password included.

* mat css r huhuuhuhuhu

* Fixed CSS hurray, and log out also

* update anh

* Added login with google

* fix secrets key

* Added back the secrets key (just for testing)

* update pwd

* pwd

* send email when register and fix register page

* change to readonly input in external register

* up cho nhân

* Add table (database)

* Add primary key and foreign key

* Update properties

* rename properties

* rename some properties

* id -> ID

* Update DB

* Fix properties from lowercase -> uppercase

* feat: Added basic login, authentication, edit user profile and stuff, along with a working navbar

* added more stuff

* Just update (don't touch)

* ver base

* remove unused file

* Merge kiet/dev -> dev (#7)

* Fix some more stuff related to google login

* feat: Added readme, fix some app session in when clicking on confirming email

* Update README.md

* Rename file and convert from int to Guid

* Fixed Guid to string

* missing guid update

* userID from Guid -> string

---------

Co-authored-by: Aimkey <phamminhkiet24@gmail.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>
Co-authored-by: Phạm Minh Kiệt <129891024+AimKey@users.noreply.github.com>

* Admin update

* Fix

* "Initial DB" added some stuff

* css

* int -> GUID

* int -> string, remove "Initial", Add design

* Update table and migrations

* Add overview and user view (organization is pending on fix)

* Update migrations

* Update db

* update models

* Remove unused

* Add admin web page and its controller

* hot fix: User not updated in user role

* somechangeinorganizationresource

* fix some minor visual in homepage

* feat: Global search for navbar hurray

* authorize review org donate

* update gitignore

* assets

* Update & remove migrations

* update snapshot (to convert from old to new db)

* Update VM and Models

* Update from dev -> my branch

* feat: added advance user address in change user profile

* Delete unused file

* Add authorization

* Update controller

* Add logout button

* update js, css

* before merge

* fix: Fix area not working

* fix: added new role banned

* switch to using Service and split into multiple repos

* after merge with dev 10/10/2024

* complete merge with kiet/dev

* nothing

* add logger

* code after merge dev 11/10/2024

* fix: added new role banned, and a system to lock user out

* fix: added banned user for google auth

---------

Co-authored-by: Pham Khanh Nhan <78801337+kleqing@users.noreply.github.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>

* feat: added better payment PAGE

* feat: added timeout system, resend email confirmation link

* minor fix: added message if user enter email but not exist in forget password

* fix: Fix google register not working, also Vietnamese characters is now allowed, also, confirmation email no longer redirect straight to homepage

* feat: added sweetalert toast

* date filter for MyRequest and request Index

* Request validation

* New login and sign up screen

* preparing for merge

* Ghost files ??

* Kiet/dev (#28)

* Merge (move) to my project to develop (#9)

* Added basic login /register screen, email confirm and forget password included.

* mat css r huhuuhuhuhu

* Fixed CSS hurray, and log out also

* update anh

* Added login with google

* fix secrets key

* Added back the secrets key (just for testing)

* update pwd

* pwd

* send email when register and fix register page

* change to readonly input in external register

* up cho nhân

* Add table (database)

* Add primary key and foreign key

* Update properties

* rename properties

* rename some properties

* id -> ID

* Update DB

* Fix properties from lowercase -> uppercase

* feat: Added basic login, authentication, edit user profile and stuff, along with a working navbar

* added more stuff

* Just update (don't touch)

* ver base

* remove unused file

* Merge kiet/dev -> dev (#7)

* Fix some more stuff related to google login

* feat: Added readme, fix some app session in when clicking on confirming email

* Update README.md

* Rename file and convert from int to Guid

* Fixed Guid to string

* missing guid update

* userID from Guid -> string

---------

Co-authored-by: Aimkey <phamminhkiet24@gmail.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>
Co-authored-by: Phạm Minh Kiệt <129891024+AimKey@users.noreply.github.com>

* Admin update

* Fix

* "Initial DB" added some stuff

* css

* int -> GUID

* int -> string, remove "Initial", Add design

* Update table and migrations

* Add overview and user view (organization is pending on fix)

* Update migrations

* Update db

* update models

* Remove unused

* Complete search and pagination

* Add admin web page and its controller

* hot fix: User not updated in user role

* somechangeinorganizationresource

* fix some minor visual in homepage

* feat: Global search for navbar hurray

* Detail request page and My Project pagination

* Fix request detail

* authorize review org donate

* update gitignore

* assets

* Update & remove migrations

* update snapshot (to convert from old to new db)

* Update VM and Models

* Update from dev -> my branch

* feat: added advance user address in change user profile

* Delete unused file

* Add authorization

* Update controller

* Add logout button

* update js, css

* before merge

* fix: Fix area not working

* fix: added new role banned

* switch to using Service and split into multiple repos

* after merge with dev 10/10/2024

* complete merge with kiet/dev

* nothing

* Implement testing for project

* add logger

* code after merge dev 11/10/2024

* fix: added new role banned, and a system to lock user out

* fix: added banned user for google auth

* feat: added better payment PAGE

* feat: added timeout system, resend email confirmation link

* minor fix: added message if user enter email but not exist in forget password

* fix: Fix google register not working, also Vietnamese characters is now allowed, also, confirmation email no longer redirect straight to homepage

* feat: added sweetalert toast

* New login and sign up screen

* preparing for merge

* Ghost files ??

---------

Co-authored-by: Pham Khanh Nhan <78801337+kleqing@users.noreply.github.com>
Co-authored-by: Trương Anh Tuấn <134388467+tuantadev2664@users.noreply.github.com>
Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>

* Join project notification SignalR

* validate 1/2

* hotfix: Notification finally working yay

* Bye bye dumb shit DTO

* Added back dto yaya

* prepare to merge dev

* prepare to merge dev

* delete some leftovers

* delete some leftovers

* fix validate

* delete 3 redundant files

* feat: Added Role Service for later uses

* Implement notification for project

* Implement notification for project

* add noti table

* fine-tune request validation

* remove index

* remove index

* Remove admin

* Move from kleqing to dev

* Delete Dynamics/wwwroot/css/output.css

* Kleqing/dev (#35)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Tuan merge 24 10 (#37)

* update unit

* huh

* Organization notification draft

* invite member project

* Des (#38)

* Implement notification for project

* Implement notification for project

* fine-tune request validation

* Organization notification draft

* commitsth

* fix invite

* Implement organization notification

* feat: Added pagination for user history and transaction page in project

* fix authorize guest

* add button review donate org

* fix bugs

* Fix finish project and project update page

* feat: Merged db, bugs not tested.

* feat: Added an init Db folder for use

* Tuan merge 27/10 (#53)

* feat: Merged db, bugs not tested.

* feat: Added an init Db folder for use

* Fix bug

* fix bug

* haha

---------

Co-authored-by: Aimkey <phamminhkiet24@gmail.com>

* feat: Revamped user donate to project

* feat: Revamped user donate to organization, organization allocate to project still the same though

* re-css notification

* re-css project detail page, other page not re-css yet

* fix project

* merged with huyen.1.2

* changed appsettings

* change: change create organization msg, prepare to merge to dev 2.0

* fix: Hot fix organization notification wrong params

* add loading donate to pr

* fix: fix bugs, deleted award model, excluded migrations?

* Kleqing/dev (#54)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* minor notification fix

* remove excess files

* Kleqing/dev (#55)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Kleqing/dev (#56)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* fix: fix critical bug when register using Google

* fix: fix critical bug when register using Google (#58)

* rework: Reworked allocate money from org to prj

* Kiet/dev2.0 merge to dev2.0 (#59)

* fix: fix critical bug when register using Google

* rework: Reworked allocate money from org to prj

* Kleqing/dev (#61)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* added validation for create project

* modify font size

* fixed remove role

* Merge with kleqing/dev (#64)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Update some stuff (#65)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* refund when prj/org shutdown

* added default image fallback, fix some stuff

* fix request bugs

* Kiet/dev2.0 (#66)

* add loading donate to pr

* fix: fix critical bug when register using Google

* rework: Reworked allocate money from org to prj

* added validation for create project

* modify font size

* fixed remove role

* added default image fallback, fix some stuff

* fix request bugs

---------

Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>

* Merge from kleqing/dev (#67)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* HOTFIX: Fix my organization unaccessible

* project payment qr generate

* preparing to merge with Thanh from dev

* re-added bank popup

* Merge refund function (#71)

* add loading donate to pr

* fix: fix critical bug when register using Google

* rework: Reworked allocate money from org to prj

* added validation for create project

* modify font size

* fixed remove role

* added default image fallback, fix some stuff

* fix request bugs

* HOTFIX: Fix my organization unaccessible

* preparing to merge with Thanh from dev

* re-added bank popup

---------

Co-authored-by: aurora-mei <huyencttde180614@fpt.edu.vn>
Co-authored-by: desamma <lennaqb4@gmail.com>

* Fix & add some function (#72)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Kleqing/dev (#73)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Change title

* Kleqing/dev (#74)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Change title

* Fix payment approved can confirm again

* update gitignore

* fix: Fix the choosing member to lead a project in organization

* Kleqing/dev (#75)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from transaction table

* rename properties

* Add include to new table

* should be in .gitignore soon

* Change sender name -> project name

* Change 1 -> 0 (On-going -> preparing)

* Update ajax (Change badge, status)

* Fix ban project can't unban. Change status display

* Add admin menu

* Remove auto login to admin if user role already admin

* update

* Nothing change

* Add status

* Add change status function

* Add comment

* DB? (Move to .gitignore soon)

* Add display status in index, add confirmwithdraw

* Update MVVM (Add status)

* Add id to confirm button, add ajax to change status

* Change project badge to pending/success

* Fix link to user profile

* add to gitignore

* Update output.css

* Smaller QR

* Change some text in modals and notes

* Change year

* Add email sender

* Change title

* Fix payment approved can confirm again

* update gitignore

* Fix button not working, make code shorter

* Make year to dynamic  (#76)

* update from dev to my-dev branch

* Move to postgreSQL

* Revert to mssql

* remove unused compoments

* context

* Add logout button

* Add view detail button

* remove folder

* update js

* remove & update js

* update css

* update migrations

* change boolean -> int

* Update js (ajax)

* Add get org information, count member, rename int -> ban

* Update OrganizationsController.cs

* Update index

* Update ExternalLogin.cshtml.cs

* change bg color

* Add export function

* Add export button, redirected request to /Admin/Requests

* Update button to working with export in controller

* Add more detail about project

* Add some case that end-date not set. Remove unused loc, add export button

* Add request detail in canvas (and its ajax b*lly sh*t)

* Delete unused

* move canvas title to center

* Add request information

* Add "GetRequestInfo" function

* Add interface

* add space

* Add comment to each file

* Update from dev to kleqing/dev

* remove mirgrations

* (temp), remove output.css

* Restore

* Create output.1css

* Delete output.1css

* Test with Rider

* Move to new db

* Update Index.cshtml

* update gitignore

* Remove view detail

* Add payment to nav bar

* Update

* Login now check both role in identity and userRole

* Add payment nav bar, remove off canvas, now view more will redirected to org detail in user page

* Remove unused tag

* fix typo error

* Update new card-body for project

* Update Details.cshtml

* Add view transaction

* Add view payment

* Add payment.js (for payment page)

* Update Index.cshtml

* remove icon

* Add new model (to display transaction information)

* Shorter index, now the card will display by date (sorted)

* Add 'listUserToProject', 'listUserToOrganization' and 'listOrganizationToProject'

* Update model

* Update controller

* #52 fixed

* Delete VAT

* update adminrepository

* huh

* Revert to kleqing/dev

* Revert to kleqing/dev

* Fix logo

* Add logo (2)

* Add logo (3)

* #57 fixed

* Update dbcontext

* Add new model (withdraw)

* change appsetting (connectionstring)

* add relationship

* Remove & add new function

* basic update

* Update payment model (mvvm)

* Rename properties

* Remove organizationToProject & userToOrganization

* remove unused function/properties

* Remove sql

* Update output.css

* Id -> ID

* Fix relationship from 1-1 to 1-many

* Nothing to update

* Print message, display money only

* Print message

* Count project report

* Add LINQ to display only 1 project

* Change dynamic to List

* add properties

* update link to user profile

* Add absolute path, update list project card from transaction

* Update detail resource table, add modals

* Update MVVM from transaction to withdraw

* Display value from withdraw table, not from tran…
  • Loading branch information
7 people authored Nov 13, 2024
1 parent dd061ad commit 4614c46
Show file tree
Hide file tree
Showing 26 changed files with 2,155 additions and 111 deletions.
1,116 changes: 1,116 additions & 0 deletions Dynamics.DataAccess/Migrations/20241106220416_initial.Designer.cs

Large diffs are not rendered by default.

794 changes: 794 additions & 0 deletions Dynamics.DataAccess/Migrations/20241106220416_initial.cs

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions Dynamics.DataAccess/Repository/ProjectMemberRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,21 @@ public async Task<bool> AddJoinRequest(ProjectMember p)
{
var existingMember = await _context.ProjectMembers
.FirstOrDefaultAsync(pm => pm.UserID == p.UserID && pm.ProjectID == p.ProjectID);

if (existingMember != null)
{
// Optionally handle the case where the member already exists
return false; // or throw an exception as appropriate
if (existingMember.Status == 0 || existingMember.Status == -2)//has sent join request or has been invited
{
// Optionally handle the case where the member already exists
return false; // or throw an exception as appropriate
}
if(existingMember.Status == -1 )
{
existingMember.Status = 0;
_context.ProjectMembers.Update(existingMember);
await _context.SaveChangesAsync();
return true;
}
}

await _context.ProjectMembers.AddAsync(p);
await _context.SaveChangesAsync();
return true;
Expand Down Expand Up @@ -115,6 +123,14 @@ await _context.ProjectMembers.FirstOrDefaultAsync(x =>
}
public async Task<bool> InviteMemberAsync(Guid memberID, Guid projectID)
{
var existingObj = await GetAsync(x=>x.UserID.Equals(memberID) && x.ProjectID.Equals(projectID));
if (existingObj != null)
{
existingObj.Status = -2;
_context.ProjectMembers.Update(existingObj);
await _context.SaveChangesAsync();
return true;
}
await _context.ProjectMembers.AddAsync(new ProjectMember()
{
UserID = memberID,
Expand Down
9 changes: 0 additions & 9 deletions Dynamics/Areas/Identity/Pages/Account/ExternalLogin.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ public async Task<IActionResult> OnGetCallbackAsync(string returnUrl = null, str
_logger.LogInformation("{Name} logged in with {LoginProvider} provider.", info.Principal.Identity.Name,
info.LoginProvider);
await _signInManager.SignInAsync(existingUser, isPersistent: false, authenticationMethod: null);
if (User.IsInRole(RoleConstants.Admin))
{
return RedirectToAction("Index", "Home", new { area = "Admin" });
}

if (returnUrl.Contains("JoinProjectRequest"))
{
returnUrl = returnUrl.Replace("memberid=00000000-0000-0000-0000-000000000000",
Expand All @@ -144,10 +139,6 @@ public async Task<IActionResult> OnGetCallbackAsync(string returnUrl = null, str
HttpContext.Session.SetString("currentUserID", businessUser.Id.ToString());
_logger.LogInformation("{Name} logged in with {LoginProvider} provider.", info.Principal.Identity.Name,
info.LoginProvider);
if (User.IsInRole(RoleConstants.Admin) && result.Succeeded)
{
return RedirectToAction("Index", "Home", new { area = "Admin" });
}

return Redirect(returnUrl);
}
Expand Down
12 changes: 9 additions & 3 deletions Dynamics/Controllers/ProjectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public async Task<IActionResult> GetUsersNotInProject(string key)
var users = await _userRepository.GetAllUsersAsync();
var usersInProject =
_projectService.FilterMemberOfProject(p =>
p.ProjectID.Equals(new Guid(currentProjectID)) && p.Status > 0);
p.ProjectID.Equals(new Guid(currentProjectID)) && p.Status >= 0 || p.Status ==-2);
var usersNotInProject = users.Where(u => !usersInProject.Any(up => up.Id == u.Id));
// Return as JSON (you could also return a PartialView)
if (!string.IsNullOrEmpty(key))
Expand Down Expand Up @@ -563,7 +563,13 @@ public async Task<IActionResult> InviteMembers(string userIds)
var linkLeader = Url.Action(nameof(CancelJoinInvitation), "Project",
new { projectId = new Guid(currentProjectID), memberId = userId }, Request.Scheme);
//send to user and leader
await _notificationService.InviteProjectMemberRequestNotificationAsync(projectObj, user, linkUser,
var userString = HttpContext.Session.GetString("user");
User currentUser = null;
if (userString != null)
{
currentUser = JsonConvert.DeserializeObject<User>(userString);
}
await _notificationService.InviteProjectMemberRequestNotificationAsync(projectObj, user, currentUser,linkUser,
linkLeader);
}

Expand Down Expand Up @@ -679,7 +685,7 @@ public async Task<IActionResult> JoinProjectRequest(Guid memberID, Guid projectI
}
else if (res.Equals(MyConstants.Warning))
{
TempData[MyConstants.Warning] = "Already sent another join request!";
TempData[MyConstants.Warning] = "Already sent another join request or has received an invitation from this project!";
TempData[MyConstants.Subtitle] = "Please wait for the project leader response!";
}
else if (res.Equals(MyConstants.Error))
Expand Down
2 changes: 1 addition & 1 deletion Dynamics/Services/INotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface INotificationService
Task ProcessProjectDonationNotificationAsync(Guid projectId,Guid? transId, string link, string type);
Task ProcessProjectPhaseNotificationAsync(Guid projectId, string link, string type);
Task AddProjectResourceNotificationAsync(Guid projectId, string link);
Task InviteProjectMemberRequestNotificationAsync(Project projectObj, User member, string linkUser, string linkLeader);
Task InviteProjectMemberRequestNotificationAsync(Project projectObj, User member,User sender, string linkUser, string linkLeader);
Task ProcessInviteProjectMemberRequestNotificationAsync(Project project, User member, string link, string type);
Task UpdateOrganizationNotificationAsync(Guid organizationId, string link);
Task ProcessOrganizationDonationNotificationAsync(Guid organizationId, Guid? transId, string link, string type);
Expand Down
7 changes: 3 additions & 4 deletions Dynamics/Services/NotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task JoinProjectRequestNotificationAsync(Project project, string li
};
await _notifRepo.AddNotificationAsync(notif);
}
public async Task InviteProjectMemberRequestNotificationAsync(Project projectObj, User member, string linkUser, string linkLeader)
public async Task InviteProjectMemberRequestNotificationAsync(Project projectObj, User member,User sender, string linkUser, string linkLeader)
{
var notif = new Notification
{
Expand All @@ -68,12 +68,11 @@ public async Task InviteProjectMemberRequestNotificationAsync(Project projectObj
Status = 0 // Unread
};
await _notifRepo.AddNotificationAsync(notif);

var leaderOfProject = await GetProjectLeaderAsync(projectObj.ProjectID);

var notifLeader = new Notification
{
NotificationID = Guid.NewGuid(),
UserID = leaderOfProject.Id,
UserID = sender.Id,
Message = $"You have sent an invitation to \"{member.UserName}\" to join your project {projectObj.ProjectName}.\nClick this notification to cancel the invitation!",
Date = DateTime.Now,
Link = linkLeader,
Expand Down
1 change: 0 additions & 1 deletion Dynamics/Services/ProjectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,6 @@ public async Task<string> SendJoinProjectRequestAsync(Guid projectID, Guid membe
{
return MyConstants.Success;
}

return MyConstants.Error;
}
if (existingJoinRequest.Status == -1) // Denied, update from -1 -> 0
Expand Down
8 changes: 4 additions & 4 deletions Dynamics/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
<p class="text-3xl text-center font-bold">Discover</p>
<div class="w-full flex justify-center gap-4">
<a asp-action="Index" asp-controller="Request"
class="w-full max-w-40 h-20 bg-error transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
class="splide__slide elevate w-full max-w-40 h-20 bg-error transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
@* <i class="fa-solid fa-hand-holding-hand text-3xl text-white"></i> *@
<i class="fa-regular fa-handshake text-3xl"></i>
<span>All requests</span>
</a>
<a asp-action="ViewAllProjects" asp-controller="Project"
class="w-full max-w-40 h-20 bg-success transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
class="splide__slide elevate w-full max-w-40 h-20 bg-success transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
@* <i class="fa-solid fa-hand-holding-hand text-3xl text-white"></i> *@
<i class="fa-solid fa-users-line text-3xl"></i>
<span>All projects</span>
</a>
<a asp-action="Index" asp-controller="Organization"
class="w-full max-w-40 h-20 bg-primary transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
class="splide__slide elevate w-full max-w-40 h-20 bg-primary transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
@* <i class="fa-solid fa-hand-holding-hand text-3xl text-white"></i> *@
<i class="fa-solid fa-city text-3xl"></i>
<span>All organization</span>
</a>
<a asp-action="ViewAllSuccessfulProjects" asp-controller="Project"
class="w-full max-w-40 h-20 bg-neutral transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
class="splide__slide elevate w-full max-w-40 h-20 bg-neutral transition-all opacity-75 hover:opacity-100 flex flex-col justify-center items-center text-white rounded-md px-2">
@* <i class="fa-solid fa-hand-holding-hand text-3xl text-white"></i> *@
<i class="fa-regular fa-thumbs-up text-3xl"></i>
<span>Successful projects</span>
Expand Down
6 changes: 3 additions & 3 deletions Dynamics/Views/Organization/DonateByResource.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<div class="mb-8">
<h2 class="text-xl font-semibold mb-4">1. Register the form</h2>
<form asp-action="DonateByResource" asp-controller="Organization" asp-route-resourceId="@Model.ResourceID" enctype="multipart/form-data" method="post">
<form id="donateResourceForm" asp-action="DonateByResource" asp-controller="Organization" asp-route-resourceId="@Model.ResourceID" enctype="multipart/form-data" method="post">
<input asp-for="UserID" name="UserID" class="hidden">
<input asp-for="Status" name="Status" class="hidden">
<input type="date" asp-for="Time" name="Time" class="hidden">
Expand All @@ -38,7 +38,7 @@

<div class="mb-4">
<label asp-for="Amount" class="block text-sm font-medium text-gray-700 mb-1">Input the quantity</label>
<input asp-for="Amount" type="number" name="Amount" id="quantity" placeholder="Enter Amount"
<input asp-for="Amount" type="number" name="Amount" id="quantity" placeholder="Enter Amount" min="1" value="1"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
@* <span asp-validation-for="Amount" class="text-red-500"></span> *@
@if (ViewBag.Amount != null)
Expand Down Expand Up @@ -123,5 +123,5 @@
</div>
</div>
</div>

<partial name="CustomComponent/_LoadingForm" model="@("donateResourceForm")"/>

5 changes: 3 additions & 2 deletions Dynamics/Views/Organization/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
If you are a member of an organization, tell your leader to accept this request instead!
</p>

<form asp-action="Edit" asp-controller="Organization" enctype="multipart/form-data" method="post">
<form id="editOrganization" asp-action="Edit" asp-controller="Organization" enctype="multipart/form-data" method="post">
<div>
<input asp-for="@Model.OrganizationID" value="@Model.OrganizationID" class="hidden">
<input type="date" asp-for="@Model.StartTime" class="hidden" name="StartTime"/>
Expand Down Expand Up @@ -81,7 +81,8 @@
</button>
</div>
</form>

@* <partial name="CustomComponent/_LoadingForm" model="@("editOrganization")"/> *@
<partial name="CustomComponent/_LoadingModalSweet" model="@("editOrganization")"/>
<form asp-action="ShutDown" asp-controller="Organization">
<input asp-for="@Model.OrganizationID" value="@Model.OrganizationID" name="organizationId" class="hidden">
<div class="flex justify-center mb-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ else
</div>
</div>
</div>

@* <div class="flex items-center space-x-4 mb-4">
<a asp-action="ExportExcel" asp-controller="ExcelExport">
<button class="inline-flex items-center px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700">
Expand Down
24 changes: 20 additions & 4 deletions Dynamics/Views/Organization/ReviewDonateRequest.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
</div>
</div>
<form method="dialog" class="modal-backdrop">
<form method="dialog" class="modal-backdrop">
<button>close</button>
</form>
</dialog>
Expand Down Expand Up @@ -178,7 +178,7 @@
</div>
</form>
</div>
<form method="dialog" class="modal-backdrop">
<form id="closeAcceptModel" method="dialog" class="modal-backdrop">
<button>close</button>
</form>
</dialog>
Expand Down Expand Up @@ -458,9 +458,25 @@
notificationMessage.innerText = "Please upload at least one proof image.";
notificationMessage.style.display = "block";
} else {
notificationMessage.style.display = "none"; // Hide the message if files are selected
notificationMessage.style.display = "none";
this.submit();
document.getElementById("closeAcceptModel").submit();
openLoading();
}
});
function openLoading(){
Swal.fire({
title: "Processing...",
text: "Please wait while your request is being processed",
icon: "info",
allowOutsideClick: false,
allowEscapeKey: false,
showConfirmButton: false,
didOpen: () => {
Swal.showLoading();
}
});
}
});
//modal of proof image
function openImageModal(imgSrc) {
document.getElementById('modalImage').src = imgSrc;
Expand Down
19 changes: 10 additions & 9 deletions Dynamics/Views/Project/AddProjectPhaseReport.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
<div class="w-full flex-col shadow-md p-6 rounded-3xl my-10">
<h2 class=" text-black font-bold text-xl text-center ">Create phase report</h2>
<!-- form 1 -->
<form asp-action="AddProjectPhaseReport" asp-controller="Project" enctype="multipart/form-data" method="post">
<form id="addPhaseForm" asp-action="AddProjectPhaseReport" asp-controller="Project" enctype="multipart/form-data" method="post">
<input type="hidden" name="ProjectID" value="@currentProjectID" />
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="grid grid-cols-2 gap-x-10 gap-y-3">
<div>
<label asp-for="@Model.Phase" class="block mb-2 text-md font-medium text-gray-900">Enter phase title</label>
<input asp-for="@Model.Phase" type="text" id="phase_title"
class="bg-white border border-gray-300 text-navy-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
required />
required />
<span asp-validation-for="Phase" class="text-danger"></span>
</div>
<div class="flex flex-col mt-4">
Expand Down Expand Up @@ -64,14 +64,14 @@

<div>
<label asp-for="Date" class="block mb-2 text-md font-medium text-gray-900">Select start time of phase</label>
<input type="date" asp-for="Date"
class="bg-white border border-gray-300 text-navy-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
<input type="date" asp-for="Date"
class="bg-white border border-gray-300 text-navy-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
id="dateInput" max="@ViewBag.currentDate"
required />
<div class="flex flex-col">
<span class="text-gray-400 text-sm">The date that your phase starts.</span>
<span asp-validation-for="Date" class="text-danger"></span>
<div id="notificationMessage" class="text-red-500 text-sm font-bold" style="display:none;"></div>
required />
<div class="flex flex-col">
<span class="text-gray-400 text-sm">The date that your phase starts.</span>
<span asp-validation-for="Date" class="text-danger"></span>
<div id="notificationMessage" class="text-red-500 text-sm font-bold" style="display:none;"></div>
</div>
</div>

Expand All @@ -88,6 +88,7 @@
</div>
<!-- container end -->
</div>
<partial name="CustomComponent/_LoadingForm" model="@("addPhaseForm")"/>
<script>
function thisFileUpload() {
document.getElementById("Attachment").click();
Expand Down
3 changes: 2 additions & 1 deletion Dynamics/Views/Project/EditProjectPhaseReport.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="w-full flex-col shadow-md p-6 rounded-3xl mb-10">
<h2 class=" text-black font-bold text-xl text-center ">Update phase report</h2>
<!-- form 1 -->
<form asp-action="EditProjectPhaseReport" asp-controller="Project" enctype="multipart/form-data" method="post">
<form id="editPhaseForm" asp-action="EditProjectPhaseReport" asp-controller="Project" enctype="multipart/form-data" method="post">
<input type="hidden" asp-for="@Model.HistoryID" />
<input type="hidden" asp-for="@Model.ProjectID" />
<div asp-validation-summary="ModelOnly" class="text-error"></div>
Expand Down Expand Up @@ -125,6 +125,7 @@
</dialog>
<!-- container end -->
</div>
<partial name="CustomComponent/_LoadingForm" model="@("editPhaseForm")"/>
<script>
//modal
function openModal(imgSrc, modalid) {
Expand Down
Loading

0 comments on commit 4614c46

Please sign in to comment.