Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Thompson committed Oct 27, 2015
1 parent 5f55dd4 commit fa3c799
Show file tree
Hide file tree
Showing 47 changed files with 380 additions and 1,657 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Files Module

Multi-provider files manager.
Powerful asset management made easy.
13 changes: 4 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "anomaly/files-module",
"type": "streams-addon",
"description": "Multi-provider files manager.",
"description": "Powerful asset management made easy.",
"keywords": [
"streams module",
"streams addon",
"module"
"files",
"module",
"streams"
],
"homepage": "http://anomaly.is/",
"license": "MIT",
Expand All @@ -24,10 +24,5 @@
"psr-4": {
"Anomaly\\FilesModule\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-1.1/master": "1.1.x-dev"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ class AnomalyModuleFilesCreateFilesFields extends Migration
'search' => 'anomaly.module.files::adapter.*'
]
],
'parent' => [
'type' => 'anomaly.field_type.relationship',
'config' => [
'related' => 'Anomaly\FilesModule\Folder\FolderModel'
]
],
'folder' => [
'type' => 'anomaly.field_type.relationship',
'config' => [
Expand All @@ -51,11 +45,12 @@ class AnomalyModuleFilesCreateFilesFields extends Migration
'related' => 'Anomaly\FilesModule\Disk\DiskModel'
]
],
'filename' => 'anomaly.field_type.text',
'entry' => 'anomaly.field_type.polymorphic',
'description' => 'anomaly.field_type.textarea',
'path' => 'anomaly.field_type.text',
'keywords' => 'anomaly.field_type.tags',
'alt_text' => 'anomaly.field_type.text',
'title' => 'anomaly.field_type.text',
'extension' => 'anomaly.field_type.text',
'width' => 'anomaly.field_type.text',
'height' => 'anomaly.field_type.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class AnomalyModuleFilesCreateFoldersStream extends Migration
*/
protected $stream = [
'slug' => 'folders',
'title_column' => 'name'
'title_column' => 'name',
'translatable' => true
];

/**
Expand All @@ -29,15 +30,16 @@ class AnomalyModuleFilesCreateFoldersStream extends Migration
*/
protected $assignments = [
'name' => [
'required' => true
'required' => true,
'translatable' => true
],
'disk' => [
'required' => true
'slug' => [
'required' => true,
'unique' => true
],
'path' => [
'disk' => [
'required' => true
],
'parent'
]
];

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AnomalyModuleFilesCreateFilesStream extends Migration
*/
protected $stream = [
'slug' => 'files',
'title_column' => 'name'
'title_column' => 'filename'
];

/**
Expand All @@ -28,12 +28,15 @@ class AnomalyModuleFilesCreateFilesStream extends Migration
* @var array
*/
protected $assignments = [
'name' => [
'filename' => [
'required' => true
],
'disk' => [
'required' => true
],
'folder' => [
'required' => true
],
'extension' => [
'required' => true
],
Expand All @@ -51,8 +54,7 @@ class AnomalyModuleFilesCreateFilesStream extends Migration
],
'description',
'keywords',
'alt_text',
'folder'
'title'
];

}
3 changes: 2 additions & 1 deletion resources/lang/en/addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
'name' => 'Files Module',
'description' => 'Multi-provider files manager.',
'section' => [
'files' => 'Files',
'disks' => 'Disks',
'fields' => 'Fields',
'browser' => 'Browser',
'folders' => 'Folders',
'adapters' => 'Adapters',
'settings' => 'Settings'
]
Expand Down
13 changes: 8 additions & 5 deletions resources/lang/en/field.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?php

return [
'alt_text' => [
'name' => 'Alt Text'
],
'title' => [
'name' => 'Title'
],
'name' => [
'name' => 'Name'
],
'filename' => [
'name' => 'Filename'
],
'slug' => [
'name' => 'Slug'
],
'size' => [
'name' => 'Size'
],
'caption' => [
'name' => 'Caption'
'disk' => [
'name' => 'Disk'
],
'folder' => [
'name' => 'Folder'
],
'adapter' => [
'name' => 'Adapter'
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/message.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [
'preview' => 'Preview',
'new_folder' => 'New Folder',
'upload_files' => 'Upload Files',
'choose_field' => 'What field would you like to add?',
Expand Down
44 changes: 0 additions & 44 deletions src/Browser/Command/AddDiskBreadcrumb.php

This file was deleted.

73 changes: 0 additions & 73 deletions src/Browser/Table/BrowserTableBuilder.php

This file was deleted.

60 changes: 0 additions & 60 deletions src/Browser/Table/BrowserTableFilters.php

This file was deleted.

Loading

0 comments on commit fa3c799

Please sign in to comment.