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

Remove or replace all the @nuxt libraries #11302

Merged
merged 18 commits into from
Aug 8, 2024
Merged
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: 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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation was wrong, bumped checkout versions

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
Loading