Skip to content
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@
* Max number of allowed DB per account can now be set via `DB_MAX_ALLOWED_NUMBER_PER_ACCOUNT` env variable
* Frontend changes:
* 400 and 422 server errors are better handled
* 0.4.1: Frontend improvements
* Disabled editing of Technical Contact by administrator
* Trim credentials fields on input
* Fixed vertical scrolling
* Fixed radio buttons layout for Safari
* Improved reliability of several UI pieces
6 changes: 3 additions & 3 deletions dbaas/extension.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "DBaaS",
"description": "On-demand provisioning of cloud-based database storages as a service.",
"version": "0.4.0",
"version": "0.4.1",
"audience": ["reseller", "distributor", "vendor"],
"readme_url": "https://github.com/cloudblue/connect-extension-dbaas/blob/0.4.0/README.md",
"changelog_url": "https://github.com/cloudblue/connect-extension-dbaas/blob/0.4.0/CHANGELOG.md",
"readme_url": "https://github.com/cloudblue/connect-extension-dbaas/blob/0.4.1/README.md",
"changelog_url": "https://github.com/cloudblue/connect-extension-dbaas/blob/0.4.1/CHANGELOG.md",
"icon": "googleExtensionBaseline"
}
2 changes: 2 additions & 0 deletions dbaas/static/5e8a3053c924195caa3d.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dbaas/static/7cace99224d3d55c5b00.js

This file was deleted.

