Skip to content

Commit

Permalink
colocando o gitignore e as ultimas mudanças do design
Browse files Browse the repository at this point in the history
  • Loading branch information
GZaranza committed Jul 2, 2024
1 parent 026f3f5 commit 48f7ff4
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 5 deletions.
74 changes: 74 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# OSX Junk
.DS_Store

# VS Code Junk
.vsls.json

# Logs
/logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage

# Dependency directories
node_modules

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# for vim
*.swp
*.sly

# Jetbrains
.idea/**

# Botpress Build
/out
/.out
/tmp
test-report.html
metadata.json
edition.json
/pro
packages/bp/binaries/
packages/bp/archives

# Reorg
packages/bp/src/pro
packages/bp/src/ml
src/bp

build/tests/e2e/screenshots/*
!build/tests/e2e/screenshots/.gitkeep

# Botpress docs
/docs/reference/public
/docs/guide/build

# for python savvy users
.python-version
/internal-modules
/private-modules

# tests output
cache

modules/*/assets/web/*
modules/*/assets/config.schema.json
**/out/**
**/dist/**
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>
<script src="http://localhost:3000/assets/modules/channel-web/inject.js"></script>

<script>
window.botpressWebChat.init({
host: "http://localhost:3000",
botId: "teste",
extraStylesheet: "http://localhost:3000/assets/modules/channel-web/style.css",
layoutWidth: "-",
showPoweredBy: true,
enableTranscriptDownload: false,
enableConversationDeletion: false,
enableReset: false,
showConversationsButton: false,
botName: "Ziralda - Assistente",
enablePersistHistory: false})
window.addEventListener('message', function(event) {
if (event.data.name === 'webchatReady') {
window.botpressWebChat.sendEvent({
type: 'proactive-trigger',
channel: 'web',
payload: { text: 'oi' }
});
}
})
</script>
<script>

</script>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion modules/analytics/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ recharts-scale@^0.4.2:
dependencies:
decimal.js-light "^2.4.1"

recharts@^2.0.0-beta.1:
[email protected]:
version "2.0.0-beta.1"
resolved "https://registry.yarnpkg.com/recharts/-/recharts-2.0.0-beta.1.tgz#dc0aa89b94233941c5af86b43db585312c45140d"
integrity sha512-awJH2DE6JRgp5ymzmH5dKh2Pu6prqZJCr3NRaYCcyub1fBa+fIG3ZlpLyl9hWizHPGEvfZLvcjIM+qgTsr9aSQ==
Expand Down
4 changes: 2 additions & 2 deletions modules/channel-web/assets/inject.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
left: auto;
top: auto;
bottom: 10%;
right: 2%;
right: 1.82%;
width: 76px !important;
height: 76px !important;
}
Expand Down Expand Up @@ -56,4 +56,4 @@
.bp-widget-side {
width: 100%;
}
}
}
Loading

0 comments on commit 48f7ff4

Please sign in to comment.