Merge commit '1e1c4888d870984e9766ed99ce15f1fd4b2cc1b5'

This commit is contained in:
Dobromir Popov
2024-04-02 01:45:02 +03:00
6 changed files with 21 additions and 20 deletions

View File

@ -1,7 +1,7 @@
PORT=
HOST=sofia.mwhitnessing.com
HOST=sofia.mwitnessing.com
PROTOCOL=http # we're behind a reverse proxy. SSL is handled by the proxy
NEXT_PUBLIC_PUBLIC_URL= https://sofia.mwhitnessing.com
NEXT_PUBLIC_PUBLIC_URL= https://sofia.mwitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638

View File

@ -282,7 +282,7 @@ export default function PublisherForm({ item, me }) {
</select>
</div>
<a href="https://t.me/mwhitnessing_bot" className="inline-flex items-center ml-4" target="_blank">
<a href="https://t.me/mwHitnessing_bot" className="inline-flex items-center ml-4" target="_blank">
<img src="/content/icons/telegram-svgrepo-com.svg" alt="Телеграм" width="32" height="32" className="align-middle" />
<span className="align-middle">Телеграм</span>
</a>

View File

@ -1,6 +1,6 @@
{
"name": "pwwa",
"version": "1.1.1",
"version": "1.1.2",
"private": true,
"description": "JW PW Web App",
"repository": "http://git.d-popov.com/popov/next-cart-app.git",

View File

@ -594,7 +594,7 @@ export async function filterPublishers(selectFields, searchText, filterDate, fet
// This includes availabilities from previous assignments but not with preference
{
dayOfMonth: null, // includes monthly and weekly repeats
dayofweek: dayOfWeekEnum,
dayofweek: dayOfWeekEnum
// ToDo: and weekOfMonth
//startTime: { gte: currentMonthStart },
}

View File

@ -24,7 +24,7 @@ const ContactsPage = () => {
</div>
</div > */
}
{/* <a href="https://t.me/mwhitnessing_bot" className="inline-flex items-center ml-4" target="_blank">
{/* <a href="https://t.me/mwHitnessing_bot" className="inline-flex items-center ml-4" target="_blank">
<img src="styles/icons/telegram-svgrepo-com.svg" alt="Телеграм" width="32" height="32" className="align-middle" />
<span className="align-middle">Телеграм</span>
</a> */}

View File

@ -106,20 +106,21 @@ model Publisher {
userId String? @unique
user User? @relation(fields: [userId], references: [id])
role UserRole @default(USER)
desiredShiftsPerMonth Int @default(4)
isMale Boolean @default(true)
isNameForeign Boolean @default(false)
familyHeadId String? // Optional familyHeadId for each family member
familyHead Publisher? @relation("FamilyMember", fields: [familyHeadId], references: [id])
familyMembers Publisher[] @relation("FamilyMember")
alwaysAsFamily Boolean? @default(false) //NEW v1.0.1 // New field to indicate if the publisher always wants to be assigned with the family
type PublisherType @default(Publisher)
town String?
comments String?
reports Report[]
Message Message[]
role UserRole @default(USER)
desiredShiftsPerMonth Int @default(4)
isMale Boolean @default(true)
isNameForeign Boolean @default(false)
isSubscribedToCoverMe Boolean @default(false)
isSubscribedToReminders Boolean @default(false)
familyHeadId String? // Optional familyHeadId for each family member
familyHead Publisher? @relation("FamilyMember", fields: [familyHeadId], references: [id])
familyMembers Publisher[] @relation("FamilyMember")
alwaysAsFamily Boolean? @default(false) //NEW v1.0.1 // New field to indicate if the publisher always wants to be assigned with the family
type PublisherType @default(Publisher)
town String?
comments String?
reports Report[]
Message Message[]
}
model Availability {