PageSourceSearch

https://anstar-aslogger.web.app/components/workspace/workspace.component.js

js anstar-aslogger.web.app collected 2026-10-03 12:16:51 UTC 1,158 bytes, 41 lines download raw bytes

1;
2(function() {
3  "use strict";
4
5  angular.module('asLoggerApp')
6    .controller('workspaceController', workspaceController);
7
8  function workspaceController($rootScope, $scope, $firebaseObject, $firebaseArray, globalService) {
9    var vm = this;
10    vm.globalService = globalService;
11
12    vm.globalService.getWorkspaceData = function() {
13      vm.messages = $firebaseArray(vm.globalService.vars.messageDbRef);
14      console.log(vm.messages);
15    }
16
17    $scope.$watch('vm.messages', function(newVal, oldVal) {
18      globalService.vars.messageCount = vm.messages.length;
19    }, true);
20
21
22    vm.globalService.hideNewLogsIcon = function() {
23      var list = $firebaseArray(vm.globalService.vars.messageDbRef);
24      console.log(list);
25      angular.forEach(list, function(value, key) {
26        console.log(value);
27      });
28
29      $(".new-logs").addClass("d-md-none");
30    }
31
32    vm.globalService.clearLogs = function() {
33      if (confirm("Are you sure? Data once deleted will not be recovered.")) {
34        var obj = $firebaseObject(vm.globalService.vars.messageDbRef);
35        obj.$remove();
36      }
37    }
38
39    vm.globalService.getWorkspaceData();
40  }
41})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.