mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 17:51:17 +11:00
format
This commit is contained in:
parent
566edc1c36
commit
76224933d0
3 changed files with 31 additions and 24 deletions
36
.github/workflows/deploy-api.yml
vendored
36
.github/workflows/deploy-api.yml
vendored
|
|
@ -15,25 +15,25 @@ jobs:
|
||||||
ci:
|
ci:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 6
|
fetch-depth: 6
|
||||||
- uses: pnpm/action-setup@v2.4.0
|
- uses: pnpm/action-setup@v2.4.0
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: 'pnpm'
|
cache: "pnpm"
|
||||||
|
|
||||||
- run: pnpm install --no-frozen-lockfile
|
- run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm api:build
|
run: pnpm api:build
|
||||||
env:
|
env:
|
||||||
NITRO_PRESET: cloudflare
|
NITRO_PRESET: cloudflare
|
||||||
|
|
||||||
- name: Publish to Cloudflare
|
- name: Publish to Cloudflare
|
||||||
uses: cloudflare/wrangler-action@3
|
uses: cloudflare/wrangler-action@3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,11 @@ async function handleSubmit(type?: string) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button v-for="item in feedbackOptions" :key="item.value" class="btn" @click="handleSubmit(item.value)">
|
<button
|
||||||
|
v-for="item in feedbackOptions"
|
||||||
|
:key="item.value"
|
||||||
|
class="btn"
|
||||||
|
@click="handleSubmit(item.value)">
|
||||||
<span>{{ item.label }}</span>
|
<span>{{ item.label }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -86,7 +90,10 @@ async function handleSubmit(type?: string) {
|
||||||
<p class="desc">The wiki is...</p>
|
<p class="desc">The wiki is...</p>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span>
|
<span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span>
|
||||||
<button style="margin-left: 0.5rem" class="btn" @click="feedback.feedbackType = undefined">
|
<button
|
||||||
|
style="margin-left: 0.5rem"
|
||||||
|
class="btn"
|
||||||
|
@click="feedback.feedbackType = undefined">
|
||||||
<span class="i-carbon-close-large">close</span>
|
<span class="i-carbon-close-large">close</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -106,7 +113,7 @@ async function handleSubmit(type?: string) {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.step>*+* {
|
.step > * + * {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,5 @@ export default {
|
||||||
"sidebar-nav-after": () => h(Sidebar),
|
"sidebar-nav-after": () => h(Sidebar),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
enhanceApp({ app, router, siteData }) { },
|
enhanceApp({ app, router, siteData }) {},
|
||||||
} satisfies Theme;
|
} satisfies Theme;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue