Skip to content

Commit f3ea49b

Browse files
committed
Remove contributors functionality
Wasn't used anymore.
1 parent 7c15dc1 commit f3ea49b

File tree

12 files changed

+38
-265
lines changed

12 files changed

+38
-265
lines changed

app/Lio/Contributors/Contributor.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/Lio/Contributors/ContributorImporter.php

Lines changed: 0 additions & 79 deletions
This file was deleted.

app/Lio/Contributors/ContributorRepository.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/commands/ContributorsImportCommand.php

Lines changed: 0 additions & 66 deletions
This file was deleted.

app/controllers/ContributorsController.php

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
use Illuminate\Database\Schema\Blueprint;
4+
use Illuminate\Database\Migrations\Migration;
5+
6+
class RemoveContributorsTable extends Migration
7+
{
8+
/**
9+
* Run the migrations.
10+
*
11+
* @return void
12+
*/
13+
public function up()
14+
{
15+
Schema::drop('contributors');
16+
}
17+
18+
/**
19+
* Reverse the migrations.
20+
*
21+
* @return void
22+
*/
23+
public function down()
24+
{
25+
Schema::create('contributors', function(Blueprint $table) {
26+
$table->increments('id');
27+
$table->integer('user_id')->nullable();
28+
$table->string('github_id');
29+
$table->string('name');
30+
$table->string('avatar_url');
31+
$table->string('github_url');
32+
$table->integer('contribution_count')->defaults(0);
33+
34+
$table->timestamps();
35+
});
36+
}
37+
}

app/routes.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
Route::put('user/{userSlug}/settings', ['before' => 'csrf', 'as' => 'user.settings.update', 'uses' => 'UsersController@putSettings']);
4141
});
4242

43-
// contributors
44-
Route::get('contributors', 'ContributorsController@getIndex');
45-
4643
// chat
4744
Route::get('chat', 'ChatController@getIndex');
4845
// chat legacy

app/start/artisan.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
|
1212
*/
1313

14-
Artisan::add(new ContributorsImportCommand);
1514
Artisan::add(new ArticleSlugReassignmentCommand);

app/views/contributors/_member_card.blade.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/views/contributors/_nonmember_card.blade.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/views/contributors/index.blade.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

workers/cron.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,4 @@ DatabaseBackup:
55
- backup:create
66
interval:
77
minute: 0
8-
hour: 4
9-
ContributorImport:
10-
type: cron
11-
script: htdocs/artisan
12-
args:
13-
- "contributors:import"
14-
interval:
15-
minute: 0
16-
hour: 23
8+
hour: 4

0 commit comments

Comments
 (0)