Enhance welcome screen with optional package selection and updated instructions
This commit is contained in:
@@ -2,6 +2,7 @@ local Ansi = require('opus.ansi')
|
|||||||
local Security = require('opus.security')
|
local Security = require('opus.security')
|
||||||
local SHA = require('opus.crypto.sha2')
|
local SHA = require('opus.crypto.sha2')
|
||||||
local UI = require('opus.ui')
|
local UI = require('opus.ui')
|
||||||
|
local Util = require('opus.util')
|
||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local os = _G.os
|
local os = _G.os
|
||||||
@@ -16,13 +17,9 @@ local labelIntro = [[Set a friendly name for this computer.
|
|||||||
local passwordIntro = [[A password is required for wireless access.
|
local passwordIntro = [[A password is required for wireless access.
|
||||||
|
|
||||||
%sLeave blank to skip.]]
|
%sLeave blank to skip.]]
|
||||||
local packagesIntro = [[Setup Complete
|
local packagesIntro = [[Optional Packages
|
||||||
|
|
||||||
%sOpen the package manager to add software to this computer.
|
%sSelect packages to install with this computer. You can always add more later from the Package Manager.]]
|
||||||
|
|
||||||
Recommended packages:
|
|
||||||
%s- RemoteTurtle%s (turtle control + web dashboard)
|
|
||||||
%s- Inventory Manager%s (storage automation)]]
|
|
||||||
local contributorsIntro = [[Contributors%s
|
local contributorsIntro = [[Contributors%s
|
||||||
|
|
||||||
Anavrins: Encryption/security/custom apps
|
Anavrins: Encryption/security/custom apps
|
||||||
@@ -97,18 +94,40 @@ local page = UI.Page {
|
|||||||
},
|
},
|
||||||
packages = UI.WizardPage {
|
packages = UI.WizardPage {
|
||||||
index = 4,
|
index = 4,
|
||||||
button = UI.Button {
|
|
||||||
x = 3, y = -3,
|
|
||||||
text = 'Open Package Manager',
|
|
||||||
event = 'packages',
|
|
||||||
},
|
|
||||||
intro = UI.TextArea {
|
intro = UI.TextArea {
|
||||||
textColor = colors.yellow,
|
textColor = colors.yellow,
|
||||||
inactive = true,
|
inactive = true,
|
||||||
x = 3, ex = -3, y = 2, ey = -4,
|
x = 3, ex = -3, y = 2, ey = 5,
|
||||||
value = string.format(packagesIntro, Ansi.white,
|
value = string.format(packagesIntro, Ansi.white),
|
||||||
Ansi.yellow, Ansi.white,
|
},
|
||||||
Ansi.yellow, Ansi.white),
|
chkTurtle = UI.Checkbox {
|
||||||
|
x = 5, y = 7,
|
||||||
|
label = 'RemoteTurtle',
|
||||||
|
textColor = 'yellow',
|
||||||
|
backgroundColor = 'primary',
|
||||||
|
value = false,
|
||||||
|
},
|
||||||
|
lblTurtle = UI.Text {
|
||||||
|
x = 22, y = 7,
|
||||||
|
value = 'Turtle control + web dashboard',
|
||||||
|
textColor = colors.lightGray,
|
||||||
|
},
|
||||||
|
chkInventory = UI.Checkbox {
|
||||||
|
x = 5, y = 9,
|
||||||
|
label = 'Inventory Manager',
|
||||||
|
textColor = 'yellow',
|
||||||
|
backgroundColor = 'primary',
|
||||||
|
value = false,
|
||||||
|
},
|
||||||
|
lblInventory = UI.Text {
|
||||||
|
x = 28, y = 9,
|
||||||
|
value = 'Storage automation system',
|
||||||
|
textColor = colors.lightGray,
|
||||||
|
},
|
||||||
|
button = UI.Button {
|
||||||
|
x = 3, y = -3,
|
||||||
|
text = 'More Packages...',
|
||||||
|
event = 'packages',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
contributors = UI.WizardPage {
|
contributors = UI.WizardPage {
|
||||||
|
|||||||
Reference in New Issue
Block a user