From b227757b9aa1a00f3a6d7a5cfa5f37d4c5302b75 Mon Sep 17 00:00:00 2001 From: kkthxbye-code <> Date: Tue, 4 Oct 2022 15:02:37 +0200 Subject: [PATCH 01/19] Update JS dependencies WIP --- netbox/project-static/.eslintrc | 3 +- netbox/project-static/dist/cable_trace.css | 2 +- netbox/project-static/dist/config.js | 4 +- netbox/project-static/dist/config.js.map | 6 +- netbox/project-static/dist/graphiql.css | 2 +- netbox/project-static/dist/graphiql.js | 220 +- netbox/project-static/dist/graphiql.js.map | 6 +- netbox/project-static/dist/lldp.js | 4 +- netbox/project-static/dist/lldp.js.map | 6 +- .../materialdesignicons-webfont-DWVXV5L5.woff | Bin 0 -> 561776 bytes ...materialdesignicons-webfont-ER2MFQKM.woff2 | Bin 0 -> 385360 bytes .../materialdesignicons-webfont-UHEFFMSX.eot | Bin 0 -> 1243720 bytes .../materialdesignicons-webfont-WM6M6ZHQ.ttf | Bin 0 -> 1243500 bytes netbox/project-static/dist/netbox-dark.css | 2 +- .../project-static/dist/netbox-external.css | 2 +- netbox/project-static/dist/netbox-light.css | 2 +- netbox/project-static/dist/netbox-print.css | 2 +- netbox/project-static/dist/netbox.js | 43 +- netbox/project-static/dist/netbox.js.map | 6 +- netbox/project-static/dist/rack_elevation.css | 2 +- netbox/project-static/dist/status.js | 4 +- netbox/project-static/dist/status.js.map | 6 +- netbox/project-static/package.json | 59 +- netbox/project-static/src/netbox.ts | 12 +- netbox/project-static/styles/select.scss | 2 +- netbox/project-static/yarn.lock | 3564 +++++++---------- 26 files changed, 1723 insertions(+), 2236 deletions(-) create mode 100644 netbox/project-static/dist/materialdesignicons-webfont-DWVXV5L5.woff create mode 100644 netbox/project-static/dist/materialdesignicons-webfont-ER2MFQKM.woff2 create mode 100644 netbox/project-static/dist/materialdesignicons-webfont-UHEFFMSX.eot create mode 100644 netbox/project-static/dist/materialdesignicons-webfont-WM6M6ZHQ.ttf diff --git a/netbox/project-static/.eslintrc b/netbox/project-static/.eslintrc index 802fa7a3e..30b47308b 100644 --- a/netbox/project-static/.eslintrc +++ b/netbox/project-static/.eslintrc @@ -31,8 +31,7 @@ } }, "rules": { - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-unused-vars-experimental": "error", + "@typescript-eslint/no-unused-vars": "error", "no-unused-vars": "off", "no-inner-declarations": "off", "comma-dangle": ["error", "always-multiline"], diff --git a/netbox/project-static/dist/cable_trace.css b/netbox/project-static/dist/cable_trace.css index ff431f4ad..a5f5ff7e9 100644 --- a/netbox/project-static/dist/cable_trace.css +++ b/netbox/project-static/dist/cable_trace.css @@ -1 +1 @@ -:root{--nbx-trace-color: #000;--nbx-trace-node-bg: #e9ecef;--nbx-trace-termination-bg: #f8f9fa;--nbx-trace-cable-shadow: #343a40;--nbx-trace-attachment: #ced4da}:root[data-netbox-color-mode=dark]{--nbx-trace-color: #fff;--nbx-trace-node-bg: #212529;--nbx-trace-termination-bg: #343a40;--nbx-trace-cable-shadow: #e9ecef;--nbx-trace-attachment: #6c757d}*{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:.875rem}text{text-anchor:middle;dominant-baseline:middle}text:not([fill]){fill:var(--nbx-trace-color)}text.bold{font-weight:700}svg rect{fill:var(--nbx-trace-node-bg);stroke:#606060;stroke-width:1}svg rect .termination{fill:var(--nbx-trace-termination-bg)}svg .connector text{text-anchor:start}svg line{stroke-width:5px}svg polyline{fill:none;stroke-width:5px}svg .cable-shadow{stroke:var(--nbx-trace-cable-shadow);stroke-width:7px}svg line.wireless-link{stroke:var(--nbx-trace-attachment);stroke-dasharray:4px 12px;stroke-linecap:round}svg line.attachment{stroke:var(--nbx-trace-attachment);stroke-dasharray:5px} +:root{--nbx-trace-color: #000;--nbx-trace-node-bg: #e9ecef;--nbx-trace-termination-bg: #f8f9fa;--nbx-trace-cable-shadow: #343a40;--nbx-trace-attachment: #ced4da}:root[data-netbox-color-mode=dark]{--nbx-trace-color: #fff;--nbx-trace-node-bg: #212529;--nbx-trace-termination-bg: #343a40;--nbx-trace-cable-shadow: #e9ecef;--nbx-trace-attachment: #6c757d}*{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:.875rem}text{text-anchor:middle;dominant-baseline:middle}text:not([fill]){fill:var(--nbx-trace-color)}text.bold{font-weight:700}svg rect{fill:var(--nbx-trace-node-bg);stroke:#606060;stroke-width:1}svg rect .termination{fill:var(--nbx-trace-termination-bg)}svg .connector text{text-anchor:start}svg line{stroke-width:5px}svg polyline{fill:none;stroke-width:5px}svg .cable-shadow{stroke:var(--nbx-trace-cable-shadow);stroke-width:7px}svg line.wireless-link{stroke:var(--nbx-trace-attachment);stroke-dasharray:4px 12px;stroke-linecap:round}svg line.attachment{stroke:var(--nbx-trace-attachment);stroke-dasharray:5px} diff --git a/netbox/project-static/dist/config.js b/netbox/project-static/dist/config.js index 2b360c5a2..e7a43aa42 100644 --- a/netbox/project-static/dist/config.js +++ b/netbox/project-static/dist/config.js @@ -1,5 +1,5 @@ -(()=>{var cr=Object.create;var le=Object.defineProperty,ur=Object.defineProperties,fr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertyNames,hn=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,pn=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable;var mn=(i,t,e)=>t in i?le(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t)=>{for(var e in t||(t={}))pn.call(t,e)&&mn(i,e,t[e]);if(hn)for(var e of hn(t))mr.call(t,e)&&mn(i,e,t[e]);return i},Me=(i,t)=>ur(i,dr(t)),gn=i=>le(i,"__esModule",{value:!0});var Ot=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),gr=(i,t)=>{gn(i);for(var e in t)le(i,e,{get:t[e],enumerable:!0})},_r=(i,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of hr(t))!pn.call(i,n)&&n!=="default"&&le(i,n,{get:()=>t[n],enumerable:!(e=fr(t,n))||e.enumerable});return i},Er=i=>_r(gn(le(i!=null?cr(pr(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var vi=(i,t,e)=>new Promise((n,o)=>{var r=u=>{try{l(e.next(u))}catch(p){o(p)}},s=u=>{try{l(e.throw(u))}catch(p){o(p)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(r,s);l((e=e.apply(i,t)).next())});var tn=Ot((Jo,ai)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof ai=="object"&&ai.exports?ai.exports=t():i.EvEmitter=t()})(typeof window!="undefined"?window:Jo,function(){"use strict";function i(){}var t=i.prototype;return t.on=function(e,n){if(!(!e||!n)){var o=this._events=this._events||{},r=o[e]=o[e]||[];return r.indexOf(n)==-1&&r.push(n),this}},t.once=function(e,n){if(!(!e||!n)){this.on(e,n);var o=this._onceEvents=this._onceEvents||{},r=o[e]=o[e]||{};return r[n]=!0,this}},t.off=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){var r=o.indexOf(n);return r!=-1&&o.splice(r,1),this}},t.emitEvent=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){o=o.slice(0),n=n||[];for(var r=this._onceEvents&&this._onceEvents[e],s=0;s{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof li=="object"&&li.exports?li.exports=t():i.getSize=t()})(window,function(){"use strict";function t(d){var y=parseFloat(d),E=d.indexOf("%")==-1&&!isNaN(y);return E&&y}function e(){}var n=typeof console=="undefined"?e:function(d){console.error(d)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=o.length;function s(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},y=0;y