mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-29 16:39:54 +03:00
feat(theme): add theme colors to paginaion with some cleanup
This commit is contained in:
parent
ef240ccf1d
commit
8c402442c2
7 changed files with 73 additions and 19 deletions
|
@ -18,14 +18,33 @@
|
||||||
<material-popup opened="{ props.opened }" onClick="{ props.onClose }">
|
<material-popup opened="{ props.opened }" onClick="{ props.onClose }">
|
||||||
<div class="material-popup-title">Add your Server ?</div>
|
<div class="material-popup-title">Add your Server ?</div>
|
||||||
<div class="material-popup-content">
|
<div class="material-popup-content">
|
||||||
<material-input onkeyup="{ onKeyUp }" label="Server URL" text-color="var(--primary-text)" label-color="var(--neutral-text)" color="var(--accent-text)" valid="{ registryUrlValidator }"></material-input>
|
<material-input
|
||||||
|
onkeyup="{ onKeyUp }"
|
||||||
|
label="Server URL"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
label-color="var(--neutral-text)"
|
||||||
|
color="var(--accent-text)"
|
||||||
|
valid="{ registryUrlValidator }"
|
||||||
|
></material-input>
|
||||||
<span>Write your URL without /v2</span>
|
<span>Write your URL without /v2</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ add }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ add }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Add
|
Add
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ props.onClose }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,8 +75,8 @@
|
||||||
setTimeout(() => router.updateUrlQueryParam(url), 100);
|
setTimeout(() => router.updateUrlQueryParam(url), 100);
|
||||||
},
|
},
|
||||||
registryUrlValidator(input) {
|
registryUrlValidator(input) {
|
||||||
return /^https?:\/\//.test(input) && !/\/v2\/?$/.test(input)
|
return /^https?:\/\//.test(input) && !/\/v2\/?$/.test(input);
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
</add-registry-url>
|
</add-registry-url>
|
||||||
|
|
|
@ -23,10 +23,22 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ change }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ change }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Change
|
Change
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ props.onClose }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -65,7 +77,7 @@
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
border-bottom: 1px solid #2f6975;
|
border-bottom: 1px solid var(--accent-text);
|
||||||
appearance: none;
|
appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
|
|
|
@ -23,10 +23,22 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ deleteImages }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ deleteImages }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Delete
|
Delete
|
||||||
</material-button>
|
</material-button>
|
||||||
<material-button class="dialog-button" waves-color="var(--hover-background)" onClick="{ props.onClick }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="var(--hover-background)"
|
||||||
|
onClick="{ props.onClick }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="material-popup-action">
|
<div class="material-popup-action">
|
||||||
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="{ props.onClose }" color="inherit" text-color="var(--primary-text)">
|
<material-button
|
||||||
|
class="dialog-button"
|
||||||
|
waves-color="rgba(158,158,158,.4)"
|
||||||
|
onClick="{ props.onClose }"
|
||||||
|
color="inherit"
|
||||||
|
text-color="var(--primary-text)"
|
||||||
|
>
|
||||||
Close
|
Close
|
||||||
</material-button>
|
</material-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,10 +54,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
export default {
|
export default {
|
||||||
remove(url) {
|
remove(url) {
|
||||||
return (event) => {
|
return (event) => {
|
||||||
console.log(url, event)
|
|
||||||
removeRegistryServers(url);
|
removeRegistryServers(url);
|
||||||
setTimeout(() => this.update(), 100);
|
setTimeout(() => this.update(), 100);
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
getRegistryServers,
|
getRegistryServers,
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<search-bar>
|
<search-bar>
|
||||||
<material-input label="Search in page" text-color="var(--header-text)" label-color="var(--neutral-text)" color="var(--accent-text)"></material-input>
|
<material-input
|
||||||
|
label="Search in page"
|
||||||
|
text-color="var(--header-text)"
|
||||||
|
label-color="var(--neutral-text)"
|
||||||
|
color="var(--accent-text)"
|
||||||
|
></material-input>
|
||||||
<script>
|
<script>
|
||||||
import { router } from '@riotjs/route';
|
import { router } from '@riotjs/route';
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<div class="pagination-centered">
|
<div class="pagination-centered">
|
||||||
<material-button
|
<material-button
|
||||||
aria-label="page-{ p.page }"
|
aria-label="page-{ p.page }"
|
||||||
color="rgba(0, 0, 0, { p.current ? 0.12 : 0 } )"
|
color="{ p.current ? 'var(--accent-text)' : 'rgba(0, 0, 0, 0 )' }"
|
||||||
text-color="#000"
|
text-color="{ p.current ? 'var(--accent-text)' : 'var(--primary-text)' }"
|
||||||
waves-color="rgba(158,158,158,.4)"
|
waves-color="rgba(158,158,158,.4)"
|
||||||
each="{ (p, idx) in props.pages}"
|
each="{ (p, idx) in props.pages}"
|
||||||
class="{ p.current ? 'current' : ''} { p['space-left'] ? 'space-left' : '' } { p['space-right'] ? 'space-right' : ''}"
|
class="{ p.current ? 'current' : ''} { p['space-left'] ? 'space-left' : '' } { p['space-right'] ? 'space-right' : ''}"
|
||||||
|
@ -45,6 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
:host material-button > :first-child {
|
:host material-button > :first-child {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
|
min-height: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host material-button > :first-child .content {
|
:host material-button > :first-child .content {
|
||||||
|
|
|
@ -65,9 +65,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
<material-button
|
<material-button
|
||||||
if="{ state.toDelete.size > 0 && !state.singleDeleteAction }"
|
if="{ state.toDelete.size > 0 && !state.singleDeleteAction }"
|
||||||
waves-center="true"
|
waves-center="true"
|
||||||
color="#fff"
|
color="inherit"
|
||||||
text-color="#777"
|
text-color="var(--neutral-background)"
|
||||||
waves-color="#ddd"
|
waves-color="var(--hover-background)"
|
||||||
title="This will delete selected images."
|
title="This will delete selected images."
|
||||||
onClick="{ deleteImages }"
|
onClick="{ deleteImages }"
|
||||||
icon
|
icon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue