Add curv to backend schema
This commit is contained in:
2
app/api/db/migrations/20211129205924_curv/migration.sql
Normal file
2
app/api/db/migrations/20211129205924_curv/migration.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "CadPackage" ADD VALUE 'curv';
|
||||
@@ -38,7 +38,7 @@ enum CadPackage {
|
||||
openscad
|
||||
cadquery
|
||||
jscad
|
||||
// curv // TODO uncomment when ready for users to save curv projects
|
||||
curv
|
||||
}
|
||||
|
||||
model Project {
|
||||
|
||||
@@ -19,6 +19,7 @@ export const schema = gql`
|
||||
childForks: [Project]!
|
||||
}
|
||||
|
||||
# should match enum in api/db/schema.prisma
|
||||
enum CadPackage {
|
||||
openscad
|
||||
cadquery
|
||||
|
||||
@@ -348,6 +348,10 @@ function ChooseYourCharacter() {
|
||||
cadPackage: 'jscad',
|
||||
desc: 'A JavaScript Code-CAD library that will feel familiar to web developers, based on the same tech as OpenSCAD.',
|
||||
},
|
||||
// { // TODO add curv to this list.
|
||||
// cadPackage: 'curv',
|
||||
// desc: 'A language for creating 3D art',
|
||||
// }
|
||||
].map(
|
||||
({
|
||||
cadPackage,
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface Project {
|
||||
code: string
|
||||
mainImage: string
|
||||
createdAt: string
|
||||
cadPackage: 'openscad' | 'cadquery' | 'curv'
|
||||
cadPackage: 'openscad' | 'cadquery' | 'jscad' | 'curv'
|
||||
user: {
|
||||
id: string
|
||||
userName: string
|
||||
|
||||
@@ -95,13 +95,13 @@ const menuOptions: {
|
||||
dotClasses: 'bg-yellow-300',
|
||||
ideType: 'jscad',
|
||||
},
|
||||
// { // TODO uncomment when ready for users to save curv projects
|
||||
// name: 'Curv',
|
||||
// sub: 'beta',
|
||||
// bgClasses: 'bg-ch-blue-700',
|
||||
// dotClasses: 'bg-blue-800',
|
||||
// ideType: 'curv',
|
||||
// },
|
||||
{
|
||||
name: 'Curv',
|
||||
sub: 'alpha ',
|
||||
bgClasses: 'bg-ch-blue-700',
|
||||
dotClasses: 'bg-blue-800',
|
||||
ideType: 'curv',
|
||||
},
|
||||
]
|
||||
|
||||
const NavPlusButton: React.FC = () => {
|
||||
|
||||
Reference in New Issue
Block a user