Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec5f14d
commit 6a9f678
Showing
13 changed files
with
5,155 additions
and
23 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
--- | ||
head.title: 'Chatwoot | Nuxt 3 Examples' | ||
--- | ||
|
||
# Chatwoot | ||
|
||
Chatwoot Minimal example of using Nuxt 3. | ||
|
||
::ReadMore{link="/guide/nuxt-packages/chatwoot"} | ||
:: | ||
|
||
::sandbox{repo="huntersofbook/huntersofbook" branch="main" dir="examples/nuxt/chatwoot" file="app.vue"} | ||
:: |
File renamed without changes.
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,8 @@ | ||
node_modules | ||
*.log* | ||
.nuxt | ||
.nitro | ||
.cache | ||
.output | ||
.env | ||
dist |
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,42 @@ | ||
# Nuxt 3 Minimal Starter | ||
|
||
Look at the [nuxt 3 documentation](https://v3.nuxtjs.org) to learn more. | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies: | ||
|
||
```bash | ||
# yarn | ||
yarn install | ||
|
||
# npm | ||
npm install | ||
|
||
# pnpm | ||
pnpm install --shamefully-hoist | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on http://localhost:3000 | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
npm run preview | ||
``` | ||
|
||
Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/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,29 @@ | ||
<script setup lang="ts"> | ||
const { | ||
isModalVisible, | ||
toggle, | ||
toggleBubbleVisibility, | ||
popoutChatWindow, | ||
...more | ||
} = useChatWoot() | ||
</script> | ||
|
||
<template> | ||
<div class="mx-auto w-full max-w-4xl mt-20"> | ||
<div class="grid gap-10 grid-cols-3"> | ||
<div class="col-span-full bg-gray-200 p-4"> | ||
isModalVisible: <span class="font-black"> {{ isModalVisible }}</span> | ||
</div> | ||
<HButton @click="toggle('open')">toggle open</HButton> | ||
<HButton @click="toggle('close')">toggle close</HButton> | ||
|
||
<HButton @click="toggleBubbleVisibility('hide')" | ||
>toggleBubbleVisibility-hide</HButton | ||
> | ||
<HButton @click="toggleBubbleVisibility('show')" | ||
>toggleBubbleVisibility-show</HButton | ||
> | ||
<HButton @click="popoutChatWindow()">popoutChatWindow</HButton> | ||
</div> | ||
</div> | ||
</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,9 @@ | ||
<template> | ||
<button | ||
v-bind="$attrs" | ||
type="button" | ||
class="inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2" | ||
> | ||
<slot /> | ||
</button> | ||
</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,16 @@ | ||
// https://v3.nuxtjs.org/api/configuration/nuxt.config | ||
export default defineNuxtConfig({ | ||
modules: ['@huntersofbook/chatwoot-nuxt', '@nuxtjs/tailwindcss'], | ||
|
||
huntersofbookChatwoot: { | ||
init: { | ||
websiteToken: 'b6BejyTTuxF4yPt61ZTZHjdB' | ||
}, | ||
settings: { | ||
locale: 'en', | ||
position: 'left', | ||
launcherTitle: 'Hello Chat' | ||
// ... and more settings | ||
} | ||
} | ||
}) |
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,17 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"build": "nuxt build", | ||
"dev": "HOST=0.0.0.0 nuxt dev", | ||
"generate": "nuxt generate", | ||
"preview": "nuxt preview", | ||
"postinstall": "nuxt prepare" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/tailwindcss": "^5.3.3", | ||
"nuxt": "^3.0.0-rc.11" | ||
}, | ||
"dependencies": { | ||
"@huntersofbook/chatwoot-nuxt": "^0.2.0" | ||
} | ||
} |
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,4 @@ | ||
{ | ||
// https://v3.nuxtjs.org/concepts/typescript | ||
"extends": "./.nuxt/tsconfig.json" | ||
} |
Oops, something went wrong.