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

orchestrator-app-sidebar

v0.1.4

Published

A Vue 2 plugin to create a sidebar menu.

Downloads

5

Readme

orchestrator-app-sidebar

A Vue 2 plugin to create a sidebar menu.

Dependencies

The plugin was created with Vue 2 and is designed to work with vue-router.

| Name | Version | |--------------------|----------| | vue | 2.6.14 | | vue-router | 3.5.1 | | fontawesome-free | 6.0.0 |

Project setup

npm install orchestrator-app-sidebar

Global registration

main.ts:

import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import SideBar from "orchestrator-app-sidebar";
import "orchestrator-app-sidebar/dist/SideBar.css";
import "orchestrator-app-sidebar/src/app.scss";
import "orchestrator-app-sidebar/src/components/sidebaritems.scss";
import "@fortawesome/fontawesome-free/css/all.css";
import "@fortawesome/fontawesome-free/js/all.js";

Vue.config.productionTip = false;
Vue.use(SideBar);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");

Local registration

App.vue:

<script>
import SideBar from "orchestrator-app-sidebar";
import "orchestrator-app-sidebar/dist/SideBar.css";
import "orchestrator-app-sidebar/src/app.scss";
import "orchestrator-app-sidebar/src/components/sidebaritems.scss";

export default {
  components: {
    SideBar
  }
}
</script>

Basic usage

App.vue:

<template>
  <div>
    <side-bar
      :menus="menus"
      :showmenu="showmenu"
      :isOpen="isOpen"
      :showSide="showSide"
    >
    </side-bar>
    <router-view />
  </div>
</template>

<script lang="ts">
import Vue from "vue";

export default Vue.extend({
  name: "App",
  data() {
    return {
      menus: [
        {
          link: "/settingsOrchestre",
          titleMenu: "SettingsOrchestre",
          menuIcon: "fa-face",
        },
        {
          link: "/featuresOrchestre",
          titleMenu: "Features",
          menuIcon: "streetview",
          subMenus: [
            {
              title: "PagesOrchestre",
              link: "/pagesOrchestre",
              icon: "streetview",
            },
            {
              title: "ElementsOrchestre",
              link: "/elementsOrchestre",
              icon: "streetview",
            },
          ],
        },
        {
          link: "/ServicesOrchestre",
          titleMenu: "Services",
          menuIcon: "face",
          subMenus: [
            {
              title: "App Design Orchestre",
              link: "/app-designOrchestre",
              icon: "account_circle",
            },
            {
              title: "Web Design Orchestre",
              link: "/web-designOrchestre",
              icon: "work",
            },
          ],
        },
        {
          link: "/OverviewOrchestre",
          titleMenu: "OverviewOrchestre",
          menuIcon: "settings",
        },
        {
          link: "/Test",
          titleMenu: "Test",
          menuIcon: "settings",
          subMenus: [
            {
              title: "Test 0",
              link: "/test-0",
              icon: "account_circle",
            },
            {
              title: "Test 1",
              link: "/test-1",
              icon: "work",
            },
          ],
        },
      ],
      showmenu: false,
      isOpen: false,
      showSide: true,
    };
  },
});
</script>

<style lang="scss">
@import "app.scss";
</style>

Router

index.ts:

import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes: Array<RouteConfig> = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/test-0",
    name: "Test",
    component: () => import("../views/TestZero.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;

fix typescript module has no type

tsconfig.json:

"noImplicitAny": false,
"allowJs": true,