Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #335 from noelmace/slide-video
Browse files Browse the repository at this point in the history
feat: new slide-video component
  • Loading branch information
peterpeterparker authored Sep 14, 2019
2 parents b0b6f6b + 7e39b9b commit e89e639
Show file tree
Hide file tree
Showing 13 changed files with 688 additions and 0 deletions.
15 changes: 15 additions & 0 deletions webcomponents/slides/video/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
21 changes: 21 additions & 0 deletions webcomponents/slides/video/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 David Dal Busco, Nicolas Mattia and Noël Macé

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions webcomponents/slides/video/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DeckDeckGo - Slide Video

This component is the slide/template "Video" of [DeckDeckGo].

It is developed with [Stencil](https://stenciljs.com).

## Table of contents

- [Getting Started](#getting-started)
- [License](#license)

## Getting Started

To develop and run this Web Component locally, proceed as following:

```
git clone https://github.com/deckgo/deckdeckgo
cd deckdeckgo/webcomponents/slides/video
npm install
npm run start
```

## License

MIT © [David Dal Busco](mailto:[email protected]), [Nicolas Mattia](mailto:[email protected]) & [Noël Macé](mailto:[email protected])

[DeckDeckGo]: https://deckdeckgo.com
212 changes: 212 additions & 0 deletions webcomponents/slides/video/package-lock.json

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

55 changes: 55 additions & 0 deletions webcomponents/slides/video/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "@deckdeckgo/slide-video",
"version": "1.0.0-rc.1",
"description": "The Video template displays a video and play/stop it on swipe",
"main": "dist/index.js",
"module": "dist/index.mjs",
"es2015": "dist/esm/index.mjs",
"es2017": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/deckdeckgo-slide-big-img/deckdeckgo-slide-big-img.js",
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "stencil build --docs",
"start": "stencil build --dev --watch --serve",
"test": "stencil test --spec --e2e",
"test.watch": "stencil test --spec --e2e --watchAll"
},
"dependencies": {
"@deckdeckgo/slide-utils": "^1.0.0-rc.1-1"
},
"devDependencies": {
"@stencil/core": "^1.3.1",
"@stencil/postcss": "^1.0.1",
"@stencil/sass": "^1.0.1",
"@stencil/utils": "0.0.5",
"autoprefixer": "^9.6.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/deckgo/deckdeckgo.git"
},
"author": "Noël Macé",
"license": "MIT",
"bugs": {
"url": "https://github.com/deckgo/deckdeckgo"
},
"homepage": "https://deckdeckgo.com",
"keywords": [
"stencil",
"stenciljs",
"web components",
"pwa",
"progressive web app",
"presentation",
"slides",
"slideshow",
"talk"
]
}
60 changes: 60 additions & 0 deletions webcomponents/slides/video/src/components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/


import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';


export namespace Components {
interface DeckgoSlideVideo {
'afterSwipe': () => Promise<void>;
/**
* play when swipping forward always show previous slide when swipping backward reset when leaving the slide only show next slide if video was played and then paused or ended
*/
'beforeSwipe': (enter: boolean) => Promise<boolean>;
'customActions': boolean;
'customBackground': boolean;
'hideContent': () => Promise<void>;
'lazyLoadContent': () => Promise<void>;
'revealContent': () => Promise<void>;
}
}

declare global {


interface HTMLDeckgoSlideVideoElement extends Components.DeckgoSlideVideo, HTMLStencilElement {}
var HTMLDeckgoSlideVideoElement: {
prototype: HTMLDeckgoSlideVideoElement;
new (): HTMLDeckgoSlideVideoElement;
};
interface HTMLElementTagNameMap {
'deckgo-slide-video': HTMLDeckgoSlideVideoElement;
}
}

declare namespace LocalJSX {
interface DeckgoSlideVideo extends JSXBase.HTMLAttributes<HTMLDeckgoSlideVideoElement> {
'customActions'?: boolean;
'customBackground'?: boolean;
'onSlideDidLoad'?: (event: CustomEvent<void>) => void;
}

interface IntrinsicElements {
'deckgo-slide-video': DeckgoSlideVideo;
}
}

export { LocalJSX as JSX };


declare module "@stencil/core" {
export namespace JSX {
interface IntrinsicElements extends LocalJSX.IntrinsicElements {}
}
}


Loading

0 comments on commit e89e639

Please sign in to comment.