Commit Graph

176 Commits

Author SHA1 Message Date
Vincent Fiduccia 31ea3b138e
Eslint changes new nuxt defaults want 2020-05-28 14:22:52 -07:00
Nancy Butler 1bde772cf2 yaml in generic detail 2020-05-26 09:47:40 -07:00
Vincent Fiduccia 71f3b8cdec
store.getters gets reassigned as stores register, so proxy steve's context.rootGetters so that it's always the full list of them 2020-05-20 15:26:04 -07:00
Vincent Fiduccia d8d3f8120f
Add existing record to store on create, not on edit 2020-05-19 17:54:01 -07:00
Cody Jackson 4e6632096e Making a number of OPA fixes
- Constraint YAML cancel button will take you back to the constraint
page.
- Updated the mastheads of constraint and template.
- Constraint Create as Yaml now works
- Constraints and templates can be cloned now.

rancher/rancher#523
rancher/rancher#622
rancher/rancher#398
2020-05-18 18:21:26 -07:00
Vincent Fiduccia 603b2fcd8b
Merge pull request #654 from vincent99/master
Queue updates from subscribe and apply once per second
2020-05-14 13:36:41 -07:00
Nancy Butler a26f61b904 use js-yaml parsing and resource proxy obj for yaml edit/clone
map _type->type in create-yaml

use link for yaml instead of parsing JSON
2020-05-14 12:52:01 -07:00
Nancy Butler 2ecc94b9e2 . 2020-05-14 12:51:28 -07:00
Vincent Fiduccia bdac6f07a2
Queue updates from subscribe and apply once per second 2020-05-14 12:43:48 -07:00
Nancy Butler 8d157dce80 pr feedback
fix private key on edit mode
2020-05-14 12:31:08 -07:00
Nancy Butler 9e95b3b9ad fix linkFor error on create retry
add/remove resources reactively
2020-05-14 12:31:08 -07:00
Vincent Fiduccia 654073a7bf
Merge pull request #649 from codyrancher/cm-404
Remove custom VueRouter.resolve
2020-05-14 03:09:44 -07:00
Vincent Fiduccia bb448af44c
Merge pull request #647 from codyrancher/cordon
Adding node cordon badging
2020-05-14 03:04:10 -07:00
Cody Jackson 36fe9c0b85 Adding node cordon badging
https://github.com/rancher/dashboard/issues/241#issuecomment-626209671
2020-05-13 17:52:47 -07:00
Cody Jackson ed1ea6373f Remove custom VueRouter.resolve
replace and push both work  as intended. You can
specify a a full url  if you don't want to have the baseUrl
prepended. Better yet, if you're navigating within
the app it's better to specify a location.

The custom resolve was actually breakinging a huge
amount of links in the app which was caused 404s if a
user attempted to open a link in a new tab. Most things appeared to work presumably because vue-router
was handling the page switches instead of the browser.

rancher/dashboard#643
2020-05-13 17:44:20 -07:00
Vincent Fiduccia 16a51b9045
Merge pull request #626 from codyrancher/new-ingress
Updating Ingress to implement new requirements
2020-05-13 12:02:43 -07:00
Cody Jackson dfb3ed18bd Updating Ingress to implement new requirements
rancher/dashboard#272
2020-05-12 16:38:13 -07:00
Vincent Fiduccia 4d7142e560
WindowManager for container logs and shell 2020-05-12 03:15:12 -07:00
Cody Jackson d165a1ba0d Adding t() translation as a Vue instance method
Similar to ember I want to be able to use the same method for
translating within templates and code. If we like this we
could replace the component and the directive since this can
easily be used in place of both of those.
2020-05-01 14:04:52 -07:00
Westly Wright a2ac4eb9cf
refactor all current action checks into instance methods
so they can be overridden
2020-04-27 12:28:35 -07:00
Westly Wright 22182006d8
Move can delete check to instance method and override cluster check
rancher/dashboard#530
2020-04-27 12:18:06 -07:00
Cody Jackson 00476e5cb9 Enabling no-console rule for eslint
This will automate checking for stray console errors so they don't need to be
checked for in PRs.
2020-04-24 10:37:10 -07:00
Cody Jackson 6d3543f111 App model specialization and OPA Gatekeeper menu items
When working on adding 'Add Constraint' and 'Add Template' to the
OPA Gatekeeper page I noticed that there wasn't a good way to
create custom models for specific chart app types. To fix this I went
ahead and made it so that we can load app models from the
'models/apps' directory and merge that with the 'models/app' model.
I think this will be useful for future apps like istio.

