New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@phila/phila-ui

Package Overview
Dependencies
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phila/phila-ui

City of Philadelphia Vue App Components and Standards

  • 1.4.3
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

phila-ui

City of Philadelphia Vue Applications Standards and Components

Depends on Bulma.io (bulma is already imported in the project).

How to Extend

  1. Clone this repo.
  2. Copy and paste MyComponent (this is an example folder) into src/components/ and create your main.vue component.
  3. In src/phila-ui.js create a new import with your component (look for the commented code example) and add it to the export object.
  4. Upgrade the app version in package.json (using Semantic Versioning).
  5. Run npm run build to build all distributable files.

How to Use

Run npm install --save CityOfPhiladelphia/phila-ui#master (until there is a public distribution in npm)

Importing

Importing individually

You can import components individually. This is the reccomended method. If you import components individually, you will also need to import the base.scss phila-ui file in your main.js file:import 'phila-ui/src/styles/base.scss'

import { Header, InputText } from 'phila-ui';
Vue.use(Header, { altName: 'PhlHeader' });
Vue.use(InputText);
Importing everything

Note: Importing the entire library will cause a very large package size. We reccommend you only import what you need.

In main.js, import phila-ui.

import * from PhilaUI from phila-ui;
Vue.use(PhilaUI, settings);
Vue.use(PhilaUI, { Header: { altName: 'PhlHeader' }});

Currently, all components only have one option.

Default: Component Name.

altName: 'AlternativeName'

Note: To if you would like to use the City's sass color helpers and functions in your project, add the following to vue.config.js:

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        data: `
          @import "~phila-ui/src/styles/functions.scss";
          @import "~phila-ui/src/styles/colors.scss";
        `,
      },
    },
  },
};

License

MIT

Keywords

FAQs

Package last updated on 03 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc