-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan Thompson
committed
Mar 15, 2015
1 parent
c14c1e3
commit 48d2870
Showing
32 changed files
with
1,395 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#The MIT License (MIT) | ||
|
||
###Copyright (c) 2014 AnomalyLabs, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# installer-module | ||
#Streams Installer | ||
|
||
The Streams Platform installer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "anomaly/installer-module", | ||
"type": "streams-addon", | ||
"description": "The Streams Platform installer.", | ||
"keywords": [ | ||
"streams-addon", | ||
"streams", | ||
"module", | ||
"laravel" | ||
], | ||
"homepage": "http://anomaly.is/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "AnomalyLabs, Inc.", | ||
"email": "[email protected]", | ||
"homepage": "http://anomaly.is/", | ||
"role": "Owner" | ||
} | ||
], | ||
"support": { | ||
"email": "[email protected]" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Anomaly\\InstallerModule\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
}, | ||
"minimum-stability": "dev" | ||
} |
74 changes: 74 additions & 0 deletions
74
migrations/2015_02_27_085740_anomaly.distribution.streams__create_streams_tables.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
use Anomaly\Streams\Platform\Database\Migration\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Schema\Builder; | ||
|
||
/** | ||
* Class AnomalyModuleStreamsCreateStreamsTables | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class AnomalyModuleStreamsCreateStreamsTables extends Migration | ||
{ | ||
|
||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
if (!$schema->hasTable('streams_streams')) { | ||
$schema->create( | ||
'streams_streams', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->string('namespace'); | ||
$table->string('slug'); | ||
$table->string('prefix')->nullable(); | ||
$table->text('view_options'); | ||
$table->string('title_column'); | ||
$table->string('order_by'); | ||
$table->string('locked')->default(0); | ||
$table->string('translatable')->default(0); | ||
} | ||
); | ||
} | ||
|
||
if (!$schema->hasTable('streams_streams_translations')) { | ||
$schema->create( | ||
'streams_streams_translations', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->integer('stream_id'); | ||
$table->string('locale')->index(); | ||
|
||
$table->string('name'); | ||
$table->string('description')->nullable(); | ||
} | ||
); | ||
} | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
$schema->dropIfExists('streams_streams'); | ||
$schema->dropIfExists('streams_streams_translations'); | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
migrations/2015_02_27_090204_anomaly.distribution.streams__create_fields_tables.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
use Anomaly\Streams\Platform\Database\Migration\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Schema\Builder; | ||
|
||
/** | ||
* Class AnomalyModuleStreamsCreateFieldsTables | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class AnomalyModuleStreamsCreateFieldsTables extends Migration | ||
{ | ||
|
||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
if (!$schema->hasTable('streams_fields')) { | ||
$schema->create( | ||
'streams_fields', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->string('namespace'); | ||
$table->string('slug'); | ||
$table->string('type'); | ||
$table->text('config'); | ||
$table->text('rules'); | ||
$table->boolean('locked')->default(0); | ||
} | ||
); | ||
} | ||
|
||
if (!$schema->hasTable('streams_fields_translations')) { | ||
$schema->create( | ||
'streams_fields_translations', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->integer('field_id'); | ||
$table->string('locale')->index(); | ||
|
||
$table->string('name'); | ||
} | ||
); | ||
} | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
$schema->dropIfExists('streams_fields'); | ||
$schema->dropIfExists('streams_fields_translations'); | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
migrations/2015_02_27_090434_anomaly.distribution.streams__create_assignments_tables.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
|
||
use Anomaly\Streams\Platform\Database\Migration\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Schema\Builder; | ||
|
||
/** | ||
* Class AnomalyModuleStreamsCreateAssignmentsTables | ||
* | ||
* @link http://anomaly.is/streams-platform | ||
* @author AnomalyLabs, Inc. <[email protected]> | ||
* @author Ryan Thompson <[email protected]> | ||
*/ | ||
class AnomalyModuleStreamsCreateAssignmentsTables extends Migration | ||
{ | ||
|
||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
if (!$schema->hasTable('streams_assignments')) { | ||
$schema->create( | ||
'streams_assignments', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->integer('sort_order'); | ||
$table->integer('stream_id'); | ||
$table->integer('field_id'); | ||
$table->boolean('unique')->default(0); | ||
$table->boolean('required')->default(0); | ||
$table->boolean('translatable')->default(0); | ||
} | ||
); | ||
} | ||
|
||
if (!$schema->hasTable('streams_assignments_translations')) { | ||
$schema->create( | ||
'streams_assignments_translations', | ||
function (Blueprint $table) { | ||
|
||
$table->increments('id'); | ||
$table->integer('assignment_id'); | ||
$table->string('locale')->index(); | ||
|
||
$table->string('label')->nullable(); | ||
$table->string('placeholder')->nullable(); | ||
$table->text('instructions')->nullable(); | ||
} | ||
); | ||
} | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
/* @var Builder $schema */ | ||
$schema = app('db')->connection()->getSchemaBuilder(); | ||
|
||
$schema->dropIfExists('streams_assignments'); | ||
$schema->dropIfExists('streams_assignments_translations'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
return [ | ||
'name' => 'Streams', | ||
'description' => 'The official Streams base module.', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
return [ | ||
'install' => 'Install', | ||
'login' => 'Login' | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
return [ | ||
'license' => [ | ||
'label' => 'License', | ||
'instructions' => 'Please note addons may be licensed separately.', | ||
'agree' => 'I agree to the terms of this license and the terms of the licenses of contained add-ons.', | ||
], | ||
'database_driver' => [ | ||
'label' => 'Driver', | ||
'instructions' => 'What database driver would you like to use?', | ||
'invalid_database' => 'Could not connect to database provided.', | ||
], | ||
'database_host' => [ | ||
'label' => 'Host', | ||
'placeholder' => 'localhost', | ||
'instructions' => 'What is the hostname of your database?', | ||
], | ||
'database_name' => [ | ||
'label' => 'Database', | ||
'placeholder' => 'streams', | ||
'instructions' => 'What is the name of your database?', | ||
], | ||
'database_username' => [ | ||
'label' => 'Username', | ||
'placeholder' => 'root', | ||
'instructions' => 'Enter the username for your database connection.', | ||
], | ||
'database_password' => [ | ||
'label' => 'Password', | ||
'placeholder' => 'Your secure password', | ||
'instructions' => 'Enter the password for your database connection.', | ||
], | ||
'admin_username' => [ | ||
'label' => 'Username', | ||
'placeholder' => 'admin', | ||
'instructions' => 'What is the administrator\'s username?', | ||
], | ||
'admin_email' => [ | ||
'label' => 'Email', | ||
'placeholder' => '[email protected]', | ||
'instructions' => 'What is the administrator\'s email?', | ||
], | ||
'admin_password' => [ | ||
'label' => 'Password', | ||
'placeholder' => 'Enter a secure password', | ||
'instructions' => 'What is the administrator\'s password?', | ||
], | ||
'application_name' => [ | ||
'label' => 'Application Name', | ||
'placeholder' => 'Streams', | ||
'instructions' => 'What is the name of your application?', | ||
], | ||
'application_reference' => [ | ||
'label' => 'Application Reference', | ||
'placeholder' => 'default', | ||
'instructions' => 'What is the reference slug of your application?', | ||
], | ||
'application_domain' => [ | ||
'label' => 'Primary Domain', | ||
'placeholder' => 'localhost', | ||
'instructions' => 'What is the primary domain of your application?', | ||
], | ||
'application_locale' => [ | ||
'label' => 'Language', | ||
'instructions' => 'What is the default language of your application?', | ||
], | ||
'application_timezone' => [ | ||
'label' => 'Timezone', | ||
'instructions' => 'What is the default timezone of your application?', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
return [ | ||
'database' => 'Database', | ||
'administrator' => 'Administrator', | ||
'application' => 'Application', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'database_error' => 'There is a database configuration error.', | ||
'php' => 'PHP version 5.4 or greater required.', | ||
'fileinfo' => 'Fileinfo PHP Extension is required.', | ||
'mcrypt' => 'MCrypt PHP Extension is required.', | ||
'curl' => 'cURL PHP Extension is required.', | ||
'pdo' => 'PDO PHP Extension is required.', | ||
'zip' => 'ZIP PHP Extension is required.', | ||
'gd' => 'GD PHP Library is required.', | ||
]; |
Oops, something went wrong.