-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from spryker-community/Rollback-to-2aca897
Rollback to 2aca897
- Loading branch information
Showing
8 changed files
with
160 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,132 +1,136 @@ | ||
import type { Config } from '@keystatic/core'; | ||
import { config, fields, collection } from '@keystatic/core'; | ||
|
||
export default config({ | ||
const keystaticConfig: Config = { | ||
storage: { | ||
kind: 'github', | ||
repo: { | ||
owner: 'spryker-community', | ||
name: 'commercequest-website' | ||
} | ||
kind: 'cloud', | ||
}, | ||
cloud: { | ||
project: 'commercequest/cq-astro', | ||
}, | ||
ui: { | ||
brand: { | ||
name: 'CommerceQuest Admin', | ||
}, | ||
navigation: { | ||
Content: ['freelancers'] | ||
} | ||
}, | ||
collections: { | ||
freelancers: collection({ | ||
label: 'Freelancers', | ||
path: 'src/content/freelancers/*', | ||
slugField: 'firstName', | ||
format: 'yaml', | ||
slugField: 'slug', | ||
schema: { | ||
firstName: fields.text({ | ||
firstName: fields.text({ | ||
label: "First Name", | ||
validation: { length: { min: 1 } } | ||
}), | ||
lastName: fields.text({ | ||
lastName: fields.text({ | ||
label: "Last Name", | ||
validation: { length: { min: 1 } } | ||
}), | ||
photo: fields.text({ | ||
label: "Photo", | ||
slug: fields.text({ | ||
label: "Slug", | ||
validation: { length: { min: 1 } } | ||
}), | ||
headline: fields.text({ | ||
label: "Headline" | ||
photo: fields.image({ | ||
label: "Photo", | ||
directory: "src/images/freelancers", | ||
publicPath: "/src/images/freelancers", | ||
validation: { isRequired: true } | ||
}), | ||
headline: fields.text({ | ||
label: "Headline", | ||
}), | ||
availability: fields.text({ | ||
availability: fields.text({ | ||
label: "Availability", | ||
validation: { length: { min: 1 } } | ||
validation: { isRequired: true } | ||
}), | ||
location: fields.text({ | ||
location: fields.text({ | ||
label: "Location", | ||
validation: { length: { min: 1 } } | ||
validation: { isRequired: true, length: { min: 1 } } | ||
}), | ||
countryCode: fields.text({ | ||
countryCode: fields.text({ | ||
label: "Country Code", | ||
validation: { length: { min: 2, max: 2 } } | ||
}), | ||
language: fields.text({ | ||
language: fields.text({ | ||
label: "Languages", | ||
validation: { length: { min: 1 } } | ||
validation: { isRequired: true } | ||
}), | ||
shortPitch: fields.text({ | ||
shortPitch: fields.text({ | ||
label: "Short Pitch", | ||
multiline: true | ||
multiline: true, | ||
}), | ||
linkedIn: fields.url({ | ||
label: "LinkedIn URL", | ||
}), | ||
linkedIn: fields.url({ | ||
label: "LinkedIn URL" | ||
github: fields.url({ | ||
label: "GitHub URL", | ||
}), | ||
github: fields.url({ | ||
label: "GitHub URL" | ||
certifications: fields.multiselect({ | ||
label: "Certifications", | ||
options: [ | ||
{ label: "Backend Developer Certified", value: "Backend Developer" }, | ||
{ label: "Solution Architect Certified", value: "Solution Architect" } | ||
], | ||
}), | ||
sprykerCertifications: fields.text({ | ||
sprykerCertifications: fields.text({ | ||
label: "Spryker Certifications", | ||
multiline: true | ||
}), | ||
skills: fields.array( | ||
fields.select({ | ||
label: "Skill", | ||
options: [ | ||
{ label: "Frontend", value: "Frontend" }, | ||
{ label: "Back End", value: "Back End" }, | ||
{ label: "Architecture", value: "Architecture" }, | ||
{ label: "Project Management", value: "Project Management" }, | ||
{ label: "Fullstack", value: "Fullstack" }, | ||
{ label: "Team Lead", value: "Team Lead" }, | ||
{ label: "Tech Lead", value: "Tech Lead" } | ||
], | ||
defaultValue: "Back End" | ||
}), | ||
{ | ||
label: "Skills", | ||
itemLabel: props => props.value | ||
} | ||
), | ||
timezoneRange: fields.text({ | ||
label: "Timezone Range" | ||
}), | ||
yearStartedWebDev: fields.integer({ | ||
multiline: true, | ||
}), | ||
skills: fields.multiselect({ | ||
label: "Skills", | ||
options: [ | ||
{ label: "Frontend", value: "Frontend" }, | ||
{ label: "Back End", value: "Back End" }, | ||
{ label: "Architecture", value: "Architecture" }, | ||
{ label: "Project Management", value: "Project Management" }, | ||
{ label: "Fullstack", value: "Fullstack" }, | ||
{ label: "Team Lead", value: "Team Lead" }, | ||
{ label: "Tech Lead", value: "Tech Lead" } | ||
] | ||
}), | ||
timezoneRange: fields.text({ | ||
label: "Timezone Range", | ||
}), | ||
yearStartedWebDev: fields.integer({ | ||
label: "Year Started Web Development", | ||
validation: { min: 1980, max: 2050 } | ||
}), | ||
yearStartedSpryker: fields.integer({ | ||
yearStartedSpryker: fields.integer({ | ||
label: "Year Started with Spryker", | ||
validation: { min: 1980, max: 2050 } | ||
}), | ||
references: fields.text({ | ||
references: fields.text({ | ||
label: "References", | ||
multiline: true | ||
multiline: true, | ||
}), | ||
idealCustomer: fields.text({ | ||
idealCustomer: fields.text({ | ||
label: "Ideal Customer", | ||
multiline: true | ||
multiline: true, | ||
}), | ||
locationFlexibility: fields.text({ | ||
label: "Location Flexibility" | ||
locationFlexibility: fields.text({ | ||
label: "Location Flexibility", | ||
}), | ||
otherCertifications: fields.text({ | ||
label: "Other Certifications" | ||
otherCertifications: fields.text({ | ||
label: "Other Certifications", | ||
}), | ||
employmentType: fields.text({ | ||
label: "Employment Type" | ||
employmentType: fields.text({ | ||
label: "Employment Type", | ||
}), | ||
contact: fields.text({ | ||
contact: fields.text({ | ||
label: "Contact Email", | ||
validation: { length: { min: 1 } } | ||
}), | ||
forumProfile: fields.url({ | ||
label: "Forum Profile URL" | ||
forumProfile: fields.url({ | ||
label: "Forum Profile URL", | ||
}), | ||
isVisible: fields.checkbox({ | ||
isVisible: fields.checkbox({ | ||
label: "Is Visible", | ||
defaultValue: true | ||
}) | ||
} | ||
}) | ||
} | ||
}); | ||
defaultValue: true, | ||
}), | ||
}, | ||
}), | ||
}, | ||
}; | ||
|
||
export default keystaticConfig; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.