Initial work to support curv #578

Merged
lf94 merged 11 commits from integration-curv into main 2021-11-30 05:24:24 +01:00
6 changed files with 16 additions and 9 deletions
Showing only changes of commit e8ae6193e4 - Show all commits

View File

@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "CadPackage" ADD VALUE 'curv';

View File

@@ -38,7 +38,7 @@ enum CadPackage {
openscad openscad
cadquery cadquery
jscad jscad
// curv // TODO uncomment when ready for users to save curv projects curv
} }
model Project { model Project {

View File

@@ -19,6 +19,7 @@ export const schema = gql`
childForks: [Project]! childForks: [Project]!
} }
# should match enum in api/db/schema.prisma
enum CadPackage { enum CadPackage {
openscad openscad
cadquery cadquery

View File

@@ -348,6 +348,10 @@ function ChooseYourCharacter() {
cadPackage: 'jscad', cadPackage: 'jscad',
desc: 'A JavaScript Code-CAD library that will feel familiar to web developers, based on the same tech as OpenSCAD.', 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( ].map(
({ ({
cadPackage, cadPackage,

View File

@@ -35,7 +35,7 @@ export interface Project {
code: string code: string
mainImage: string mainImage: string
createdAt: string createdAt: string
cadPackage: 'openscad' | 'cadquery' | 'curv' cadPackage: 'openscad' | 'cadquery' | 'jscad' | 'curv'
user: { user: {
id: string id: string
userName: string userName: string

View File

@@ -95,13 +95,13 @@ const menuOptions: {
dotClasses: 'bg-yellow-300', dotClasses: 'bg-yellow-300',
ideType: 'jscad', ideType: 'jscad',
}, },
// { // TODO uncomment when ready for users to save curv projects {
// name: 'Curv', name: 'Curv',
// sub: 'beta', sub: 'alpha ',
// bgClasses: 'bg-ch-blue-700', bgClasses: 'bg-ch-blue-700',
// dotClasses: 'bg-blue-800', dotClasses: 'bg-blue-800',
// ideType: 'curv', ideType: 'curv',
// }, },
] ]
const NavPlusButton: React.FC = () => { const NavPlusButton: React.FC = () => {