Sponsored Content
Top Forums Web Development Creating a Simple Linux Dashboard with Oracle Jet Post 303024980 by Neo on Monday 22nd of October 2018 06:39:19 AM
Old 10-22-2018
Creating a Simple Linux Dashboard with Oracle Jet - Part 5 the Oracle Jet index.html Code

Also for completeness and for reference: index.html

Code:
<!DOCTYPE html>
<html lang="en-us">

<head>
  <title>UNIX.COM Dashboard</title>

  <meta charset="UTF-8">
  <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1">
  <link rel="icon" href="css/images/favicon.ico" type="image/x-icon" />

  <!-- This is the main css file for the default Alta theme -->
  <!-- injector:theme -->
  <link rel="stylesheet" href="css/libs/oj/v6.0.0/alta/oj-alta-min.css" type="text/css" />
  <!-- endinjector -->

  <!-- This contains icon fonts used by the starter template -->
  <link rel="stylesheet" href="css/demo-alta-site-min.css" type="text/css" />

  <!-- This is where you would add any app specific styling -->
  <link rel="stylesheet" href="css/app.css" type="text/css" />
  <style>
    .neo-color{
  color:rgba(1, 8, 94,0.9) !important;
}
</style>
</head>

<body class="oj-web-applayout-body">
  <!-- Template for rendering navigation items shared between nav bar and nav list -->
  <script type="text/html" id="navTemplate">
      <li><a href="#">
        <span :class="[[$data['iconClass']]]"></span>
        <oj-bind-text value="[[$data['name']]]"></oj-bind-text>
      </a></li>
    </script>

  <div id="globalBody" class="oj-offcanvas-outer-wrapper oj-offcanvas-page">
    <!--
         ** Oracle JET V6.0.0 web application navigation drawer pattern.
         ** Please see the demos under Cookbook/Patterns/App Shell: Web
         ** and the CSS documentation under Support/API Docs/Non-Component Styling
         ** on the JET website for more information on how to use this pattern. 
         ** The off-canvas section is used when the browser is resized to a smaller media
         ** query size for a phone format and hidden until a user clicks on
         ** the header hamburger icon.
      -->
    <div id="navDrawer" role="navigation" class="oj-contrast-marker oj-web-applayout-offcanvas oj-offcanvas-start neo-color">
      <oj-navigation-list data="[[navDataSource]]" edge="start" item.renderer="[[oj.KnockoutTemplateUtils.getRenderer('navTemplate', true)]]"
        on-click="[[toggleDrawer]]" selection="{{router.stateId}}">
      </oj-navigation-list>
    </div>
    <div id="
        pageContent" class="oj-web-applayout-page">
      <!--
           ** Oracle JET V6.0.0 web application header pattern.
           ** Please see the demos under Cookbook/Patterns/App Shell: Web
           ** and the CSS documentation under Support/API Docs/Non-Component Styling
           ** on the JET website for more information on how to use this pattern.
        -->
      <header role="banner" class="oj-web-applayout-header">
        <div class="oj-web-applayout-max-width oj-flex-bar oj-sm-align-items-center">
          <!-- Offcanvas toggle button -->
          <div class="oj-flex-bar-start oj-md-hide">
            <oj-button id="drawerToggleButton" class="oj-button-lg" on-oj-action="[[toggleDrawer]]" chroming="half"
              display="icons">
              <span slot="startIcon" class="oj-web-applayout-offcanvas-icon"></span>
              <span>Application Navigation</span>
            </oj-button>
          </div>
          <div class="oj-flex-bar-middle oj-sm-align-items-baseline ">
            <span style="display:none" role="img" class="oj-icon demo-oracle-icon" title="Oracle Logo" alt="Oracle Logo"></span>
            <h1 class="oj-sm-only-hide oj-web-applayout-header-title neo-color" title="Application Name" style="font-weight: bold;margin:50px 0px 0px 20px;font-size:1.5em">
              <oj-bind-text value="[[appName]]"></oj-bind-text>
            </h1>
          </div>

       <!--
         ** the code below was "display:none;" 'd out of the app
         ** because did not yet fully integrate the user session functions yet
      -->

          <div class="oj-flex-bar-end" style="display:none;">
            <!-- Responsive Toolbar -->
            <oj-toolbar>
              <oj-menu-button id="userMenu" display="[[smScreen() ? 'icons' : 'all']]" chroming="half">
                <span>
                  <oj-bind-text value="[[userLogin]]"></oj-bind-text>
                </span>
                <span slot="endIcon" :class="[[{'oj-icon demo-appheader-avatar': smScreen(), 'oj-component-icon oj-button-menu-dropdown-icon': !smScreen()}]]"></span>
                <oj-menu id="menu1" slot="menu" style="display:none">
                  <oj-option id="pref" value="pref">Preferences</oj-option>
                  <oj-option id="help" value="help">Help</oj-option>
                  <oj-option id="about" value="about">About</oj-option>
                  <oj-option id="out" value="out">Sign Out</oj-option>
                </oj-menu>
              </oj-menu-button>
            </oj-toolbar>
          </div>
        </div>
        <div role="navigation" class="oj-web-applayout-max-width oj-web-applayout-navbar">
          <oj-navigation-list class="
          oj-sm-only-hide oj-md-condense oj-md-justify-content-flex-end neo-color"
            data="[[navDataSource]]" edge="top" item.renderer="[[oj.KnockoutTemplateUtils.getRenderer('navTemplate', true)]]"
            selection="{{router.stateId}}">
          </oj-navigation-list>
        </div>
      </header>
      <oj-module role="main" class="oj-web-applayout-max-width oj-web-applayout-content neo-color" config="[[moduleConfig]]">
      </oj-module>
      <footer class="oj-web-applayout-footer neo-color" role="contentinfo">
        <div style="display:inline-block" class="oj-web-applayout-footer-item oj-web-applayout-max-width neo-color">
          <ul>
            <oj-bind-for-each data="[[footerLinks]]">
              <template>
                <li><a class="neo-color" :id="[[$current.data.linkId]]" :href="[[$current.data.linkTarget]]">
                    <oj-bind-text value="[[$current.data.name]]"></oj-bind-text>
                  </a></li>
              </template>
            </oj-bind-for-each>
          </ul>
        </div>
        <div style="display:inline-block" class="oj-web-applayout-footer-item oj-web-applayout-max-width oj-text-secondary-color oj-text-sm neo-color">
          <oj-bind-text value="[[appName]]"></oj-bind-text>
          <oj-bind-text value="[[neoVersion]]"></oj-bind-text>
        </div>
      </footer>
    </div>
  </div>

  <script type="text/javascript" src="js/libs/require/require.js"></script>
  <script type="text/javascript" src="js/main.js"></script>

