<mapping deploy="/" local="$PROJECT_DIR$" web="/" />
</mappings>
<excludedPaths>
- <excludedPath local="true" path="$PROJECT_DIR$/.env" />
+ <excludedPath local="true" path="$PROJECT_DIR$/vendor" />
</excludedPaths>
</serverdata>
</paths>
{
protected static $_permissionBase = null;
protected static $_ownerAttribute = 'owner';
- protected $_syncDbSchema = false;
public static function addOwnerClause(Builder $builder)
{
public function addOwnerField($tab = null)
{
- $fieldSettings = ['name' => static::$_ownerAttribute,
+ $fieldSettings = [
+ 'name' => static::$_ownerAttribute,
'label' => __('PropriƩtaire'),
'type' => User::class,
'column' => true,
'singular' => 'theme',
'plural' => 'themes'];
+ protected static $_permissionBase = 'fluidbook-theme';
protected static $_colorToWS3Cache = [];
public static $updateWS2ViewOnChange = true;
- protected static $_permissionBase ='fluidbook-theme';
-
public function setFields()
{
parent::setFields();
public function getPreviewImage()
{
- return '<img src="data:image/jpeg;base64,' . base64_encode(file_get_contents(storage_path('/themes/' . $this->getIdValue() . '.jpg'))) . '" width="200" height="140" alt="" />';
+ $f = storage_path('/themes/' . $this->getIdValue() . '.jpg');
+ if (!file_exists($f)) {
+ $b = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN89x8AAuEB74Y0o2cAAAAASUVORK5CYII=';
+ $type = 'png';
+ } else {
+ $type = 'jpeg';
+ $b = base64_encode(file_get_contents($f));
+ }
+ return '<img src="data:image/' . $type . ';base64,' . $b . '" width="200" height="140" alt="" />';
}
}
"source": {
"type": "git",
"url": "git://git.cubedesigners.com/cubist_cms-back.git",
- "reference": "28d4e0e991dca01af6cd3095d85ec67b60448373"
+ "reference": "6c9993581e0abf2f551fa1ce66783571911810fa"
},
"dist": {
"type": "tar",
- "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-03ce41.tar",
- "reference": "28d4e0e991dca01af6cd3095d85ec67b60448373",
- "shasum": "e768e8c863cb325bb1699ccdda2eb9ab24ec3b2a"
+ "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-926445.tar",
+ "reference": "6c9993581e0abf2f551fa1ce66783571911810fa",
+ "shasum": "77d16e40a8d7c66a1a0ec551b185a5c4b9fad5b3"
},
"require": {
"backpack/backupmanager": "^3.0",
}
],
"description": "Cubist Backpack extension",
- "time": "2022-01-20T15:33:21+00:00"
+ "time": "2022-01-20T17:16:11+00:00"
},
{
"name": "cubist/cms-front",