v3.0.0
Breaking changes
[admin]
Changing all the Admin components and working with Tailwind CSS instead of @paljs/ui so you can now use our component with any CSS framework.
update import path for PrismaTaple component to reduce the size of the pages
Old code will still work
import React from 'react';
import { useRouter } from 'next/router';
-import { PrismaTable } from '@paljs/admin';
+import { PrismaTable } from '@paljs/admin/PrismaTable';
-import 'react-quill/dist/quill.snow.css';
-import 'react-datepicker/dist/react-datepicker.css';
+import '@paljs/admin/style.css';
const Table: React.FC<{ model: string }> = ({ model }) => {
const router = useRouter();
return <PrismaTable model={model} push={router.push} query={router.query} />;
};
export default Table;update import path for Settings component to reduce the size of the pages
import React from 'react';
-import { Settings } from '@paljs/admin';
+import { Settings } from '@paljs/admin/Settings';
+import '@paljs/admin/style.css';
export default function SettingsPage() {
// Settings component not have any props
return <Settings />;
}We do not provide a quill editor anymore the default field if the editor option is true will be string until you provide a custom Editor component
New Features
[CLI]
NextJS Template
- add a new option to select the UI framework
- Use multi schema template option
- Do you need to use Git
➜ ~ pal c
.______ ___ __ __ _______.
| _ \ / \ | | | | / |
| |_) | / ^ \ | | | | | (----`
| ___/ / /_\ \ | | .--. | | \ \
| | / _____ \ | `----.| `--' | .----) |
| _| /__/ \__\ |_______| \______/ |_______/
✔ Please select your start example · full-stack-nextjs
+? Please select your start framework …
❯ Material UI
Material UI + PrismaAdmin UI
Tailwind CSS
Tailwind CSS + PrismaAdmin UI
+? Use multi schema template …
❯ no
yes
+? Do you need to use Git …
❯ yes
no