Skip to content

Commit

Permalink
Remove or replace all the @nuxt libraries (#11302)
Browse files Browse the repository at this point in the history
* Update checkout to v4 and bump Node to 16

* Update GHA workflow migration paths

* Removed named exports from Vue files

* Move code outside of the Vue app element

* Remove @nuxtjs/eslint-config-typescript

* Remove @nuxt/types and @nuxt/typescript-build

* Fix import issue with http-proxy-middleware

* Replace @nuxtjs/axios with axios and axios-retry

* Remove @nuxtjs/webpack-profile

* Fix linting issues after Nuxt webpack removal

* Pin resolution for glob after rebase

* Update yarn.lock after rebase

* Fix issue with rancher-components

* Bump rancher-component GHA config to match rebase changes

* Generate yarn file

* Add dependency

* Remove nuxt global var in app template

* Pin version for babel/plugin-proposal-private-methods
  • Loading branch information
cnotv authored and nwmac committed Aug 13, 2024
1 parent b04e28d commit f5b95a5
Show file tree
Hide file tree
Showing 34 changed files with 4,479 additions and 4,392 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dist-pkg
.DS_Store
shell/utils/dynamic-importer.js
ksconfig.json
nuxt
storybook-static/
utils/dynamic-importer.js
shell/assets/fonts
Expand Down
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
'no-new': 'off',
'no-plusplus': 'off',
'no-useless-escape': 'off',
'nuxt/no-cjs-in-config': 'off',
strict: 'off',
'unicorn/no-new-buffer': 'off',
'vue/no-unused-components': 'warn',
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rancher-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
validate-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
Expand All @@ -26,7 +26,7 @@ jobs:
validate-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
Expand Down
85 changes: 46 additions & 39 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,31 @@ jobs:
if: "!contains( github.event.pull_request.labels.*.name, 'ci/skip-e2e')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup env
uses: ./.github/actions/setup
- name: Build e2e
run: yarn e2e:build
- name: Upload e2e build
uses: actions/upload-artifact@v4
with:
name: ${{ env.E2E_BUILD_DIST_NAME }}
path: ${{ env.E2E_BUILD_DIST_DIR }}/
if-no-files-found: error
retention-days: 10
compression-level: 9
- name: Upload e2e build ember
uses: actions/upload-artifact@v4
with:
name: ${{ env.E2E_BUILD_DIST_EMBER_NAME }}
path: ${{ env.E2E_BUILD_DIST_EMBER_DIR }}/
if-no-files-found: error
retention-days: 10
compression-level: 9
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup env
uses: ./.github/actions/setup
- name: Build e2e
run: yarn e2e:build
- name: Upload e2e build
uses: actions/upload-artifact@v4
with:
name: ${{ env.E2E_BUILD_DIST_NAME }}
path: ${{ env.E2E_BUILD_DIST_DIR }}/
if-no-files-found: error
retention-days: 10
compression-level: 9
- name: Upload e2e build ember
uses: actions/upload-artifact@v4
with:
name: ${{ env.E2E_BUILD_DIST_EMBER_NAME }}
path: ${{ env.E2E_BUILD_DIST_EMBER_DIR }}/
if-no-files-found: error
retention-days: 10
compression-level: 9


e2e-test:
if: "!contains( github.event.pull_request.labels.*.name, 'ci/skip-e2e')"
needs: e2e-ui-build
Expand All @@ -83,7 +85,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup env
Expand Down Expand Up @@ -130,16 +132,17 @@ jobs:
TEST_USERNAME: ${{ matrix.role.username }}

- name: Upload screenshots
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: ${{github.run_number}}-${{github.run_attempt}}-screenshots-${{ matrix.role.tag }}+${{ matrix.features[0] }}
path: cypress/screenshots


unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -153,25 +156,38 @@ jobs:
cp -r coverage/unit/ coverage-artifacts/coverage/unit/
- name: Upload coverage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{github.run_number}}-${{github.run_attempt}}-coverage
path: coverage-artifacts/**/*


i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run i18n lint
uses: ./.github/actions/i18n-lint


lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run tests
uses: ./.github/actions/lint


check-i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
Expand All @@ -186,15 +202,6 @@ jobs:
# Falure won't fail the job (remove -x when all current issues are fixed)
./scripts/check-i18n -s -x
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Run tests
uses: ./.github/actions/lint
# coverage:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -223,7 +230,7 @@ jobs:
check-e2e-tags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
Expand Down
86 changes: 86 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,81 @@
"javascript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.importModuleSpecifier": "non-relative",
"cSpell.words": [
"alertmanager",
"ALERTMANAGER",
"alertmanagerconfig",
"ALERTMANAGERCONFIG",
"apimachinery",
"apiregistration",
"apiserver",
"apiservice",
"authconfig",
"authprovider",
"autoscroll",
"banzaicloud",
"bundledeployment",
"bundlenamespacemapping",
"cacerts",
"CAPI",
"catalogtemplate",
"chainable",
"cloudcredential",
"clusterflow",
"clustergroup",
"clusteroutput",
"clusterregistrationtoken",
"clusterrepo",
"clusterrole",
"clusterrolebinding",
"clusterroletemplatebinding",
"clusterroletemplatebindings",
"clustertemplate",
"clustertemplaterevision",
"cncf",
"Codecov",
"configmap",
"constrainttemplate",
"createapp",
"csidriver",
"daemonset",
"dedot",
"DEDOT",
"destinationrule",
"DETECTEXCEPTIONS",
"engineimage",
"epinio",
"etcdbackup",
"etcdsnapshot",
"fleetworkspace",
"fleetworkspaces",
"geoip",
"GEOIP",
"gitrepo",
"gitreporestriction",
"globaldnsprovider",
"globalrole",
"globalrolebinding",
"hevi",
"horizontalpodautoscaler",
"httpconfig",
"ingressclass",
"Istio",
"kontainer",
"KONTAINER",
"kontainerdriver",
"kube",
"kubeconfig",
"kubectl",
"Kubernetes",
"kubevirt",
"limitrange",
"machinedeployment",
"machineset",
"managedchart",
"mgmt",
"multiclusterapp",
"networkattachmentdefinition",
"networkpolicy",
"neuvector",
"nodedriver",
"nodemetrics",
Expand All @@ -43,19 +99,49 @@
"opsgenie",
"OPSGENIE",
"overcommit",
"pagerduty",
"PAGERDUTY",
"persistentvolume",
"persistentvolumeclaim",
"poddisruptionbudget",
"podmetrics",
"podmonitor",
"PODMONITOR",
"podsecurityadmissionconfigurationtemplate",
"prefs",
"prepending",
"projecthelmchart",
"PROJECTHELMCHART",
"projectroletemplatebinding",
"projectsnamespaces",
"prometheusrule",
"PROMETHEUSRULE",
"protip",
"PSPS",
"PVC",
"pvcs",
"rancherusernotification",
"replicaset",
"replicationcontroller",
"resourcequota",
"rolebinding",
"roletemplate",
"serviceaccount",
"servicemonitor",
"SERVICEMONITOR",
"shortkey",
"statefulset",
"storageclass",
"SUMOLOGIC",
"testid",
"thanosruler",
"THANOSRULER",
"tolerations",
"uiplugin",
"userpreference",
"userpreferences",
"virtualmachine",
"virtualservice",
"vuex",
"whatsnew"
],
Expand Down
Loading

0 comments on commit f5b95a5

Please sign in to comment.