This commit is contained in:
Dobromir Popov
2024-02-27 15:57:49 +02:00
7 changed files with 54462 additions and 64627 deletions

View File

@ -1,9 +0,0 @@
NEXT_PUBLIC_PROTOCOL=https
NEXT_PUBLIC_PORT=
NEXT_PUBLIC_HOST=sofia.mwhitnessing.com
NEXTAUTH_URL= https://sofia.mwhitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638
# ? do we need to duplicate this? already defined in the deoployment yml file
DATABASE_URL=mysql://jwpwsofia:dwxhns9p9vp248V39xJyRthUsZ2gR9@mariadb:3306/jwpwsofia

View File

@ -3,7 +3,6 @@ NEXT_PUBLIC_PORT=
NEXT_PUBLIC_HOST=staging.mwhitnessing.com NEXT_PUBLIC_HOST=staging.mwhitnessing.com
NEXTAUTH_URL= https://staging.mwhitnessing.com NEXTAUTH_URL= https://staging.mwhitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32 # Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638 NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638
# ? do we need to duplicate this? already defined in the deoployment yml file # ? do we need to duplicate this? already defined in the deoployment yml file

View File

@ -1,10 +1,9 @@
NEXT_PUBLIC_PROTOCOL=https NEXT_PUBLIC_PROTOCOL=https
NEXT_PUBLIC_PORT= NEXT_PUBLIC_PORT=
NEXT_PUBLIC_HOST=staging.mwhitnessing.com NEXT_PUBLIC_HOST=sofia.mwhitnessing.com
NEXTAUTH_URL= https://staging.mwhitnessing.com NEXTAUTH_URL= https://sofia.mwhitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32 # Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638 NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638
# ? do we need to duplicate this? already defined in the deoployment yml file # ? do we need to duplicate this? already defined in the deoployment yml file
DATABASE_URL=mysql://jwpwsofia:dwxhns9p9vp248V39xJyRthUsZ2gR9@mariadb-staging:3306/jwpwsofia DATABASE_URL=mysql://jwpwsofia:dwxhns9p9vp248V39xJyRthUsZ2gR9@mariadb:3306/jwpwsofia

2
.gitignore vendored
View File

@ -26,5 +26,3 @@ next-cart-app.zip
certificates certificates
content/output/* content/output/*
baseUrl.txt baseUrl.txt
content/publisherShiftStats.json
content/publisherShiftStats.json

View File

@ -544,7 +544,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
</label> </label>
</div> </div>
{availability.repeatWeekly && ( {false && availability.repeatWeekly && (
<div className="mb-4"> <div className="mb-4">
<DatePicker label="До" value={availability.endDate} onChange={(value) => setAvailability({ ...availability, endDate: value })} /> <DatePicker label="До" value={availability.endDate} onChange={(value) => setAvailability({ ...availability, endDate: value })} />

File diff suppressed because it is too large Load Diff

View File

@ -432,9 +432,9 @@ async function GenerateSchedule(axios: Axios, date: string, copyFromPreviousMont
if (!forDay) { if (!forDay) {
const fs = require("fs"); const fs = require("fs");
fs.writeFileSync("./content/publisherShiftStats.json", JSON.stringify(publishers, null, 2)); //fs.writeFileSync("./content/publisherShiftStats.json", JSON.stringify(publishers, null, 2));
fs.writeFileSync("./content/publishersWithChangedPref.json", JSON.stringify(publishersWithChangedPref, null, 2)); //fs.writeFileSync("./content/publishersWithChangedPref.json", JSON.stringify(publishersWithChangedPref, null, 2));
fs.writeFileSync("./content/missingPublishers.json", JSON.stringify(missingPublishers, null, 2)); //fs.writeFileSync("./content/missingPublishers.json", JSON.stringify(missingPublishers, null, 2));
console.log("###############################################"); console.log("###############################################");
console.log(" DONE CREATING SCHEDULE FOR " + monthInfo.monthName + " " + monthInfo.year); console.log(" DONE CREATING SCHEDULE FOR " + monthInfo.monthName + " " + monthInfo.year);