<commit_before>import Vue from 'vue'

import NavigationBar from '@rundeck/ui-trellis/lib/components/navbar/NavBar.vue'
import UtilityBar from '@rundeck/ui-trellis/lib/components/utility-bar/UtilityBar.vue'

import {RootStore} from '@rundeck/ui-trellis/lib/stores/RootStore'
import {UtilityActionItem} from '@rundeck/ui-trellis/lib/stores/UtilityBar'

function initNav() {
    const rootStore = new RootStore(window._rundeck.rundeckClient)
    const elm = document.getElementById('navbar') as HTMLElement

    const vue = new Vue({
        el: elm,
        components: {NavigationBar},
        template: `<NavigationBar />`,
        provide: {
          rootStore
        }
      })
}

function initUtil() {
  const rootStore = new RootStore(window._rundeck.rundeckClient)
  const elm = document.getElementById('utilityBar') as HTMLElement

  rootStore.utilityBar.addItems([
    {
        "type": "action",
        "id": "utility-edition",
        "container": "root",
        "group": "left",
        "class": "rdicon app-logo",
        "label": "RUNDECK 3.4.0",
        "visible": true,
        "action": () => {alert('Version info!')}
    },
    {
        "type": "action",
        "id": "utility-instance",
        "container": "root",
        "group": "left",
        "class": "fas fa-glass-martini fas-xs",
        "label": "ec554baf55",
        "visible": true,
        "action": () => {alert('Cluster Instance Stuff!')}
    },
    {
        "type": "action",
        "id": "utility-support",
        "container": "root",
        "group": "right",
        "class": "fas fa-question-circle fas-xs",
        "label": "Support",
        "visible": true,
        "action": () => {alert('Support!')}
    },
    {
        "type": "action",
        "id": "utility-tours",
        "container": "root",
        "group": "right",
        "class": "fas fa-lightbulb",
        "label": "Tours",
        "visible": true,
        "action": () => {alert('Tours!')}
    }
  ] as Array<UtilityActionItem>)

  const vue = new Vue({
      el: elm,
      components: {UtilityBar},
      template: `<UtilityBar />`,
      provide: {
        rootStore<commit_msg>Update utility bar primary items<commit_after>import Vue from 'vue'

import NavigationBar from '@rundeck/ui-trellis/lib/components/navbar/NavBar.vue'
import UtilityBar from '@rundeck/ui-trellis/lib/components/utility-bar/UtilityBar.vue'
import RundeckInfoWidget from '@rundeck/ui-trellis/lib/components/widgets/rundeck-info/RundeckInfoWidget.vue'

import {RootStore} from '@rundeck/ui-trellis/lib/stores/RootStore'
import {UtilityActionItem} from '@rundeck/ui-trellis/lib/stores/UtilityBar'
import { getRundeckContext } from '@rundeck/ui-trellis'



function initNav() {
    const rootStore = getRundeckContext().rootStore
    const elm = document.getElementById('navbar') as HTMLElement

    const vue = new Vue({
        el: elm,
        components: {NavigationBar},
        template: `<NavigationBar />`,
        provide: {
          rootStore
        }
      })
}

function initUtil() {
  const rootStore = getRundeckContext().rootStore
  const elm = document.getElementById('utilityBar') as HTMLElement

  rootStore.utilityBar.addItems([
    {
        "type": "widget",
        "id": "utility-edition",
        "container": "root",
        "group": "left",
        "class": "rdicon app-logo",
        "label": "RUNDECK 3.4.0",
        "visible": true,
        widget: Vue.extend({
          components: {RundeckInfoWidget},
          template: `<RundeckInfoWidget/>`,
          provide: {
            rootStore
          }
        })
    },
    {
        "type": "action",
        "id": "utility-support",
        "container": "root",
        "group": "right",
        "class": "fas fa-question-circle fas-xs",
        "label": "Help",
        "visible": true,
        "action": () => {window.open('https://docs.rundeck.com/docs/', "_blank")}
    }
  ] as Array<UtilityActionItem>)

  const vue = new Vue({
      el: elm,
      components: {UtilityBar},
      template: `<UtilityBar />`,
      provide: {
        rootStore
{'fraction_non_alphanumeric': 0.1568483063328424, 'fraction_numerical': 0.002700049091801669, 'mean_word_length': 2.5099052540913007, 'pattern_counts': {'":': 47, '<': 10, '<?xml version=': 0, '>': 15, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3749725', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1297, 'n_words': 264}