bennischober / bookingium Goto Github PK
View Code? Open in Web Editor NEWA web app for booking in the music industry
A web app for booking in the music industry
Look at DealMemoForm
Use default values for all non required fields? (e.g. empty strings)
e.g. in modelObject
change:
export const ODm = {
userid: { type: String, required: true },
created: { type: String, default: dayjs().format('YYYY-MM-DDTHH:mm:ssZ[Z]') },
edited: { type: String }
}
to
export const ODm = {
userid: { type: String, required: true, index: true },
created: { type: String, default: dayjs().format('YYYY-MM-DDTHH:mm:ssZ[Z]') },
edited: { type: String }
}
Code lines: (96-111)
// Note: For the put action new apis /[id]/index.ts will be needed!
const handleBand = async (data: {}) => {
console.log(data);
};
const handleVenue = async (data: {}) => {
console.log(data);
};
const handleLopro = async (data: {}) => {
console.log(data);
};
const handleHotel = async (data: {}) => {
console.log(data);
};
=> => # npm WARN EBADENGINE }
=> => # npm WARN EBADENGINE Unsupported engine {
=> => # npm WARN EBADENGINE package: '[email protected]',
=> => # npm WARN EBADENGINE required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },
=> => # npm WARN EBADENGINE current: { node: 'v18.6.0', npm: '8.13.2' }
=> => # npm WARN EBADENGINE }
app-nextjs-dev | warn - Attempted to load @next/swc-linux-x64-gnu, but it was not installed
app-nextjs-dev | warn - Attempted to load @next/swc-linux-x64-gnux32, but it was not installed
app-nextjs-dev | warn - Attempted to load @next/swc-linux-x64-musl, but it was not installed
They are caused by WSL (SWC compiler is missing?) and by the NodeJS version (this project is using v18.15.0, openid is using <16.x.x
First, think about if this is usefull!
Split first and lastname. Update all schemas and types, also update db (write function to automatically update db entries)
Also, if this is working, think about a way to easily save people in a way to create a "database" of persons (e.g. export/import from outlook)
If it is update, change BandList to use genre!
Addition to #182
by now it only calls a PUT req which cant work, because the hotelid doesnt exist in deal-memo document
This as a hook
export function validateSession(router: NextRouter, session: SessionProps["session"], query: { from: string }) {
if ((session && session.status === "unathorized") || !session) {
router.push({
pathname: "/auth/login",
query
});
}
}
Inspire by Spotify:
e.g. on DataGrid component
=> mongo models (and objects, interfaces) need to be updated
=> forms need to support add/edit multi person
NOTE: Might be fixed in Mantine v5! Also look at React 18 dependency clash #1201
=> maybe switch to yarn instead of npm?
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN peer react@">=16.8.0" from @emotion/[email protected]
npm WARN node_modules/@emotion/react
npm WARN @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN node_modules/@mantine/ssr
npm WARN 1 more (@mantine/styles)
npm WARN 29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN @radix-ui/react-primitive@"0.1.4" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN @radix-ui/react-primitive@"0.1.4" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN peer react@">=16.8.0" from @emotion/[email protected]
npm WARN node_modules/@emotion/react
npm WARN @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN node_modules/@mantine/ssr
npm WARN 1 more (@mantine/styles)
npm WARN 29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref
npm WARN @radix-ui/react-use-callback-ref@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref
npm WARN @radix-ui/react-use-callback-ref@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN peer react@">=16.8.0" from @emotion/[email protected]
npm WARN node_modules/@emotion/react
npm WARN @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN node_modules/@mantine/ssr
npm WARN 1 more (@mantine/styles)
npm WARN 29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-direction
npm WARN @radix-ui/react-use-direction@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-direction
npm WARN @radix-ui/react-use-direction@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN peer react@">=16.8.0" from @emotion/[email protected]
npm WARN node_modules/@emotion/react
npm WARN @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN node_modules/@mantine/ssr
npm WARN 1 more (@mantine/styles)
npm WARN 29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect
npm WARN @radix-ui/react-use-layout-effect@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect
npm WARN @radix-ui/react-use-layout-effect@"0.1.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN peer react@">=16.8.0" from @emotion/[email protected]
npm WARN node_modules/@emotion/react
npm WARN @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN node_modules/@mantine/ssr
npm WARN 1 more (@mantine/styles)
npm WARN 29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot
npm WARN @radix-ui/react-slot@"0.1.2" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot
npm WARN @radix-ui/react-slot@"0.1.2" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },
npm WARN EBADENGINE current: { node: 'v18.5.0', npm: '8.13.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },
npm WARN EBADENGINE current: { node: 'v18.5.0', npm: '8.13.2' }
npm WARN EBADENGINE }
To use this, check the nested feature in forms!
Also update "child" dialog:
state ?? false
Form.isDirty()
Deal data
tabAlso add:
e.g. an error like "mongoose model X is not registered" wont be shown in browser console. Log context and error and save to file on server.
might need to submit as "bug" to mantine repo
Upgrade from "@tanstack/react-table": "^8.1.1" to "@tanstack/react-table": "^8.1.3" broke data grid component => fix
Has the same impact like #60
=>try to run the code without const bandForm = useForm<BandFormValues>()
and look if it works correct
useAuth
is needed on every pageMake everything editable!
e.g. a venue has a "Technischer Leiter" -> mapped to person, also "Sound Person" -> mapped to person
links.ts
to add more meta data (e.g. header text / slug) and rework to use this data everywhere (=> could also be a new ticket!)Use AddressInput, CompanyInput, ContactInput and ContactPersonInput in all forms to avoid duplicates
=> also check, if model interfaces can be used. Look at this (nested types in form)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.