diff --git a/components/Project/Create/Categories/BasicInfo.vue b/components/Project/Create/Categories/BasicInfo.vue
index 2ea3d8c..be9a262 100644
--- a/components/Project/Create/Categories/BasicInfo.vue
+++ b/components/Project/Create/Categories/BasicInfo.vue
@@ -68,35 +68,33 @@ defineExpose({
-
-
-
-
-
+
+
+
(null)
function useProjectName() {
const isEditing = ref(false)
// const name = ref('Untitled')
- const { value: name, errorMessage: nameError } = useField('name', yup.string().required().notOneOf(['Untitled', 'Undefined']))
+ const { value: name, errorMessage: nameError } = useField('name', yup.string().required().notOneOf(['Untitled', 'Undefined', 'Create', 'create']))
name.value = project.value?.name || 'Untitled'
function toggleEdit() {
@@ -143,6 +143,7 @@ function jumpTo(tab: string) {
selectedTab.value = tab
}
+const transitionDone = ref(false)
@@ -306,26 +307,44 @@ function jumpTo(tab: string) {
mb-170px
lg="mb-55px"
>
-
-
+
+
+
+
+
+
+
+
+
diff --git a/pages/project/create.vue b/pages/project/create.vue
index 58ecd26..15bc198 100644
--- a/pages/project/create.vue
+++ b/pages/project/create.vue
@@ -18,15 +18,15 @@ const { saveProject, publishProject, saveProjectImage } = useProject()
const { project, isPublishing } = storeToRefs(useProject())
const tabs = reactive([
- { label: 'Basic Info', value: 'basic_info', component: ProjectCreateCategoriesBasicInfo },
- { label: 'Assets', value: 'assets', component: ProjectCreateCategoriesAssets },
- { label: 'Links', value: 'links', component: ProjectCreateCategoriesLinks },
- { label: 'Technology', value: 'technology', component: ProjectCreateCategoriesTechnology },
- { label: 'Privacy', value: 'privacy', component: ProjectCreateCategoriesPrivacy },
- { label: 'Security', value: 'security', component: ProjectCreateCategoriesSecurity },
- { label: 'Team', value: 'team', component: ProjectCreateCategoriesTeam },
- { label: 'Funding', value: 'funding', component: ProjectCreateCategoriesFunding },
- { label: 'History', value: 'history', component: ProjectCreateCategoriesHistory },
+ { label: 'Basic Info', value: 'basic_info', component: markRaw(ProjectCreateCategoriesBasicInfo) },
+ { label: 'Assets', value: 'assets', component: markRaw(ProjectCreateCategoriesAssets) },
+ { label: 'Links', value: 'links', component: markRaw(ProjectCreateCategoriesLinks) },
+ { label: 'Technology', value: 'technology', component: markRaw(ProjectCreateCategoriesTechnology) },
+ { label: 'Privacy', value: 'privacy', component: markRaw(ProjectCreateCategoriesPrivacy) },
+ { label: 'Security', value: 'security', component: markRaw(ProjectCreateCategoriesSecurity) },
+ { label: 'Team', value: 'team', component: markRaw(ProjectCreateCategoriesTeam) },
+ { label: 'Funding', value: 'funding', component: markRaw(ProjectCreateCategoriesFunding) },
+ { label: 'History', value: 'history', component: markRaw(ProjectCreateCategoriesHistory) },
])
const selectedTab = ref(tabs[0].value)
@@ -60,7 +60,7 @@ const projectNameInput = ref(null)
function useProjectName() {
const isEditing = ref(false)
// const name = ref('Untitled')
- const { value: name, errorMessage: nameError } = useField('name', yup.string().required().notOneOf(['Untitled', 'Undefined']))
+ const { value: name, errorMessage: nameError } = useField('name', yup.string().required().notOneOf(['Untitled', 'Undefined', 'Create', 'create']))
name.value = project.value?.name || 'Untitled'
function toggleEdit() {
@@ -127,6 +127,7 @@ function jumpTo(tab: string) {
selectedTab.value = tab
}
+const transitionDone = ref(false)
@@ -196,6 +197,7 @@ function jumpTo(tab: string) {
flex
items-center
gap-12px
+ relative
>
+ Invalid project name
@@ -266,16 +278,6 @@ function jumpTo(tab: string) {
>
{{ tab.label }}
- Invalid project name
@@ -290,24 +292,45 @@ function jumpTo(tab: string) {
mb-170px
lg="mb-55px"
>
-
-
+
+
+
+
+
+
+
+
+