TrueNAS WebUI

这是用于 TrueNAS CORE 和 TrueNAS SCALE 的 Angular.io WebUI 项目。「This is the project for the Angular.io WebUI for TrueNAS CORE & TrueNAS SCALE.」

  • 所有者: truenas/webui
  • 平台: Docker, Linux, Mac, Windows
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

TrueNAS WebUI

Latest Docker Image - master

This is the project for the Angular.io WebUI for TrueNAS CORE & TrueNAS SCALE.

Testing Images

You can download and test running the latest version of the TrueNAS WebUI anytime using pre-built docker images.

Images only require the environment variable TNIP to be set to the IP or Hostname of your local TrueNAS instance.

Example:

# docker container run -it -e TNIP=192.168.0.30 -p 8080:80 ixsystems/truenas-webui:latest

This would allow you to access the running WebUI on http://localhost:8080

NOTE: Pull requests are also generated as Docker images and can be used for testing by replacing the ":latest" tag with the pull-request ID. I.E. "ixsystems/truenas-webui:5010"

Development requirements

  • yarn >= 1.12
  • Node.js >= 8.9
  • Running TrueNAS CORE or TrueNAS SCALE Nightly Machine (VM is fine)

Getting started

Install the development requirements (FreeBSD 11 or later):

# pkg install yarn

Checkout TrueNAS git repository:

$ git clone https://github.com/truenas/webui.git
$ cd webui

Install yarn packages:

$ yarn install

Run the environment configuration script
(if your ip address changes later you may repeat this step)

$ ./setup_env.js -i <ip address or FQDN of the server where TrueNAS is running>

To start run
yarn start
This runs a local webserver with the new WebUI, by default at http://localhost:4200.
If this webserver is kept running, changes to the project will be rebuilt incrementally.
To test AOT in dev mode run
yarn run start:dev:aot
To run the production build, run
yarn run build:prod:aot
Getting errors about missing packages?
yarn install
Getting permission errors or Failed messages when trying to run yarn start?
From the webui repo

rm -rf node_modules (may need root)
rm yarn.lock 
yarn cache clean --force
yarn install

This should bring the yarn environment back to a useable state.

Translating Text to Other Languages

All JSON files for translating TrueNAS's web interface are included in this repository under src/assets/i18n.
These can be edited using your editor of choice or directly via the GitHub Web based code editing system.
Some strings may use ICU Message Format for pluralization.
You can move tokens around and adjust them for your language.
For example:

Deleted {n, plural, one {# snapshot} other {# snapshots}}

can be translated in Russian as:

{n, plural, =1 {Снимок удален} few{# снимка удалено} other {# снимков удалено}}

You can test your strings in an online editor.
Stock images used on the dashboard UI are courtesy of Pixabay.com and are subject to the Simplified Pixabay License.
Full license details can be found at https://pixabay.com/service/license/.

概覽

名稱與所有者truenas/webui
主編程語言TypeScript
編程語言JavaScript (語言數: 8)
平台Docker, Linux, Mac, Windows
許可證GNU General Public License v3.0
發布數165
最新版本名稱TS-24.04.0 (發布於 )
第一版名稱11.0-RC (發布於 )
創建於2017-05-02 14:42:01
推送於2024-04-27 03:08:58
最后一次提交2024-04-26 17:50:16
星數337
關注者數34
派生數295
提交數24.2k
已啟用問題?
問題數0
打開的問題數0
拉請求數9218
打開的拉請求數8
關閉的拉請求數735
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部