Skip to content

Commit

Permalink
Merge pull request #20 from PiwikPRO/feature/PPPSYS-43233-server-comp…
Browse files Browse the repository at this point in the history
…onents

Feature/PPPSYS-43233 server components support
  • Loading branch information
lysy-vlc authored Oct 16, 2023
2 parents 5341b91 + 51812b9 commit e4e41b8
Show file tree
Hide file tree
Showing 62 changed files with 15,178 additions and 6,574 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# CHANGELOG

* [2.0.0](#2.0.0)
* [1.0.1](#1.0.1)
* [1.0.0](#1.0.0)

## 2.0.0

Support for Next > 13.0.0. New examples how to use added.

## 1.0.1

Added 'container-url' parameter

## 1.0.0
Expand Down
2 changes: 2 additions & 0 deletions example/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_CONTAINER_URL=
NEXT_PUBLIC_CONTAINER_ID=
2 changes: 0 additions & 2 deletions example/.env.local

This file was deleted.

3 changes: 3 additions & 0 deletions example/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
19 changes: 18 additions & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/__tests__/snapshots/

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env*
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
5 changes: 3 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Example project with usage of Piwik PRO Library for Next.js

Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager and the Piwik PRO tracking client in Next.js applications.
Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager and the Piwik PRO tracking client in
Next.js applications.

- [Installation](#installation)
- [Configuration](#configuration)
- [Run](#project-run)
- [Run](#run)

## Installation

Expand Down
77 changes: 0 additions & 77 deletions example/__test__/__snapshots__/snapshot.test.tsx.snap

This file was deleted.

60 changes: 0 additions & 60 deletions example/__test__/examples/DataLayer.test.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions example/__test__/index.test.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions example/__test__/snapshot.test.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions example/__tests__/index-page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {render} from '@testing-library/react'
import IndexPage from '@/app/page.tsx'

it('renders homepage unchanged', () => {
const {container} = render(<IndexPage/>)
expect(container).toMatchSnapshot()
})
Loading

0 comments on commit e4e41b8

Please sign in to comment.