Merge pull request #25 from web3privacy/dw/fixes

Improvements v3
This commit is contained in:
DanielKlein 2024-09-19 18:20:35 +02:00 committed by GitHub
commit 476e392c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -82,7 +82,10 @@ watch([scrollY, top, y], (newValues, oldValues) => {
items-center items-center
gap-16px gap-16px
overflow-x-auto overflow-x-auto
pb="24px md:0" pb-274px
mb--250px
md="overflow-x-visible pb-0 mb-0"
class="no-scrollbar"
> >
<CategorySelectBox <CategorySelectBox
v-model="selectedCategoryId" v-model="selectedCategoryId"

View File

@ -59,6 +59,9 @@ export default defineNuxtConfig({
appId: 0, appId: 0,
privateKey: '', privateKey: '',
installationId: 0, installationId: 0,
owner: 'web3privacy',
baseBranch: 'main',
repo: 'test-repo',
}, },
}, },
}, },

View File

@ -5,7 +5,7 @@ import type { Project } from '~/types'
export default defineEventHandler(async (event) => { export default defineEventHandler(async (event) => {
const body = await readBody<{ project: Project, image?: { type: string, data: string } }>(event) const body = await readBody<{ project: Project, image?: { type: string, data: string } }>(event)
const yamlProject = yaml.stringify(body.project) const yamlProject = yaml.stringify(body.project)
const { appId, privateKey, installationId } = useAppConfig().github const { appId, privateKey, installationId, baseBranch, owner, repo } = useRuntimeConfig().app.github
const id = body.project.id || body.project.name.toLowerCase().replace(/\s+/g, '-') const id = body.project.id || body.project.name.toLowerCase().replace(/\s+/g, '-')
@ -16,9 +16,6 @@ export default defineEventHandler(async (event) => {
await app.octokit.rest.apps.getAuthenticated() await app.octokit.rest.apps.getAuthenticated()
const octokit = await app.getInstallationOctokit(installationId) const octokit = await app.getInstallationOctokit(installationId)
const owner = 'develit-io'
const repo = 'test-repo'
const baseBranch = 'main'
const newBranchName = `${id}-project-update-${Date.now()}` const newBranchName = `${id}-project-update-${Date.now()}`
const commitMessage = `${body.project.id ? `Updating the project: ${body.project.name}` : `Initiating the creation of project: ${body.project.name}`}` const commitMessage = `${body.project.id ? `Updating the project: ${body.project.name}` : `Initiating the creation of project: ${body.project.name}`}`