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

Phoenix update #625

Merged
merged 7 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from 6 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
7 changes: 7 additions & 0 deletions accounts/changelog/unreleased/fix-button-layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Fix button layout after phoenix update

With the phoenix update to v0.17.0 a new ODS version was released which has a breaking change for buttons regarding
their layouting. We adjusted the button layout in the accounts UI accordingly.

https://github.com/owncloud/ocis/pull/625

1 change: 1 addition & 0 deletions accounts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ github.com/marten-seemann/qtls v0.4.1/go.mod h1:pxVXcHHw1pNIt8Qo0pwSYQEoZ8yYOOPX
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
Expand Down
35 changes: 32 additions & 3 deletions accounts/pkg/assets/embed.go

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions accounts/ui/components/accounts/AccountsBatchActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<oc-grid gutter="small" id="accounts-batch-actions">
<div v-for="action in actions" :key="action.label">
<oc-alert v-if="isConfirmationInProgress[action.id]" :variation="action.confirmation.variation || 'default'" noClose class="tmp-alert-fixes">
<oc-alert v-if="isConfirmationInProgress[action.id]" :variation="action.confirmation.variation || 'default'" noClose class="uk-flex uk-flex-middle tmp-alert-fixes">
<span>{{ action.confirmation.message }}</span>
<oc-button size="small" :id="action.confirmation.cancel.id" @click="action.confirmation.cancel.handler" :variation="action.confirmation.cancel.variation || 'default'">
{{ action.confirmation.cancel.label }}
Expand Down Expand Up @@ -117,16 +117,22 @@ export default {
}
</script>

<style scoped>
<style lang="scss" scoped>
.tmp-alert-fixes {
padding: 5px 10px 4px !important;
padding: 4px 10px !important;
border-radius: 3px !important;
background-color: #fff !important;
border: 1px solid rgb(224, 0, 0) !important;
color: rgb(224, 0, 0) !important;

font-size: 1.125rem !important;
font-size: 1.1rem !important;
font-weight: 600 !important;
line-height: 1.4 !important;
}
.tmp-alert-fixes > *:not(:last-child) {
margin-right: 8px;
}
.tmp-alert-fixes > button {
padding: 0.2rem 0.5rem;
}
</style>
12 changes: 10 additions & 2 deletions accounts/ui/components/accounts/AccountsCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@keydown.enter="createAccount"
/>
</label>
<label class="uk-margin-xsmall-right">
<label>
<oc-text-input
id="accounts-new-account-input-password"
type="password"
Expand All @@ -38,14 +38,16 @@
<oc-button
v-text="$gettext('Cancel')"
@click="cancelForm"
class="uk-margin-xsmall-right"
:disabled="isRequestInProgress"
/>
</div>
<div>
<oc-button
id="accounts-new-account-button-confirm"
variation="primary"
:disabled="isRequestInProgress"
@click="createAccount"
:class="{ 'border-ods-tmp-fix': !isRequestInProgress }"
>
<oc-spinner
v-if="isRequestInProgress"
Expand Down Expand Up @@ -191,3 +193,9 @@ export default {
align-items: center;
}
</style>
<style scoped>
.border-ods-tmp-fix {
/* TODO: somehow the primary button receives a 2px border-width. remove it until we fix it in ODS. */
border-width: 0 !important;
}
</style>
9 changes: 8 additions & 1 deletion accounts/ui/components/accounts/AccountsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<div>
<oc-table middle divider>
<oc-table-group>
<oc-table-row>
<oc-table-row class="fix-table-header">
<oc-table-cell shrink type="head">
<oc-checkbox
:value="areAllAccountsSelected"
:label="$gettext('Select all users')"
hide-label
@change="toggleSelectionAll"
class="uk-margin-small-left"
/>
</oc-table-cell>
<oc-table-cell shrink type="head" />
Expand Down Expand Up @@ -57,3 +58,9 @@ export default {
}
}
</script>

<style scoped>
.fix-table-header > th {
text-transform: none;
}
</style>
7 changes: 6 additions & 1 deletion accounts/ui/components/accounts/AccountsListRow.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<template>
<oc-table-row>
<oc-table-cell>
<oc-checkbox :value="isAccountSelected" @change="TOGGLE_SELECTION_ACCOUNT(account)" :label="selectAccountLabel" hide-label />
<oc-checkbox
class="uk-margin-small-left"
:value="isAccountSelected"
@change="TOGGLE_SELECTION_ACCOUNT(account)"
:label="selectAccountLabel" hide-label
/>
</oc-table-cell>
<oc-table-cell>
<avatar :user-name="account.displayName || account.onPremisesSamAccountName" :userid="account.id" :width="35" />
Expand Down
2 changes: 1 addition & 1 deletion ocis-phoenix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ IMPORT := github.com/owncloud/ocis/$(NAME)
BIN := bin
DIST := dist
HUGO := hugo
PHOENIX_ASSETS_VERSION = v0.16.0
PHOENIX_ASSETS_VERSION = v0.17.0

ifeq ($(OS), Windows_NT)
EXECUTABLE := $(NAME).exe
Expand Down
6 changes: 6 additions & 0 deletions ocis-phoenix/changelog/unreleased/update-phoenix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Change: update Phoenix

Updated phoenix from v0.16.0 to v0.17.0

https://github.com/owncloud/ocis/pull/625
https://github.com/owncloud/phoenix/releases/tag/v0.17.0
2 changes: 2 additions & 0 deletions ocis-phoenix/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -844,13 +844,15 @@ github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVc
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.7 h1:UvyT9uN+3r7yLEYSlJsbQGdsaB/a0DlgWP3pql6iwOc=
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54=
github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
Expand Down
184 changes: 17 additions & 167 deletions ocis-phoenix/pkg/assets/embed.go

Large diffs are not rendered by default.