diff --git a/jest.config.ts b/jest.config.ts index c0cafe8..6fe08a7 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -13,7 +13,6 @@ const config: Config.InitialOptions = { '@shell/(.*)': '/node_modules/@rancher/shell/$1', '@components/(.*)': '/node_modules/@rancher/components/dist/@rancher/components.common.js', - '@benchmark-compliance/(.*)': '/pkg/benchmark-compliance/$1', '@sbombastic-image-vulnerability-scanner/(.*)': '/pkg/sbombastic-image-vulnerability-scanner/$1', '@network/(.*)': '/pkg/network/$1', '@runtime-process-profile/(.*)': '/pkg/runtime-process-profile/$1', diff --git a/pkg/benchmark-compliance/babel.config.js b/pkg/benchmark-compliance/babel.config.js deleted file mode 100644 index 410af81..0000000 --- a/pkg/benchmark-compliance/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./.shell/pkg/babel.config.js'); diff --git a/pkg/benchmark-compliance/index.ts b/pkg/benchmark-compliance/index.ts deleted file mode 100644 index d1453cd..0000000 --- a/pkg/benchmark-compliance/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { importTypes } from '@rancher/auto-import'; -import { IPlugin } from '@shell/core/types'; -import benchmarkRoutes from './routes/benchmark-routes'; - -// Init the package -export default function(plugin: IPlugin): void { - // Auto-import model, detail, edit from the folders - importTypes(plugin); - - // Provide plugin metadata from package.json - plugin.metadata = require('./package.json'); - - // Load a product - plugin.addProduct(require('./product')); - - // Add Vue Routes - plugin.addRoutes(benchmarkRoutes); -} diff --git a/pkg/benchmark-compliance/l10n/en-us.yaml b/pkg/benchmark-compliance/l10n/en-us.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/pkg/benchmark-compliance/package.json b/pkg/benchmark-compliance/package.json deleted file mode 100644 index 4b398a3..0000000 --- a/pkg/benchmark-compliance/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "benchmark-compliance", - "description": "benchmark-compliance plugin", - "version": "0.1.0", - "private": false, - "rancher": { - "annotations": { - "catalog.cattle.io/rancher-version": ">= 2.10.0", - "catalog.cattle.io/ui-extensions-version": ">= 3.0.0 < 4.0.0" - } - }, - "scripts": {}, - "engines": { - "node": ">=16" - }, - "devDependencies": { - "@vue/cli-plugin-babel": "~5.0.0", - "@vue/cli-service": "~5.0.0", - "@vue/cli-plugin-typescript": "~5.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not dead" - ] -} \ No newline at end of file diff --git a/pkg/benchmark-compliance/pages/overview.vue b/pkg/benchmark-compliance/pages/overview.vue deleted file mode 100644 index ed763a7..0000000 --- a/pkg/benchmark-compliance/pages/overview.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/pkg/benchmark-compliance/product.ts b/pkg/benchmark-compliance/product.ts deleted file mode 100644 index 3d1f7f3..0000000 --- a/pkg/benchmark-compliance/product.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { IPlugin } from '@shell/core/types'; - -export function init($plugin: IPlugin, store: any) { - const productName = 'benchmark'; - - const { - product, - virtualType, - basicType - } = $plugin.DSL(store, productName); - - // registering a top-level product - product({ - icon: 'pod_security', - inStore: 'cluster', - }); - - // => => => creating a custom page - virtualType({ - label: 'Overview', - name: 'overview', - namespaced: false, - route: { - name: `c-cluster-${productName}-overview`, - params: { - product: productName - }, - meta: { pkg: "benchmark-compliance", product: productName } - } - }); - - basicType([ - "overview" - ]); -} \ No newline at end of file diff --git a/pkg/benchmark-compliance/routes/benchmark-routes.ts b/pkg/benchmark-compliance/routes/benchmark-routes.ts deleted file mode 100644 index b343961..0000000 --- a/pkg/benchmark-compliance/routes/benchmark-routes.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Overview from '../pages/overview.vue' - -const benchmarkName = 'benchmark'; -const routes = [ - { - name: `c-cluster-${ benchmarkName }-overview`, - path: `/c/:cluster/${ benchmarkName }/overview`, - component: Overview - } -] - -export default routes; \ No newline at end of file diff --git a/pkg/benchmark-compliance/tsconfig.json b/pkg/benchmark-compliance/tsconfig.json deleted file mode 100644 index 184a0f7..0000000 --- a/pkg/benchmark-compliance/tsconfig.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "target": "esnext", - "module": "esnext", - "strict": true, - "jsx": "preserve", - "importHelpers": true, - "moduleResolution": "node", - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "sourceMap": true, - "baseUrl": ".", - "preserveSymlinks": true, - "typeRoots": [ - "../../node_modules", - "../../node_modules/@rancher/shell/types" - ], - "types": [ - "node", - "webpack-env", - "@types/node", - "@types/jest", - "@types/lodash", - "rancher", - "shell", - "jest" - ], - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ], - "paths": { - "@shell/*": [ - "../../node_modules/@rancher/shell/*" - ], - "@components/*": [ - "@rancher/components/*" - ], - "@benchmark-compliance/*": ["./*"], - "@tests/*": ["./tests/*"] - } - }, - "include": [ - "**/*.ts", - "**/*.d.ts", - "**/*.tsx", - "**/*.vue" - ], - "exclude": ["node_modules", "**/*.spec.ts", "**/*.test.ts"] -} diff --git a/pkg/benchmark-compliance/vue.config.js b/pkg/benchmark-compliance/vue.config.js deleted file mode 100644 index ee5e91e..0000000 --- a/pkg/benchmark-compliance/vue.config.js +++ /dev/null @@ -1,37 +0,0 @@ -const path = require('path'); -const webpack = require('webpack'); -const vendorConfigFactory = require('./.shell/pkg/vue.config'); - -module.exports = () => { - const vendorConfig = - typeof vendorConfigFactory === 'function' ? vendorConfigFactory(__dirname) : vendorConfigFactory; - - // Wrap the vendor configureWebpack if it exists. - const vendorConfigureWebpack = vendorConfig.configureWebpack; - const customConfigureWebpack = (config) => { - if (typeof vendorConfigureWebpack === 'function') { - vendorConfigureWebpack(config); - } - // Add the @benchmark-compliance alias to point to the pkg/benchmark-compliance directory. - config.resolve.alias['@benchmark-compliance'] = path.resolve(__dirname); - }; - - // Create an override for __tests__ directories. - const kwChainWebpack = (config) => { - config.plugin('ignore-tests') - .use(webpack.IgnorePlugin, [{ resourceRegExp: /[\\/]__tests__[\\/]/ }]); - }; - - const mergedChainWebpack = (config) => { - if (typeof vendorConfig.chainWebpack === 'function') { - vendorConfig.chainWebpack(config); - } - kwChainWebpack(config); - }; - - // Merge our custom chainWebpack and configureWebpack with the vendor config. - return Object.assign({}, vendorConfig, { - chainWebpack: mergedChainWebpack, - configureWebpack: customConfigureWebpack, - }); -}; diff --git a/pkg/network/tsconfig.json b/pkg/network/tsconfig.json index 184a0f7..ab93138 100644 --- a/pkg/network/tsconfig.json +++ b/pkg/network/tsconfig.json @@ -40,7 +40,6 @@ "@components/*": [ "@rancher/components/*" ], - "@benchmark-compliance/*": ["./*"], "@tests/*": ["./tests/*"] } }, diff --git a/pkg/runtime-process-profile/tsconfig.json b/pkg/runtime-process-profile/tsconfig.json index 184a0f7..ab93138 100644 --- a/pkg/runtime-process-profile/tsconfig.json +++ b/pkg/runtime-process-profile/tsconfig.json @@ -40,7 +40,6 @@ "@components/*": [ "@rancher/components/*" ], - "@benchmark-compliance/*": ["./*"], "@tests/*": ["./tests/*"] } }, diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/common/RegistryStatusUpdate.vue b/pkg/sbombastic-image-vulnerability-scanner/components/common/RegistryStatusUpdate.vue index 5e49238..cf19398 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/components/common/RegistryStatusUpdate.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/components/common/RegistryStatusUpdate.vue @@ -1,7 +1,7 @@