rancher/dashboard#391
2020-04-21 17:11:54 -07:00
Vincent Fiduccia f7aa3d29a1
Merge pull request #528 from codyrancher/ingress
Fixing up ingress pages
2020-04-21 14:10:37 -07:00
Cody Jackson 4014751a1b Fixing up ingress pages
- Fixed a number of unhandled exceptions
- Fixes some issues with rules vs backend property references
- Made pages more consistent with mocks

rancher/dashboard#272
2020-04-21 10:27:30 -07:00
Vincent Fiduccia 794025d506
Handle loading errors better 2020-04-20 14:13:09 -07:00
Westly Wright e67273da07
Only show yaml actions if yaml is available
rancher/dashboard#510
2020-04-20 10:07:51 -07:00
Cody Jackson 178d2cfe1a Switch consumption gauge percentage graphic
Switched the percentage circle over to the percentage bar to fit the new
design.

Also decoupling the Delete option from type-map/isEditable

rancher/dashboard#415
2020-04-15 13:23:07 -07:00
Vincent Fiduccia 26029bfad7
Merge pull request #516 from codyrancher/node-buttons
Enabling the ability to mark types and both immutable and unCreatable
2020-04-15 11:49:44 -07:00
Cody Jackson 8e15841d81 Enabling the ability to mark types and both immutable and unCreatable
This is to support special types like Node where the user shouldn't be able
to create the resource through normal means.

rancher/dashboard#507
2020-04-15 11:12:18 -07:00
Cody Jackson 2cc259d241 Remove new yaml serialization
Adding serialization to the scope of the currently pr has become
slightly unwieldy. I'm going to put the serialization into a separate
pr.
2020-04-15 10:00:09 -07:00
Cody Jackson fea71ffae2 Refactored YAML editing to better support parameters
We needed a way to support arbitrarily complex parameters in both
type and nesting level. As a temporary solution I enabled the user
to toggle between a key value component and a yaml editor.

To enable this I refactored ResourceYaml into a composable YamlEditor
component that can be used elsewhere.

rancher/dashboard#388
rancher/dashboard#380
2020-04-15 09:53:24 -07:00
Vincent Fiduccia 09df5918db
Move the rest of workloads into standard _resource 2020-04-14 16:16:11 -07:00
Vincent Fiduccia 22f4ef977b
Unify Resource(Detail|Yaml) headers and behaviors 2020-04-14 16:16:10 -07:00
Vincent Fiduccia da5f5b7a27
Rehydrate models in the page data with the correct store instead of the first one 2020-04-14 16:16:10 -07:00
Vincent Fiduccia 191cb7ca6e
Continue moving workloads 2020-04-14 16:16:10 -07:00
Vincent Fiduccia 4bc1321dab
Edit project of namespaces, bugs
- Edit project on namespace
- Certificate fields need to be multiline
- Create-edit-view creates metadata.(annotations, labels) automatically and cleans up on save if empty so you don't have to check if they're there.
- Form components should have a focus() instead of reaching into each other's $refs
- LabeledSelect takes and emits the value, not the `{label: x, value: y}` object.
- Resource names are almost never editable after create
- NameNsDescription takes a resource and manages setting name/ns/description on it itself.
- TextAreaAutoGrow should resize on file input
2020-04-14 16:16:10 -07:00
Vincent Fiduccia f569963666
Remove namespaceSuffixOnCreate option 2020-04-14 15:58:30 -07:00
Nancy Butler 654aa72163 workload action menu 2020-04-09 11:27:18 -07:00
Vincent Fiduccia dca9b3e689
Bugs 2020-03-27 16:47:47 -07:00
Vincent Fiduccia 6ea4938171
Fix workload filtering 2020-03-26 21:45:53 -07:00
Vincent Fiduccia 09c05e3541
Fix rehydrateAll for multiple stores 2020-03-24 18:02:49 -07:00
Vincent Fiduccia 676dbd22a9
Use userpreference to save prefs 2020-03-24 16:03:43 -07:00
Vincent Fiduccia 543bce9a40
Resource start/stop loop, intl key exists 2020-03-22 16:26:22 -07:00
Nancy Butler 582594dc24 fix WL save URL
fix WL return to list view

add schedule for cronjob

remove check for Table response
2020-03-20 15:17:23 -07:00
Vincent Fiduccia 72f803da00
Bugs 2020-03-19 01:19:17 -07:00
Vincent Fiduccia fab595d82f
Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
Westly Wright c705dea50b
Fix console log in waitFor* and missing params for waitForCondition 2020-03-17 11:05:25 -07:00
Vincent Fiduccia 3742637779
Watch schemas, reorganize nav 2020-03-12 02:42:15 -07:00
Westly Wright 798f82e979
Fix edit issues after rebase 2020-03-11 10:11:14 -07:00