Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: gradually migrate nuxt 3 #94

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6cd0e5f
feat: gradually migrate nuxt 3
preschian Jul 6, 2023
868593a
chore: add wrangler
preschian Jul 6, 2023
b02c312
chore: add node version
preschian Jul 6, 2023
4bc6118
chore: remove wrangler
preschian Jul 6, 2023
59047f7
chore: test
preschian Jul 6, 2023
756ff89
chore: mirror actions
preschian Jul 6, 2023
d621862
chore: add github token
preschian Jul 6, 2023
88037e0
chore: mirror token
preschian Jul 6, 2023
a246297
chore: change mirror actions
preschian Jul 6, 2023
96652b2
chore: test with bare commands
preschian Jul 6, 2023
835721f
chore: change with
preschian Jul 6, 2023
fa0caad
chore: direct push
preschian Jul 6, 2023
25272bf
chore: try another actions
preschian Jul 6, 2023
ddd6442
chore: remove mirror actions
preschian Jul 6, 2023
3d08ae8
chore: add proxy workers
preschian Jul 6, 2023
1b6b9e4
chore: add some contents
preschian Jul 6, 2023
de5eedb
fix: gallery detail path
preschian Jul 6, 2023
cede886
fix: use nfts id
preschian Jul 6, 2023
cb80461
fix: wrong query
preschian Jul 6, 2023
48c994f
chore: rename
preschian Jul 6, 2023
084e4b6
feat: adjust og:image
preschian Jul 6, 2023
c1a0efd
fix: dynamic address
preschian Jul 7, 2023
3de9dfa
feat: add basic layouts
preschian Jul 7, 2023
ef43c23
fix: logo url
preschian Jul 7, 2023
69c26c0
refactor: gallery detail url
preschian Jul 13, 2023
92cf3dd
feat: add nuxt content
preschian Jul 13, 2023
a66d1ff
feat: add google fonts
preschian Jul 13, 2023
f890bb0
feat: add blog
preschian Jul 13, 2023
904e246
feat: responsive css
preschian Jul 14, 2023
4dab5cb
feat: adjust desktop version
preschian Jul 14, 2023
8d904e2
feat: deploy nuxt3 with wrangler
preschian Jul 14, 2023
f1f43e6
chore: delete husky temporary
preschian Jul 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ yarn.lock
data_ksmcc2/
suite/

package-lock.json
# local env files
.env.local
.env.*.local
Expand Down
23 changes: 23 additions & 0 deletions apps/marketplace/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Nuxt dev/build outputs
.output
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
1 change: 1 addition & 0 deletions apps/marketplace/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
2 changes: 2 additions & 0 deletions apps/marketplace/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
63 changes: 63 additions & 0 deletions apps/marketplace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
19 changes: 19 additions & 0 deletions apps/marketplace/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<div>
<!-- Markup shared across all pages, ex: NavBar -->
<NuxtPage />
</div>
</template>

<script setup>
const route = useRoute()

useHead({
link: [
{
rel: 'canonical',
href: 'https://preschian.xyz' + route.path,
},
],
})
</script>
21 changes: 21 additions & 0 deletions apps/marketplace/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
htmlAttrs: {
lang: 'en',
},
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: 'KodaDot - Go To Polkadot NFT marketplace',
meta: [
{
name: 'description',
content: 'Multi-chain NFT marketplace across Polkadot parachains',
},
],
},
},
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss'],
})
Loading
Loading