|
7 | 7 | return [ |
8 | 8 | 'defaults' => [ |
9 | 9 | 'paths' => [ |
10 | | - 'views' => env( |
11 | | - 'TGN_DEFAULT_PATH_VIEW', |
12 | | - base_path('resources/views/vendor/tg-notifier') |
13 | | - ), |
| 10 | + 'views' => env('TGN_DEFAULT_PATH_VIEW', base_path('resources/views/vendor/tg-notifier')), |
14 | 11 | ], |
15 | 12 |
|
16 | | - // Set route prefix for telegram git notifier app |
| 13 | + /* Set route prefix for telegram git notifier app */ |
17 | 14 | 'route_prefix' => env('TGN_DEFAULT_ROUTE_PREFIX', 'telegram-git-notifier'), |
18 | 15 | ], |
19 | 16 |
|
20 | 17 | 'app' => [ |
21 | | - 'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'), |
| 18 | + 'name' => env('TGN_APP_NAME', 'Laravel Telegram Git Notifier'), |
22 | 19 |
|
23 | | - // Required for the bot to work properly |
24 | | - 'url' => env('TGN_APP_URL', 'http://localhost:8000/telegram-git-notifier'), |
| 20 | + /* Required for the bot to work properly */ |
| 21 | + 'url' => env('TGN_APP_URL', 'http://localhost:8000/telegram-git-notifier'), |
25 | 22 | 'timezone' => env('TIMEZONE', 'Asia/Ho_Chi_Minh'), |
26 | 23 | ], |
27 | 24 |
|
28 | 25 | 'bot' => [ |
29 | | - 'token' => env('TELEGRAM_BOT_TOKEN', ''), |
30 | | - 'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''), |
| 26 | + 'token' => env('TELEGRAM_BOT_TOKEN', ''), |
| 27 | + 'chat_id' => env('TELEGRAM_BOT_CHAT_ID', ''), |
31 | 28 |
|
32 | 29 | /** |
33 | 30 | * Set the chat IDs that will receive notifications |
|
45 | 42 | ], |
46 | 43 |
|
47 | 44 | 'author' => [ |
48 | | - 'discussion' => env( |
49 | | - 'TGN_AUTHOR_DISCUSSION', |
50 | | - 'https://github.com/cslant/laravel-telegram-git-notifier/discussions' |
51 | | - ), |
52 | | - 'source_code' => env( |
53 | | - 'TGN_AUTHOR_SOURCE_CODE', |
54 | | - 'https://github.com/cslant/laravel-telegram-git-notifier' |
55 | | - ), |
| 45 | + 'discussion' => env('TGN_AUTHOR_DISCUSSION', 'https://github.com/cslant/laravel-telegram-git-notifier/discussions'), |
| 46 | + 'source_code' => env('TGN_AUTHOR_SOURCE_CODE', 'https://github.com/cslant/laravel-telegram-git-notifier'), |
56 | 47 | ], |
57 | 48 |
|
58 | | - /** Set the path to the data file */ |
| 49 | + /* Set the path to the data file */ |
59 | 50 | 'data_file' => [ |
60 | 51 | 'storage_folder' => $configFileStorageFolder, |
61 | | - |
62 | | - 'setting' => env( |
63 | | - 'TGN_PATH_SETTING', |
64 | | - $configFileStorageFolder.'/tgn-settings.json' |
65 | | - ), |
| 52 | + 'setting' => env('TGN_PATH_SETTING', $configFileStorageFolder.'/tgn-settings.json'), |
66 | 53 |
|
67 | 54 | 'platform' => [ |
68 | | - 'gitlab' => env( |
69 | | - 'TGN_PATH_PLATFORM_GITLAB', |
70 | | - $configFileStorageFolder.'/gitlab-events.json' |
71 | | - ), |
72 | | - 'github' => env( |
73 | | - 'TGN_PATH_PLATFORM_GITHUB', |
74 | | - $configFileStorageFolder.'/github-events.json' |
75 | | - ), |
| 55 | + 'gitlab' => env('TGN_PATH_PLATFORM_GITLAB', $configFileStorageFolder.'/gitlab-events.json'), |
| 56 | + 'github' => env('TGN_PATH_PLATFORM_GITHUB', $configFileStorageFolder.'/github-events.json'), |
76 | 57 | ], |
77 | 58 | ], |
78 | 59 |
|
79 | | - /** Set the path to the view file */ |
| 60 | + /* Set the path to the view file */ |
80 | 61 | 'view' => [ |
81 | 62 | 'ignore-message' => env('IGNORE_MESSAGE', 'ignore-message'), |
82 | | - |
83 | 63 | 'namespace' => env('TGN_VIEW_NAMESPACE', 'tg-notifier'), |
84 | | - |
85 | | - 'default' => env( |
86 | | - 'TGN_VIEW_DEFAULT', |
87 | | - base_path('resources/views/vendor/tg-notifier') |
88 | | - ), |
89 | | - |
| 64 | + 'default' => env('TGN_VIEW_DEFAULT', base_path('resources/views/vendor/tg-notifier')), |
90 | 65 | 'event' => [ |
91 | 66 | 'default' => env('TGN_VIEW_EVENT_DEFAULT', 'default'), |
92 | 67 | ], |
93 | 68 |
|
94 | 69 | 'globals' => [ |
95 | | - 'access_denied' => env( |
96 | | - 'TGN_VIEW_GLOBALS_ACCESS_DENIED', |
97 | | - 'globals.access_denied' |
98 | | - ), |
| 70 | + 'access_denied' => env('TGN_VIEW_GLOBALS_ACCESS_DENIED', 'globals.access_denied'), |
99 | 71 | ], |
100 | 72 |
|
101 | 73 | 'tools' => [ |
102 | | - 'settings' => env( |
103 | | - 'TGN_VIEW_TOOL_SETTING', |
104 | | - 'tools.settings' |
105 | | - ), |
106 | | - 'custom_event_action' => env( |
107 | | - 'TGN_VIEW_TOOL_CUSTOM_EVENT_ACTION', |
108 | | - 'tools.custom_event_action' |
109 | | - ), |
110 | | - 'custom_event' => env( |
111 | | - 'TGN_VIEW_TOOL_CUSTOM_EVENT', |
112 | | - 'tools.custom_event' |
113 | | - ), |
114 | | - 'set_menu_cmd' => env( |
115 | | - 'TGN_VIEW_TOOL_SET_MENU_COMMAND', |
116 | | - 'tools.set_menu_cmd' |
117 | | - ), |
| 74 | + 'settings' => env('TGN_VIEW_TOOL_SETTING', 'tools.settings'), |
| 75 | + 'custom_event_action' => env('TGN_VIEW_TOOL_CUSTOM_EVENT_ACTION', 'tools.custom_event_action'), |
| 76 | + 'custom_event' => env('TGN_VIEW_TOOL_CUSTOM_EVENT', 'tools.custom_event'), |
| 77 | + 'set_menu_cmd' => env('TGN_VIEW_TOOL_SET_MENU_COMMAND', 'tools.set_menu_cmd'), |
118 | 78 | ], |
119 | 79 | ], |
120 | | - |
121 | 80 | ]; |
0 commit comments