summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/environments/environment.ts
blob: 6ad91356cbb24329e6081f9a1f9fad30bf56cced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
const url = 'https://SERVERIP/opengnsys3';
export const environment = {
  production: false,
  BASE_URL: url,
  API_URL: url + '/backend/web/app_dev.php/api/private',
  API_PUBLIC_URL: url + '/api',
  API_BASE_URL: '/backend/web/app_dev.php/api',
  OAUTH_DOMAIN: '/backend/web/app_dev.php/oauth/v2/token',
  OAUTH_CLIENT_ID: 'CLIENTID',
  OAUTH_CLIENT_SECRET: 'CLIENTSECRET',
  BASE_DIR: 'opengnsys3',
  clientstatus: ['off', 'initializing', 'oglive', 'busy', 'linux', 'linux_session', 'macos', 'windows', 'windows_session'],
  windowsboots: ['reboot', 'directo (kexec)'],
  ou: {
    options: {
      p2p: {
        modes: ['peer', 'leecher', 'seeder']
      },
      multicast: {
        modes: ['Full-duplex', 'half-duplex'],
        ports: function() {
          const result = [];
          for (let index = 9000; index < 9051; index += 2) {
            result.push(index);
          }
          return result;
        }
      }
    }
  },
  menus: {
    resolutions: [
      { id: 'uvesafb:D', text: 'default_detected'},
      { id: 'uvesafb:800x600-16', text: '800x600, 16bit'},
      { id: 'uvesafb:800x600-24', text: '800x600, 24bit'},
      { id: 'uvesafb:800x600-32', text: '800x600, 32bit'},
      { id: 'uvesafb:1024x768-16', text: '1024x768, 16bit'},
      { id: 'uvesafb:1024x768-24', text: '1024x768, 24bit'},
      { id: 'uvesafb:1024x768-32', text: '1024x768, 32bit'},
      { id: 'uvesafb:1152x864-16', text: '1152x864, 16bit'},
      { id: 'uvesafb:1280x1024,16', text: '1280x1024, 16bit'},
      { id: 'uvesafb:1280x1024,24', text: '1280x1024, 24bit'},
      { id: 'uvesafb:1280x1024,32', text: '1280x1024, 32bit'},
      { id: 'uvesafb:1600x1200,16', text: '1600x1200, 16bit'},
      { id: 'uvesafb:1600x1200,24', text: '1600x1200, 24bit'},
      { id: 'uvesafb:1600x1200,32', text: '1600x1200, 32bit'}
    ],
    privateOptions: [
      {
        id: true,
        text: 'private'
      },
      {
        id: false,
        text: 'public'
      }
    ],
    itemImage: [
      {
        value: '0',
        text: ''
      },
      { value: '7', text: 'Logo General de Linux'},
      { value: '6', text: 'Logo Windows XP'},
      { value: '9', text: 'Ordenador apagado'},
      { value: '10', text: 'Ordenador encendido'},
      { value: '8', text: 'Particionar'}
    ]
  },
  user: {
    preferences: {
      ous: {
        showGrid: true
      },
      language: 'es',
      theme: 'skin-black'
    }
  },
  languages: [
    {
      id: 'es',
      name: 'Español'
    },
    {
      id: 'en',
      name: 'English'
    },
    {
      id: 'cat',
      name: 'Català'
    }
  ],
  partitionTableTypes: {
    '1': 'MSDOS',
    '2': 'GPT',
    '3': 'LVM',
    '4': 'ZPOOL'
  },
  deployMethods: {
    deployImage: ['MULTICAST', 'MULTICAST-DIRECT', 'UNICAST', 'UNICAST-DIRECT', 'TORRENT'],
    updateCache: ['MULTICAST', 'UNICAST', 'TORRENT']
  },
  commands: {
    'CREATE_IMAGE': '/opt/opengnsys/interfaceAdm/CrearImagen',
    'HISTORY_LOG': '/cgi-bin/httpd-history-log.sh',
    'REALTIME_LOG': '/cgi-bin/httpd-log.sh',
    'SOFTWARE_INVENTORY': '/opt/opengnsys/interfaceAdm/InventarioSoftware3',
    'REBOOT': 'reboot 1',
    'POWER_OFF': 'poweroff',
    'HARDWARE_INVENTORY': '/opt/opengnsys/interfaceAdm/InventarioHardware3',
    'REFRESH_INFO': 'sendConfigToServer'
  },
  themes: ['skin-black', 'skin-black-light', 'skin-blue-light', 'skin-blue', 'skin-green', 'skin-green-light', 'skin-purple', 'skin-purple-light', 'skin-red', 'skin-red-light', 'skin-yellow', 'skin-yellow-light', 'skin-uhu', 'skin-uhu-light']


};

/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
// import 'zone.js/dist/zone-error';  // Included with Angular CLI.