haproxy-wi/app/templates/include/intro/admin.html

114 lines
3.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script>
function Intro() {
var intro = introJs();
intro.setOptions({
steps: [
{
element: document.querySelector('#admin-area'),
intro: "Only the user with superAdmin role can access the Admin area section",
position: 'right'
},
{
element: document.querySelector('#admin-area-users'),
intro: "Create, edit, lock/unlock users profiles, grant roles, add new users to groups",
position: 'right'
},
{
element: document.querySelector('#add-user-button'),
intro: " Add new objects clicking by this button",
position: 'left'
},
{
element: document.querySelector('#admin-area-groups'),
intro: " Add new groups or edit existing ones",
position: 'right'
},
{
element: document.querySelector('#admin-area-servers'),
intro: "Choose servers to display on the Overview page, manage their settings and restrict access to configuration files",
position: 'right'
},
{
element: document.querySelector('#servers-help-link'),
intro: "Note that some pages have more extended guides for them",
},
{
element: document.querySelector('#admin-area-ssh'),
intro: "Configure a key-based authentication and restrict access to a server for some users",
position: 'right'
},
{
element: document.querySelector('#admin-area-checker'),
intro: "Set up notifications and the way youll get them",
position: 'right'
},
{
element: document.querySelector('#checker-tabs-head'),
intro: "Note that notification channels and settings are in the different tabs",
},
{
element: document.querySelector('#admin-area-settings'),
intro: "Tap a service name to expand its settings",
position: 'right'
},
{
element: document.querySelector('#admin-area-services'),
intro: "Run, stop and restart services by pressing buttons and read their short descriptions",
position: 'right'
},
{
element: document.querySelector('#admin-area-logs'),
intro: "Select one of all internal logs and click the Show button",
position: 'right'
},
{
element: document.querySelector('#admin-area-update'),
intro: "Update services by pressing buttons and check their versions",
position: 'right'
},
{
element: document.querySelector('#admin-tabs'),
intro: "Navigate through Admin area by clicking tabs above as wel",
},
{
element: document.querySelector('#admin-tabs-vpn'),
intro: " You can access some subsections like OpenVPN..."
},
{
element: document.querySelector('#admin-tabs-backup'),
intro: "Git and Backup...",
},
{
element: document.querySelector('#admin-tabs-mon'),
intro: "and Monitoring installation this way",
},
{
element: document.querySelector('.guid_me'),
intro: "Phew...Im a bit tired of chatting. Would you like to take a break before we continue\n" +
"with another section of Roxy?",
}
]
});
return intro;
}
function introHints() {
let intro = introJs();
intro.setOptions({
hints: [
{ hint: 'A new way for Groups and Roles. Try it!', element: '#user-group-role-th' },
]
});
intro.onhintclose(function() {
localStorage.setItem('introHintAdminRoles', 1);
});
return intro;
}
// setTimeout(() => { var intro_temp = Intro(); startIntro(intro_temp); }, 3000);
if (!localStorage.getItem('introHintAdminRoles')) {
setTimeout(() => {
var intro_temp = introHints();
intro_temp.addHints();
}, 1000);
}
</script>