diff --git a/.editorconfig b/.editorconfig index 07820a4..e044e0c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,4 +13,5 @@ trim_trailing_whitespace = false csharp_new_line_before_open_brace = none csharp_new_line_before_catch = false csharp_new_line_before_finally = false -csharp_new_line_after_else = false \ No newline at end of file +csharp_new_line_after_else = false +csharp_new_line_before_else = false \ No newline at end of file diff --git a/.env_Template b/.env_Template index 98f082d..dee9450 100755 --- a/.env_Template +++ b/.env_Template @@ -1,13 +1,32 @@ -Payment_Service=StripeIntent # Options are [ StripeIntent ] +############# +## Payment ## +############# +# Options are [ StripeIntent ] +Payment_Service=StripeIntent + +# StripeIntent Options Stripe_PublicKey= Stripe_PublicKey= Stripe_Endpoint_Secret= -MySQL_Server=mistox-database +#################### +## Authentication ## +#################### + +# Random secret token for encrypting JWT contents +JWT_Secret= + +############## +## Database ## +############## + MySQL_User=root -MySQL_Database=mistox -MySQL_Pass=oasv34$8gpv023dd # Random value for the server and MySQL to communicate with +MySQL_Pass=oasv34$8gpv023dd + +############## +## Email ## +############## Email_Server= # Hostname of email server Email_Port= # SMTP port used diff --git a/ToDo.yaml b/ToDo.yaml index ca253bb..e5128e5 100755 --- a/ToDo.yaml +++ b/ToDo.yaml @@ -9,10 +9,30 @@ Server: Client: jobs/new: - When remote job is check'd it still asks for location information Want to add Required skills to help with filtering - Need to fix some UI bugs. + When enter is pressed it tries to submit the form + Should run the whole carosel on enter before the submit is sent + Need to validate input before allowing next step Want to add completed job listing preview at end of carosel database: - Add Applied Jobs Table \ No newline at end of file + Add Applied Jobs Table + + + +Task: + Block API Access as much as possible [ Rate limit | Auth Req | CORS | Disallow AI keyword filters ] + Resume builder minimal user input [ Dont allow AI input ] + Auto unlist jobs after a month of no activity [ Multiple offenders marked ] + Dont allow external applications for users on company sites from the start + Allow company to look up users if their resume is public [ Maybe auto with notify ] + Allow users to look up jobs and apply [ Boost visibility | Completely manual ] + Allow multiple resume's for job specific work + Mark ghost listings to allow users to be informed and put companies on blast + Create advanced filtering tools for company lookup and resume lookup + + Create and Auth Database based on the docker compose + Create a server table inside the auth database + Point all requests after auth to the correct regional server. -> Currently only Mistox-West exists + + CompanyConnect | need to lookup company before making a new one \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 3ec7754..4098a89 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,18 +5,19 @@ services: image: docker.mistox.net/boredcareers-website:latest restart: always environment: + - MySQLServer=boredcareers-database + - MySQLDatabase=boredcareers - PaymentService=${Payment_Service} - StripePublicKey=${Stripe_PublicKey} - StripeApiKey=${Stripe_ApiKey} - StripeEndpointSecret=&{Stripe_Endpoint_Secret} - - MySQLServer=${MySQL_Server} - MySQLUser=${MySQL_User} - MySQLPass=${MySQL_Pass} - - MySQLDatabase=${MySQL_Database} - EmailServer=${Email_Server} - EmailPort=${Email_Port} - EmailAddress=${Email_Address} - EmailPassword=${Email_Password} + - JWTsecret=${JWT_Secret} ports: - 5000:5000 depends_on: diff --git a/src/Client/src/app/pages/account/logout/logout.component.ts b/src/Client/src/app/pages/account/logout/logout.component.ts index 4357ff9..130ee39 100644 --- a/src/Client/src/app/pages/account/logout/logout.component.ts +++ b/src/Client/src/app/pages/account/logout/logout.component.ts @@ -23,7 +23,7 @@ export class LogoutComponent { ngAfterViewInit(){ this.auth.Logout().subscribe({ next: data => { - this.router.navigate(["/"]); + window.location.href = ""; } }); } diff --git a/src/Client/src/app/pages/main/company/connect/companyconnect.component.css b/src/Client/src/app/pages/main/company/connect/companyconnect.component.css index 4203dc9..afcf5dc 100644 --- a/src/Client/src/app/pages/main/company/connect/companyconnect.component.css +++ b/src/Client/src/app/pages/main/company/connect/companyconnect.component.css @@ -1,3 +1,21 @@ +button { + width: 150px; + border-radius: 5px; + margin: 10px; + text-align: center; + padding: 15px 0; + transition: .5s; + background-color: #0000; + border: 1px solid var(--Mistox-White); + color: var(--Mistox-White); + text-decoration: none; +} + + button:hover { + background-color: #00000044; + color: var(--Mistox-Light); + } + .title-text { width: 100%; text-align: center; diff --git a/src/Client/src/app/pages/main/company/connect/companyconnect.component.html b/src/Client/src/app/pages/main/company/connect/companyconnect.component.html index 12111ca..9b71c56 100644 --- a/src/Client/src/app/pages/main/company/connect/companyconnect.component.html +++ b/src/Client/src/app/pages/main/company/connect/companyconnect.component.html @@ -7,13 +7,12 @@