• Stars
    star
    349
  • Rank 120,793 (Top 3 %)
  • Language
    TypeScript
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TrueNAS Angular UI

Join Discord Join Forums File Issue

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

Have a system with yarn.

Checkout TrueNAS git repository:

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

Install yarn packages:

$ yarn install

Generate an environment file

$ yarn check-env

Configure the remote TrueNAS system you'd like to connect to. (if your ip address changes later you may repeat this step)

$ yarn ui remote -i <ip address or FQDN of the server where TrueNAS is running>

NOTE: It is highly recommended to create an alias in your shell of choice to 'ui' to minimize typing If this script gives a typescript error in the console, please see the section above on generating an environment file

zsh example: alias ui='yarn run --silent ui

Starting the Application

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 usable 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/.

Contributing

Learn how you can contribute to our project and help us maintain it on our Contribution guide.

More Repositories

1

middleware

TrueNAS CORE/Enterprise/SCALE Middleware Git Repository
Python
2,237
star
2

scale-build

TrueNAS SCALE Build System
Python
318
star
3

charts

TrueNAS SCALE Apps Catalogs & Charts
Smarty
286
star
4

core-build

TrueNAS CORE/Enterprise Build System
Python
223
star
5

os

FreeBSD base for TrueNAS Core
C
213
star
6

documentation

TrueNAS Documentation Hub
HTML
117
star
7

py-libzfs

Python libzfs bindings
Cython
78
star
8

py-SMART

Wrapper for smartctl (smartmontools)
Python
74
star
9

zettarepl

Zettabyte File System (ZFS) Replication Tool written in Python
Python
64
star
10

truenas-installer

Repo with scripts for TrueNAS installation on Debian
Python
44
star
11

ports

FreeBSD ports tree
Makefile
29
star
12

linux

Linux kernel for TrueNAS SCALE
C
25
star
13

midcli

NAS Command Line Interface
Python
16
star
14

mDNSResponder

C
15
star
15

py-sysctl

Python wrapper for the sysctl system functions
C
13
star
16

samba

C
12
star
17

nfs4xdr-acl-tools

CLI tool to manage Samba-style xdr-formatted NFSv41 ACLs
C
9
star
18

py-bsd

Python wrappers for various BSD libc and system calls
Cython
8
star
19

freenas-java-api-client

FreeNAS Java API Client: It is a java client library that allows to interact with FreeNAS by Java programatically calls
Java
8
star
20

py-netif

Python network configuration library for FreeBSD
Cython
7
star
21

apps

Python
6
star
22

chelsiouwire

C
5
star
23

licenselib

License library for FreeNAS
Python
4
star
24

truecommand-stats

Small utility that TrueCommand uses for gathering system statistics
Go
4
star
25

repo-mgmt

Scripts and tools for Apt repository management
Python
4
star
26

python-truenas-requirements

Python
3
star
27

freenas-pkgtools

FreeNAS Packaging/update/installation tools
Python
3
star
28

iocage-ix-plugins

Official iXSystems iocage plugins for TrueNAS
3
star
29

grub2

Shell
2
star
30

binaries

C
2
star
31

catalog_validation

Validate truenas compliant catalog structure / format.
Python
2
star
32

truenas-cd

Clone of debian-cd with TrueNAS build changes
Shell
2
star
33

nss-pam-ldapd

C
2
star
34

containers

Shell
1
star
35

pyglfs

C
1
star
36

firmware

Repository for firmwares
Python
1
star
37

intel-pcm

Shell
1
star
38

py-sg3

Cython
1
star
39

ixdiagnose

Python
1
star
40

smartmontools

Shell
1
star
41

minio

Python
1
star
42

pkg-qemu

https://salsa.debian.org/qemu-team/qemu
C
1
star
43

ScaleAutomation

Python
1
star
44

py-sgio

Python bindings for SG_IO ioctl on linux
Cython
1
star
45

rrdtool

Shell
1
star
46

py-fenced

Fencing daemon for automatically managing persistent SCSI reservations
Python
1
star