Browse Source

Repo: use repository as base repository

master
parent
commit
1e1a20478d
  1. 1
      lang/ast.json
  2. 1
      lang/ca.json
  3. 1
      lang/cs.json
  4. 1
      lang/da.json
  5. 1
      lang/de.json
  6. 1
      lang/el.json
  7. 1
      lang/en.json
  8. 1
      lang/es.json
  9. 1
      lang/et.json
  10. 1
      lang/fr.json
  11. 1
      lang/hu.json
  12. 1
      lang/it.json
  13. 1
      lang/ja.json
  14. 1
      lang/nl.json
  15. 1
      lang/pl.json
  16. 1
      lang/pt-br.json
  17. 1
      lang/pt.json
  18. 1
      lang/ro.json
  19. 1
      lang/ru.json
  20. 1
      lang/sr.json
  21. 1
      lang/template.json
  22. 1
      lang/uk.json
  23. 15
      src/addCategories.js

1
lang/ast.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Llingua de la interfaz", "options:ui_lang": "Llingua de la interfaz",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/ca.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "", "options:ui_lang": "",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/cs.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Jazyk rozhraní", "options:ui_lang": "Jazyk rozhraní",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Uložit", "save": "Uložit",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/da.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Brugerfladesprog", "options:ui_lang": "Brugerfladesprog",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Gem", "save": "Gem",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/de.json

@ -32,6 +32,7 @@
"options:preferredBaseMap": "Bevorzugte Hintergrundkarte", "options:preferredBaseMap": "Bevorzugte Hintergrundkarte",
"options:ui_lang": "Anwendungssprache", "options:ui_lang": "Anwendungssprache",
"other": "Andere", "other": "Andere",
"repo-use-as-base": "",
"save": "Speichern", "save": "Speichern",
"show details": "zeige Details", "show details": "zeige Details",
"toggle_fullscreen": "(De-)aktiviere Vollbildmodus", "toggle_fullscreen": "(De-)aktiviere Vollbildmodus",

1
lang/el.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Γλώσσα διεπαφής", "options:ui_lang": "Γλώσσα διεπαφής",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Αποθήκευση", "save": "Αποθήκευση",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/en.json

@ -32,6 +32,7 @@
"options:preferredBaseMap": "Preferred base map", "options:preferredBaseMap": "Preferred base map",
"options:ui_lang": "Interface language", "options:ui_lang": "Interface language",
"other": "Other", "other": "Other",
"repo-use-as-base": "Use this repository as base repository",
"save": "Save", "save": "Save",
"show details": "show details", "show details": "show details",
"toggle_fullscreen": "Toggle full screen mode", "toggle_fullscreen": "Toggle full screen mode",

1
lang/es.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Idioma de interfaz", "options:ui_lang": "Idioma de interfaz",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/et.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Kasutajaliidese keel", "options:ui_lang": "Kasutajaliidese keel",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Salvesta", "save": "Salvesta",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/fr.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "Carte de base préférée", "options:preferredBaseMap": "Carte de base préférée",
"options:ui_lang": "Langue de l'interface", "options:ui_lang": "Langue de l'interface",
"other": "Autres", "other": "Autres",
"repo-use-as-base": "",
"save": "Sauvegarder", "save": "Sauvegarder",
"show details": "montrer les détails", "show details": "montrer les détails",
"toggle_fullscreen": "Basculer en plein écran", "toggle_fullscreen": "Basculer en plein écran",

1
lang/hu.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "Előnyben részesített alaptérkép", "options:preferredBaseMap": "Előnyben részesített alaptérkép",
"options:ui_lang": "Menü nyelve", "options:ui_lang": "Menü nyelve",
"other": "Egyéb", "other": "Egyéb",
"repo-use-as-base": "",
"save": "Mentés", "save": "Mentés",
"show details": "Részletek megjelenítése", "show details": "Részletek megjelenítése",
"toggle_fullscreen": "Teljes képernyős nézet", "toggle_fullscreen": "Teljes képernyős nézet",

1
lang/it.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Lingua dell'interfaccia", "options:ui_lang": "Lingua dell'interfaccia",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Salva", "save": "Salva",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/ja.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "インタフェース表示", "options:ui_lang": "インタフェース表示",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "保存", "save": "保存",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/nl.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Interfacetaal", "options:ui_lang": "Interfacetaal",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Opslaan", "save": "Opslaan",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/pl.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Język interfejsu", "options:ui_lang": "Język interfejsu",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Zapisz", "save": "Zapisz",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/pt-br.json

@ -32,6 +32,7 @@
"options:preferredBaseMap": "Mapa-base preferido", "options:preferredBaseMap": "Mapa-base preferido",
"options:ui_lang": "Língua da interface", "options:ui_lang": "Língua da interface",
"other": "Outro", "other": "Outro",
"repo-use-as-base": "",
"save": "Salvar", "save": "Salvar",
"show details": "mostrar detalhes", "show details": "mostrar detalhes",
"toggle_fullscreen": "Alternar modo tela cheia", "toggle_fullscreen": "Alternar modo tela cheia",

1
lang/pt.json

@ -32,6 +32,7 @@
"options:preferredBaseMap": "Mapa-base preferido", "options:preferredBaseMap": "Mapa-base preferido",
"options:ui_lang": "Língua da interface", "options:ui_lang": "Língua da interface",
"other": "Outro", "other": "Outro",
"repo-use-as-base": "",
"save": "Guardar", "save": "Guardar",
"show details": "mostrar detalhes", "show details": "mostrar detalhes",
"toggle_fullscreen": "Alternar modo ecrã inteiro", "toggle_fullscreen": "Alternar modo ecrã inteiro",

1
lang/ro.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Limba interfata", "options:ui_lang": "Limba interfata",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Salveaza", "save": "Salveaza",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/ru.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Язык интерфейса", "options:ui_lang": "Язык интерфейса",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Сохранить", "save": "Сохранить",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/sr.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Језик интерфејса", "options:ui_lang": "Језик интерфејса",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Запамти", "save": "Запамти",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/template.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "", "options:ui_lang": "",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "", "save": "",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

1
lang/uk.json

@ -29,6 +29,7 @@
"options:preferredBaseMap": "", "options:preferredBaseMap": "",
"options:ui_lang": "Мова інтерфейсу", "options:ui_lang": "Мова інтерфейсу",
"other": "", "other": "",
"repo-use-as-base": "",
"save": "Зберегти", "save": "Зберегти",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

15
src/addCategories.js

@ -67,6 +67,21 @@ function addCategoriesShow (repo) {
}) })
} }
let menu = document.createElement('ul')
menu.className = 'menu'
content.appendChild(menu)
if (repo) {
let li = document.createElement('li')
menu.appendChild(li)
let text = document.createElement('a')
text.innerHTML = lang('repo-use-as-base')
text.href = '#repo=' + repo
text.onclick = addCategoriesHide
li.appendChild(text)
}
if ('branches' in repoData) { if ('branches' in repoData) {
let text = document.createElement('span') let text = document.createElement('span')
text.innerHTML = lang('available_branches') + ': ' text.innerHTML = lang('available_branches') + ': '

Loading…
Cancel
Save