Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of ideas and suggestions #472

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.ci
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

SUGGESTION_BOX_ENABLED=false

DISABLE_REGISTRATION=false
2 changes: 0 additions & 2 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

SUGGESTION_BOX_ENABLED=false
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

SUGGESTION_BOX_ENABLED=false

DISABLE_REGISTRATION=false
30 changes: 0 additions & 30 deletions app/Http/Controllers/IdeaController.php

This file was deleted.

10 changes: 0 additions & 10 deletions app/Models/Idea.php

This file was deleted.

1 change: 0 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function boot()
'userName' => Auth::check() ? Auth::user()->name : null,
'currency' => $selectedSpace ? $selectedSpace->currency->symbol : '-',
'selectedSpace' => $selectedSpace,
'suggestionBoxEnabled' => env('SUGGESTION_BOX_ENABLED', false),
'versionNumber' => $versionNumber
]);
});
Expand Down
18 changes: 18 additions & 0 deletions database/migrations/2023_12_26_214729_drop_ideas_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::drop('ideas');
}

public function down(): void
{
// There's no going back
}
};
1 change: 0 additions & 1 deletion lang/en/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

'verify_account' => 'You still need to verify your account&mdash;please check your e-mail',
'spaces_explanation' => 'Spaces can be used to separate your finances in Budget. For example—you can have a space for your personal finances and another space for your business\' finances.',
'got_a_suggestion' => 'Got a suggestion',

'invite' => 'Invite',
'invited_to' => 'You\'ve been invited to',
Expand Down
1 change: 0 additions & 1 deletion lang/es/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

'verify_account' => 'Aún necesitas confirmar tu cuenta&mdash;por favor, comprueba tu correo electrónico',
'spaces_explanation' => 'Los espacios pueden usarse para separar tus finanzas en Budget. Por ejemplo—tú puedes tener un espacio para tus gastos personales y otro para tus gastos laborales',
'got_a_suggestion' => 'Recibir una sugerencia',

'invite' => 'Invitar',
'invited_to' => 'Tú has invitado a',
Expand Down
1 change: 0 additions & 1 deletion lang/it/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

'verify_account' => 'Devi ancora verificare l\'account&mdash;controlla la tua e-mail',
'spaces_explanation' => 'Gli spazi possono essere usati per separare le finanze. Per esempio puoi creare uno spazio per le tue finanze personali e uno per la tua attività professionale.',
'got_a_suggestion' => 'Ho un suggerimento',

'invite' => 'Invito',
'invited_to' => 'Sei stato inviato in',
Expand Down
1 change: 0 additions & 1 deletion lang/nl/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

'verify_account' => 'Je moet je account nog verifiëren&mdash;check je e-mail',
'spaces_explanation' => 'Spaces kunnen worden gebruikt om je financiën op sorteren in Budget. Bijvoorbeeld—je kan een space hebben voor jou persoonlijk en een andere voor je bedrijf.',
'got_a_suggestion' => 'Heb je een suggestie',

'invite' => 'Uitnodiging',
'invited_to' => 'Je bent uitgenodigd voor',
Expand Down
1 change: 0 additions & 1 deletion lang/ru/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

'verify_account' => 'Вам по-прежнему необходимо подтвердить свою учетную запись&mdash;проверьте свою электронную почту',
'spaces_explanation' => 'Пространства можно использовать для разделения ваших финансов в бюджете. Например-у вас может быть место для ваших личных финансов и другое место для финансов вашего бизнеса.',
'got_a_suggestion' => 'Есть предложение?',

'invite' => 'Пригласить',
'invited_to' => 'Вас пригласили в',
Expand Down
27 changes: 0 additions & 27 deletions resources/views/ideas/create.blade.php

This file was deleted.

8 changes: 1 addition & 7 deletions resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,7 @@
@endif
@yield('body')
@if (auth()->check())
<div class="text-center mb-3">
@if ($suggestionBoxEnabled)
<a class="fs-sm" href="{{ route('ideas.create') }}">{{ __('general.got_a_suggestion') }}?</a> &middot; {{ $versionNumber }}
@else
{{ $versionNumber }}
@endif
</div>
<div class="text-center mb-3">{{ $versionNumber }}</div>
@endif
</div>
@vite('resources/assets/js/app.js')
Expand Down
3 changes: 0 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Http\Controllers\BudgetController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\EarningController;
use App\Http\Controllers\IdeaController;
use App\Http\Controllers\ImportController;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\LoginController;
Expand Down Expand Up @@ -123,8 +122,6 @@
Route::post('/spaces/{space}/invites/{invite}/deny', [SpaceInviteController::class, 'deny'])->name('deny');
});

Route::resource('/ideas', IdeaController::class)->only(['create', 'store']);

Route::get('/translations', TranslationsController::class);
});

Expand Down