Download pool/shard006/JavaScript/0037647_navbar.controller.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/JavaScript/0037647_navbar.controller.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard006/JavaScript/0037647_navbar.controller.js
-
curl -L -o 0037647_navbar.controller.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/JavaScript/0037647_navbar.controller.js
759 Bytes
| /** | |
| * @ngdoc object | |
| * @name NavbarController | |
| * @description Viewlogic for Navbar | |
| */ | |
| angular.module('projiSeApp') | |
| .controller('NavbarController', function($scope, $location, Auth, PanelSwitch, Project) { | |
| 'use strict'; | |
| $scope.Project = Project; | |
| $scope.navpanelSwitch = function() { | |
| PanelSwitch.navpanel.switch(); | |
| }; | |
| $scope.chatpanelSwitch = function() { | |
| PanelSwitch.chatpanel.switch(); | |
| }; | |
| $scope.isLoggedIn = Auth.isLoggedIn; | |
| $scope.isAdmin = Auth.isAdmin; | |
| $scope.getCurrentUser = Auth.getCurrentUser; | |
| $scope.logout = function() { | |
| Auth.logout(); | |
| $location.path('/login'); | |
| }; | |
| $scope.isActive = function(route) { | |
| return route === $location.path(); | |
| }; | |
| }); | |