Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CD-5123 Create admin-old servlet for old ExtJS UI only as a clone of admin #538

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ GTAGS
core
.DS_Store
.sass-cache
rake.log
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"id": "target_address",
"type":"promptString",
"description": "IP of NGFW",
"default": ""
"default": "192.168.2.101"
},
{
"id": "test_client_address",
Expand Down
8 changes: 4 additions & 4 deletions threat-prevention/js/common/Converter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Ext.define('Ung.common.Converter.threatprevention', {
singleton: true,

reason: function (v) { return Map.webReasons[v] || 'no rule applied'.t(); },
reason: function (v) { return Mapper.webReasons[v] || 'no rule applied'.t(); },

ruleIdMap: {},
ruleId: function (value, record) {
Expand All @@ -11,9 +11,9 @@ Ext.define('Ung.common.Converter.threatprevention', {
var policyId = record && record.get && record.get('policy_id') ? record.get('policy_id') : 1;
var reason = record && record.get && record.get('threat_prevention_reason') ? record.get('threat_prevention_reason') : 'N';
if(reason != 'N'){
for(var id in Map.webReasons){
if(Map.webReasons.hasOwnProperty(id)){
if(Map.webReasons[id] == reason){
for (var id in Mapper.webReasons) {
if (Mapper.webReasons.hasOwnProperty(id)) {
if (Mapper.webReasons[id] == reason) {
reason = id;
if(reason == 'default'){
reason = 'N';
Expand Down
8 changes: 4 additions & 4 deletions threat-prevention/js/common/TableConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ Ext.define('Ung.common.TableConfig.threatprevention', {
* Add threat prevention fields and tables configuration
* to the main Map
*/
Ext.apply(Map.fields, this.map.fields);
Ext.apply(Mapper.fields, this.map.fields);
Ext.Object.each(this.map.tables, function (table, fields) {
Ext.Array.push(Map.tables[table], fields);
Ext.Array.push(Mapper.tables[table], fields);
});

Map.listeners['sessions'] = {
Mapper.listeners['sessions'] = {
select: Ung.common.TableConfig.threatprevention.getIpDetails
};
Map.listeners['http_events'] = {
Mapper.listeners['http_events'] = {
select: Ung.common.TableConfig.threatprevention.getHttpDetails
};

Expand Down
20 changes: 20 additions & 0 deletions uvm/hier/usr/share/untangle/conf/apache2/conf.d/admin-old.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
JkMount /admin-old* uvmWorker

<Location /admin-old>
AuthType Basic
AuthName "Administrator"
require valid-user

<IfModule mod_auth_basic.c>
AuthBasicAuthoritative Off
AuthUserFile /dev/null
</IfModule>
<IfModule mod_auth_pam.c>
AuthPAM_Enabled Off
</IfModule>

PythonOption Realm Administrator
PythonPath "['@PREFIX@/usr/lib/python3/dist-packages/'] + sys.path"
PythonAuthenHandler uvm_login
PythonHeaderParserHandler uvm_login
</Location>
13 changes: 13 additions & 0 deletions uvm/hier/usr/share/untangle/conf/apache2/conf.d/vue.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Vue app/components

Alias /vue @PREFIX@/usr/share/untangle/web/vue
<Directory @PREFIX@/usr/share/untangle/web/vue>
Require all granted
Satisfy Any

RewriteEngine On
RewriteBase /vue
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L]
</Directory>
1 change: 1 addition & 0 deletions uvm/hier/usr/share/untangle/web/vue/css/app.59724673.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file added uvm/hier/usr/share/untangle/web/vue/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions uvm/hier/usr/share/untangle/web/vue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/vue/favicon.ico"><script src="/vue/jsonrpc.js"></script><title>Arista - NGFW</title><link href="/vue/css/app.59724673.css" rel="preload" as="style"><link href="/vue/css/chunk-vendors.0d7763ef.css" rel="preload" as="style"><link href="/vue/js/app.091e7637.js" rel="preload" as="script"><link href="/vue/js/chunk-vendors.ea82e840.js" rel="preload" as="script"><link href="/vue/css/chunk-vendors.0d7763ef.css" rel="stylesheet"><link href="/vue/css/app.59724673.css" rel="stylesheet"></head><body><div id="app"></div><script src="/vue/js/chunk-vendors.ea82e840.js"></script><script src="/vue/js/app.091e7637.js"></script></body></html>
2 changes: 2 additions & 0 deletions uvm/hier/usr/share/untangle/web/vue/js/app.091e7637.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions uvm/hier/usr/share/untangle/web/vue/js/app.091e7637.js.map

Large diffs are not rendered by default.

Loading