</body>

</html>

 

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Excellent Oracle JET Video - "Finally, JavaScript Is Easy!"

This is a video well worth watching if you have any interests at all in the future of web development, web development frameworks and Javascript. https://www.youtube.com/watch?v=V8mhIEeTMCc . Fixed typo in Oracle Jet URL (oraclejet.org) (0 Replies)
Discussion started by: Neo
0 Replies

2. Web Development

Oracle Jet - LP: 10. Lesson 1: Oracle JET 4.x - Lesson 1 - Part 4: Data Binding

Working on LP: 10. Lesson 1: Oracle JET 4.x - Lesson 1 - Part 4: Data Binding in this Oracle JET online course - Soar higher with Oracle JavaScript Extension Toolkit (JET), I have created this code for incidents.js I cannot get the load average data in this Oracle JET test to update the... (4 Replies)
Discussion started by: Neo
4 Replies

3. Web Development

Oracle JET 4.x - Lesson 1 - Part 9: Oracle JET Cookbook (Gauges and Ints)

Working on: 10. Lesson 1: Oracle JET 4.x - Lesson 1 - Part 9: Oracle JET Cookbook (which I highly recommend) and using the server loadavg code I wrote and have been adding gauges. All is great so far, and I'm loving JET, but have ran into an issue. Here is the loadavg.js code: /** ... (1 Reply)
Discussion started by: Neo
1 Replies

4. Web Development

A Quick Web Developers Review of Oracle JET

Oracle JET is marketed as a kind of "anti-framework" approach to web development but from my experience Oracle JET is just another type of framework. So, I would describe JET as "a meta-framework" because JET is a framework that is built to import and use other frameworks and Javascript... (4 Replies)
Discussion started by: Neo
4 Replies
All times are GMT -4. The time now is 11:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy