npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@w11k/ngx-present

v2.0.0

Published

Angular based Presentation Tool

Downloads

11

Readme

ngx-present

ngx-present is an open source, Angular based presentation tool developed by W11K.

At W11K we use it e.g. for our conference talks as well as for the course material of theCodeCampus where we offer Angular and TypeScript trainings.

Features

  • Nested Slides
  • Overview with Zoom
  • End User Help
  • Write Content as Markdown
  • Source Code Highlighting (also for Markdown)

Project structure

This project consists of 3 parts: the core library, a theme library and a demo application. The project uses the Angular CLI as build tool. Therefore the previous mentioned libraries are located in the projects folder. The src/app folder contains a demo application where you can see how to use the libraries.

@w11k/ngx-present

@w11k/ngx-present is the core library. It contains some basic components like menu, help, overview, ... and the routing system. It does not contain any styling for your slides. However it contains the styling for the contained components.

@thecodecampus/ngx-present-theme

@thecodecampus/ngx-present-theme is, as the name suggests, a theme for ngx-present with special styling for theCodeCampus. Basically it is a set of reusable master-slide-components which can be applied to a slide in the concrete presentation project.

Please note: the source of the theme is available but you are not allowed to use it as it is. You can use this theme as a blueprint to create your own theme. Feel free to copy and modify it but please do not use our styling and logos.

Installation

  • Create a new angular application ng new my-presentation --style=scss
  • Install @w11k/ngx-present via npm install @w11k/ngx-present
  • You may want to install a theme via npm install your-ngx-present-theme. Of course you also can use ngx-present without a theme. A theme is just a way to reuse your styling in multiple presentations without copy & paste.

Usage

  • Each slide is an Angular component. Go on and create one. Do not declare this component on any module directly. All slide components get structured in an array of components or nested arrays. You can nest the slides as deep as you want to. Later on this structure is used for the routing and numbering of the slides.
    const section: SlideComponents = [SectionTitleComponent, SectionContentComponent];
    const slides: SlideComponents = [SlideOneComponent, SlideTwoComponent, section];
  • In your app module import the ngx-present module and pass the slides to it:
    NgxPresentModule.withSlides(slides)
  • Add the slide components to app module's declarations and entryComponents. These to parts of the module decoration typically look like this:
    declarations: [AppComponent, ...slides],
    entryComponents: [...slides],
  • Import the router module and pass your custom routes along with ngx-present's routes. Minimal route configuration should look like the code below. Feel free to add additional routes or change the default redirect. You don't need to create routes for your slides. This is managed by ngx-present.
    import { ngxPresentRoutes } from '@w11k/ngx-present';
    RouterModule.forRoot([
      ...ngxPresentRoutes,
      { path: '**', redirectTo: 'slide'}
    ])  
  • In your AppComponent's template insert the ngx-present-container component. This container component is designed to use the complete window (100vw and 100vh). All styling and theming should be done inside of the slide components. Create master slides for reusable styling.
    <ngx-present-container></ngx-present-container>
  • Include global styling and maybe a theme in your style.scss
    @import "~@w11k/ngx-present/style/ngx-present";
    @import "~@thecodecampus/ngx-present-theme/style/ngx-present";
      
    @include ngx-present();
    @include ngx-present-tcc-theme();
    
  • Start your development server and open the application.

Run the Demo

  • Clone this repository
  • Run npm install
  • Run npm run build:lib and npm run build:theme
  • Then run npm run start and open http://localhost:4200 in your browser