-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Moved options key to root of nuxt.config
chore: Bumped versions of (@nuxt/kit, bootstrap-icons) feat: Added documentation inside of module feat: Injected global module types refactor: Converted workspace into monorepo
- Loading branch information
1 parent
e9fec81
commit 27e1035
Showing
1,990 changed files
with
5,647 additions
and
32,290 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
dist | ||
docs | ||
node_modules | ||
playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Nuxt dev/build outputs | ||
.output | ||
.data | ||
.nuxt | ||
.nitro | ||
.cache | ||
dist | ||
|
||
# Node dependencies | ||
node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Misc | ||
.DS_Store | ||
.fleet | ||
.idea | ||
|
||
# Local env files | ||
.env | ||
.env.* | ||
!.env.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
plugins: ["prettier-plugin-tailwindcss"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# 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 | ||
|
||
# bun | ||
bun install | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on `http://localhost:3000`: | ||
|
||
```bash | ||
# npm | ||
npm run dev | ||
|
||
# pnpm | ||
pnpm run dev | ||
|
||
# yarn | ||
yarn dev | ||
|
||
# bun | ||
bun run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
# npm | ||
npm run build | ||
|
||
# pnpm | ||
pnpm run build | ||
|
||
# yarn | ||
yarn build | ||
|
||
# bun | ||
bun run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
# npm | ||
npm run preview | ||
|
||
# pnpm | ||
pnpm run preview | ||
|
||
# yarn | ||
yarn preview | ||
|
||
# bun | ||
bun run preview | ||
``` | ||
|
||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</template> | ||
|
||
<style lang="scss"> | ||
body { | ||
@apply bg-primary-100 selection:bg-primary-200; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<script lang="ts" setup> | ||
import iconList from "#build/nuxt-bootstrap-icons.json"; | ||
const { data: icons, refresh } = useAsyncData(async () => generateIcons()); | ||
const { copy } = useClipboard({ legacy: true }); | ||
useIntervalFn(refresh, 5000); | ||
async function copyToClipboard(text: string) { | ||
await copy(text); | ||
push.success("Copied!"); | ||
} | ||
function generateIcons() { | ||
const generatedIcons: string[] = []; | ||
for (let index = 0; index < 4; index++) { | ||
const icon = `${iconList[Math.floor(Math.random() * iconList.length)]}`; | ||
// Prevent duplicate icons | ||
if (generatedIcons.includes(icon)) { | ||
index--; | ||
continue; | ||
} | ||
generatedIcons.push(icon); | ||
} | ||
return generatedIcons as BootstrapIcons[]; | ||
} | ||
</script> | ||
|
||
<template> | ||
<header | ||
class="mx-auto grid h-screen w-[90%] select-none place-content-center gap-y-20 lg:w-3/4" | ||
> | ||
<h1 | ||
class="bg-gradient-to-r from-primary-400 via-primary-500 to-primary-400 bg-clip-text text-center font-serif text-5xl text-transparent lg:text-7xl" | ||
> | ||
Bootstrap Icons meets Nuxt | ||
</h1> | ||
|
||
<!-- Icon grid --> | ||
<div | ||
class="will-change-content grid grid-cols-2 place-items-center gap-4 lg:grid-cols-4 lg:gap-x-4" | ||
> | ||
<div | ||
class="rounded-lg bg-primary-300 p-10 lg:p-20" | ||
v-for="(icon, index) of icons" | ||
:key="index" | ||
> | ||
<BootstrapIcon class="text-5xl" :name="icon" /> | ||
</div> | ||
</div> | ||
|
||
<!-- Try now --> | ||
<div class="flex flex-col justify-between gap-y-4 lg:flex-row"> | ||
<button | ||
class="flex w-full items-center justify-center gap-x-2 rounded-lg bg-primary-300 py-3 text-sm text-primary-900 lg:w-3/4 lg:gap-x-4" | ||
@click="copyToClipboard(($event.target as HTMLElement).innerText)" | ||
> | ||
<BootstrapIcon class="text-xl" name="code-slash" /> | ||
<code>pnpm add -D nuxt-bootstrap-icons</code> | ||
</button> | ||
|
||
<NuxtLink | ||
class="flex w-full items-center justify-center gap-x-2 rounded-full border border-primary-500 p-3 text-primary-500 transition hover:bg-primary-500 hover:text-primary-100 lg:w-[200px] lg:justify-around lg:gap-x-0" | ||
to="/release-notes" | ||
>Release Notes <BootstrapIcon class="text-xl" name="arrow-right" | ||
/></NuxtLink> | ||
</div> | ||
</header> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts" setup> | ||
defineProps<{ title: string; description: string }>(); | ||
</script> | ||
|
||
<template> | ||
<div class="w-full bg-primary-100"> | ||
<div class="relative mx-auto h-screen w-[90%] py-20"> | ||
<h1 class="text-5xl font-extrabold"> | ||
{{ title }} · nuxt-bootstrap-icons | ||
</h1> | ||
<p class="font-sans text-3xl">{{ description }}</p> | ||
|
||
<div | ||
class="absolute bottom-20 right-10 flex h-[200px] w-[200px] items-center justify-center rounded-full" | ||
style=" | ||
background: linear-gradient( | ||
315deg, | ||
rgba(105, 112, 64, 1), | ||
rgba(135, 142, 84, 0.6) | ||
); | ||
" | ||
> | ||
<!-- <BootstrapIcon icon-name="bootstrap" /> --> | ||
<!-- <PhosphorIconPhosphorLogo size="100" /> --> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export default defineNuxtConfig({ | ||
bootstrapIcons: { expose: true, showList: true }, | ||
content: { | ||
defaultLocale: "en-US", | ||
highlight: { | ||
theme: "one-dark-pro", | ||
preload: ["bash", "ts"], | ||
}, | ||
}, | ||
css: ["notivue/animations.css", "notivue/notifications.css"], | ||
devtools: { enabled: true }, | ||
googleFonts: { | ||
families: { | ||
"Courier Prime": true, | ||
Lora: [700], | ||
"Open Sans": [400, 500, 600], | ||
}, | ||
}, | ||
modules: [ | ||
"notivue/nuxt", | ||
"nuxt-bootstrap-icons", | ||
"nuxt-og-image", | ||
"@formkit/auto-animate/nuxt", | ||
"@nuxt/content", | ||
"@nuxtjs/google-fonts", | ||
"@nuxtjs/tailwindcss", | ||
"@vueuse/nuxt", | ||
], | ||
notivue: { | ||
position: "bottom-center", | ||
}, | ||
routeRules: { | ||
"/**": { isr: true }, | ||
}, | ||
site: { | ||
url: "https://nuxt-bootstrap-icons.vercel.app", | ||
}, | ||
tailwindcss: { | ||
exposeConfig: true, | ||
}, | ||
typescript: { | ||
shim: false, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "docs", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "nuxt build", | ||
"dev": "nuxt dev", | ||
"generate": "nuxt generate", | ||
"preview": "nuxt preview", | ||
"postinstall": "nuxt prepare" | ||
}, | ||
"devDependencies": { | ||
"@formkit/auto-animate": "^0.8.1", | ||
"@nuxt/content": "^2.10.0", | ||
"@nuxtjs/google-fonts": "^3.1.3", | ||
"@nuxtjs/tailwindcss": "^6.10.3", | ||
"@vueuse/core": "^10.7.1", | ||
"@vueuse/nuxt": "^10.7.1", | ||
"nuxt": "^3.9.0", | ||
"nuxt-bootstrap-icons": "workspace:^", | ||
"nuxt-og-image": "3.0.0-rc.13", | ||
"sass": "^1.69.6", | ||
"vue": "^3.4.3", | ||
"vue-router": "^4.2.5" | ||
}, | ||
"dependencies": { | ||
"@bobthered/tailwindcss-palette-generator": "^3.2.3", | ||
"notivue": "^2.0.1" | ||
}, | ||
"optionalDependencies": { | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-tailwindcss": "^0.5.10" | ||
} | ||
} |
Oops, something went wrong.