Skip to content

Commit

Permalink
Merge pull request #9 from weareferal/develop
Browse files Browse the repository at this point in the history
Large backups & volume backend improvements
  • Loading branch information
timmyomahony authored Dec 11, 2020
2 parents 9ce06e1 + 1692e00 commit 351875a
Show file tree
Hide file tree
Showing 10 changed files with 712 additions and 65 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

### Changed

- Fixed composer 2 issue
- Fixed composer 2 issue

## 1.4.0 - 2020-12-08

### Added

- Added generic s3-compliant provider (issue #31 on craft-remote-sync)
- Added TTR to queue jobs (issue #38 on craft-remote-sync)

### Changed

- Bumped version number for parity between sync & backup plugins
- Added support for transfering files to and from all volume backends, not just local
- Fixed filename regex (issue #26 on craft-remote-sync)
- Moved shared utilities JS and CSS to core module
- Updated the formatting for file table
29 changes: 29 additions & 0 deletions src/assets/RemoteCoreUtility/RemoteCoreUtilityAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace weareferal\remotecore\assets\RemoteCoreUtility;

use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;


class RemoteCoreUtilityAsset extends AssetBundle
{
public function init()
{
$this->sourcePath = __DIR__ . '/dist';

$this->depends = [
CpAsset::class,
];

$this->js = [
'js/RemoteCoreUtility.js'
];

$this->css = [
'css/RemoteCoreUtility.css',
];

parent::init();
}
}
123 changes: 123 additions & 0 deletions src/assets/RemoteCoreUtility/dist/css/RemoteCoreUtility.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
.rb-utilities {
position: relative;
}

.rb-utilities-section {
position: relative;
}

.rb-utilities-section:nth-child(2) {
margin-top: 25px;
}

.rb-utilities-table {
margin-bottom: 10px;
}

/* Hide Craft's default hover background on table rows */
table.data.rb-utilities-table tbody tr:not(.disabled):hover th,
table.data.rb-utilities-table tbody tr:not(.disabled):hover td {
background-color: transparent;
}

/* Hide template rows and collapsed rows */
.rb-utilities-table tr.default-row,
.rb-utilities-table.rb-utilities-table--collapsed
tr:not(.default-row):nth-child(n + 4) {
display: none;
}

.rb-utilities-table tbody tr td:first-child {
display: flex;
align-items: center;
padding-left: 0;
}

/* Row */
.rb-utilities-row {

}

/* "Latest" bubble */
.rb-utilities-bubble {
border: 1px solid #9aa5b1;
margin: 2px 0 0 10px;
padding: 3px 6px;
border-radius: 3px;
font-size: 11px;
line-height: 1;
color: #9aa5b1;
}

/* Add green circle to the title */
.rb-utilities-table tbody tr:not(.default-row) td:first-child:before {
display: block;
height: 10px;
width: 10px;
content: "";
border-radius: 50%;
background-color: #78c678;
margin-right: 10px;
}

/* "Show All" row */
.rb-utilities-table tbody tr.show-all-row td {
padding-top: 0;
padding-bottom: 0;
}
.rb-utilities-table tr.show-all-row td a {
font-size: 12px;
}

.rb-utilities-submit {
display: flex;
justify-content: flex-start;
align-items: center;
position: relative;
}

/* Small status spinner */
.rb-utilities-submit .utility-status {
width: 100px;
margin-left: 20px;
display: flex;
justify-content: flex-start;
align-items: center;
}

.rb-utilities-submit .utility-status .progressbar {
width: 20%;
left: auto;
top: auto;
}

.rb-utilities-form select {
min-width: 200px;
}

.rb-utilities-overlay {
cursor: wait;
background-color: rgba(255, 255, 255, 0.75);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.rb-utilities-guard {
cursor: not-allowed;
background-color: rgba(255, 255, 255, 0.75);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

Loading

0 comments on commit 351875a

Please sign in to comment.