Skip to content

Commit

Permalink
Ddded Wiki 2 button
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLuciano committed Jan 18, 2019
1 parent 6ce29e4 commit ff7b7aa
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 86 deletions.
2 changes: 1 addition & 1 deletion dist/main.bundle.js

Large diffs are not rendered by default.

Binary file modified dist/main.bundle.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion public/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ui": {
"appDescription": "An informative application on the elements of the periodic table, with a colorful, intuitive and multi-linguistic interface for various devices.",
"ConsultingByMaxim": "Consulting by Maxim Lyutov Nikolaevich",
"ConsultingByMaxim": "Consultant Maxim Lyutov",
"chemicalElement": "Chemical element",
"selectLanguage": "Choose language",
"license": "License",
Expand Down
2 changes: 1 addition & 1 deletion public/lang/pt.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ui": {
"appDescription": "Um aplicativo informativo sobre os elementos da tabela periódica, com uma interface colorida , intuitiva e multi linguística para diversos dispositivos.",
"ConsultingByMaxim": "Consultoria por Maxim Lyutov Nikolaevich",
"ConsultingByMaxim": "Consultoria de Maxim Lyutov",
"chemicalElement": "Elemento químico",
"selectLanguage": "Escolha o idioma",
"license": "Licença",
Expand Down
2 changes: 1 addition & 1 deletion public/lang/ru.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ui": {
"appDescription": "Информационное приложение по элементам периодической таблицы, с красочным, интуитивно понятным и многоязычным интерфейсом для различных устройств.",
"ConsultingByMaxim": "Консультация Максим Лютов Николаевич",
"ConsultingByMaxim": "Консультант Максим Лютов",
"chemicalElement": "Химический элемент",
"selectLanguage": "выберите язык",
"license": "ЛИЦЕНЗИЯ",
Expand Down
82 changes: 0 additions & 82 deletions src/main.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/router/routes/element/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
v-btn.mx-0.pr-4(flat outline round color='grey' @click='openGoogle')
v-icon(left :color='chemical.color') mdi-google
span.font-weight-bold(:style='{"color": chemical.color}') Google

v-btn.mx-0.ml-3.pr-4(flat outline round color='grey' @click='openWiki2')
v-icon(left :color='chemical.color') mdi-wikipedia
span.font-weight-bold(:style='{"color": chemical.color}') Wiki 2
//--
</template>

Expand Down Expand Up @@ -159,6 +163,17 @@
window.open "https://www.google.com.br/search?q=#{search}"
openWiki2: ->
{ language } = @$route.meta
{ elementName } = @$route.params
url = "https://wiki2.org/#{ language }/#{ @chemical.name }"
if language == 'pt'
url = "https://pt.wiki2.org/wiki/#{ @chemical.name }"
window.open url
</script>


Expand Down

0 comments on commit ff7b7aa

Please sign in to comment.