Skip to content

Commit

Permalink
chore(samples): add vue sample
Browse files Browse the repository at this point in the history
Resolves #24 by introducing a Vue sample for easy integration of pillarbox as a
component, providing a starting point for integrators.
  • Loading branch information
jboix committed Mar 21, 2024
1 parent f5e2116 commit 88d6c6a
Show file tree
Hide file tree
Showing 13 changed files with 1,477 additions and 0 deletions.
24 changes: 24 additions & 0 deletions samples/vue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
31 changes: 31 additions & 0 deletions samples/vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# pillarbox-web vue sample

This project demonstrates the integration og pillarbox with vue. Feel free to explore and
experiment with this sample via the following playground:

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)][stackblitz]

You can also use this project as a template.

## Quick guide

This project uses [Vite][vite] for building and previewing the example. The following commands are
available:

- Run the server in development mode.
```shell
npm run dev
```

- Compile Typescript and build the project.
```shell
npm run build
```

- Preview the compiled project:
```shell
npm run preview
```

[stackblitz]: https://stackblitz.com/github/srgssr/pillarbox-web-demo/tree/main/samples/vue
[vite]: https://vitejs.dev/
13 changes: 13 additions & 0 deletions samples/vue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Pillarbox + Vue</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading

0 comments on commit 88d6c6a

Please sign in to comment.