-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from IT-Academy-BCN/266-fe-rename-and-reorgan…
…ise-files-and-folders-structure [FE] Refactor: #266 fe rename and reorganise files and folders structure
- Loading branch information
Showing
139 changed files
with
2,663 additions
and
2,541 deletions.
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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
{ | ||
"extends": [ | ||
"airbnb", | ||
"airbnb-typescript", | ||
"airbnb/hooks", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
"airbnb", | ||
"airbnb-typescript", | ||
"airbnb/hooks", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint"], | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser", | ||
"project": "./tsconfig.json" | ||
"parser": "@typescript-eslint/parser", | ||
"project": "./tsconfig.json" | ||
}, | ||
"rules": { | ||
"react/react-in-jsx-scope": 0, | ||
"no-unused-vars": 2, | ||
"@typescript-eslint/no-unused-vars": 2, | ||
"import/prefer-default-export": 0, | ||
"react/function-component-definition": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"react/require-default-props": 0, | ||
"react/prop-types": 0 | ||
"no-param-reassign": "off", | ||
"react/react-in-jsx-scope": 0, | ||
"no-unused-vars": 2, | ||
"@typescript-eslint/no-unused-vars": 2, | ||
"import/prefer-default-export": 0, | ||
"react/function-component-definition": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"react/require-default-props": 0, | ||
"react/prop-types": 0 | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"dist", | ||
"build", | ||
"coverage", | ||
"public", | ||
"scripts", | ||
"vite.config.ts", | ||
"tailwind.config.js", | ||
"postcss.config.js" | ||
"node_modules", | ||
"dist", | ||
"build", | ||
"coverage", | ||
"public", | ||
"scripts", | ||
"vite.config.ts" | ||
] | ||
} | ||
} | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ class Tag extends Model | |
use HasFactory; | ||
|
||
protected $fillable = [ | ||
'tag_name', | ||
'name', | ||
]; | ||
|
||
/** | ||
|
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
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
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
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
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
21 changes: 21 additions & 0 deletions
21
database/migrations/2024_10_14_105031_rename_colum_from_tag_name_to_name_in_tags_table.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,21 @@ | ||
<?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::table('tags', function (Blueprint $table) { | ||
$table->renameColumn('tag_name', 'name'); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table('tags', function (Blueprint $table) { | ||
$table->renameColumn('name', 'tag_name'); | ||
}); | ||
} | ||
}; |
25 changes: 25 additions & 0 deletions
25
database/migrations/2024_10_14_105754_rename_colums_in_collaborations_table.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,25 @@ | ||
<?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::table('collaborations', function (Blueprint $table) { | ||
$table->renameColumn('collaboration_name', 'name'); | ||
$table->renameColumn('collaboration_description', 'description'); | ||
$table->renameColumn('collaboration_quantity', 'quantity'); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table('collaborations', function (Blueprint $table) { | ||
$table->renameColumn('name', 'collaboration_name'); | ||
$table->renameColumn('description', 'collaboration_description'); | ||
$table->renameColumn('quantity', 'collaboration_quantity'); | ||
}); | ||
} | ||
}; |
Oops, something went wrong.