2.3.12 • Published 5 years ago

@nib-components/content-video-panel v2.3.12

Weekly downloads
5
License
-
Repository
-
Last release
5 years ago

Setting up your component

Delete this section after you've setup the component

Before the component is accepted into the DLS:

  1. Github: Create the repository under your own username/organisation

When the component is accepted into the DLS:

  1. Github: Transfer ownership of the repository to frontend
  2. BuildKite: Create a New Pipeline
  3. BuildKite: Enter the following settings:
  • Name: content-link
  • Git Repository: git@git.nib.com.au:frontend/content-link.git
  1. BuildKite: Remove the default Step and add a Read steps from repository step
  • And add cd deploy && bundle install && bundle update sceptre sceptre-dotnet sceptre-app && bundle exec sceptre-app pipeline upload to the Commands to run textbox
  • And add os=linux to the Agent Targeting Rules textbox
  1. BuildKite: Create Pipeline and follow the instructions to add the webhook to GithubEnterprise
  2. BuildKite: Go to Settings
  • Check Build pull requests from third-party forked repositories and click Save Github Enterprise Settings
  • Copy the Markdown badge from Settings and past it below.
  1. Github: Edit the readme to remove these steps and kick off a New build
  2. Github: Protect the master branch
  • Go to Settings > Branches
  • Choose the master branch
  • Check Protect this branch
  • Check Require status checks to pass before merging
  • Check Include administrators and Require branches to be up to date before merging
  • Check all Status checks found in the last week for this repository

@nib-components/content-video-panel

Build status dependencies Status

A video panel that contains a video. It's also a panel. The name says it all really.

Installation

npm install --save @nib-components/content-video-panel

Usage

import VideoPanel from '@nib-components/content-video-panel';

<VideoPanel/>

<VideoPanel/>

Properties

title

The title that will appear above the video

caption

The description for the video that will appear underneath, to the left.

source

The source link that appears underneath the video, to the right. It maps to the 'source' content model in contentful.

videoType

This describes what the video actually is, ie YouTube or H.264. It must have an id to indicate what the type is.

Sample Properties

{
  id: 'myMockVideoPanel',
  title: 'Here is a Cat Video',
  caption: 'This is a mock caption',
  source: {
    id: 'myLink',
    text: 'Here is the source link',
    href: 'https://docs.joeworkman.net/rapidweaver/stacks/youtube/video-id',
    trackingTag: 'foobar'
  },
  videoType: {
    type: 'youTubeVideoType',
    id: 'catVideo',
    videoId: 'XyNlqQId-nk'
  }
};

Change log

1.0.0

Initial release.

Contributing

You can edit the files in ./src, whilst running npm run watch. This will compile for the ./dist folder.

Contentful

The video-panel schema, mapping, decorator and tracking tag decorator can be imported from @nib-components/content-link -

import Link, { videoPanelSchema, videoPanelMapping, videoPanelDecorator } from @nib-components/video-panel;

A Video Panel entry should be added to the relevant Contentful space with the following entries -

NameField IDTypeRequired/Optional
LabellabelShort textRequired
TitletitleShort textOptional
CaptioncaptionShort textOptional
SourcesourceReference (Link)Optional
Video TypevideoTypeReference (YouTube Video Typeothers)Required

The Video Type as of writing only supports the YouTube video type, but there will be others added.

2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.9

5 years ago

2.3.7

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.11

6 years ago

2.2.10

6 years ago

2.2.8

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.1.17

6 years ago

2.1.16

6 years ago

2.1.15

6 years ago

2.1.14

6 years ago

2.1.13

6 years ago

2.1.12

6 years ago

2.1.11

6 years ago

2.1.10

6 years ago

2.1.9

6 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.41

6 years ago

2.0.40

6 years ago

2.0.39

6 years ago

2.0.38

6 years ago

2.0.37

6 years ago

2.0.36

6 years ago

2.0.35

6 years ago

2.0.34

6 years ago

2.0.33

6 years ago

2.0.32

6 years ago

2.0.31

6 years ago

2.0.30

6 years ago

2.0.29

6 years ago

2.0.28

6 years ago

2.0.27

6 years ago

2.0.26

6 years ago

2.0.25

6 years ago

2.0.24

6 years ago

2.0.23

6 years ago

2.0.22

6 years ago

2.0.21

6 years ago

2.0.20

6 years ago

2.0.18

6 years ago

2.0.17

6 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago