Skip to content

Commit

Permalink
Added little info about the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreespirit committed Apr 6, 2020
1 parent 12edcc6 commit 689dc70
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 65 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
node_modules
dist

# local env files
.env
Expand Down
1 change: 0 additions & 1 deletion dist/css/app.0176f5a7.css

This file was deleted.

5 changes: 0 additions & 5 deletions dist/css/chunk-vendors.7caec713.css

This file was deleted.

Binary file removed dist/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion dist/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions dist/js/about.57c305cb.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/about.57c305cb.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/js/app.54182686.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/app.54182686.js.map

This file was deleted.

50 changes: 0 additions & 50 deletions dist/js/chunk-vendors.960a0808.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/chunk-vendors.960a0808.js.map

This file was deleted.

71 changes: 70 additions & 1 deletion src/views/About.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,74 @@
<template>
<div class="about">
<h1>This is an about page (TODO)</h1>

<md-divider></md-divider>

<div class="md-layout md-gutter md-alignment-center">
<div class="md-layout-item md-large-size-30 md-small-size-90">
On the homepage you can specify text and a language that you want the translation to be in.
You're allowed to provide the text either in the text-area or by uploading a txt file.
</div>

<div class="md-layout-item md-large-size-60 md-small-size-90">
The text itself can be in any supported language as Google Cloud API client library will automatically detect it.
The app utilizes Google Translate API. Currently it requires an API key (process.env.API_KEY_GOOGLE_TRANSLATE).
</div>
</div>

<md-divider></md-divider>

<div class="md-layout md-gutter md-alignment-center">
<div class="md-layout-item md-large-size-45 md-small-size-90">
This SPA is built with VueJS, Express (NodeJS) and is hosted on Heroku.
</div>

<div class="md-layout-item md-large-size-45 md-small-size-90">
A more secure way would be to utilize GCP's service account and export it via an environmental
variable (GOOGLE_APPLICATION_CREDENTIALS) that points to the path of the private key.
Or even host it on Google Cloud Platform, in which case the service account will be automatically resolved.
</div>
</div>

<md-divider></md-divider>

<div class="md-layout md-gutter md-alignment-center">
<div class="md-layout-item md-large-size-30 md-small-size-90">
The three last rows in the statistics panel are currently inactive, but in the future they will be extended (most popular languages). And it will also be possible to download your translations, share hidden links (which can expire) and even translate to multiple languages at the same time!
</div>

<div class="md-layout-item md-large-size-60 md-small-size-90">
The statistics are currently only kept on the client-side, but there are plans to centralize them and store in a database.
</div>
</div>

<md-divider></md-divider>

<div class="md-layout md-gutter md-alignment-center">
<div class="md-layout-item md-large-size-30 md-small-size-90">

</div>

<div class="md-layout-item md-large-size-60 md-small-size-90">

</div>
</div>

<md-divider></md-divider>

<div class="md-layout md-gutter md-alignment-center">
<div class="md-layout-item md-large-size-30 md-small-size-90">
<md-icon>code</md-icon> <a href="https://github.com/puntje/translation-app" target="_blank">Github</a>
</div>

<div class="md-layout-item md-large-size-60 md-small-size-90">
<md-icon>email</md-icon> [email protected]
</div>
</div>
</div>
</template>

<script>
export default {
name: "About"
};
</script>

0 comments on commit 689dc70

Please sign in to comment.