From 241776eaf196610f540901a8daa907bd0b611f4a Mon Sep 17 00:00:00 2001 From: DomWane Date: Thu, 12 Sep 2024 18:03:06 +0200 Subject: [PATCH 1/5] feat: form & github api --- app.config.ts | 35 ++ components/Button.vue | 9 +- components/CategorySelectBox.vue | 4 +- components/EditButton.vue | 2 +- components/Navigation.vue | 7 +- .../Project/Create/Categories/Assets.vue | 181 +++++++ .../Project/Create/Categories/BasicInfo.vue | 130 +++++ .../Project/Create/Categories/Funding.vue | 116 +++++ .../Project/Create/Categories/History.vue | 166 +++++++ .../Project/Create/Categories/Links.vue | 160 +++++++ .../Project/Create/Categories/Privacy.vue | 104 ++++ .../Project/Create/Categories/Security.vue | 199 ++++++++ components/Project/Create/Categories/Team.vue | 127 +++++ .../Project/Create/Categories/Technology.vue | 107 +++++ .../Create/Components/CategoryDivider.vue | 38 ++ .../Project/Create/Components/DatePicker.vue | 119 +++++ .../Project/Create/Components/Input.vue | 81 ++++ components/Project/Create/Components/Item.vue | 33 ++ .../Project/Create/Components/ItemAdd.vue | 31 ++ .../Project/Create/Components/Radio.vue | 61 +++ .../Project/Create/Components/Select.vue | 107 +++++ .../Project/Create/Components/SelectChips.vue | 213 +++++++++ .../Project/Create/Components/Toggle.vue | 81 ++++ components/Project/ProjectHeading.vue | 2 - components/Project/ProjectNavigation.vue | 13 +- components/SelectBox.vue | 37 +- composables/useData.ts | 90 ++++ layouts/create.vue | 6 + nuxt.config.ts | 1 + package.json | 6 +- pages/project/[id]/edit.vue | 333 +++++++++++++ pages/project/{[id].vue => [id]/index.vue} | 0 pages/project/create.vue | 319 ++++++++++++ plugins/githubApi.ts | 16 + pnpm-lock.yaml | 452 +++++++++++++++--- server/api/data.post.ts | 127 +++++ server/assets/data.json | 44 +- types/category.ts | 1 + types/components.ts | 2 +- types/member.ts | 2 +- types/project.ts | 67 +-- types/team.ts | 19 + unocss.config.ts | 1 + 43 files changed, 3521 insertions(+), 128 deletions(-) create mode 100644 app.config.ts create mode 100644 components/Project/Create/Categories/Assets.vue create mode 100644 components/Project/Create/Categories/BasicInfo.vue create mode 100644 components/Project/Create/Categories/Funding.vue create mode 100644 components/Project/Create/Categories/History.vue create mode 100644 components/Project/Create/Categories/Links.vue create mode 100644 components/Project/Create/Categories/Privacy.vue create mode 100644 components/Project/Create/Categories/Security.vue create mode 100644 components/Project/Create/Categories/Team.vue create mode 100644 components/Project/Create/Categories/Technology.vue create mode 100644 components/Project/Create/Components/CategoryDivider.vue create mode 100644 components/Project/Create/Components/DatePicker.vue create mode 100644 components/Project/Create/Components/Input.vue create mode 100644 components/Project/Create/Components/Item.vue create mode 100644 components/Project/Create/Components/ItemAdd.vue create mode 100644 components/Project/Create/Components/Radio.vue create mode 100644 components/Project/Create/Components/Select.vue create mode 100644 components/Project/Create/Components/SelectChips.vue create mode 100644 components/Project/Create/Components/Toggle.vue create mode 100644 layouts/create.vue create mode 100644 pages/project/[id]/edit.vue rename pages/project/{[id].vue => [id]/index.vue} (100%) create mode 100644 pages/project/create.vue create mode 100644 plugins/githubApi.ts create mode 100644 server/api/data.post.ts create mode 100644 types/team.ts diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000..4072b6c --- /dev/null +++ b/app.config.ts @@ -0,0 +1,35 @@ +export default defineAppConfig({ + github: { + appId: 995628, + privateKey: ` +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAwkAjU2VY6eUsWm9VrbYyEGZRtY5aSBjWv2O2LvE71F5qOb1E +BcXAOVLFP3wU3+y4Nu9Qz9eKumALmKKokzd6KGrVyiIvCOjA8YtzKpHKa24a/TqH +ek6z1OvyAH+Zk+PoRGY5KU4YD17Hb81aysO6umI7Hn7NKzuDLHqmE2SmrzXeT7iQ +n0+yfwvJPeT+LyCxF42RgPSAzEWhf1Ng/v1neMyr6dfKPKD93KSJJ3rJd1rVZNlY +vMAfzR8kmfFEoQqBjtyW+OdTURSTQtjm+wsD+qGT4560mU22ZIY1yzNugsiSKdIG +bZR7uLC6Ljg7o0TH+HU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9mQXonGCvg +UemQjpUCgYAvooI/aHrWyFZTigM63W5py4e6YMRvrvZbCBu4qougpJ4TQDnG2tMf +qW6A1gT6hIC54kGOn6WuO20CVVTZpImEwUYQchsvhsKVAxjp3dq8fw1KIuCPrZAs +u1mh4iVpLYIyyyeazf2RhFXBNU49DIS8xYndO970Q9pHZhz629f+qA== +-----END RSA PRIVATE KEY----- +`, + installationId: 54778330, + }, +}) diff --git a/components/Button.vue b/components/Button.vue index 3e1a5de..7301aa7 100644 --- a/components/Button.vue +++ b/components/Button.vue @@ -1,6 +1,7 @@ @@ -8,14 +9,14 @@ defineProps<{