<commit_before><template lang="pug">
div
  // TODO: Add back option to select a specific browser bucket

  h6 Active browser time: {{ $store.state.activity_daily.browser_duration | friendlyduration }}

  div.row
    div.col-md-6
      h5 Top Browser Domains
      div(v-if="browserBuckets")
        aw-summary(:fields="$store.state.activity_daily.top_domains", :namefunc="e => e.data.$domain", :colorfunc="e => e.data.$domain", with_limit)

    div.col-md-6
      h5 Top Browser URLs
      div(v-if="browserBuckets")
        aw-summary(:fields="$store.state.activity_daily.top_urls", :namefunc="e => e.data.url", :colorfunc="e => e.data.$domain", with_limit)

  //div(v-if="periodLength === 'day'")
    br
    hr
    b-form-checkbox(v-model="timelineShowAFK")
      | Show AFK time
    aw-timeline-inspect(:chunks="$store.state.activity_daily.web_chunks", :show_afk='timelineShowAFK', :chunkfunc='e => e.data.$domain', :eventfunc='e => e.data.url')
</template>

<script>
export default {
  name: 'Activity',
  props: {
    periodLength: {
      type: String,
      default: 'day',
    },
  },
  data: () => {
    return {
      filterAFK: true,
      timelineShowAFK: true,

      // browserBucketSelected: 'all',

      top_web_count: 5,
    };
  },<commit_msg>fix: Add notice to download browser watcher if no buckets exist<commit_after><template lang="pug">
div
  // TODO: Add back option to select a specific browser bucket
  div(v-if="browserBuckets.length <= 0")
    h6 No browser buckets available
    small Make sure you have a browser watcher installed to use this feature
  div(v-if="browserBuckets.length > 0")

    h6 Active browser time: {{ $store.state.activity_daily.browser_duration | friendlyduration }}

    div.row
      div.col-md-6
        h5 Top Browser Domains
        div(v-if="browserBuckets")
          aw-summary(:fields="$store.state.activity_daily.top_domains", :namefunc="e => e.data.$domain", :colorfunc="e => e.data.$domain", with_limit)

      div.col-md-6
        h5 Top Browser URLs
        div(v-if="browserBuckets")
          aw-summary(:fields="$store.state.activity_daily.top_urls", :namefunc="e => e.data.url", :colorfunc="e => e.data.$domain", with_limit)

  //div(v-if="periodLength === 'day'")
    br
    hr
    b-form-checkbox(v-model="timelineShowAFK")
      | Show AFK time
    aw-timeline-inspect(:chunks="$store.state.activity_daily.web_chunks", :show_afk='timelineShowAFK', :chunkfunc='e => e.data.$domain', :eventfunc='e => e.data.url')
  br
</template>

<script>
export default {
  name: 'Activity',
  props: {
    periodLength: {
      type: String,
      default: 'day',
    },
  },
  data: () => {
    return {
      filterAFK: true,
      timelineShowAFK: true,

      // browserBucketSelected: 'all',

      top_web_count: 5,
    };
  },
{'fraction_non_alphanumeric': 0.15538847117794485, 'fraction_numerical': 0.0053705692803437165, 'mean_word_length': 3.1701492537313434, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4933122', 'n_tokens_mistral': 966, 'n_tokens_neox': 927, 'n_words': 193}