2 changes: 1 addition & 1 deletion dbaas/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<html><head><title>Lorem ipsum</title><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Mono:400,500|Material+Icons" rel="stylesheet"><link id="mock-favicon" rel="shortcut icon" href="#"><script defer="defer" src="7cace99224d3d55c5b00.js"></script><link href="main.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
<html><head><title>Lorem ipsum</title><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Mono:400,500|Material+Icons" rel="stylesheet"><link id="mock-favicon" rel="shortcut icon" href="#"><script defer="defer" src="5e8a3053c924195caa3d.js"></script><link href="main.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
12 changes: 6 additions & 6 deletions dbaas/static/main.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudblueconnect/eaas-database-extension",
"version": "0.4.0",
"version": "0.4.1",
"description": "On-demand provisioning of cloud-based database storages as a service.",
"author": "Ingram Micro",
"license": "Apache Software License 2.0",
Expand Down
3 changes: 2 additions & 1 deletion ui/app/components/ezToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ export default {
height: 64px;
left: 0px;
right: 0px;
background: $theme-controls-background;
background: #fcfcfc;
border-bottom: 1px solid $theme-border-color;
z-index: 1;

&__title {
font-weight: 500;
Expand Down
4 changes: 4 additions & 0 deletions ui/app/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export default new Vuex.Store({
},
},

getters: {
installationContext: ({ installationContext }) => installationContext,
},

mutations: {
setInstallationContext(state, ctx) {
state.installationContext = Object.assign(state.installationContext, ctx);
Expand Down
2 changes: 1 addition & 1 deletion ui/app/styles/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
html,
body {
height: 100%;
overflow-y: hidden;
overflow-y: auto;
overflow-x: auto;
margin: 0;
}
Expand Down
20 changes: 17 additions & 3 deletions ui/app/styles/materialize.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ input[type=text][materialize] {
outline-width: 0;
border-color: $accent;
}

&:disabled {
border-style: dashed;
}
}

input[type=password][materialize] {
Expand All @@ -51,6 +55,10 @@ input[type=password][materialize] {
outline-width: 0;
border-color: $accent;
}

&:disabled {
border-style: dashed;
}
}

textarea[materialize] {
Expand All @@ -75,6 +83,10 @@ textarea[materialize] {
outline-width: 0;
border-color: $accent;
}

&:disabled {
border-style: dashed;
}
}

input[type=radio][materialize] {
Expand All @@ -91,8 +103,7 @@ input[type=radio][materialize] {
cursor: pointer;

&:checked {
outline: solid 5.5px $accent !important;
outline-offset: -100px;
background: radial-gradient(circle, $accent 45%, rgba(255,255,255,0) 45%)
border-color: $accent;
}

Expand Down Expand Up @@ -145,7 +156,6 @@ label[materialize] {
line-height: 1.2em;

&[for] {

cursor: pointer;
}
}
Expand Down Expand Up @@ -180,4 +190,8 @@ select[materialize] {
outline-width: 0;
border-color: $accent;
}

&:disabled {
border-style: dashed;
}
}
34 changes: 29 additions & 5 deletions ui/app/views/ActivateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,47 @@ ez-dialog(
.detail-item-head.item-label._mb_8 Username
sup.red._ml_4 *
.detail-item__text
input(required, v-model="form.credentials.username", type="text", materialize)
input(
required,
v-model="form.credentials.username",
@input="form.credentials.username = form.credentials.username.trim()"
type="text",
materialize,
)

.detail-item
.detail-item-head.item-label._mb_8 Password
sup.red._ml_4 *
.detail-item__text
input(required, v-model="form.credentials.password", type="password" materialize)
input(
required,
v-model="form.credentials.password",
@input="form.credentials.password = form.credentials.password.trim()"
type="password",
materialize,
)

.detail-item
.detail-item-head.item-label._mb_8 Host
sup.red._ml_4 *
.detail-item__text
input(required, v-model="form.credentials.host", type="text", materialize)
input(
required,
v-model="form.credentials.host",
@input="form.credentials.host = form.credentials.host.trim()"
type="text",
materialize,
)

.detail-item
.detail-item-head.item-label._mb_8 DB Name
.detail-item__text
input(v-model="form.credentials.name", type="text", materialize)
input(
v-model="form.credentials.name",
@input="form.credentials.name = form.credentials.name.trim()"
type="text",
materialize,
)

._mt_24

Expand Down Expand Up @@ -153,10 +176,11 @@ export default {
value: {
immediate: true,
handler(v) {
if (!this.item) return;
this.errorText = null;

const data = clone(this.item);
if (!data?.credentials) data.credentials = initialForm().credentials;
if (!data.credentials) data.credentials = initialForm().credentials;
this.form = data;

this.dialogOpened = v;
Expand Down
11 changes: 9 additions & 2 deletions ui/app/views/CreateEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ ez-dialog(
.detail-item-head.item-label._mb_8 User
sup._ml_4.red *
.detail-item__text
select(materialize, v-model="form.tech_contact.id")
select(
materialize,
v-model="form.tech_contact.id",
:disabled="isEdit && installationContext.isAdmin"
)
option(disabled) Choose user
option(
v-for="user in users",
v-for="user in (isEdit && installationContext.isAdmin ? [item.tech_contact] : users)",
:value="user.id",
:key="user.id",
) {{ user.name }} ({{ user.email }})
Expand Down Expand Up @@ -115,6 +119,7 @@ import {

import {
mapActions,
mapGetters,
} from 'vuex';

import {
Expand Down Expand Up @@ -171,6 +176,8 @@ export default {
}),

computed: {
...mapGetters(['installationContext']),

isEdit: ({ item }) => Boolean(item),
allowSaving: ({ isEdit, acceptTermsAndConds, form }) => Boolean((
isEdit
Expand Down
4 changes: 2 additions & 2 deletions ui/app/views/ItemDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ div
<script>
import {
mapActions,
mapState,
mapGetters,
} from 'vuex';

import {
Expand Down Expand Up @@ -260,7 +260,7 @@ export default {
}),

computed: {
...mapState(['installationContext']),
...mapGetters(['installationContext']),

databaseUrl: ({ localItem }) => {
if (!localItem?.credentials) return { showPassword: '–', hidePassword: '–' };
Expand Down
6 changes: 3 additions & 3 deletions ui/app/views/ItemsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ div
a.detail-item__text(@click="$emit('item-clicked', item)") {{ item.name }}
.detail-item__assistive-text
span {{ item.id }}
span(v-if="installationContext.isAdmin") • {{ item.owner.id }}
span(v-if="installationContext.isAdmin && item.owner") • {{ item.owner.id }}

template(#description="{ value }")
.assistive-text {{ value }}
Expand All @@ -59,7 +59,7 @@ div

<script>
import {
mapState,
mapGetters,
} from 'vuex';

import {
Expand Down Expand Up @@ -100,7 +100,7 @@ export default {
}),

computed: {
...mapState(['installationContext']),
...mapGetters(['installationContext']),

placeholderIcon: () => googleStorageBaseline,

Expand Down