Tiny bug fixes
This commit is contained in:
parent
04e8e513ac
commit
1637b79a83
12 changed files with 47 additions and 26 deletions
|
@ -124,7 +124,7 @@
|
|||
data-name="locale-countries-phones"
|
||||
data-event="load"></div>
|
||||
|
||||
<div data-ui-modal class="modal close" data-button-alias=".setup-new" data-button-icon="icon-plus" data-button-class="project-only" data-open-event="new-project">
|
||||
<div data-ui-modal class="modal box close" data-button-alias=".setup-new" data-button-icon="icon-plus" data-button-class="project-only" data-open-event="new-project">
|
||||
<h1>Add Project</h1>
|
||||
|
||||
<form data-setup>
|
||||
|
@ -136,10 +136,8 @@
|
|||
<label>Name</label>
|
||||
<input type="text" class="full-width" name="name" required autocomplete="off" />
|
||||
|
||||
<br />
|
||||
<hr />
|
||||
|
||||
<footer>
|
||||
<button type="submit">Create</button> <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
|
||||
</footer>
|
||||
<button type="submit">Create</button> <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
|
||||
</form>
|
||||
</div>
|
|
@ -4,7 +4,7 @@ use Utopia\Locale\Locale;
|
|||
?>
|
||||
<div class="cover margin-bottom-large">
|
||||
<h1 class="zone xl margin-bottom-large margin-top">
|
||||
<a data-ls-attrs="href=/console/database?project={{router.params.company}}" class="button icon margin-top-tiny pull-end"><i class="icon-plus"></i> Collection</a>
|
||||
<a data-ls-attrs="href=/console/database?project={{router.params.company}}" class="button icon pull-end"><i class="icon-plus"></i> Collection</a>
|
||||
|
||||
<?php echo Locale::getText('console.database.title'); ?>
|
||||
</h1>
|
||||
|
|
|
@ -29,15 +29,15 @@ $graph = $this->getParam('graph', false);
|
|||
<?php if (!$graph) : ?>
|
||||
<div class="row responsive">
|
||||
<div class="col span-9">
|
||||
<div class="pull-start margin-end">
|
||||
<div class="chart pull-end">
|
||||
<div class="content" data-ls-ui-chart></div>
|
||||
</div>
|
||||
|
||||
<div class="chart-metric">
|
||||
<div class="value margin-bottom-small"><span class="sum" data-ls-bind="{{usage.requests.total|statsTotal}}">N/A</span></div>
|
||||
<div class="metric margin-bottom-small">Requests <span class="tooltip" data-tooltip="Total number of API requests this month"><i class="icon-info-circled"></i></span></div>
|
||||
<div class="range">Current Month</div>
|
||||
</div>
|
||||
|
||||
<div class="chart">
|
||||
<div class="content" data-ls-ui-chart></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col span-3">
|
||||
<div class="value margin-bottom-small"><span class="sum" data-ls-bind="{{usage.network.total|humanFileSize}}" data-default="0">0</span></div>
|
||||
|
|
3
app/views/home/comps/header.phtml
Normal file
3
app/views/home/comps/header.phtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="logo text-center">
|
||||
<a href="/"><img src="/images/appwrite.svg" alt="Appwrite Logo" /></a>
|
||||
</div>
|
4
public/dist/scripts/app-all.js
vendored
4
public/dist/scripts/app-all.js
vendored
File diff suppressed because one or more lines are too long
4
public/dist/scripts/app.js
vendored
4
public/dist/scripts/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/styles/default-ltr.css
vendored
2
public/dist/styles/default-ltr.css
vendored
File diff suppressed because one or more lines are too long
|
@ -36,7 +36,7 @@ window.ls.filter
|
|||
return '//www.gravatar.com/avatar/' + MD5(email) + '.jpg?s=' + size + '&d=' + encodeURIComponent(def);
|
||||
})
|
||||
.add('lowerCase', function ($value) {
|
||||
return $value.toLowerCase();
|
||||
return (typeof $value === 'string') ? $value.toLowerCase() : $value;
|
||||
})
|
||||
.add('date', function ($value, date) {
|
||||
return date.format('Y-m-d', $value);
|
||||
|
|
|
@ -13,9 +13,7 @@ window.addEventListener('error', function (event) {
|
|||
});
|
||||
|
||||
document.addEventListener('logout', function () {
|
||||
if(window.ls.router.getCurrent().view.scope === 'console') {
|
||||
window.ls.router.change('/auth/signin');
|
||||
}
|
||||
window.location = '/auth/signin';
|
||||
});
|
||||
|
||||
document.addEventListener('http-get-401', function() { /* on error */
|
||||
|
|
|
@ -40,6 +40,7 @@ img[src=""] {
|
|||
@import "polyfills";
|
||||
@import "forms";
|
||||
@import "scopes/console";
|
||||
@import "scopes/home";
|
||||
@import "comps/alerts";
|
||||
@import "comps/article";
|
||||
@import "comps/avatar";
|
||||
|
@ -69,13 +70,13 @@ body {
|
|||
margin: 0;
|
||||
background: #f6f7f8 no-repeat fixed;
|
||||
|
||||
@media @dark {
|
||||
background: #0c0c0c;
|
||||
}
|
||||
// @media @dark {
|
||||
// background: #0c0c0c;
|
||||
// }
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
background: red;
|
||||
}
|
||||
// @media (prefers-color-scheme: dark) {
|
||||
// background: red;
|
||||
// }
|
||||
}
|
||||
|
||||
main {
|
||||
|
|
|
@ -467,7 +467,16 @@
|
|||
border: none;
|
||||
}
|
||||
|
||||
.chart-metric {
|
||||
width: 19%;
|
||||
|
||||
@media @tablets, @phones {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.chart {
|
||||
width: 80%;
|
||||
position: relative;
|
||||
height: 0;
|
||||
padding-top: 20px;
|
||||
|
@ -489,6 +498,12 @@
|
|||
border-right: solid 1px transparent;
|
||||
border-bottom: solid 1px transparent;
|
||||
|
||||
@media @tablets, @phones {
|
||||
width: 100%;
|
||||
float: none;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
|
6
public/styles/scopes/home.less
Normal file
6
public/styles/scopes/home.less
Normal file
|
@ -0,0 +1,6 @@
|
|||
.home {
|
||||
.logo img {
|
||||
max-height: 35px;
|
||||
margin: 75px 25px 25px 25px;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue