Skip to content

Commit dbfb1fd

Browse files
Merge pull request #51 from suraj-webkul/compatible-to-2.0.0
Compatible to 2.0.0
2 parents c39145b + 7a7f63e commit dbfb1fd

File tree

80 files changed

+2159
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2159
-991
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## **v2.0.0 (25th of September 2024)**
2+
3+
* [compatible] Compatible to krayin v2.0.0.
4+
15
## **v1.0.1 (25th of September 2024)**
26

37
* #47 [fixed] If the admin is clicking on the google icon then the app locale is getting changes automatically.

README.md

Lines changed: 47 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It packs in lots of demanding features that allows your business to scale in no
1313

1414
### 2. Requirements:
1515

16-
* **Krayin**: v1.2.1 or higher.
16+
* **Krayin**: v2.0.0 or higher.
1717

1818

1919
### 3. Installation:
@@ -35,15 +35,48 @@ php artisan route:cache
3535
~~~
3636

3737
~~~
38-
php artisan vendor:publish
38+
php artisan vendor:publish --force
3939
40-
-> Press 0 and then press enter to publish all assets and configurations.
40+
-> Search GoogleServiceProvider navigate to it and then press enter to publish all assets and configurations.
4141
~~~
4242

4343

4444
### 4. Configuration:
4545

46-
* Goto .env file and add following lines
46+
* Goto **routes/breadcrumbs.php** file and add following lines
47+
48+
```php
49+
Breadcrumbs::for('google.calendar.create', function (BreadcrumbTrail $trail) {
50+
$trail->parent('dashboard');
51+
$trail->push(trans('google::app.calendar.index.title'), route('admin.google.index', ['route' => request('route')]));
52+
});
53+
54+
Breadcrumbs::for('google.meet.create', function (BreadcrumbTrail $trail) {
55+
$trail->parent('dashboard');
56+
$trail->push(trans('google::app.meet.index.title'), route('admin.google.index', ['route' => request('route')]));
57+
});
58+
```
59+
60+
* Goto **config/krayin-vite.php** file and add following lines
61+
62+
```php
63+
<?php
64+
65+
return [
66+
'viters' => [
67+
// ...
68+
69+
'google' => [
70+
'hot_file' => 'google-vite.hot',
71+
'build_directory' => 'google/build',
72+
'package_assets_directory' => 'src/Resources/assets',
73+
],
74+
],
75+
];
76+
77+
```
78+
79+
* Goto **.env** file and add following lines
4780

4881
```.env
4982
GOOGLE_CLIENT_ID=
@@ -52,25 +85,25 @@ GOOGLE_REDIRECT_URI="${APP_URL}/google/oauth"
5285
GOOGLE_WEBHOOK_URI="${APP_URL}/google/webhook"
5386
```
5487

55-
* Goto config/services.php file and add following lines
88+
* Goto **config/services.php** file and add following lines
5689

5790
```php
5891
return [
5992
// ...
6093

6194
'google' => [
6295
// Our Google API credentials.
63-
'client_id' => env('GOOGLE_CLIENT_ID'),
64-
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
96+
'client_id' => env('GOOGLE_CLIENT_ID'),
97+
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
6598

6699
// The URL to redirect to after the OAuth process.
67-
'redirect_uri' => env('GOOGLE_REDIRECT_URI'),
100+
'redirect_uri' => env('GOOGLE_REDIRECT_URI'),
68101

69102
// The URL that listens to Google webhook notifications (Part 3).
70-
'webhook_uri' => env('GOOGLE_WEBHOOK_URI'),
103+
'webhook_uri' => env('GOOGLE_WEBHOOK_URI'),
71104

72105
// Let the user know what we will be using from his Google account.
73-
'scopes' => [
106+
'scopes' => [
74107
// Getting access to the user's email.
75108
\Google_Service_Oauth2::USERINFO_EMAIL,
76109

@@ -80,23 +113,24 @@ return [
80113

81114
// Enables automatic token refresh.
82115
'approval_prompt' => 'force',
83-
'access_type' => 'offline',
116+
'access_type' => 'offline',
84117

85118
// Enables incremental scopes (useful if in the future we need access to another type of data).
86119
'include_granted_scopes' => true,
87120
],
88121
];
89122
```
90123

91-
* Goto app/Http/Middleware/VerifyCsrfToken.php file and add following line under $except array
124+
* Goto **app/Http/Middleware/VerifyCsrfToken.php** file and add following line under $except array
92125

93126
```php
94127
protected $except = [
128+
// ...
95129
'google/webhook',
96130
];
97131
```
98132

99-
* Goto app/Console/Kernel.php file and update the schedule function with the following lines
133+
* Goto **app/Console/Kernel.php** file and update the schedule function with the following lines
100134

101135
```php
102136
protected function schedule(Schedule $schedule)

package.json

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
{
2-
"private": true,
3-
"scripts": {
4-
"dev": "npm run development",
5-
"development": "mix",
6-
"watch": "mix watch",
7-
"watch-poll": "mix watch -- --watch-options-poll=1000",
8-
"hot": "mix watch --hot",
9-
"prod": "npm run production",
10-
"production": "mix --production"
11-
},
12-
"devDependencies": {
13-
"cross-env": "^7.0.3",
14-
"laravel-mix": "^6.0.6",
15-
"laravel-mix-merge-manifest": "^2.0.0",
16-
"lodash": "^4.17.19",
17-
"postcss": "^8.1.14",
18-
"sass": "^1.32.8",
19-
"sass-loader": "^11.0.1",
20-
"vue": "^2.6.12",
21-
"vue-loader": "^15.9.6",
22-
"vue-template-compiler": "^2.6.12"
23-
},
24-
"dependencies": {}
25-
}
2+
"private": true,
3+
"scripts": {
4+
"dev": "vite",
5+
"build": "vite build"
6+
},
7+
"devDependencies": {
8+
"autoprefixer": "^10.4.16",
9+
"axios": "^1.6.4",
10+
"laravel-vite-plugin": "^0.7.2",
11+
"postcss": "^8.4.23",
12+
"tailwindcss": "^3.3.2",
13+
"vite": "^4.0.0",
14+
"vue": "^3.4.19"
15+
},
16+
"dependencies": {
17+
"@vitejs/plugin-vue": "^4.2.3"
18+
}
19+
}

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.icon-google:before{content:""}@font-face{font-family:icomoon;src:url(icomoon-f9134904.woff?w2trdd) format("woff");font-weight:400;font-style:normal;font-display:block}

publishable/assets/build/assets/app-321a3eb1.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
File renamed without changes.
File renamed without changes.
1.29 KB
Binary file not shown.

0 commit comments

Comments
 (0)