Skip to content

Commit

Permalink
Merge pull request #7 from LHRUN/feature/1.5.0
Browse files Browse the repository at this point in the history
Feature/1.5.0
  • Loading branch information
LHRUN authored Nov 20, 2023
2 parents 3c18185 + 518e407 commit d8a0027
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 1.5.0 (2023-11-20)

### Feat

+ add @vercel/analytics
+ add microsoft clarity

# 1.4.0 (2023-11-15)

### Feat
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint:style": "stylelint --fix \"src/**/*.scss\""
},
"dependencies": {
"@vercel/analytics": "^1.1.1",
"classnames": "^2.3.2",
"next": "14.0.1",
"react": "^18",
Expand Down
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { Metadata } from 'next';
import Script from 'next/script';
import { AppProviders } from '@/context';
import { Analytics } from '@vercel/analytics/react';
import '@/styles/globals.scss';

export const metadata: Metadata = {
Expand All @@ -15,8 +17,19 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<Script
id="clarity-script"
dangerouslySetInnerHTML={{
__html: `(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "jtekf5auph");`
}}
/>
<body>
<AppProviders>{children}</AppProviders>
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit d8a0027

Please sign in to comment.