Commit Graph

142 Commits

Author SHA1 Message Date
Richard Cox 6109573740 Optimise build process for standalone harvester
- we're already supplying RANCHER_ENV, so make sure it's not excluded
2022-09-08 16:51:38 +01:00
Nancy Butler 6b18d802ad generateDynamicTypeImport hyphenated dirs
rename cloud_credential and machine_config back to cloud-credential and machine-config
2022-07-12 10:59:34 -07:00
Nancy Butler 9f37ab0e77 fixes for build-pkg 2022-07-12 10:59:33 -07:00
Nancy Butler 17fccb4214 fix loading imported dev cluster 2022-07-12 10:59:33 -07:00
scures 4f8f7c38d4 string splitting & documentation instructions
Signed-off-by: scures <scurescu@suse.com>
2022-06-07 11:51:07 +02:00
scures 1cd2a3673e Addressing feedback 2022-06-01 13:51:13 +02:00
scures 4a4ce46c0c Small fix 2022-06-01 10:05:23 +02:00
scures 10cdf83315 Excludes packages from .env file instead of hardcoded 2022-06-01 09:34:42 +02:00
Phillip Rak 72b36cb360
Create Rancher Component Library (#5504)
This adds a new project for Rancher Components under `pkg/rancher-components` and replaces components used throughout dashboard with the versions used here. All imports for the following components have been updated:

```
  |- BadgeState.vue
  |- Banner.vue
  |- Card.vue
  |- Form
    |- Checkbox.vue
    |- LabeledInput.vue
    |- LabeledTooltip.vue
    |- RadioButton.vue
    |- RadioGroup.vue
    |- TextAreaAutoGrow.vue
```
2022-05-24 15:09:53 -07:00
Richard Cox 3cfcc5942c Disable epinio by default 2022-05-10 10:04:04 +01:00
Richard Cox 3a04cf7b1a Plugins: Initial codebase refactor and plugin support (#4779)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

Co-authored-by: Richard Cox <richard.cox@suse.com>
# Conflicts:
#	components/nav/Header.vue
#	nuxt.config.js
#	package.json
#	yarn.lock
2022-05-10 10:00:39 +01:00
Giuseppe Leo bd938842aa
Enable source map in Nuxt/Webpack configuration for debugging (#5590) 2022-04-11 11:44:55 +02:00
Neil MacDougall 2fc6ff95f6 Remove nuxt-content library 2022-03-23 15:11:17 +00:00
Richard Cox 8e75e57a53
Merge pull request #5396 from nwmac/perf-sim
Add simple mechanism to simulate large numbers of resources
2022-03-23 12:52:05 +00:00
Nancy 20976a70d4
Unit test jest (#3405)
* initial setup; unitinput simple example tests

* add coverage report

* testing info in docs

* rm unused babel config options

fix jest typescript

update unitinput unit tests

* Correct tsconfig Jest/Cypress conflicts; update libraries version; remove unnecessary Mocha/Chai

* Update unit input tests

* Ignore new rules from eslint

* Add local unit test script; Disable unit test coverage

* Add babel plugin definitions to avoid warning spam on build

* Pin @babel/preset-env to avoid issues with missing utils;  Merge yarn config from master; Moved packages to devDependencies as not required after build

* Remove file exclusion from editor settings

* Add Lodash types

* Add types to array utility

* Update ESlint rules to allow overload types declarations

* Create Jest tests from existing Ava ones

* Add Jest launcher for debugging

* Update Drone test script runner with CI version

* Remove Ava libraries, scripts and configuration

* Add Jest related linting rules

* Move tests within the related code path

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2022-03-23 11:35:26 +01:00
Neil MacDougall 62dea3b042 Enable via environment variable when in dev 2022-03-22 21:14:27 +00:00
Neil MacDougall 36f3a7c67b Show custom icons for cutom RKE1 node drivers 2022-02-16 12:06:31 +00:00
Josh Soref 2256ee3acf
Spelling (#4994)
* spelling: accommodate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: additional

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: address

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: array

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: async

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: attributes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: automatically

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: available

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: awesomeness

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: because

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: behaviour

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: bootstrapping

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: calculated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: callback

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: codemirror

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: config

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: configurable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: constraints

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: default

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: deux

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: different

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dissimilar

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ensure

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: evaluate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: example

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: existence

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: falsy

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: getter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: global

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: grafana

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: image

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: integer

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: manifest

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: microservices

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: milli

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: mismatch

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: modifier

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: namespace

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: navigation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nullable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: occurred

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: package

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: param

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: permissions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: portion

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: potentially

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: powershell

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: recipient

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: records

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: representation

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: request

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: required

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: returns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: separated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: should

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: software

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: substitute

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: support

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: their

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unknown

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: upfront

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: upgrade

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: useful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: validator

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-02-11 10:09:54 +00:00
Phillip Rak 325bbb4407 Add a runtime config for the rancher environment
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-02-07 15:11:42 -07:00
Vincent Fiduccia 43c33c4ba2
Stream findAlls as jsonl 2021-11-04 16:22:13 -07:00
Jordon Leach 5e7bd843e9
Revert "fix for yarn.lock > @novnc/novnc@^1.2.0" 2021-10-27 16:14:51 -04:00
Richard Cox ff9280aa27 Fix build 2021-10-27 16:28:26 +01:00
Phillip Rak c21d38bdd1 Add hoistUseStatements: true to nuxt config 2021-10-12 13:07:37 -07:00
wujun 6c2f2444fa HARVESTER: feat: add singleVirtualCluster namepace 2021-09-17 11:06:47 +08:00
Phillip Rak 07f8c3d100 Add new directive to nuxt plugins 2021-08-26 13:55:46 -07:00
Vincent Fiduccia aad699beb4
Change 500s to disambiguate real serve errors 2021-08-24 12:45:52 -07:00
Neil MacDougall 8e2152c2d7 Fix formatting on release notes page 2021-08-16 11:51:53 +01:00
Richard Cox 2c5029bf3c Fix build issue 2021-07-27 15:19:38 +01:00
Richard Cox c973148cec Fix linting 2021-07-26 17:48:35 +01:00
Richard Cox de14c5cc91 Add linting, Use ts run time 2021-07-26 14:36:40 +01:00
Richard Cox a245fe8f5c Enable TS 2021-07-23 16:27:02 +01:00
wujun 1e39655928 feat: harvester node driver 2021-07-09 17:28:12 +08:00
Neil MacDougall f1468f7959 Fix back button nav issue 2021-06-11 16:46:59 +01:00
Vincent Fiduccia 4f78aad2ad
Cluster templates 2021-06-04 01:45:47 -07:00
Neil MacDougall 6b1f967f16 Final page moves following review 2021-05-25 10:42:20 +01:00
Richard Cox 7766d1e66a Fix proxy for `/k` which was swallowing `/k8s` 2021-05-25 10:42:20 +01:00
Neil MacDougall 8699cc71be Changes to add v1 charts to cluster tools 2021-05-25 10:42:19 +01:00
Vincent Fiduccia c31abe7471
IFrame non-rke2 cluster edit 2021-05-12 01:54:29 -07:00
Neil MacDougall b0754094d8 Tidy nuxt config changes 2021-05-05 13:52:34 +01:00
Neil MacDougall 002536c2b4 TIdy ups and remove some hacks 2021-05-05 11:33:03 +01:00
Neil MacDougall deacdf6b7c Latest changes 2021-05-05 11:32:32 +01:00
Neil MacDougall a70506c0e0 Fix lint issues 2021-05-05 11:20:11 +01:00
Neil MacDougall 47f86b9e1d TIdy ups and remove some hacks 2021-05-05 11:20:06 +01:00
Neil MacDougall 6427754168 Address merge issues 2021-05-05 11:20:06 +01:00
Neil MacDougall 7f53e97033 Latest changes 2021-05-05 11:20:06 +01:00
Neil MacDougall 9ebdbab776 Tweaks 2021-05-05 11:20:06 +01:00
Neil MacDougall d3374bff88 Working iframe embedding 2021-05-05 11:20:05 +01:00
Richard Cox 1e0269eb7b Disable prism theme brought in via Nuxt Content
- prism theme borks our code block styles
- see https://content.nuxtjs.org/configuration/#markdownprismtheme
- the docs pages look fine without, but we may need to investigate when those use cases grow
2021-04-29 22:15:21 +01:00
Neil MacDougall bca4048b5a Fix lint issues 2021-04-22 13:58:40 +01:00
Neil MacDougall 539f564b9a Add support for Release Notes and Getting Started pages 2021-04-22 13:54:46 +01:00