We have moved! This forum is now read only. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


[SOLVED] Ongoing status updates with new UI for Gear Isolation
#6
Been a busy week at work trying to finish up some work thing so didn't had a lot of time to dedicate to Snakeoil coding. Here is the Systems page I've been working on and off while I can.
 
[Image: partial-system.jpg]

While it is simple looking there's a lot of changes under the hood. E.g. I am trying to work on a simpler system to upload firmware. If this works it will allow me to do away with running PHP on the Snakeoil process, meaning one less thing that's running on the system. There are still challenges, namely to get this to actually work, and how to disable PHP while still allowing users to roll back the upgrade if they have to.

The changes under the hood is what's more important. It makes for cleaner (and more modular code), allowing me to update this better in the future. e.g. this page is now rendered like so:
 
Code:
<div class="row" *ngSwitchCase="Mode.NORMAL">
    <ngx-system-uploader class="col-md-12">
    </ngx-system-uploader>

    <ngx-system-commands class="col-md-12" [(config)]="config">
    </ngx-system-commands>
  </div>

  <ngx-system-reboot *ngSwitchCase="Mode.REBOOT" [(config)]="config">
  </ngx-system-reboot>

And the command buttons is now a single loop (ngFor), with the commands defined in it's own data structure.
 
Code:
<nb-card>
      <nb-card-header>
        {{ 'SYSTEM.COMMANDS' | translate }}
      </nb-card-header>
      <nb-card-body class="row">
        <div class="col-lg-3 col-md-4 col-sm-6"
            *ngFor="let command of commands">
          <button nbButton class="command" shape="round"
              (click)="onCmdClick(command.label)" nbTooltip="{{ command.tooltip | translate }}">
            <i class="{{command.icon}}"></i> 
            {{ command.label | translate }}
          </button>
        </div>
      </nb-card-body>
    </nb-card>

The old GUI code, the button codes are created on their own, and while that works, it's not easily expandable. This new design is heaps easier, and more readable. All this means moving forward the code will be more maintainable, and it's easier to add/remove things in the future. (e.g. I can add/remove commands without changing any HTML code.

In other words, this new GUI will take some time to finish as I rework everything to the Angular 11 standards. I really want to make this right, and that takes time.
Snakeoil Operating System - Music, your way!
Reply


Messages In This Thread
RE: Ongoing status updates with new UI for Gear Isolation - by agent_kith - 19-Jun-2021, 03:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Kernel Builder Updates agent_kith 18 7,865 04-Dec-2022, 03:43 PM
Last Post: agent_kith
  Request For Comments: Snakeoil 1.2.0 (Gear Isolation) agent_kith 103 50,786 02-May-2021, 09:14 PM
Last Post: agent_kith



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors
{myadvertisements[zone_4]}

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 2044
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1566
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 9119
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 904
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 659
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 4990
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5477
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 14961
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4409
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1200

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.