Skip to content

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrosmile committed Dec 18, 2022
1 parent 1d1a0d4 commit 41b0559
Show file tree
Hide file tree
Showing 28 changed files with 623 additions and 70 deletions.
18 changes: 13 additions & 5 deletions README.md
Expand Up @@ -9,9 +9,9 @@

<img width="1865" alt="TiMEX-Main" src="https://user-images.githubusercontent.com/2136612/206989777-fe169c5b-147a-450a-bd98-2df67eda8989.png">

| | | |
| ------------- | ------------- | ------------- |
| <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 08" src="https://user-images.githubusercontent.com/2136612/206991069-3a8f8d49-f421-49df-a4b8-2a681a6b4a9d.png"> | <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 13" src="https://user-images.githubusercontent.com/2136612/206991086-8ce8adf3-9519-431e-a145-acb5a4d4f309.png"> | <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 32" src="https://user-images.githubusercontent.com/2136612/206991096-d063dc90-ba2e-479b-b3c6-1a0b467c2ea2.png"> |
| Mobile view 1 | Mobile view 2 | Mobile view 3 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 08" src="https://user-images.githubusercontent.com/2136612/206991069-3a8f8d49-f421-49df-a4b8-2a681a6b4a9d.png"> | <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 13" src="https://user-images.githubusercontent.com/2136612/206991086-8ce8adf3-9519-431e-a145-acb5a4d4f309.png"> | <img width="582" alt="Снимок экрана 2022-12-12 в 10 45 32" src="https://user-images.githubusercontent.com/2136612/206991096-d063dc90-ba2e-479b-b3c6-1a0b467c2ea2.png"> |

## Installation

Expand All @@ -21,7 +21,7 @@ You can install the package via composer:
composer require buildix/timex
```

After your fresh installation, you may install all neccessary assets via the following command:
After your fresh installation, you may install all necessary assets via the following command:

```bash
php artisan timex:install
Expand All @@ -43,7 +43,7 @@ php artisan make:migration add_participants_to_timex_table --table=timex-events
In your newly created migration file add the following:

```php
Schema::create('timex-events', function ($table) {
Schema::table('timex-events', function ($table) {
$table->json("participants")->nullable();
});
```
Expand Down Expand Up @@ -264,6 +264,14 @@ getEvents(): array {
}
```

### Event attachments

You can attach files to your events via adding `attachments` column to your database:

```php
php artisan make:timex-alter-table your_table_name
```

### Event resource

<img width="1865" alt="TiMEX-Resource" src="https://user-images.githubusercontent.com/2136612/206990201-4f36d7f9-55fd-4b89-b4e4-dec7846943e3.png">
Expand Down
18 changes: 18 additions & 0 deletions config/timex.php
Expand Up @@ -46,6 +46,10 @@

'dayName' => 'minDayName', // minDayName or dayName or shortDayName

'dropDownCols' => 3,

'isPastCreationEnabled' => false,

/*
|--------------------------------------------------------------------------
| TIMEX Resources & Pages
Expand Down Expand Up @@ -122,6 +126,20 @@
'name' => 'heroicon-o-trash'
],
],
'edit' => [
'outlined' => false,
'color' => 'primary',
'icon' => [
'enabled' => true,
'name' => 'heroicon-o-pencil-alt'
],
],
'view' => [
'time' => 'heroicon-o-clock',
'category' => 'heroicon-o-tag',
'body' => 'heroicon-o-annotation',
'participants' => 'heroicon-o-user-group',
],
],
],
],
Expand Down
1 change: 1 addition & 0 deletions database/migrations/create_timex_tables.php.stub
Expand Up @@ -10,6 +10,7 @@ return new class extends Migration
{
Schema::create(config('timex.tables.event.name'), function (Blueprint $table) {
$table->uuid('id')->primary();
$table->json('attachments')->nullable();
$table->longText('body')->nullable();
$table->string('category')->nullable();
$table->date('end');
Expand Down
2 changes: 1 addition & 1 deletion resources/dist/timex.css
Expand Up @@ -19,7 +19,7 @@
}

.timex-week-last {
border-bottom-right-radius: 0.75rem;
border-bottom-right-radius: 0.66rem;
}

.timex-day {
Expand Down
4 changes: 3 additions & 1 deletion resources/lang/en/timex.php
Expand Up @@ -9,6 +9,7 @@
'submit' => 'Submit',
'cancel' => 'Cancel',
'delete' => 'Delete',
'edit' => 'Edit',
],
'events' => [
'empty' => 'No upcoming :label'
Expand All @@ -20,7 +21,8 @@
'allDay' => 'All day',
'start' => 'Start',
'end' => 'End',
'participants' => 'Participants'
'participants' => 'Participants',
'attachments' => 'Attachments',

],
'event-list' => [
Expand Down
4 changes: 3 additions & 1 deletion resources/lang/ru/timex.php
Expand Up @@ -9,6 +9,7 @@
'submit' => 'Сохранить',
'cancel' => 'Отмена',
'delete' => 'Удалить',
'edit' => 'Редактировать',
],
'events' => [
'empty' => 'Нет событий'
Expand All @@ -20,7 +21,8 @@
'allDay' => 'Целый день',
'start' => 'Начало',
'end' => 'Окончание',
'participants' => 'Участники'
'participants' => 'Участники',
'attachments' => 'Вложения',
],
'event-list' => [
'author' => 'Автор: :name',
Expand Down
1 change: 1 addition & 0 deletions resources/svg/doc.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/docx.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/jpg.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/pdf.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/png.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/ppt.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/pptx.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/txt.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/xls.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/svg/xlsx.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 41b0559

Please sign in to comment.