Skip to content

Commit

Permalink
### 5.0.71 in PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Feb 14, 2024
1 parent a3e04ae commit 405afb1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 31 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# chat21-web-widget ver 5.0

### 5.0.71 in PROD

### 5.0.71-rc.13
- bug-fixed: wellcome message string

Expand Down Expand Up @@ -31,7 +33,7 @@
- bug-fixed: do not disable url buttons on carousel element
- bug-fixed: do not sound if convAdded is fired and on reconnect event
- bug-fixed: init Rules only if widget is closed
- removed: 'Powereb By Tiledesk' on conversation and home components only for cahtbot-panel.html page
- removed: 'Powereb By Tiledesk' on conversation and home components only for chatbot-panel.html page

### 5.0.71-rc.3
- added: delete method for firebase-upload service
Expand Down
15 changes: 4 additions & 11 deletions deploy_amazon_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
version=`node -e 'console.log(require("./package.json").version)'`
echo "version $version"

ng build --configuration="pre" --aot=true --base-href --build-optimizer=true

### SET HASHING : START ###
cp ./src/launch_template.js ./dist/launch.js
node ./src/build_launch.js
### SET HASHING : END ###
ng build --configuration="pre" --aot=true --base-href --output-hashing none --build-optimizer=true

# ########## --->>>> NATIVE-MQTT folder START <<<<<------ ########## #

Expand All @@ -28,13 +23,11 @@ node ./src/build_launch.js

# ########## --->>>> FIREBASE folder START <<<<<------ ########## #
cd dist
aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control max-age=300 --exclude='launch.js' #7days
aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control max-age=300 --exclude='launch.js' #7days
aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget-pre/v5/$version/ --cache-control max-age=300
aws s3 sync . s3://tiledesk-widget-pre/v5/ --cache-control max-age=300
cd ..

aws cloudfront create-invalidation --distribution-id E2V5O0YPR61V8P --paths "/*"
#aws cloudfront create-invalidation --distribution-id E3EJDWEHY08CZZ --paths "/*"
# echo new version deployed $NEW_VER/$NEW_BUILD/ on s3://tiledesk-widget-pre/v2
echo new version deployed $version/ on s3://tiledesk-widget-pre/v5 and s3://tiledesk-widget-pre/v5/$version/
echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-widget-pre/v5/index.html
Expand Down
15 changes: 4 additions & 11 deletions deploy_amazon_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ version=`node -e 'console.log(require("./package.json").version)'`
echo "version $version"

# --build-optimizer=false if localstorage is disabled (webview) appears https://github.com/firebase/angularfire/issues/970
ng build --configuration="prod" --aot=true --build-optimizer=true --vendor-chunk=true
##--base-href='./v5/' --output-hashing none

### SET HASHING : START ###
cp ./src/launch_template.js ./dist/launch.js
node ./src/build_launch.js
### SET HASHING : END ###
ng build --configuration="prod" --aot=true --base-href --output-hashing none --build-optimizer=true --vendor-chunk=true

#### FIREBASE #####
# cd dist
Expand All @@ -18,13 +12,12 @@ node ./src/build_launch.js
# aws s3 sync . s3://tiledesk-widget/v5/ --cache-control max-age=300
# cd ..


# #### MQTT #####
cd dist
# aws s3 sync . s3://tiledesk-widget/v5/latest/
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=86400 --exclude='launch.js' #8days
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=86400 --exclude='launch.js' #8days
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control "no-store,no-cache,private" --exclude='*' --include='launch.js'
aws s3 sync . s3://tiledesk-widget/v6/$version/ --cache-control max-age=300
aws s3 sync . s3://tiledesk-widget/v6/ --cache-control max-age=300
cd ..

aws cloudfront create-invalidation --distribution-id E3EJDWEHY08CZZ --paths "/*"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chat21/chat21-web-widget",
"author": "Tiledesk SRL",
"version": "5.0.71-rc.13",
"version": "5.0.71",
"license": "MIT",
"homepage": "https://www.tiledesk.com",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/component/message/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CarouselComponent implements OnInit{
constructor(private elementRef: ElementRef) { }

ngOnInit() {
console.log('[CAROUSEL-MESSAGE] hello', this.message, isCarousel(this.message))
// console.log('[CAROUSEL-MESSAGE] hello', this.message, isCarousel(this.message))


this.wrapper = this.elementRef.nativeElement.querySelector('.wrapper')
Expand Down
4 changes: 0 additions & 4 deletions src/assets/js/chat21client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ class Chat21Client {

this.client.on('connect', // TODO if token is wrong it must reply with an error!
() => {
console.log("Chat client connected. User:" + user_id)
if (this.log) {
console.log("Chat client connected. this.connected:" + this.connected)
}
Expand All @@ -1025,20 +1024,17 @@ class Chat21Client {
);
this.client.on('reconnect',
() => {
console.log("Chat client reconnect event")
if (this.log) {console.log("Chat client reconnect event");}
}
);
this.client.on('close',
() => {
console.log("Chat client reconnect event")
this.connected = false
if (this.log) {console.log("Chat client close event");}
}
);
this.client.on('offline',
() => {
console.log("Chat client reconnect event")
if (this.log) {console.log("Chat client offline event");}
}
);
Expand Down

0 comments on commit 405afb1

Please sign in to comment.