Skip to content

Commit

Permalink
Merge pull request #277 from sbs20/development
Browse files Browse the repository at this point in the history
System info improvements
  • Loading branch information
sbs20 authored May 22, 2021
2 parents 50906a1 + 4c4edb5 commit 4553509
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 24 deletions.
40 changes: 26 additions & 14 deletions packages/client/src/components/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@
<a target="_blank" href="https://github.com/sbs20/scanservjs">https://github.com/sbs20/scanservjs</a>
</div>

<div class="body-1 mb-4">
{{ $t('about.system-info') }}
</div>
<pre class="caption text--secondary">{{ systemInfo }}</pre>
<v-btn @click="showSystemInfo">{{ $t('about.system-info') }}</v-btn>

<v-dialog v-model="systemInfoDialog" aria-role="dialog" max-width="480" v-on:keydown.stop="_onKeys" aria-modal>
<v-card>
<v-card-title>
{{ $t('about.system-info') }}
</v-card-title>
<v-card-text>
<pre class="caption text--secondary">{{ systemInfo }}</pre>
</v-card-text>
</v-card>
</v-dialog>
</div>
</template>

Expand All @@ -28,19 +36,23 @@ export default {
data() {
return {
version: Constants.Version,
systemInfo: null
systemInfo: null,
systemInfoDialog: false
};
},
mounted() {
this.$emit('mask', 1);
Common.fetch('system').then(data => {
this.systemInfo = data;
this.$emit('mask', -1);
}).catch(error => {
this.$emit('notify', { type: 'e', message: error });
this.$emit('mask', -1);
});
methods: {
showSystemInfo() {
this.$emit('mask', 1);
Common.fetch('system').then(data => {
this.systemInfoDialog = true;
this.systemInfo = data;
this.$emit('mask', -1);
}).catch(error => {
this.$emit('notify', { type: 'e', message: error });
this.$emit('mask', -1);
});
}
}
};
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs je jednoduché webové uživatelské rozhraní pro váš skener. Umožňuje vám sdílet jeden nebo více skenerů (s využitím SANE) bez ovladačů nebo komplikované instalace. Umí ukládat do TIF, JPG, PNG, PDF a TXT (využívá Tesseract OCR) s různými nastaveními komprese, vše je možné konfigurovat. Podporuje vícestránkové skenování a všechna zařízení kompatibilní se SANE.",
"issue": "Ohlaste chybu nebo se podívejte na zdrojový kód:",
"system-info": "Informace o systému:"
"system-info": "Informace o systému"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs ist ein einfaches, web-basiertes UI für Scanner. Es erlaubt es, einen oder mehrere Scanner (mittels SANE) über das Netzwerk ohne Treiber oder komplizierte Installation freizugeben. Eingescannte Dokumente können als TIF, JPG, PNG, PDF und TXT (mit Tesseract OCR) in verschiedenen, konfigurierbaren Kompressionseinstellungen gespeichert werden. Neben allen SANE-kompatiblen Geräten, wird außerdem mehrseitiges Scannen unterstützt.",
"issue": "Melde Fehler oder wirf einen Blick auf den Quelltext:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs is a simple web-based UI for your scanner. It allows you to share one or more scanners (using SANE) on a network without the need for drivers or complicated installation. It can save to TIF, JPG, PNG, PDF and TXT (with Tesseract OCR) with varying compression settings, all of which can be configured. It supports multipage scanning and all SANE compatible devices.",
"issue": "File an issue or view the source code:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs es una interfaz gráfica simple y basada en web. Permite compartir uno o mas escáneres (utilizando SANE) en una red sin la necesidad de controladores adicionales o una instalación complicada. Permite guardar en formato TIF, JPG, PNG, PDF, y TXT (con Tesseract OCR) con varias configuraciones de compresión, todas ellas configurables. Soporta el escaneo multipágina y todos los dispositivos SANE compatibles.",
"issue": "Indicar una incidencia o ver el código fuente:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs est une simple interface web pour votre scanner. Cette interface permet de partager un ou plusieurs scanners (utilisant SANE) sur un réseau sans avoir besoin de drivers ou d'installation complexe.Cela permet de sauvegarder les images scannées dans les formats de fichiers TIF, JPG, PNG, PDF et TXT (avec Tesseract OCR) avec des compressions paramétrables. Cela supporte les scans avec plusieurs pages et tout matériel compatible avec SANE.",
"issue": "Signaler un problème ou afficher le code source:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs è una semplice interfaccia web per il tuo scanner. Permette di condividere uno o più scanner (usando SANE) in una rete, senza necessità di driver o installazioni complicate. Può salvare nei formati TIF, JPG, PNG, PDF e TXT (via Tesseract OCR) con vari livelli di compressione. Supporta la scansione multi-pagina e tutti i dispositivi compatibili con SANE.",
"issue": "Segnala problemi o visualizza il codice sorgente:",
"system-info": "Informazioni di sistema:"
"system-info": "Informazioni di sistema"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs é uma interface via web simplea. Permite compartilhar via rede um ou mais scanners (pelo SANE) sem precisar instalação local. Permite gravar nos formatos TIF, JPG, PNG, PDF, y TXT (com Tesseract OCR) com diversas configurações de compressão, configuráveis. Suporta digitalizar multipágina e todos dispositivos SANE compatíveis.",
"issue": "Relatar uma questão ou ver código fonte:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs - простой веб-интерфейс для сканеров, который предоставляет общий доступ к сканерам по сети (используя SANE) без необходимости устанавливать драйверы и исключая сложную процедуру настройки. Поддерживаются форматы TIF, JPG, PNG, PDF и TXT (используется Tesseract OCR) с возможностью задать степень сжатия. Доступно сканирование многостраничных документов. Работает со всеми SANE-совместимыми устройствами.",
"issue": "Обратная связь, исходный код:",
"system-info": "System information:"
"system-info": "System information"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"about": {
"main": "scanservjs 是一个基于网页的扫描仪 UI 。 它(使用 SANE )实现了在局域网内共享一个或多个扫描仪而无需繁复的驱动安装。 可以配置多种压缩率将扫描的文件保存为 TIF, JPG, PNG, PDF 和 TXT (使用 Tesseract OCR )等格式。 它亦提供多页扫描功能并支持所有与 SANE 兼容的设备。",
"issue": "反馈问题或查看源码:",
"system-info": "系统信息:"
"system-info": "系统信息"
},

"colors": {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/scanservjs.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ExecStart=/var/www/scanservjs/server/server.js
Restart=always
User=scanservjs
Group=users
Environment=PATH=/usr/bin:/usr/local/bin:/bin
Environment=PATH=/usr/local/bin:/usr/bin:/bin
Environment=NODE_ENV=production
WorkingDirectory=/var/www/scanservjs

Expand Down

0 comments on commit 4553509

Please sign in to comment.