FreeNAS Angular UI
Clone or download
erinix Merge pull request #1792 from freenas/FIX-52182-master2
Fixed trailing zeros charts on front page dashboard (master)
Latest commit cb85200 Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode makes inconsole debugging for VSCODE easier. Oct 10, 2017
config Make proxy work, needed for rest calls Aug 23, 2017
e2e clean removal off ng2-admin (Bootstrap/Angular), replaced by Egret (M… Aug 22, 2017
ports/freenas put gmake to fetch target Dec 20, 2018
scripts Merge branch 'master' into angular-seven Dec 5, 2018
src Merge pull request #1792 from freenas/FIX-52182-master2 Jan 16, 2019
tests Projects #69004: Add IP parameter to Selenium-Ubuntu-Freenas-11.2 web… Jan 9, 2019
.editorconfig feat(ui): new P.O.C. angular 2 UI Mar 4, 2017
.gitignore Git ignore the auto generated file Jan 14, 2019
Jenkinsfile Add new Jenkinsfile-API-Testing and retire the -ISO version Mar 5, 2018
Jenkinsfile-API-Testing Force VMs to poweroff before cleanup Apr 24, 2018
Jenkinsfile-npm8 Create Jenkinsfile-npm8 Nov 15, 2018
README-egret.md Make proxy work, needed for rest calls Aug 23, 2017
README.md Fix yarn cache and other warnings in package.json and fix documentation Dec 10, 2018
angular.json Removed wrapping quotes from sass variables in ix-blue.scss file. Thi… Jan 14, 2019
jenkins-yarn - Make Yarn default Dec 7, 2018
karma.conf.js Initial attempt to upgrade to Angular 7 Nov 14, 2018
package.json Put yarn run ie-support command back to the front of the build comman… Jan 14, 2019
patch-yarn-package.json Regenrate yarn patch for angular 7 Nov 30, 2018
protractor.conf.js clean removal off ng2-admin (Bootstrap/Angular), replaced by Egret (M… Aug 22, 2017
proxy.config.json.skel Add proxy for /_upload May 14, 2018
setup_env.js Add entity stuff and just enough glue to make egret start and setup_e… Aug 22, 2017
tsconfig.json Initial attempt to upgrade to Angular 7 Nov 14, 2018
tslint.json Initial attempt to upgrade to Angular 7 Nov 14, 2018

README.md

FreeNAS 11 WebUI

Build Status

This is the project for the new angular.io WebUI for FreeNAS 11. It is meant to coexist with current FreeNAS 11 Django/Dojo WebUI.

Development requirements

  • yarn >= 1.12
  • Node.js >= 8.9
  • Running FreeNAS 11 Nightly Machine (VM is fine)

Getting started

Install the development requirements (FreeBSD 11 or later):

# pkg install yarn

Checkout FreeNAS git repository:

$ git clone https://github.com/freenas/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 FreeNAS 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

To extract all of the strings from the project to be translated run: yarn run extract

This will update all of the PO files located in the directory src/assets/i18n. These can be edited with any PO editor.