<commit_before>/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that
 * can be found in the LICENSE file. */

define(function(require, exports, module) {
  'use strict';
  console.log('Loading directorybrowser.js ...');
  var hopscotch = require('hopscotch');
  var TSCORE = require('tscore');

  var nextI18N = $.i18n.t('ns.dialogs:titleWaiting'); // not working
  //console.log("nextI18N "+ nextI18N);

  var tour = {
    id: "gettingstarted",
    steps: [
      {
        title: "Welcome to TagSpaces!",
        content: "Start using TagSpaces by choosing a location from your locale storage.",
        target: "locationName",
        placement: "bottom",
        onNext: function() {
          $("#locationsList").css("display", "block");
          $("#createNewLocation").addClass("uiEmphasizer");
        }
      },
      {
        title: "Connecting location",
        content: "If you don't have an already connected location, you can create one with this button. You can connect for example folders containing document or photos. And remember TagSpaces is <b>completely offline</b> tool so <b>no data will leave you device</b>.",
        target: "createNewLocation",
        placement: "bottom",
        onNext: function() {
          $("#createNewLocation").removeClass("uiEmphasizer");
          $("#locationsList").css("display", "");
          $('#tagGroupsContent').hide();
          $('#contactUsContent').hide();
          $('#locationContent').show();
          $('#showTagGroups').removeClass('active');
          $('#contactUs').removeClass('active');
          $('#showLocations').addClass('active');
          $('.col1 .row2').addClass("uiEmphasizer");
        }
      },
      {
        title: "Your folder navigator",
        content: "In the selected area, you will find after opening of a location the subfolders of the opened location folder. Clicking on a folder will open it and list the its subfolder ",
        target: "showLocations",
        placement: "top",
        onNext: function() {
          $('#locationContent').hide();
          $('#contactUsContent').hide();
          $('#tagGroupsContent').show();
          $('#showLocations').removeClass('active');
          $('#contactUs').removeClass('active');
          $('#showTagGroups').addClass('active');
          $('.col1 .row2').removeClass("uiEmphasizer");
          $('#tagGroupsContent').addClass("uiEmphasizer");
        },
        xOffset: -60,
        arrowOffset: 60,
      },
      {
        title: "Your tag library",
        content: "Clicking on this button will open your tag library. For your convenience, it is divided in tag groups containing the single tags.",
        target: "showTagGroups",
        placement: "top",
        onNext: function() {
          $('#tagGroupsContent').removeClass("uiEmphasizer");
          $('#contactUsContent').addClass("uiEmphasizer");
          $('#locationContent').hide();
          $('#tagGroupsContent').hide();
          $('#contactUsContent').show();
          $('#showLocations').removeClass('active');
          $('#showTagGroups').removeClass('active');
          $('#contactUs').addClass('active');
        }
      },
      {
        title: "About the project",
        content: "Clicking on this button will open a panel, containing useful information and links regarding the TagSpaces project.",
        target: "contactUs",
        placement: "top",
        onNext: function() {
          $('#contactUsContent').removeClass("uiEmphasizer");
        },
        xOffset: -120,
        arrowOffset: 120,
      },
      {
        title: "Settings",
        content: "This button will open the settings dialog of the app, where you can change language of the user interface or manage the file associations.",
        target: "openOptions",
        placement: "top",
        onNext: function() {
          $('#closeLeftPanel').addClass("uiEmphasizer");
        },
        xOffset: -220,
        arrowOffset: 220,
      },
      {
        title: "Closing side panel",
        content: "This button will close the left panel, in order to have more working space for the perspectives.",
        target: "closeLeftPanel",
        placement: "bottom",
        onNext: function() {
          $('#closeLeftPanel').removeClass("uiEmphasizer");
          $('#closeLeftPanel').click();
          $('#viewContainers').addClass("uiEmphasizer");
        },
        xOffset: -220,
        arrowOffset: 220,
      },
      {
        title: "Perspectives area",<commit_msg>adding some correction to the tour<commit_after>/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that
 * can be found in the LICENSE file. */

define(function(require, exports, module) {
  'use strict';
  console.log('Loading directorybrowser.js ...');
  var hopscotch = require('hopscotch');
  var TSCORE = require('tscore');

  var nextI18N = $.i18n.t('ns.dialogs:titleWaiting'); // not working
  //console.log("nextI18N "+ nextI18N);

  var tour = {
    id: "gettingstarted",
    steps: [
      {
        title: "Welcome to TagSpaces!",
        content: "Start using TagSpaces by choosing a location from your locale storage.",
        target: "locationName",
        placement: "bottom",
        onNext: function() {
          $("#locationsList").css("display", "block");
          $("#createNewLocation").addClass("uiEmphasizer");
        }
      },
      {
        title: "Connecting location",
        content: "If you don't have an already connected location, you can create one with this button. You can connect for example folders containing document or photos. And remember TagSpaces is <b>completely offline</b> tool so <b>no data will leave you device</b>.",
        target: "createNewLocation",
        placement: "bottom",
        onNext: function() {
          $("#createNewLocation").removeClass("uiEmphasizer");
          $("#locationsList").css("display", "");
          $('#tagGroupsContent').hide();
          $('#contactUsContent').hide();
          $('#locationContent').show();
          $('#showTagGroups').removeClass('active');
          $('#contactUs').removeClass('active');
          $('#showLocations').addClass('active');
          $('.col1 .row2').addClass("uiEmphasizer");
        }
      },
      {
        title: "Your folder navigator",
        content: "In the selected area, you will find after opening of a location the subfolders of the opened location folder. Clicking on a folder will open it and list the its subfolder ",
        target: "showLocations",
        placement: "top",
        onNext: function() {
          $('#locationContent').hide();
          $('#contactUsContent').hide();
          $('#tagGroupsContent').show();
          $('#showLocations').removeClass('active');
          $('#contactUs').removeClass('active');
          $('#showTagGroups').addClass('active');
          $('.col1 .row2').removeClass("uiEmphasizer");
          $('#tagGroupsContent').addClass("uiEmphasizer");
        },
        xOffset: -60,
        arrowOffset: 60,
      },
      {
        title: "Your tag library",
        content: "Clicking on this button will open your tag library. For your convenience, it is divided in tag groups containing the single tags.",
        target: "showTagGroups",
        placement: "top",
        onNext: function() {
          $('#tagGroupsContent').removeClass("uiEmphasizer");
          $('#contactUsContent').addClass("uiEmphasizer");
          $('#locationContent').hide();
          $('#tagGroupsContent').hide();
          $('#contactUsContent').show();
          $('#showLocations').removeClass('active');
          $('#showTagGroups').removeClass('active');
          $('#contactUs').addClass('active');
        }
      },
      {
        title: "About the project",
        content: "Clicking on this button will open a panel, containing useful information and links regarding the TagSpaces project.",
        target: "contactUs",
        placement: "top",
        onNext: function() {
          $('#contactUsContent').removeClass("uiEmphasizer");
        },
        xOffset: -120,
        arrowOffset: 120,
      },
      {
        title: "Settings",
        content: "This button will open the settings dialog of the app, where you can <b>change language</b> of the user interface or manage the <b>file associations</b>.",
        target: "openOptions",
        placement: "top",
        onNext: function() {
          $('#closeLeftPanel').addClass("uiEmphasizer");
        },
        xOffset: -220,
        arrowOffset: 220,
      },
      {
        title: "Closing side panel",
        content: "This button will close the left panel, in order to have more working space for the perspectives.",
        target: "closeLeftPanel",
        placement: "bottom",
        onNext: function() {
          $('#closeLeftPanel').removeClass("uiEmphasizer");
          $('#closeLeftPanel').click();
          $('#viewContainers').addClass("uiEmphasizer");
        },
        xOffset: -220,
        arrowOffset: 220,
      },
      {
        title: "Perspectives area",
{'fraction_non_alphanumeric': 0.14721528607100207, 'fraction_numerical': 0.00933666268591901, 'mean_word_length': 2.5267993874425727, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '5868004', 'n_tokens_mistral': 2394, 'n_tokens_neox': 2421, 'n_words': 690}