Skip to content
Permalink
Browse files

Improvements

  • Loading branch information...
mishushakov committed Mar 29, 2019
1 parent eaba28c commit f06b21682d533a3f41afc5071a2d1762c9865fd4
Showing with 593 additions and 539 deletions.
  1. +2 −1 .babelrc
  2. +1 −1 Dockerfile
  3. +23 −8 README.md
  4. +10 −0 config.js
  5. +3 −3 dist/build.js
  6. +6 −0 k8s/Deployment.yaml
  7. +12 −3 src/Components/Welcome/Welcome.vue
  8. +536 −523 yarn.lock
@@ -5,7 +5,8 @@
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
},
"useBuiltIns": "entry"
"useBuiltIns": "entry",
"corejs": 2
}]
],
"plugins": ["@babel/plugin-syntax-dynamic-import"]
@@ -1,2 +1,2 @@
FROM nginx:alpine
FROM pagespeed/nginx-pagespeed
COPY . /usr/share/nginx/html
@@ -12,6 +12,8 @@ This is a unofficial Web client for Dialogflow, built to support rich responses

The development of this project was made possible by [me](https://linkedin.com/in/mishushakov). You can hire me or [send me some snacks](https://paypal.me/mishushakov)

If you have any questions, feel free to send me a [message](https://i.ushakov.co/#contact)

## Features and Benefits

- Progressive Web App (100/100 Lighthouse score)
@@ -30,6 +32,15 @@ The development of this project was made possible by [me](https://linkedin.com/i

For more features and benefits see [this spreadsheet](https://docs.google.com/spreadsheets/d/1Pfpt1JxwlqIxD646p4LVX4okKKVtfvYMBJmPvsUhfgM/edit?usp=sharing)

## Contributing

There are many ways you can contribute to the project:

- Add more translations
- Fix bugs and contribute to the code base
- Leave your feedback and suggest more features
- Donate Kubernetes worker nodes or ressources to create them (money)

# Getting started

## Requirements
@@ -59,29 +70,33 @@ Choose the account, you used to create your Dialogflow Agent with

**Note**: Some browsers (like Safari in my case) block popups. Please allow popups on the website and log in and out again in order to proceed

And you will then see the next popup:
And you will then see this page:

![](https://i.imgur.com/KkfA3bn.png)

This may happen, because Google need to verify my app (if it hasn't yet). You can still continue by pressing on "Advanced" and "Go to Dialogflow Gateway (unsafe)"
This may happen, because Google needs to verify my app (if it hasn't done it yet). You can still continue by pressing on "Advanced" and "Go to Dialogflow Gateway (unsafe)"

Then you will see another page:
Then you will see this:

![](https://i.imgur.com/jHErXqd.png)
![](https://i.imgur.com/MvUNN7u.png)

Press on "Allow" in order to allow the application to access your Google Cloud. Google Cloud is used for following reasons:

- Listing your Google Cloud Projects
- Listing IAM Policies for projects
- Updating IAM Policies for projects
- Managing Service Account Keys
- Creating Service Account Keys
- (Overall) Connecting your Google Cloud Project to Dialogflow Gateway

When you are ready with this, you will see the console:
You then may see an additional confirmation, like this:

**Note**: it may take a second to load your Google Cloud Projects (or two)
![](https://i.imgur.com/6ZED5Ur.png)

Make sure, to press allow here as well

**Note**: because of high latency of Google's servers, sometimes linked projects are not displayed as linked. Please reload the page, if the issue occurs
When you are ready with all of that, you will see the console:

**Note**: it may take a second to load your Google Cloud Projects (or two)

**Note**: non-Dialogflow-V2 Projects will not link, no matter how hard you try

@@ -35,6 +35,16 @@ export default {
inputTitle: "Введите свое сообщение сюда",
sendTitle: "Отправить",
microphoneTitle: "Голосовой ввод"
},
de: {
welcomeTitle: "Wilkommen bei",
selectLang: "Sprache auswählen zum fortfahren",
startTitle: "Starten",
startPhrase: "Hallo",
muteTitle: "Stumm Modus",
inputTitle: "Schreiben Sie ihre Nachricht hier",
sendTitle: "Senden",
microphoneTitle: "Spracheingabe"
}
}
}

Large diffs are not rendered by default.

@@ -7,6 +7,12 @@ spec:
selector:
matchLabels:
app: dialogflow-ui
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
@@ -16,11 +16,11 @@

<br>
<span @click="sel_lang = app.defaultLanguageCode" class="language-pick" :class="{'picked': sel_lang == app.defaultLanguageCode}">
{{app.defaultLanguageCode | toLang }}
{{ app.defaultLanguageCode | toLang }}
</span>

<span @click="sel_lang = language" class="language-pick" v-for="language in app.supportedLanguageCodes" :class="{'picked': sel_lang == language}">
{{ language | toLang }}
{{ language | toLang }}
</span>
</div>

@@ -110,10 +110,19 @@ export default {
sel_lang: 'en'
}
},
watch: {
/* Check, if we have a translation for the selected language, if not -> fallback to default language (en) */
sel_lang(value){
if(this.config.i18n[value] == undefined){
alert('No translation is currently available for this language')
this.sel_lang = 'en'
}
}
},
filters: {
/* This filter turns language code to the local language name using the langs dependency (example "en" -> "English") */
toLang(code){
return langs.where("1", code).local
return langs.where('1', code).local
}
},
methods: {

0 comments on commit f06b216

Please sign in to comment.
You can’t perform that action at this time.