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

Dev #713

Merged
merged 8 commits into from
Apr 7, 2023
Merged

Dev #713

Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.1.25](https://github.com/leifermendez/bot-whatsapp/compare/v0.1.23...v0.1.25) (2023-04-07)


### Features

* **bot:** :sparkles: feat ([d3f86db](https://github.com/leifermendez/bot-whatsapp/commit/d3f86db7df7f6807262cbbf26108ed3f233b239c))
* **bot:** :sparkles: `.addAction` feat ([f3d73cc](https://github.com/leifermendez/bot-whatsapp/commit/f3d73cc3ee7904e947a4ae502f1cfef14b92bf34))
* **bot:** :sparkles: `.addAction` feat ([d94459a](https://github.com/leifermendez/bot-whatsapp/commit/d94459a2b17db0503db560ef7336b090ad1f8628))
* **bot:** :sparkles: `.addAction` feat ([70a23b7](https://github.com/leifermendez/bot-whatsapp/commit/70a23b77ade4c38d20be89d2304d831e605e39d6))
* **bot:** :sparkles: `.addAction` feat ([6adbe32](https://github.com/leifermendez/bot-whatsapp/commit/6adbe323de5bfa56565f0b29c21c98dde968a886))
* **cli:** :fire: added new provider in the cli ([9c6db88](https://github.com/leifermendez/bot-whatsapp/commit/9c6db884ee5d6553a46260229cc4e98faeb2710a))
* **cli:** :fire: added new provider in the cli ([dbb1732](https://github.com/leifermendez/bot-whatsapp/commit/dbb1732e5ceb30664dd6d7b18b99b279b81d1b20))
* **provider:** :sparkles: update starte `wppconnect` ([021a842](https://github.com/leifermendez/bot-whatsapp/commit/021a842dc46f1943766f302799ee51acee384f75))
* **provider:** :zap: add `delay` general ([9f02ed5](https://github.com/leifermendez/bot-whatsapp/commit/9f02ed59a3b33d7a1b8ab52d443be2d5b3b31702))
* **provider:** :zap: add fullPath to image ([ffcb7b1](https://github.com/leifermendez/bot-whatsapp/commit/ffcb7b10dae14b1d7fbb42d9fea55bdd72d11e3b))
* **provider:** :zap: add fullPath to image ([d355f4e](https://github.com/leifermendez/bot-whatsapp/commit/d355f4e977dcd23969492658e01393da039ba8ef))
* **provider:** :zap: meta, buttons, list ([e1a46a4](https://github.com/leifermendez/bot-whatsapp/commit/e1a46a47c322933c89195537b4520f5ca708bcf1))
* **provider:** :zap: redirect download ([371d210](https://github.com/leifermendez/bot-whatsapp/commit/371d210c6992ead6684bfd0dd19b0755963df034))


### Bug Fixes

* **adapter:** :zap: fix error mongo duplicate INDEX ([244c6fb](https://github.com/leifermendez/bot-whatsapp/commit/244c6fb833157788d59ac581502d178dc34daa49))
* **provider:** :bug: call event by list ([79d78af](https://github.com/leifermendez/bot-whatsapp/commit/79d78af63dbaf3df374bc1bf1cb5ef87a8c821c2))
* **provider:** :zap: update meta provider ([1b7387f](https://github.com/leifermendez/bot-whatsapp/commit/1b7387ff337b1fd24a1d4a446f411699637dbf67))
* **provider:** redirect 306 ([cfd0200](https://github.com/leifermendez/bot-whatsapp/commit/cfd02002be3195568b41969140e254020702bc0d))

### [0.1.24](https://github.com/leifermendez/bot-whatsapp/compare/v0.1.23...v0.1.24) (2023-03-05)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/root",
"version": "0.1.24",
"version": "0.1.25",
"description": "Bot de wahtsapp open source para MVP o pequeños negocios",
"main": "app.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/bot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/bot",
"version": "0.0.111-alpha.0",
"version": "0.0.125-alpha.0",
"description": "",
"main": "./lib/bundle.bot.cjs",
"scripts": {
Expand Down
Binary file added packages/docs/src/assets/images/carlos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/docs/src/assets/images/freddy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/docs/src/components/widgets/Collaborators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export default component$((props: { users: User[] }) => {
<div class={'px-4 py-16 mx-auto max-w-6xl lg:py-20'}>
<div class="mb-10 md:mx-auto sm:text-center md:mb-12 max-w-3xl">
<p class="text-base text-primary-600 dark:text-purple-200 font-semibold tracking-wide uppercase">
Colaboradores
Profesionales
</p>
<h2 class="text-4xl md:text-5xl font-bold leading-tighter tracking-tighter mb-4 font-heading">
Super estrellas
Expertos del bot
</h2>
<p class="max-w-3xl mx-auto sm:text-center text-xl text-gray-600 dark:text-slate-400">
Todo es posible gracias a el mayor recursos de todos, el recurso humano. Tu tambien puedes{' '}
Expand Down
38 changes: 38 additions & 0 deletions packages/docs/src/components/widgets/Expert.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { component$ } from '@builder.io/qwik'

export default component$(
(props: {
user: {
id: number
login: string
html_url: string
avatar_url: string,
description?:string
}
}) => {
return (
<figure class="bg-white shadow-gray-400/10 shadow-xl transition ease-in-outrounded p-4 dark:bg-slate-800">
<a href={props.user.html_url} target="_blank">
<img
class="w-32 h-32 rounded-full mx-auto object-cover"
src={props.user.avatar_url}
alt={props.user.login}
width="150"
height="150"
/>
</a>

<div class="pt-2 space-y-4 justify-center flex">
<figcaption class="text-sm">
<div class={'font-semibold truncate'}>{props.user.login}</div>
</figcaption>
</div>
<div class="pt-2 space-y-4 justify-center flex">
<figcaption class="text-sm">
<div class={'max-w-xs'}>{props.user.description}</div>
</figcaption>
</div>
</figure>
)
}
)
48 changes: 48 additions & 0 deletions packages/docs/src/components/widgets/Experts.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { component$ } from '@builder.io/qwik'
import { RequestHandlerCloudflarePages } from '@builder.io/qwik-city/middleware/cloudflare-pages'
import { User } from '~/contexts'
import Expert from './Expert'

export const onRequest: RequestHandlerCloudflarePages = async () => {
console.log('??heree')
}

export const TaleUsers = component$((props: { users: User[] }) => {
return (
<>
{props.users.map((user) => (
<div class="col-span-4 ">
{' '}
<Expert user={user} />
</div>
))}
</>
)
})

export default component$((props: { users: User[] }) => {
return (
<section class="relative " id='expert-section'>
<div class={'px-4 py-16 mx-auto max-w-6xl lg:py-20'}>
<div class="mb-10 md:mx-auto sm:text-center md:mb-12 max-w-3xl">
<p class="text-base text-primary-600 dark:text-purple-200 font-semibold tracking-wide uppercase">
Profesionales
</p>
<h2 class="text-4xl md:text-5xl font-bold leading-tighter tracking-tighter mb-4 font-heading">
Expertos del bot
</h2>
<p class="max-w-3xl mx-auto sm:text-center text-xl text-gray-600 dark:text-slate-400">
Contrata a un experto capacitado para automatizar los flujos {' '}
<a class={'font-semibold'} href="/docs/contributing">
de conversion de tu chatbot
</a>
</p>
</div>

<div class="grid lg:grid-cols-12 grid-cols-1 gap-4 ">
<TaleUsers users={props.users} />
</div>
</div>
</section>
)
})
17 changes: 13 additions & 4 deletions packages/docs/src/components/widgets/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,25 @@ export default component$(() => {
npm create bot-whatsapp@latest
</code>
</div>
<div class="flex w-full sm:w-auto gap-3">
<a href="/docs" class="btn bg-gray-50 dark:bg-transparent">
<div class="flex w-full sm:w-auto">
<a href="/docs" class="btn bg-gray-50 dark:bg-transparent">
Ver documentación
</a>
</div>
<div class="flex w-full sm:w-auto gap-3">

<a
target={'_blank'}
href="https://youtu.be/UgoS8PXxe-A"
href="https://app.codigoencasa.com/courses/curso-chatbot-whatsapp?refCode=LEIFERMENDEZ"
class="btn bg-gray-50 dark:bg-transparent"
>
Ver curso
</a>
<a
href="/experts/#expert-section"
class="btn bg-gray-50 dark:bg-transparent"
>
Ver video
Expertos
</a>
</div>
</div>
Expand Down
67 changes: 67 additions & 0 deletions packages/docs/src/components/widgets/HeroExperts.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { component$ } from '@builder.io/qwik'

// @ts-ignore
import srcsetAvif from '~/assets/images/chatbot-whatsapp.png?w=400;900&avif&srcset'
// @ts-ignore
import srcsetWebp from '~/assets/images/chatbot-whatsapp.png?w=400;900&webp&srcset'
// @ts-ignore
import { src as placeholder } from '~/assets/images/chatbot-whatsapp.png?width=400&metadata'

export default component$(() => {
return (
<section class={` from-white via-purple-50 to-sky-100 dark:bg-none mt-[-95px]`}>
<div class="max-w-6xl mx-auto px-4 sm:px-6 md:flex md:h-screen 2xl:h-auto pt-[72px]">
<div class="py-12 md:py-12 lg:py-16 block md:flex text-center md:text-left">
<div class="pb-12 md:pb-0 md:py-0 max-w-5xl mx-auto md:pr-16 flex items-center basis-[56%]">
<div>
<h1 class="text-5xl md:text-[3.48rem] font-bold leading-tighter tracking-tighter mb-4 font-heading px-4 md:px-0">
Buscas un
<br class="hidden lg:block" /> <span class="sm:whitespace-nowrap text-[#25b637]">experto</span> <span class="lg:inline">en minutos</span>
</h1>
<div class="max-w-3xl mx-auto">
<p class="text-xl text-gray-600 mb-8 dark:text-slate-400">

<span class="font-semibold">Sabemos lo importante que es contar con una solución rápida y efectiva ante cualquier problema tecnológico que se nos presente.</span> Por ello, hemos creado un servicio de asesoramiento en línea para brindarle a nuestros clientes la oportunidad de conectarse con expertos altamente calificados.

</p>

<div class="max-w-xs sm:max-w-md flex flex-nowrap flex-col sm:flex-col gap-4 m-auto md:m-0 justify-center md:justify-start">

<div class="flex w-full sm:w-auto gap-3">
<a href="/experts#expert-section" class="btn bg-gray-50 dark:bg-transparent">
Ver expertos
</a>
<a
target={'_blank'}
href="https://app.codigoencasa.com/courses/curso-chatbot-whatsapp?refCode=LEIFERMENDEZ"
class="btn bg-gray-50 dark:bg-transparent"
>
Ver curso
</a>
</div>
</div>
</div>
</div>
</div>
<div class="block md:flex items-center flex-1">
<div class="relative m-auto max-w-4xl">
<picture>
<source srcSet={srcsetAvif} type="image/avif" />
<source srcSet={srcsetWebp} type="image/webp" />
<img
src={placeholder}
width={1000}
height={1250}
class="mx-auto w-full rounded-md md:h-full drop-shadow-2xl"
alt="Qwind Hero Image (Cool dog)"
loading="eager"
decoding="async"
/>
</picture>
</div>
</div>
</div>
</div>
</section>
)
})
4 changes: 3 additions & 1 deletion packages/docs/src/contexts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export interface User {
id: number
login: string
html_url: string
avatar_url: string
avatar_url: string,
description?:string
}

export const ExpertStore = createContext<User[]>('experts-site')
export const GlobalStore = createContext<DocumentationCtx[]>('documentation-site')
24 changes: 23 additions & 1 deletion packages/docs/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ import { DarkThemeLauncher } from '~/components/core/DarkThemeLauncher'

import fontStyles from '~/assets/styles/fonts.css?inline'
import globalStyles from '~/assets/styles/global.css?inline'
import { DocumentationCtx, GlobalStore } from './contexts'
import { DocumentationCtx, ExpertStore, GlobalStore, User } from './contexts'
import { Social } from './components/core/Social'
// @ts-ignore
import { src as freddyAvatar } from '~/assets/images/freddy.png?width=150&metadata'
// @ts-ignore
import { src as carlosAvatar } from '~/assets/images/carlos.png?width=150&metadata'

export default component$(() => {
/**
Expand Down Expand Up @@ -63,7 +67,25 @@ export default component$(() => {
},
])

const expertsStore = useStore<User[]>([
{
id: 1,
login: 'Fredy Alejandro Gonzalez',
html_url: 'https://app.codigoencasa.com/market/bot-expert-fredy',
avatar_url: freddyAvatar,
description:'Experto es un desarrollador de chatbots con más de 4 años de experiencia en la automatización de procesos de atención al cliente en línea. Tiene un amplio conocimiento en el uso de herramientas de inteligencia artificial y aprendizaje automático para mejorar la experiencia del usuario'
},
{
id: 2,
login: 'Carlos Morán',
html_url: 'https://app.codigoencasa.com/market/bot-expert-carlos',
avatar_url: carlosAvatar,
description:'Conocido por su creatividad e innovación en la solución de problemas. Su habilidad para generar ideas frescas y originales lo hace un colaborador valioso en equipos de desarrollo. Innovador y capaz para pensar fuera de lo convencional lo hacen un recurso inestimable.'
}
])

useContextProvider(GlobalStore, store)
useContextProvider(ExpertStore, expertsStore)

return (
<QwikCityProvider>
Expand Down
13 changes: 13 additions & 0 deletions packages/docs/src/routes/docs/add-keyword/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Overview
contributors:
- adamdbradley
- steve8708
- manucorporat
- gabrielgrant
---

# AddKeyword
```js
const a = 1
```
40 changes: 40 additions & 0 deletions packages/docs/src/routes/experts/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { component$, useContext } from "@builder.io/qwik";
import { DocumentHead } from "@builder.io/qwik-city";
import { RequestHandlerNetlify } from "@builder.io/qwik-city/middleware/netlify-edge";
import Experts from "~/components/widgets/Experts";
import HeroExperts from "~/components/widgets/HeroExperts";
import { ExpertStore } from "~/contexts";
import { fetchGithub } from "~/services/github";
import { fetchOpenCollective } from "~/services/opencollective";
import { GITHUB_TOKEN } from "../docs/constant";

export const onGet: RequestHandlerNetlify = async ({ platform }) => {
const CHECK_GITHUB_TOKEN = (platform as any)?.['GITHUB_TOKEN'] ?? GITHUB_TOKEN
const dataGithub = await fetchGithub(CHECK_GITHUB_TOKEN)
const dataOpenCollective = await fetchOpenCollective()
return {
dataGithub,
dataOpenCollective,
}
}


export default component$(() => {
const store = useContext(ExpertStore)
return (
<>
<HeroExperts />
<Experts users={store} />
</>
)
})

export const head: DocumentHead = {
title: 'Crear chatbot WhatsApp en minutos — Servicio de chatbot para whatspp gratis proyecto OpenSource',
meta: [
{
name: 'description',
content: 'Crear chatbot WhatsApp en minutos — Servicio de chatbot para whatspp gratis proyecto OpenSource',
},
],
}
Loading